Your IP : 216.73.216.61


Current Path : /home/w/u/e/wuectly/www/03cbe/
Upload File :
Current File : /home/w/u/e/wuectly/www/03cbe/mod_ic_event_list.tar

tmpl/icrounded.php000060400000012074152455310510010206 0ustar00<?php
/**
 *------------------------------------------------------------------------------
 *  iCagenda Event List Module by Jooml!C
 *------------------------------------------------------------------------------
 * @package     com_icagenda
 * @copyright   Copyright (c)2012-2015 Cyril Rezé, Jooml!C - All rights reserved
 *
 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 * @author      Cyril Rezé (Lyr!C)
 * @link        http://www.joomlic.com
 *
 * @layout		icrounded
 * @version		3.9 2015-09-24
 * @since       1.0
 *------------------------------------------------------------------------------
*/

// No direct access to this file
defined('_JEXEC') or die();

$background = $imageSet
	? 'background: url(' . $thumb_img . ') no-repeat center center;'
	: 'background: ' . $cat_color . '; ';
$padding_top = $thumb_xsmall_height / 10;
$padding_day = 'padding-top: ' . $padding_top . 'px; ';
?>

<div class="icrounded_eventlist ic-col ic-<?php echo $column; ?>">
	<a href="<?php echo $urlEvent; ?>" rel="nofollow">
	<div class="ic-event-div">
		<!--[if lte IE 9]>
			<a href="<?php echo $urlEvent; ?>" rel="nofollow"><span>
		<![endif]-->

		<?php // Date Box ?>
		<div class="ic-date-img-box" style="<?php echo $background; ?> width: <?php echo $thumb_xsmall_width; ?>; height: <?php echo $thumb_xsmall_height; ?>; color:<?php echo $font_color; ?>;">
			<div class="ic-date-div" style="width: <?php echo $thumb_xsmall_width; ?>;">

				<?php // Day ?>
				<div class="ic-day">
					<?php echo $nextDay; ?>
				</div>

				<?php // Month ?>
				<div class="ic-month">
					<?php echo $nextMonth; ?>
				</div>

			</div>
		</div>

		<div class="ic-block">

			<?php // Title ?>
			<div class="iceventlist-title ic-block">
				<!--[if lte IE 9]>
					<a href="<?php echo $urlEvent; ?>" rel="nofollow">
				<![endif]-->
				<?php echo htmlspecialchars($eventTitle); ?>
				<!--[if lte IE 9]>
					</a>
				<![endif]-->
			</div>

			<?php // Registration tickets ?>
			<?php if ($maxTickets || $TicketsLeft || $registered) : ?>
			<div class="iceventlist-registration-info ic-inline-block">

				<?php if ($maxTickets): ?>
				<span class="iCtip ic-reg available" title="<?php echo JText::_( 'MOD_IC_EVENT_LIST_SEATS_NUMBER' ); ?>">
					<?php echo $maxTickets; ?>
				</span>
				<?php endif; ?>

				<?php if ($TicketsLeft): ?>
				<span class="iCtip ic-reg ticketsleft" title="<?php echo JText::_( 'MOD_IC_EVENT_LIST_SEATS_AVAILABLE' ); ?>">
					<?php echo $TicketsLeft; ?>
				</span>
				<?php endif; ?>

				<?php if ($registered): ?>
				<span class="iCtip ic-reg registered" title="<?php echo JText::_( 'MOD_IC_EVENT_LIST_ALREADY_BOOKED' ); ?>">
					<?php echo $registered; ?>
				</span>
				<?php endif; ?>

			</div>
			<?php endif; ?>

			<?php // Feature icons ?>
			<?php if (!empty($FEATURES_ICONS)) : ?>
			<div class="iceventlist-features-container">
				<?php foreach ($FEATURES_ICONS as $icon) : ?>
				<div class="iceventlist-feature-icon">
					<img class="iCtip" src="<?php echo $FEATURES_ICONROOT . $icon['icon'] ?>" alt="<?php echo $icon['icon_alt'] ?>" title="<?php echo $SHOW_ICON_TITLE == '1' ? $icon['icon_alt'] : '' ?>">
				</div>
				<?php endforeach ?>
			</div>
			<?php endif ?>

		</div>

		<?php if ( ($eventVenue)
				|| ($display_city && $eventCity)
				|| (($ic_datetime || $ic_date || $ic_time) && $nextDate) ) : ?>
		<div class="ic-block">

			<?php // Venue ?>
			<?php if ($eventVenue): ?>
			<div class="iceventlist-venue ic-inline-block">
				<?php echo htmlspecialchars($eventVenue); ?>
			</div>
			<?php endif; ?>

			<?php // City ?>
			<?php if ($display_city && $eventCity): ?>
			<?php if ( $eventVenue ): ?>-<?php endif; ?>
			<div class="iceventlist-city ic-inline-block">
				<?php echo htmlspecialchars($eventCity); ?>
			</div>
			<?php endif; ?>

			<?php // Date (& time) ?>
			<?php if (($ic_datetime || $ic_date || $ic_time) && $nextDate): ?>
			<?php $block_class = ($eventVenue || ($display_city && $eventCity)) ? ' ic-inline-block' : ' ic-block'; ?>
			<div class="ic-datetime-div<?php echo $block_class; ?>">
				<?php if ($ic_datetime): ?>
					<?php echo '<span class="ic-datetime-label">' . JText::_( 'MOD_IC_EVENT_LIST_DATE' ). '</span>'; ?>
					<?php echo $eventDate; ?><?php if ($displayTime) : ?>, <?php echo $nextTime; ?><?php endif; ?>
				<?php elseif ($ic_date): ?>
					<?php //echo JText::_( 'MOD_IC_EVENT_LIST_AT_TIME' ); ?>
					<?php echo '<span class="ic-datetime-label">' . JText::_( 'MOD_IC_EVENT_LIST_DATE' ). '</span>'; ?>
					<?php echo $eventDate; ?>
				<?php elseif ($ic_time): ?>
					<?php //echo JText::_( 'MOD_IC_EVENT_LIST_AT_TIME' ); ?>
					<?php echo '<span class="ic-datetime-label">' . JText::_( 'MOD_IC_EVENT_LIST_TIME' ). '</span>'; ?>
					<?php echo $nextTime; ?>
				<?php endif; ?>
			</div>
			<?php endif; ?>
		</div>
		<?php endif; ?>

		<?php // Short Description ?>
		<?php if ($display_shortDesc && $shortDesc): ?>
		<div class="ic-block">
			<div class="iceventlist-desc ic-inline-block">
				<?php echo $shortDesc; ?>
			</div>
		</div>
		<?php endif; ?>
		<!--[if lte IE 9]>
			</span></a>
		<![endif]-->
	</div>
	</a>
</div>
tmpl/default.php000060400000010473152455310510007657 0ustar00<?php
/**
 *------------------------------------------------------------------------------
 *  iCagenda Event List Module by Jooml!C
 *------------------------------------------------------------------------------
 * @package     com_icagenda
 * @copyright   Copyright (c)2012-2015 Cyril Rezé, Jooml!C - All rights reserved
 *
 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 * @author      Cyril Rezé (Lyr!C)
 * @link        http://www.joomlic.com
 *
 * @layout		default
 * @version		3.9 2015-09-24
 * @since       1.0
 *------------------------------------------------------------------------------
*/

// No direct access to this file
defined('_JEXEC') or die(); ?>

