Is it possible to place news items next to each other? I have included an image.
<?php/** * Code snippet: cwsoft-anynews * * This code snippets grabs news entries from the WebsiteBaker news * module and displays them on any page you want by invoking the function * getNewsItems() via a page of type code or the index.php * file of the template. * * This file contains the Slovenian language output. * * LICENSE: GNU General Public License 3.0 * * @platform CMS WebsiteBaker 2.8.x * @package cwsoft-anynews * @author cwsoft (http://cwsoft.de) * @copyright cwsoft * @license http://www.gnu.org/licenses/gpl-3.0.html*/// Slovenian module description$module_description = 'Dodatek cwsoft-anynews omogoča prikaz novic iz WebsiteBaker News modula, na katerem koli mestu na strani. Funkcijo prikličete iz oddelka kode ali vaše predloge index.php datoteke. Za podrobnosti glej <a href="https://github.com/cwsoft/wb-cwsoft-anynews#readme" target="_blank">GitHub</a>.';// initialize global $LANG variable as array if neededglobal $LANG;if (! isset($LANG) || (isset($LANG) && ! is_array($LANG))) { $LANG = array();}$LANG['ANYNEWS'][0] = array( // text outputs for the frontend 'TXT_HEADER' => 'Zadnje Novice', 'TXT_READMORE' => 'beri več', 'TXT_NO_NEWS' => 'Trenutno ni novic.', 'TXT_NEWS' => 'Novice', 'TXT_NUMBER_OF_COMMENTS' => 'Število komentarjev', // date/time format: (21:12, 31/10/2012) 'DATE_FORMAT' => 'G:i, d/m/Y');
Slovenian translation (SL.php) ---> It should be SI.php not SL (SL is for Slovakia)
QuoteSlovenian translation (SL.php) ---> It should be SI.php not SL (SL is for Slovakia)I thought WebsiteBaker follows the two letter language code defined in ISO 639-1, also see WIKI.In ISO 639-1, SL stands for Slovenian, SK for Slovak and SI for Sinhala. Maybe an developer can confirm this This is why I used SL (Slovenian) for your language file.
<?phpif (function_exists('getNewsItems')) { echo getNewsItems( $group_id = 1, $display_mode = 1);}?>
<?phpif (function_exists('getNewsItems')) { $config = array( 'group_id' => 1, 'display_mode' => 1, ); echo getNewsItems($config);}?>
if (function_exists('getNewsItems')) { echo getNewsItems( $group_id = 3, $display_mode = 1);}
<div id="leftsideColumn"> <div class="leftsidebox"> <!-- CODE BELOW uses the AnyNews 2.14.0 installed module --> <div id="display_anynews"> <?phpif (function_exists('getNewsItems')) { $config = array( 'group_id' => 1, 'display_mode' => 1, ); echo getNewsItems($config);}?> </div><!-- end display_anynews --> </div><!-- end leftsidebox --> </div><!-- end leftsideColumn --><div id="rightsideColumn"> <div class="rightsidebox"> <!-- CODE BELOW uses the AnyNews 2.14.0 --> <div id="display_anynews"> <?phpif (function_exists('getNewsItems')) { $config = array( 'group_id' => 2, 'display_mode' => 1, ); echo getNewsItems($config);}?> </div><!-- end display_anynews --> </div><!-- end rightsidebox --> </div><!-- end leftsideColumn -->
[[getNewsItems?group_id=1&display_mode=1]]
I've created arrays before in other programming languages, but never had the occasion to do it in PHP before....seems strange to me because I would think than in this case you would only want the comparison to return