<div class="default_eventlist ic-col ic-<?php echo $column; ?>">
	<div class="ic-event-div">

		<?php // Date Box ?>
		<div class="ic-date-img-box">
			<div class="ic-date-div" style="background: <?php echo $cat_color; ?>; color: <?php echo $font_color; ?>;">
				<div class="ic-day">
					<?php echo $nextDay; ?>
				</div>
				<div class="ic-month">
					<?php echo $nextMonth; ?>
				</div>
			</div>
		</div>

		<div class="ic-block">

			<?php // Title ?>
			<div class="iceventlist-title ic-block">
				<a href="<?php echo $urlEvent; ?>" rel="nofollow">
					<?php echo htmlspecialchars($eventTitle); ?>
				</a>
			</div>

		</div>

		<?php if ( ($eventVenue)
				|| ($display_city && $eventCity)
				|| (($ic_datetime || $ic_date || $ic_time) && $nextDate) ) : ?>
		<div class="ic-block">

			<?php // Venue ?>
			<?php if ($eventVenue): ?>
			<div class="iceventlist-venue ic-inline-block">
				<?php echo htmlspecialchars($eventVenue); ?>
			</div>
			<?php endif; ?>

			<?php // City ?>
			<?php if ($display_city && $eventCity): ?>
			<?php if ( $eventVenue ): ?>-<?php endif; ?>
			<div class="iceventlist-city ic-inline-block">
				<?php echo htmlspecialchars($eventCity); ?>
			</div>
			<?php endif; ?>

			<?php // Date (& time) ?>
			<?php if (($ic_datetime || $ic_date || $ic_time) && $nextDate): ?>
			<?php $block_class = ($eventVenue || ($display_city && $eventCity)) ? ' ic-inline-block' : ' ic-block'; ?>
			<div class="ic-datetime-div<?php echo $block_class; ?>">
				<?php if ($ic_datetime): ?>
					<?php echo '<span class="ic-datetime-label">' . JText::_( 'MOD_IC_EVENT_LIST_DATE' ). '</span>'; ?>
					<?php echo $eventDate; ?><?php if ($displayTime) : ?>, <?php echo $nextTime; ?><?php endif; ?>
				<?php elseif ($ic_date): ?>
					<?php //echo JText::_( 'MOD_IC_EVENT_LIST_AT_TIME' ); ?>
					<?php echo '<span class="ic-datetime-label">' . JText::_( 'MOD_IC_EVENT_LIST_DATE' ). '</span>'; ?>
					<?php echo $eventDate; ?>
				<?php elseif ($ic_time): ?>
					<?php //echo JText::_( 'MOD_IC_EVENT_LIST_AT_TIME' ); ?>
					<?php echo '<span class="ic-datetime-label">' . JText::_( 'MOD_IC_EVENT_LIST_TIME' ). '</span>'; ?>
					<?php echo $nextTime; ?>
				<?php endif; ?>
			</div>
			<?php endif; ?>

		</div>
		<?php endif; ?>

		<?php // Short Description ?>
		<?php if ($display_shortDesc && $shortDesc): ?>
			<span class="iceventlist-desc">
				<?php echo $shortDesc; ?>
			</span>
		<?php endif; ?>

		<?php // Feature icons ?>
		<?php if (!empty($FEATURES_ICONS)) : ?>
		<div class="iceventlist-features-container ic-inline-block">
			<?php foreach ($FEATURES_ICONS as $icon) : ?>
			<div class="iceventlist-feature-icon">
				<img class="iCtip" src="<?php echo $FEATURES_ICONROOT . $icon['icon'] ?>" alt="<?php echo $icon['icon_alt'] ?>" title="<?php echo $SHOW_ICON_TITLE == '1' ? $icon['icon_alt'] : '' ?>">
			</div>
			<?php endforeach ?>
		</div>
		<?php endif ?>

		<?php // Registration tickets ?>
		<?php if ($maxTickets || $TicketsLeft || $registered) : ?>
		<div class="iceventlist-registration-info ic-inline-block">

			<?php if ($maxTickets): ?>
			<span class="iCtip ic-reg available" title="<?php echo JText::_( 'MOD_IC_EVENT_LIST_SEATS_NUMBER' ); ?>"><?php echo $maxTickets; ?></span>
			<?php endif; ?>

			<?php if ($TicketsLeft): ?>
			<span class="iCtip ic-reg ticketsleft" title="<?php echo JText::_( 'MOD_IC_EVENT_LIST_SEATS_AVAILABLE' ); ?>"><?php echo $TicketsLeft; ?></span>
			<?php endif; ?>

			<?php if ($registered): ?>
			<span class="iCtip ic-reg registered" title="<?php echo JText::_( 'MOD_IC_EVENT_LIST_ALREADY_BOOKED' ); ?>"><?php echo $registered; ?></span>
			<?php endif; ?>

		</div>
		<?php endif; ?>

	</div>
	<hr>
</div>

tmpl/index.html000060400000000054152455310510007511 0ustar00<html><body bgcolor="#FFFFFF"></body></html>mod_ic_event_list.xml000060400000022743152455310510010761 0ustar00<?xml version="1.0" encoding="UTF-8"?>
<extension type="module" version="2.5" client="site" method="upgrade">
	<name>iCagenda - Event List</name>
	<creationDate>2015-10-12</creationDate>
	<copyright>Copyright (c)2012-2015 JoomliC. All rights reserved.</copyright>
	<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
	<author>Jooml!C</author>
	<authorEmail>info@joomlic.com</authorEmail>
	<authorUrl>www.joomlic.com</authorUrl>
	<version>3.9.0</version>
	<description>MOD_IC_EVENT_LIST_XML_DESCRIPTION</description>
	<files>
		<filename>mod_ic_event_list.xml</filename>
		<filename module="mod_ic_event_list">mod_ic_event_list.php</filename>
		<filename>index.html</filename>
		<filename>helper.php</filename>
		<folder>css</folder>
		<folder>tmpl</folder>
	</files>
	<languages folder="site">
		<language tag="en-GB">language/en-GB/en-GB.mod_ic_event_list.ini</language>
		<language tag="en-GB">language/en-GB/en-GB.mod_ic_event_list.sys.ini</language>
		<language tag="fr-FR">language/fr-FR/fr-FR.mod_ic_event_list.ini</language>
		<language tag="fr-FR">language/fr-FR/fr-FR.mod_ic_event_list.sys.ini</language>
		<language tag="it-IT">language/it-IT/it-IT.mod_ic_event_list.ini</language>
		<language tag="it-IT">language/it-IT/it-IT.mod_ic_event_list.sys.ini</language>
	</languages>
	<config>
		<fields name="params" addfieldpath="/administrator/components/com_icagenda/models/fields">
			<fieldset name="basic" addfieldpath="/administrator/components/com_icagenda/assets/elements">
				<!--field type="TitleImg" label="MOD_IC_EVENT_LIST_XML_DESCRIPTION" class="stylenote alert alert-info input-xxlarge" icimage="info.png" /-->

				<field
					name="layout"
					type="modulelayout"
					label="JFIELD_ALT_LAYOUT_LABEL"
					description="JFIELD_ALT_MODULE_LAYOUT_DESC"
				/>
				<field
					name="iCmenuitem"
					type="modal_menulink"
					default=""
					label="MOD_IC_EVENT_LIST_FIELD_MENU_LABEL"
					description="MOD_IC_EVENT_LIST_FIELD_MENU_DESC"
				/>

				<field type="Title" label="MOD_IC_EVENT_LIST_FILTERS_LABEL" class="stylebox lead input-xxlarge"/>

				<field
					name="filter_by_date"
					type="list"
					label="COM_ICAGENDA_TIME_LBL"
					description="COM_ICAGENDA_TIME_DESC"
					default="1">
						<option value="2">COM_ICAGENDA_OPTION_PAST_EVENTS</option>
						<option value="4">COM_ICAGENDA_OPTION_CURRENT_EVENTS_TODAY_EVENTS</option>
						<option value="1">COM_ICAGENDA_OPTION_CURRENT_EVENTS_TODAY_AND_UPCOMING_EVENTS</option>
						<option value="3">COM_ICAGENDA_OPTION_UPCOMING_EVENTS</option>
						<option value="0">COM_ICAGENDA_OPTION_ALL_EVENTS</option>
				</field>
				<field
					name="mcatid"
					type="modal_multicat"
					class="inputbox"
					multiple="multiple"
					default="0"
					label="JCATEGORY"
					description="MOD_IC_EVENT_LIST_FIELD_CATEGORY_DESC"
				/>
				<field
					name="orderby"
					type="radio"
					class="btn-group"
					label="COM_ICAGENDA_LBL_DATE"
					description="COM_ICAGENDA_DESC_DATE"
					default="2">
						<option value="1">COM_ICAGENDA_DATE_DESC</option>
						<option value="2">COM_ICAGENDA_DATE_ASC</option>
				</field>
				<field
					name="count"
					type="text"
					default="5"
					label="MOD_IC_EVENT_LIST_FIELD_ITEMS_LABEL"
					description="MOD_IC_EVENT_LIST_FIELD_ITEMS_DESC"
				/>

				<field type="Title" label="MOD_IC_EVENT_LIST_INFORMATION_LABEL" class="stylebox lead input-xxlarge"/>
				<field
					name="dp_dateTime"
					type="list"
					class="btn-group"
					label="MOD_IC_EVENT_LIST_DISPLAY_DATE_AND_TIME_LABEL"
					description="MOD_IC_EVENT_LIST_DISPLAY_DATE_AND_TIME_DESC"
					default="0">
						<option value="0">JHIDE</option>
						<option value="1">MOD_IC_EVENT_LIST_DISPLAY_DATETIME</option>
						<option value="2">MOD_IC_EVENT_LIST_ONLY_DATE</option>
						<option value="3">MOD_IC_EVENT_LIST_ONLY_TIME</option>
				</field>

				<field
					name="dp_venue"
					type="radio"
					class="btn-group"
					label="MOD_IC_EVENT_LIST_DISPLAY_VENUE_NAME_LABEL"
					description="MOD_IC_EVENT_LIST_DISPLAY_VENUE_NAME_DESC"
					default="1">
						<option value="0">JHIDE</option>
						<option value="1">JSHOW</option>
				</field>

				<field
					name="dp_city"
					type="radio"
					class="btn-group"
					label="MOD_IC_EVENT_LIST_DISPLAY_CITY_LABEL"
					description="MOD_IC_EVENT_LIST_DISPLAY_CITY_DESC"
					default="1">
						<option value="0">JHIDE</option>
						<option value="1">JSHOW</option>
				</field>

				<field
					name="dp_regInfos"
					type="radio"
					class="btn-group"
					label="MOD_IC_EVENT_LIST_DISPLAY_REGISTRATION_INFOS_LABEL"
					description="MOD_IC_EVENT_LIST_DISPLAY_REGISTRATION_INFOS_DESC"
					default="0">
						<option value="0">JHIDE</option>
						<option value="1">JSHOW</option>
				</field>

				<field
					name="features_icon_size"
					type="list"
					label="MOD_IC_EVENT_LIST_FEATURES_ICONSIZE_LABEL"
					description="MOD_IC_EVENT_LIST_FEATURES_ICONSIZE_DESC"
					default=""
					filter="options"
					class="inputbox">
						<option value="">COM_ICAGENDA_FEATURES_ICONSIZE_NONE</option>
						<option value="16_bit">COM_ICAGENDA_FEATURES_ICONSIZE_16</option>
						<option value="24_bit">COM_ICAGENDA_FEATURES_ICONSIZE_24</option>
						<option value="32_bit">COM_ICAGENDA_FEATURES_ICONSIZE_32</option>
						<option value="48_bit">COM_ICAGENDA_FEATURES_ICONSIZE_48</option>
						<option value="64_bit">COM_ICAGENDA_FEATURES_ICONSIZE_64</option>
				</field>
				<field
					name="show_icon_title"
					type="radio"
					label="MOD_IC_EVENT_LIST_SHOW_FEATURE_ICON_TITLE_LABEL"
					description="MOD_IC_EVENT_LIST_SHOW_FEATURE_ICON_TITLE_DESC"
					class="btn-group"
					filter="options"
					default="1">
						<option value="0">JHIDE</option>
						<option value="1">JSHOW</option>
				</field>

				<field
					name="dp_shortDesc"
					type="radio"
					class="btn-group"
					label="COM_ICAGENDA_LIST_INTROTEXT_DISPLAY_LABEL"
					description="COM_ICAGENDA_LIST_INTROTEXT_DISPLAY_DESC"
					default=""
					labelclass="control-label"
					>
						<option value="">IC_AUTO</option>
						<option value="0">JHIDE</option>
						<option value="1">IC_SHORTDESC</option>
						<option value="2">IC_AUTO_INTROTEXT</option>
				</field>
				<field
					name="filtering_shortDesc"
					type="list"
					class="btn-group"
					label="ICAGENDA_FILTERING_SHORTDESC_LABEL"
					description="ICAGENDA_FILTERING_SHORTDESC_DESC"
					default="">
						<option value="">ICAGENDA_GLOBAL_OPTION</option>
						<option value="1">ICAGENDA_FILTERING_NO_HTML</option>
						<option value="2">ICAGENDA_FILTERING_ALL_ITALIC</option>
				</field>
				<field
					name="paramlimit"
					type="modal_icvalue_opt"
					default=""
					label="ICAGENDA_AUTO_INTROTEXT_LIMIT_LABEL"
					description="ICAGENDA_AUTO_INTROTEXT_LIMIT_DESC"
					labelclass="control-label"
				/>
				<field
					name="paramlimit_Content"
					type="modal_icvalue_field"
					class="inputbox"
					label=" "
					labelclass="control-label"
				/>

				<field type="Title" label="JGLOBAL_FIELDSET_DISPLAY_OPTIONS" class="stylebox lead input-xxlarge"/>
				<field
					name="column"
					type="list"
					default="col1"
					label="MOD_IC_EVENT_LIST_COLUMNS_LABEL"
					description="MOD_IC_EVENT_LIST_COLUMNS_DESC">
						<option value="col1">J1</option>
						<option value="col2">J2</option>
						<option value="col3">J3</option>
						<option value="col4">J4</option>
				</field>
				<field
					name="monthFormat"
					type="list"
					default="2"
					label="MOD_IC_EVENT_LIST_FIELD_MONTH_FORMAT_LABEL"
					description="MOD_IC_EVENT_LIST_FIELD_MONTH_FORMAT_DESC">
						<option value="1">MOD_IC_EVENT_LIST_FIELD_MONTH_FORMAT_NUM</option>
						<option value="2">MOD_IC_EVENT_LIST_FIELD_MONTH_FORMAT_SHORT</option>
				</field>
				<field type="Title" label=" " class="stylenote"/>
				<field
					name="header_text"
					type="editor"
					label="MOD_IC_EVENT_LIST_HEADER_TEXT_LBL"
					description="MOD_IC_EVENT_LIST_HEADER_TEXT_DESC"
			class="inputbox"
					filter="JComponentHelper::filterText"
					default=""
				/>
				<field type="Title" label=" " class="stylenote"/>
				<field
					name="footer_text"
					type="editor"
					label="MOD_IC_EVENT_LIST_FOOTER_TEXT_LBL"
					description="MOD_IC_EVENT_LIST_FOOTER_TEXT_DESC"
					filter="JComponentHelper::filterText"
					default=""
				/>
				<!--field type="Title" label="JGLOBAL_FIELDSET_OPTIONS" class="stylebox lead input-xxlarge"/-->

       			<!--field
					name="mcatid"
					type="modal_cat"
					default=""
					size="10"
					label="JCATEGORY"
					description="MOD_IC_EVENT_LIST_FIELD_CATEGORY_DESC" >
				</field-->

			</fieldset>

			<fieldset name="advanced">

				<field
					name="moduleclass_sfx"
					type="text"
					label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
					description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"
				/>
				<field
					name="cache"
					type="list"
					default="1"
					label="COM_MODULES_FIELD_CACHING_LABEL"
					description="COM_MODULES_FIELD_CACHING_DESC">
					<option
						value="1">JGLOBAL_USE_GLOBAL</option>
					<option
						value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
				</field>
				<field
					name="cache_time"
					type="text"
					default="900"
					label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
					description="COM_MODULES_FIELD_CACHE_TIME_DESC"
				/>
				<field
					name="cachemode"
					type="hidden"
					default="itemid">
					<option
						value="itemid"></option>
				</field>

			</fieldset>
		</fields>
	</config>
	<updateservers>
		<server type="collection" priority="1" name="JoomliC PRO Update Server">http://pro.joomlic.com/icupdate/modules/updates.xml</server>
	</updateservers>


</extension>
mod_ic_event_list.php000060400000042712152455310510010746 0ustar00<?php
/**
 *	iCagenda Event List
 *----------------------------------------------------------------------------
 * @package     mod_ic_event_list
 * @copyright   Copyright (c)2012-2015 Cyril Rezé, Jooml!C - All rights reserved

 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 * @author      Cyril Rezé (Lyr!C)
 * @link        http://www.joomlic.com
 *
 * @update		iCagenda 3.5.12
 * @version		3.9.0 2015-10-06
 * @since		1.0
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *----------------------------------------------------------------------------
*/

// no direct access
defined('_JEXEC') or die();

// Get iCagenda component parameters
$com_params = JComponentHelper::getParams('com_icagenda');

// For Dev.
$time_loading = $com_params->get('time_loading', '');

if ($time_loading)
{
	$starttime_cal = iCLibrary::getMicrotime();
}

// Global Joomla API objects
$app		= JFactory::getApplication();
$document	= JFactory::getDocument();
$lang		= JFactory::getLanguage();

$menu		= $app->getMenu();
$isSef		= $app->getCfg( 'sef' );
$date_var	= ($isSef == 1) ? '?date=' :'&date=';

// Check Errors: iC Library & iCagenda Utilities
$UTILITIES_DIR = is_dir(JPATH_ADMINISTRATOR . '/components/com_icagenda/utilities');

if ( (!$UTILITIES_DIR)
	|| (!class_exists('iCLibrary')) )
{
	$alert_message = JText::_('ICAGENDA_CAN_NOT_LOAD').'<br />';
	$alert_message.= '<ul>';
	if (!class_exists('iCLibrary')) $alert_message.= '<li>' . JText::_('IC_LIBRARY_NOT_LOADED') . '</li>';
	if (!$UTILITIES_DIR) $alert_message.= '<li>' . JText::_('ICAGENDA_A_FOLDER_IS_MISSING') . '</li>';
	$alert_message.= '</ul>';
	if (!$UTILITIES_DIR) $alert_message.= JText::_('ICAGENDA_IS_NOT_CORRECTLY_INSTALLED') . ' ';
	if (!$UTILITIES_DIR) $alert_message.= JText::_('ICAGENDA_INSTALL_AGAIN') . '<br />';
	if (!$UTILITIES_DIR) $alert_message.= JText::_('IC_ALTERNATIVELY') . ':<br /><ul>';
	if ($UTILITIES_DIR) $alert_message.= JText::_('IC_PLEASE') . ', ';
	if (!class_exists('iCLibrary'))
	{
		if (!$UTILITIES_DIR) $alert_message.= '<li>';
		$alert_message.= JText::_('IC_LIBRARY_CHECK_PLUGIN_AND_LIBRARY');
		if (!$UTILITIES_DIR) $alert_message.= '</li>';
	}
	if (!$UTILITIES_DIR)
	{
		$alert_message.= '<li>' . JText::Sprintf('ICAGENDA_UTILITIES_FIX_MANUAL'
						, '<strong>admin/utilities</strong>'
						, '<strong>administrator/components/com_icagenda/</strong>');
		$alert_message.= '</li></ul>';
	}

	// Get the message queue
	$messages = $app->getMessageQueue();

	$display_alert_message = false;

	// If we have messages
	if (is_array($messages) && count($messages))
	{
		// Check each message for the one we want
		foreach ($messages as $key => $value)
		{
			if ($value['message'] == $alert_message)
			{
				$display_alert_message = true;
			}
		}
	}

	if (!$display_alert_message)
	{
		$app->enqueueMessage($alert_message, 'error');
	}

	echo JText::_('IC_MODULE_CAN_NOT_BE_LOADED') . '<br />';
	echo JText::_('IC_MODULE_CHECK_ALERT_MESSAGE');

	return false;
}

// Load iCagenda Utilities
JLoader::registerPrefix('icagenda', JPATH_ADMINISTRATOR . '/components/com_icagenda/utilities');

// Test if translation is missing, set to en-GB by default
$language= JFactory::getLanguage();
$language->load( 'mod_ic_event_list', JPATH_SITE, 'en-GB', true );
$language->load( 'mod_ic_event_list', JPATH_SITE, null, true );

// Static call to the framework module processor which will
// Include the layout file (procedural, not a class)
jimport( 'joomla.application.module.helper' );

// Include the class of the syndicate functions only once
require_once(dirname(__FILE__) . '/helper.php');

// Load iCtip css
JHtml::stylesheet( 'com_icagenda/tipTip.css', false, true );

// Get Component Global Options
$iCparams = JComponentHelper::getParams('com_icagenda');

// Check valid NEXT DATE
icagendaEventsData::getNext();

// Load jQuery Files
if (version_compare(JVERSION, '3.0', 'lt'))
{
	JHtml::_('behavior.mootools');

	// load jQuery, if not loaded before (NEW VERSION IN 1.2.6)
	$scripts		= array_keys($document->_scripts);
	$scriptFound	= false;
	$count_scripts	= count($scripts);

	for ($i = 0; $i < $count_scripts; $i++)
	{
		if (stripos($scripts[$i], 'jquery.min.js') !== false)
		{
			$scriptFound = true;
		}

		// load jQuery, if not loaded before as jquery - added in 1.2.7
		if (stripos($scripts[$i], 'jquery.js') !== false)
		{
		    $scriptFound = true;
		}
	}

	// jQuery Library Loader
	if (!$scriptFound)
	{
		// load jQuery, if not loaded before
		if (!JFactory::getApplication()->get('jquery'))
		{
			JFactory::getApplication()->set('jquery', true);
			// add jQuery
			$document->addScript('https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
		    $document->addScript('components/com_icagenda/js/jquery.noconflict.js');
		}
	}
}
else
{
	JHtml::_('bootstrap.framework');
	JHtml::_('jquery.framework');
}

// Loading Script tipTip used for iCtips
JHtml::script( 'com_icagenda/jquery.tipTip.js', false, true );

$iCtip	 = array();
$iCtip[] = '	jQuery(document).ready(function(){';
$iCtip[] = '		jQuery(".iCtip").tipTip({maxWidth: "200", defaultPosition: "top", edgeOffset: 1});';
$iCtip[] = '	});';

// Add the script to the document head.
JFactory::getDocument()->addScriptDeclaration(implode("\n", $iCtip));

$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

// START MODULE DISPLAY
?>
<!--
 * iCagenda PRO Event List Module by Jooml!C
 *
 * @copyright	Copyright (c)2012-2015 JOOMLIC - All rights reserved.
 * @version		3.4
 *
-->
<?php
echo '<div class="ic_eventlist' . $moduleclass_sfx . '">';

// Itemid Request (automatic detection of the first iCagenda menu-link, by menuID)
$iC_list_menus	= icagendaMenus::iClistMenuItemsInfo();
$nb_menu		= count($iC_list_menus);
$nolink			= $nb_menu ? false : true;
$x				= '';

if ($nolink || !JComponentHelper::getComponent('com_icagenda', true)->enabled )
{
	do {
		echo '<div style="color:#a40505; text-align: center;"><b>info :</b></div><div style="color:#a40505; font-size: 0.8em; text-align: center;">'.JText::_( 'MOD_IC_EVENT_LIST_MENULINK_UNPUBLISHED_MESSAGE' ).'</div>';
	} while ($x > 0);
}
else
{
	// Static call to the class
	$list = modiCEventListHelper::getList($params);

	// Get Module Params
	$limitcount				= $params->get('count', 5);
	$monthFormat			= $params->get('monthFormat', 2);
	$iCmenuitem				= $params->get('iCmenuitem');
	$dp_venue				= $params->get('dp_venue', '');
	$dp_city				= $params->get('dp_city', '');
	$dp_shortDesc			= $params->get('dp_shortDesc', '');
	$dp_dateTime			= $params->get('dp_dateTime', '');
	$dp_regInfos			= $params->get('dp_regInfos', '');
	$filtering_shortDesc	= $params->get('filtering_shortDesc', '');
	$paramlimit				= $params->get('paramlimit', '');
	$paramlimit_Content		= $params->get('paramlimit_Content');
	$column					= $params->get('column', 'col1');
	$header_text			= $params->get('header_text', '');
	$footer_text			= $params->get('footer_text', '');
	//$cropped_thumb=$params->get('cropped_thumb');

	// Feature Icons Options
	$FEATURES_ICONSIZE	= $params->get('features_icon_size');
	$SHOW_ICON_TITLE	= $params->get('show_icon_title');

	// Get media path
	$params_media	= JComponentHelper::getParams('com_media');
	$image_path		= $params_media->get('image_path', 'images');

	$layout			= $params->get('layout');
//	$time			= $params->get('time', 1);
	$time			= $params->get('filter_by_date', 1);

	$datetime_today	= JHtml::date('now', 'Y-m-d H:i');
	$date_today		= JHtml::date('now', 'Y-m-d');

	// Load List
	$i = '';
	$nb = 0;

	// Get Time Format setting
	$timeformat = $iCparams->get('timeformat');

	// Check if GD is enabled
	if (extension_loaded('gd') && function_exists('gd_info'))
	{
		$thumb_generator = $iCparams->get('thumb_generator', 1);
	}
	else
	{
		$thumb_generator = 0;
		//JError::raiseWarning('101', JText::_('COM_ICAGENDA_PHP_ERROR_GD'));
	}

	// Get limit Short Description Global Option
	$limitShortDesc = $iCparams->get('ShortDescLimit');

	// Get XSmall thumbnail Settings - Component Options
	$thumb_xsmall			= $iCparams->get('thumb_xsmall', array("48","48","80","1"));
	$thumb_xsmall_width		= is_numeric($thumb_xsmall[0]) ? $thumb_xsmall[0]. 'px' : '';
	$thumb_xsmall_height	= is_numeric($thumb_xsmall[1]) ? $thumb_xsmall[0]. 'px' : '';

	// Check if fopen is allowed
	$fopen = true;
	$result = ini_get('allow_url_fopen');

	if (empty($result))
	{
		//JError::raiseWarning('101', JText::_('COM_ICAGENDA_PHP_ERROR_FOPEN'));
		$fopen = false;
	}

	if ($header_text)
	{
		echo '<div class="ic-header-text">' . $header_text . '</div>';
	}

	$displayed_items = 0;

	echo '<div class="ic-section ic-group">';

	if ($list)
	{

		foreach ($list as $item) :

			if (empty($item->approval))
			{
				$evtParams = '';
				$evtParams = new JRegistry($item->params);

				$catid			= $item->catid;
				$cat_color		= $item->catcolor;

				$font_color		= modiCEventListHelper::getfontColor($cat_color);

				$imageSet		= $item->image;
				$thumb_img		= modiCEventListHelper::getThumbnail($imageSet, $thumb_generator);

				$eventID		= $item->id;
				$nextDate		= $item->next;
				$eventTimeZone	= null;

				$eventTitle		= $item->title;
				$eventCity		= $item->city;
				$eventVenue		= $dp_venue ? $item->place : false;

				if ($timeformat == 1)
				{
					$lang_time = strftime("%H:%M", strtotime("$item->next"));
				}
				else
				{
					$lang_time = strftime("%I:%M %p", strtotime("$item->next"));
				}

				$nextTime		= JText::_($lang_time);
				$displayTime	= $item->displaytime;

				if (empty($dp_city) OR $dp_city == 0)
				{
					$display_city = false;
				}
				else
				{
					$display_city = true;
				}

				// Intro Text
				$description = $item->desc;

				$limit = $paramlimit ? $paramlimit_Content : false;

				$shortDesc = icagendaEvents::shortDescription($description, true, $filtering_shortDesc, $limit);

				$display_shortDesc = true;

				if ($dp_shortDesc == '1') // Short Description
				{
					$display_shortDesc = true;
					$shortDesc	= $item->shortdesc ? $item->shortdesc : false;
				}
				elseif ($dp_shortDesc == '2') // Auto-Introtext
				{
					$display_shortDesc = true;
					$shortDesc	= $shortDesc ? $shortDesc : false;
				}
				elseif ($dp_shortDesc == '0') // Hide
				{
					$display_shortDesc = false;
					$shortDesc	= false;
				}
				else // Auto (First Short Description, if does not exist, Auto-generated short description from the full description. And if does not exist, will use meta description if not empty)
				{
					$short_description = $item->shortdesc ? $item->shortdesc : $shortDesc;
					$shortDesc	= $short_description ? $short_description : $item->metadesc;
				}

				$ic_datetime = $ic_date = $ic_time = false;

				if ($dp_dateTime == 1)
				{
					$ic_datetime = true;
				}
				elseif ($dp_dateTime == 2)
				{
					$ic_date = true;
				}
				elseif ($dp_dateTime == 3 && $displayTime == 1)
				{
					$ic_time = true;
				}

				if (empty($dp_regInfos))
				{
					$registered		= false;
					$maxTickets		= false;
					$TicketsLeft	= false;
				}
				else
				{
					$registered		= $item->registered;
					$get_maxTickets	= $evtParams->get('maxReg');

					if ($get_maxTickets < 1)
					{
						$maxTickets		= false;
						$TicketsLeft	= false;
					}
					else
					{
						$maxTickets		= $evtParams->get('maxReg');
						$TicketsLeft	= ($get_maxTickets - $registered);
					}
				}

				/**
				 *	Feature Icons
				 */
				$featureIcons = icagendaEvents::featureIcons($eventID);

				$FEATURES_ICONROOT		= JURI::base() . "$image_path/icagenda/feature_icons/$FEATURES_ICONSIZE/";
				$FEATURES_ICONS			= array();

				if ( isset($featureIcons)
					&& is_array($featureIcons)
					&& (!empty($FEATURES_ICONSIZE)) )
				{
					foreach ($featureIcons as $feature)
					{
						$FEATURES_ICONS[] = array('icon' => $feature->icon, 'icon_alt' => $feature->icon_alt);
					}
				}

				if (is_numeric($iCmenuitem))
				{
					$linkid = $iCmenuitem;
				}
				else
				{
					$linkid = icagendaMenus::thisEventItemid($item->next, $item->catid, $iC_list_menus);
				}

//				if (count($menu_IDs))
				if ($linkid)
				{
					$displayed_items = $displayed_items + 1;
//					$linkid = $menu_IDs[0];
//					$period_array		= $item->period ? unserialize($item->period) : array();
					$period_array		= iCDatePeriod::listDates($item->startdate, $item->enddate, $eventTimeZone);
					$only_startdate		= ($item->weekdays || $item->weekdays == '0') ? false : true;
					$next_date_control	= JHtml::date($item->next, 'Y-m-d H:i', $eventTimeZone);

					if ($only_startdate
						&& in_array($next_date_control, $period_array)
						&& strtotime($item->startdate) < strtotime($datetime_today)
						&& strtotime($item->enddate) >= strtotime($datetime_today)
						)
					{
						$nextDay	= JHtml::date($datetime_today, 'd', $eventTimeZone);
						$eventDate	= JHtml::date($datetime_today , JText::_('DATE_FORMAT_LC3'), $eventTimeZone);
						$this_date	= JHtml::date($datetime_today , 'Y-m-d', $eventTimeZone);
						$this_time	= JHtml::date($item->next, 'H:i', $eventTimeZone);
					}
					elseif ($params->get('filter_by_date', '1') == '4'
						&& (JHtml::date($item->next , 'Y-m-d', $eventTimeZone) != JHtml::date('now' , 'Y-m-d'))
						)
					{
						$nextDay	= JHtml::date($datetime_today, 'd', $eventTimeZone);
						$eventDate	= JHtml::date($datetime_today , JText::_('DATE_FORMAT_LC3'), $eventTimeZone);
						$this_date	= JHtml::date($datetime_today , 'Y-m-d', $eventTimeZone);
						$this_time	= JHtml::date($item->next, 'H:i', $eventTimeZone);
					}
					else
					{
						$nextDay	= JHtml::date($item->next, 'd', $eventTimeZone);
						$eventDate	= JHtml::date($item->next , JText::_('DATE_FORMAT_LC3'), $eventTimeZone);
						$this_date	= JHtml::date($item->next , 'Y-m-d', $eventTimeZone);
						$this_time	= JHtml::date($item->next, 'H:i', $eventTimeZone);
					}

					if ($monthFormat == 1)
					{
//						$nextMonth = JHtml::date($item->next, 'm', $eventTimeZone);
						$nextMonth = date('m', strtotime($this_date));
					}
					elseif ($monthFormat == 2)
					{
						// We need month in english to set the translation string.
						// To be changed to get month numeric and using an array of months in english, to remove the use of strtotime.
//						$nextMonth = JText::_(date("F", strtotime($item->next)) . '_SHORT');
						$nextMonth = JText::_(date("F", strtotime($this_date)) . '_SHORT');
					}

					$event_slug = $item->alias ? $item->id . ':' . $item->alias : $item->id;

					$this_next = iCDate::dateToAlias($this_date . ' ' . $this_time);

					if ($only_startdate && in_array($next_date_control, $period_array))
					{
						$set_date_in_url = '';
					}
					else
					{
						$set_date_in_url = $date_var . $this_next;
					}

					if (is_numeric($linkid))
					{
						$urlEvent	= JRoute::_( 'index.php?option=com_icagenda&amp;view=list&amp;layout=event&amp;id='
												. $event_slug . '&amp;Itemid=' . (int) $linkid) . $set_date_in_url;
					}
					else
					{
						// When new list view, should check default home itemid as $linkid
						$urlEvent	= JRoute::_( 'index.php?option=com_icagenda&amp;view=list&amp;layout=event&amp;id='
												. $event_slug . '&amp;Itemid=' . (int) $linkid) . $set_date_in_url;
					}

					$link_one	= $link_multi = '';

					// Style of layout
					$style = str_replace('_:', '', $layout);

					if (file_exists(__DIR__ . '/css/' . $style . '_style.css'))
					{
						$module_style		= 'modules/mod_ic_event_list/css/' . $style . '_style.css';
						$module_style_rss	= 'modules/mod_ic_event_list/css/' . $style . '_style-rtl.css';

						$document->addStyleSheet( JURI::base() . $module_style );

						// RTL css if site language is RTL
						if ($lang->isRTL()
							&& file_exists(__DIR__ . '/css/' . $style . '_style-rtl.css'))
						{
							$document->addStyleSheet(JURI::base() . $module_style_rss);
						}
					}

					require (JModuleHelper::getLayoutPath('mod_ic_event_list', $layout));
				}
			}
		endforeach;
	}
	else
	{
		if ($time == '3') { $ordertext = 'today'; }
		elseif ($time == '2') { $ordertext = 'future'; }
		elseif ($time == '1') { $ordertext = 'future'; }
		elseif ($time == '0') { $ordertext = 'past'; }
		elseif (($time == '') || ($time == NULL) || ($time == '4')) { $ordertext = 'all'; }

		echo '<div class="ic-msg-no-event">' . JText::_('MOD_IC_EVENT_LIST_' . strtoupper($ordertext) . '_NO_EVENT_TEXT') . '</div>';
	}

	$total_items = count($list);

	if ($displayed_items == '0'
		&& $total_items > 0)
	{
		echo '<div class="ic-msg-no-event">' . JText::_('MOD_IC_EVENT_LIST_ALL_NO_EVENT_TEXT') . '</div>';
	}

	if ($total_items > $displayed_items)
	{
		$not_displayed = ($total_items - $displayed_items);
		$user = JFactory::getUser();

		if ($user->authorise('core.admin'))
		{
			echo '<div class="alert alert-warning">' . JText::sprintf('IC_MODULE_ALERT_EVENTS_NOT_DISPLAYED', $not_displayed) . '</div>';
		}
	}

	echo '</div>';

	if ($footer_text)
	{
		echo '<div class="ic-footer-text">' . $footer_text . '</div>';
	}
}

echo '</div>';
echo '<div style="clear:both"></div>';


// For Dev.
if ($time_loading)
{
	$endtime_cal = iCLibrary::getMicrotime();

	echo '<center style="font-size:8px;">Time to create list: ' . round($endtime_cal - $starttime_cal, 3) . ' seconds</center>';
}
css/default_style-rtl.css000060400000000701152455310510011504 0ustar00/*
 * MOD_IC_EVENT_LIST
 * iCagenda by JoomliC
 * Default css file for iCagenda event list module
 *
 * @layout		default - RTL
 * @author		Lyr!C (JoomliC) - http://www.joomlic.com
 * @version		3.2 2015-02-04
 * @since		3.0
 */


/*
 * EVENT LIST STYLES
 */

.ic-col {
	float: right;
	margin: 0.16% 0.32% 0.16% 0;
}

.default_eventlist .ic-date-img-box {
	float: right;
	margin: 4px 4px 4px 6px;
}

.default_eventlist .ic-date-div {
	float: right;
}
css/icrounded_style-rtl.css000060400000000711152455310510012035 0ustar00/*
 * MOD_IC_EVENT_LIST
 * iCagenda by JoomliC
 * iCrounded css file for iCagenda event list module
 *
 * @layout		icrounded - RTL
 * @author		Lyr!C (JoomliC) - http://www.joomlic.com
 * @version		3.2 2015-02-04
 * @since		3.0
 */


/*
 * EVENT LIST STYLES
 */

.ic-col {
	float: right;
	margin: 0.16% 0.32% 0.16% 0;
}

.icrounded_eventlist .ic-date-img-box {
	float: right;
	margin: 4px 4px 4px 6px;
}

.icrounded_eventlist .ic-date-div {
	float: right;
}
css/index.html000060400000000054152455310510007325 0ustar00<html><body bgcolor="#FFFFFF"></body></html>css/default_style.css000060400000007160152455310510010713 0ustar00/*
 * MOD_IC_EVENT_LIST
 * iCagenda by JoomliC
 * Default css file for iCagenda event list module
 *
 * @layout		default
 * @author		Lyr!C (JoomliC) - http://www.joomlic.com
 * @version		3.6 2015-07-14
 * @since		1.0
 */


/*
 * EVENT LIST STYLES
 */

#ic_eventlist {
	width: 100%;
}

/*  SECTIONS  */
.ic-section {
	clear: both;
	padding: 0;
	margin: 0;
}

/*  COLUMN SETUP  */
.ic-col {
	display: block;
	float: left;
	margin: 0.16% 0 0.16% 0.32%;
}

/*  GROUPING  */
.ic-group:before,
.ic-group:after {
	content: "";
	display: table;
}
.ic-group:after {
	clear: both;
}

/*  GRID OF COLUMNS  */
.ic-col1 {
	width: 99.36%;
}
.ic-col2 {
	width: 49.52%;
}
.ic-col3 {
	width: 32.9%;
}
.ic-col4 {
	width: 24.6%;
}

/*  DISPLAY 3 COLS IF 4 SELECTED AT LESS THAN 767 PX AND MORE 481 PX */

@media (min-width: 481px) and (max-width: 767px) {
	.ic-col1 {
		margin: 2px 0 2px 0;
		width: 100%;
	}
	.ic-col2 {
		width: 49.52%;
	}
	.ic-col3 {
		width: 32.9%;
	}
	.ic-col4 {
		width: 32.9%;
	}
}

/*  GO FULL WIDTH AT LESS THAN 480 PIXELS */

@media only screen and (max-width: 480px) {
	.ic-col {
		margin: 0.7% 0 0.7% 0;
	}
}

@media only screen and (max-width: 480px) {
	.ic-col1 {
		width: 100%;
	}
	.ic-col2 {
		width: 100%;
	}
	.ic-col3 {
		width: 100%;
	}
	.ic-col4 {
		width: 100%;
	}
}

/* Messages Info */
.ic-msg-no-event {
	font-size: 0.8em;
	text-align: center;
}


/* Bottom line <hr> tag */
.default_eventlist hr {
	margin: 8px 0;
}

/* Style Background alternative */
.default_eventlist {}
.default_eventlist:nth-child(2n+1) {}

/* Style Background hover */
.default_eventlist:hover {}


/* Style Div */
.default_eventlist .ic-inline-block {
	display: inline-block;
	margin: auto 0;
}
.default_eventlist .ic-block {
	display: block;
	margin: auto 3px;
}
.default_eventlist .ic-event-div {
	margin-bottom: 0;
	min-height: 42px;
}
.default_eventlist .ic-date-img-box {
	float: left;
	margin: 4px 6px 0 0;
}
.default_eventlist .ic-date-div {
	height: 34px;
	width: 36px;
	text-align: center;
	padding-top: 15%;
	text-shadow: rgba(0,0,0,0.5) 0 0 7px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
	box-sizing: content-box;
}
.default_eventlist .ic-day {
	line-height: 18px !important;
	font-size: 16px;
	font-weight: bold;
}
.default_eventlist .ic-month {
	line-height: 12px !important;
	font-size: 12px;
	font-weight: normal;
}
.default_eventlist .iceventlist-title {
	padding-top: 3px;
	line-height: 15px !important;
	font-size: 13px;
	font-weight: bold;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	-o-hyphens: auto;
	hyphens: auto;
}
.default_eventlist .iceventlist-venue {
	line-height: 15px !important;
	font-size: 12px;
}
.default_eventlist .iceventlist-city,
.default_eventlist .ic-datetime-div {
	line-height: 14px !important;
	font-size: 11px;
}
.default_eventlist .ic-datetime-label {
	font-weight: bold;
}
.default_eventlist .iceventlist-desc {
	font-size: 12px;
}
.default_eventlist .iceventlist-registration-info {
}
.default_eventlist .ic-reg {
	font-size: 10px;
	margin: 0 2px;
	padding: 0 5px;
	text-align: center;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
	box-shadow: 0px 0px 1px #333;
	cursor: pointer;
}
.default_eventlist span.ic-reg.available {
	background: white;
	color: black;
}
.default_eventlist span.ic-reg.ticketsleft {
	background: green;
	color: white;
}
.default_eventlist span.ic-reg.registered {
	background: blue;
	color: white;
}

/* Features Icons */
.default_eventlist .iceventlist-features-container {
	margin: 0;
}
.default_eventlist .iceventlist-feature-icon {
	float: none;
	display: inline-block;
	margin: 0 0.5px;
}
css/icrounded_style.css000060400000010653152455310510011244 0ustar00/*
 * MOD_IC_EVENT_LIST
 * iCagenda by JoomliC
 * iCrounded css file for iCagenda event list module
 *
 * @layout		icrounded
 * @author		Lyr!C (JoomliC) - http://www.joomlic.com
 * @version		3.6 2015-07-14
 * @since		1.0
 */


/*
 * EVENT LIST STYLES
 */

#ic_eventlist {
	width: 100%;
}

/*  SECTIONS  */
.ic-section {
	clear: both;
	padding: 0px;
	margin: 0px;
}

/*  COLUMN SETUP  */
.ic-col {
	display: block;
	float: left;
	margin: 0.16% 0 0.16% 0.32%;
}

/*  GROUPING  */
.ic-group:before,
.ic-group:after {
	content: "";
	display: table;
}
.ic-group:after {
	clear: both;
}

/*  GRID OF COLUMNS  */
.ic-col1 {
	width: 99.36%;
}
.ic-col2 {
	width: 49.52%;
}
.ic-col3 {
	width: 32.9%;
}
.ic-col4 {
	width: 24.6%;
}

/*  DISPLAY 3 COLS IF 4 SELECTED AT LESS THAN 767 PX AND MORE 481 PX */

@media (min-width: 481px) and (max-width: 767px) {
	.ic-col1 {
		margin: 2px 0 2px 0;
		width: 100%;
	}
	.ic-col2 {
		width: 49.52%;
	}
	.ic-col3 {
		width: 32.9%;
	}
	.ic-col4 {
		width: 32.9%;
	}
}

/*  GO FULL WIDTH AT LESS THAN 480 PIXELS */

@media only screen and (max-width: 480px) {
	.ic-col {
		margin: 0.7% 0 0.7% 0%;
	}
}

@media only screen and (max-width: 480px) {
	.ic-col1 {
		width: 100%;
	}
	.ic-col2 {
		width: 100%;
	}
	.ic-col3 {
		width: 100%;
	}
	.ic-col4 {
		width: 100%;
	}
}

/* Messages Info */
.ic-msg-no-event {
	font-size: 0.8em;
	text-align: center;
}


/* Style Background alternative */
.icrounded_eventlist {
	background: #f7f7f7;
	background: rgba(247,247,247,0.9);
	-moz-transition: all 0.3s; /* Firefox 4 */
	-webkit-transition: all 0.3s; /* Safari and Chrome */
	-o-transition: all 0.3s; /* Opera */
	transition: all 0.3s;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	-o-border-radius: 6px;
	border-radius: 6px;
/*	padding: 2px !important; */
	font-size: 13px;
}
.icrounded_eventlist:nth-child(2n+1) {
	background: #ededed;
	background: rgba(237,237,237,0.9);
	-moz-transition: all 0.3s; /* Firefox 4 */
	-webkit-transition: all 0.3s; /* Safari and Chrome */
	-o-transition: all 0.3s; /* Opera */
	transition: all 0.3s;
}

/* Style Background hover */
.icrounded_eventlist:hover{
	background: #555;
	color: #FFF;
}

/* Style Content */
.icrounded_eventlist a {
	text-decoration: none;
}
.icrounded_eventlist a:link,
.icrounded_eventlist a:visited {
	color: #333;
	text-decoration: none;
}
.icrounded_eventlist a:hover {
	color: #FFF;
	text-decoration: none;
	cursor:pointer;
}

/* Style Div */
.icrounded_eventlist .ic-inline-block {
	display: inline-block;
	margin: auto 0px;
}
.icrounded_eventlist .ic-block {
	display: block;
	margin: auto 3px;
}
.icrounded_eventlist .ic-event-div {}
.icrounded_eventlist .ic-date-img-box {
	float: left;
	text-align: center;
	margin: 4px 6px 4px 4px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
	box-sizing: content-box;
}

.icrounded_eventlist .ic-date-div {
	float: left;
	padding-top: 15%;
	text-shadow: rgba(0,0,0,0.5) 0px 0px 7px;
}
.icrounded_eventlist .ic-day {
	line-height:18px !important;
	font-size: 16px;
	font-weight: bold;
}
.icrounded_eventlist .ic-month {
	line-height:12px !important;
	font-size: 12px;
	font-weight: normal;
}
.icrounded_eventlist .iceventlist-title {
	padding-top: 3px;
	line-height: 15px !important;
	font-size: 13px;
	font-weight: bold;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	-o-hyphens: auto;
	hyphens: auto;
}
.icrounded_eventlist .iceventlist-venue {
	line-height: 15px !important;
	font-size: 12px;
}
.icrounded_eventlist .iceventlist-city,
.icrounded_eventlist .ic-datetime-div {
	line-height: 14px !important;
	font-size: 11px;
}
.icrounded_eventlist .ic-datetime-label {
	font-weight: bold;
}
.icrounded_eventlist .iceventlist-desc {
	font-size: 12px;
}


.icrounded_eventlist .iceventlist-registration-info {
}
.icrounded_eventlist .ic-reg {
	font-size: 10px;
	margin: 0 2px;
	padding: 0 5px;
	text-align: center;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
	box-shadow: 0px 0px 1px #333;
	cursor: pointer;
}
.icrounded_eventlist span.ic-reg.available {
	background: white;
	color: black;
}
.icrounded_eventlist span.ic-reg.ticketsleft {
	background: green;
	color: white;
}
.icrounded_eventlist span.ic-reg.registered {
	background: blue;
	color: white;
}

/* Features Icons */
.icrounded_eventlist .iceventlist-features-container {
	margin: 0px;
}
.icrounded_eventlist .iceventlist-feature-icon {
	float: none;
	display: inline-block;
	margin: 0px 0.5px;
}
helper.php000060400000010320152455310510006525 0ustar00<?php
/**
 *	iCagenda Event List
 *----------------------------------------------------------------------------
 * @package     mod_ic_event_list
 * @copyright   Copyright (c)2012-2015 Cyril Rezé, Jooml!C - All rights reserved

 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 * @author      Cyril Rezé (Lyr!C)
 * @link        http://www.joomlic.com
 *
 * @udpate      3.5.12 2015-10-01
 * @version     3.9.0
 * @since       1.0
 *----------------------------------------------------------------------------
*/

// no direct access
defined('_JEXEC') or die;

JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_icagenda/models', 'iCagendaModel');

/**
 * Helper for mod_ic_event_list
 *
 * @package     iCagenda
 * @subpackage  mod_ic_event_list
 * @since       1.0
 */
abstract class modiCEventListHelper
{
    /**
     * Retrieves the list of events
     *
     * @param array $params An object containing the module parameters
     * @access public
     */
    public static function getList(&$params)
    {
		// Get the dbo
		$db = JFactory::getDbo();

		// Get an instance of the generic events model
		$model = JModelLegacy::getInstance('Events', 'iCagendaModel', array('ignore_request' => true));

		// Set application parameters in model
		$app       = JFactory::getApplication();
		$appParams = $app->getParams();
		$model->setState('params', $appParams);

		// Set the filters based on the module params
		$model->setState('filter.state', 1);

//		$model->setState('list.select', 'e.*');

		// DateTime (Upcoming) filter
		$filter_by_date	= $params->get('filter_by_date');

		if (isset($filter_by_date))
		{
			$upcoming	= $params->get('filter_by_date', '1');
		}
		else
		{
			$upcoming	= $params->get('time', '1'); // old setting (removed since 3.4.0-rc)

			if ($upcoming == '4') $upcoming = '5'; // convert old 'All' setting
			if ($upcoming == '3') $upcoming = '4'; // convert old 'today' setting
			if ($upcoming == '2') $upcoming = '3'; // convert old 'future' setting
			if ($upcoming == '0') $upcoming = '2'; // convert old 'past' setting
		}

		$model->setState('filter.upcoming', (int) $upcoming);

		// Category filter
		$model->setState('filter.category_id', $params->get('mcatid', ''));

		// Access filter
		$model->setState('filter.access', 'e.access');
		//$access = !JComponentHelper::getParams('com_icagenda')->get('show_noauth');
		//$authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id'));
		//$model->setState('filter.access', $access);

		// Filter by language
		$model->setState('filter.language', JLanguageMultilang::isEnabled());
//		$model->setState('filter.language',$app->getLanguageFilter());

		// Set number of events
		$model->setState('list.start', 0);
		$model->setState('list.limit', (int) $params->get('count', 5));

		// Set ordering
		$model->setState('list.ordering', 'e.next');

		// Set direction
		$orderby = $params->get('orderby');

		if ( ($orderby == '2')
			|| ($orderby == NULL) )
		{
			$model->setState('list.direction', 'ASC');
		}
		else
		{
			$model->setState('list.direction', 'DESC');
		}

		//	Retrieve Content
		$items = $model->getItems();

		return $items;
    }


	// Function to convert font color, depending on category color
	public static function getfontColor($cat_color)
	{
		$color = isset($cat_color) ? $cat_color : '';

		$hex_R = substr($color, 1, 2);
		$hex_G = substr($color, 3, 2);
		$hex_B = substr($color, 5, 2);
		$RGBhex = hexdec($hex_R).", ".hexdec($hex_G).", ".hexdec($hex_B);

		$RGB = explode(",", $RGBhex);
		$RGBa = $RGB[0];
		$RGBb = $RGB[1];
		$RGBc = $RGB[2];

		$somme = ($RGBa + $RGBb + $RGBc);

		if ($somme > '600')
		{
			$fcolor = '#111111';
		}
		else
		{
			$fcolor = 'white';
		}

		return $fcolor;
	}

	/**
	 * Get Thumbnail
	 *
	 * @since 3.0
	 */
	public static function getThumbnail($imageSet, $thumb_generator)
	{
		// START iCthumb

		// Set if run iCthumb
		if (($imageSet) AND ($thumb_generator == 1))
		{
			// Generate xsmall thumb if not exist
			$thumb_img = icagendaThumb::sizeXSmall($imageSet);
		}
		elseif (($imageSet) AND ($thumb_generator == 0))
		{
			$thumb_img = $imageSet;
		}
		else
		{
			return false;
		}

		$baseURL = JURI::base();
		$thumb_img = ltrim($thumb_img, '/');

		return $baseURL.$thumb_img;
	}
}
index.html000060400000000054152455310510006535 0ustar00<html><body bgcolor="#FFFFFF"></body></html>