iCagenda
by-joomlic

Events Management Extension for Joomla!™

 

Download Go Pro!

 

The custom attribute name 'cal_date' is not valid. It was discovered that it must start with 'data-' (to avoid possible future conflicts as html5 is developed) so changed to 'data-cal-date'.

 

UPGRADING YOUR CUSTOM THEME PACK

  1. Open YOUR_THEME_day.php in a text editor.

  2. Edit the 2 highlighted lines as shown below:

    1. Change cal_date to data-cal-date (line 32 in official default theme pack)
      		<?php // Color of date text depending of the category color ?>
      		<a>
      		<div class="<?php echo $stamp->ifToday; ?> <?php echo $bgcolor; ?>" data-cal-date="<?php echo $stamp->this_day; ?>">
      			<?php echo $stamp->Days; ?>
      		</div>
      		</a>
      

       

    2. Change cal_date to data-cal-date (line 116 in official default theme pack)

      <?php // Day with no event ?>
      <?php }else{ ?>
      	<div class="<?php echo $stamp->ifToday; ?>" data-cal-date="<?php echo $stamp->this_day; ?>">
      		<?php echo $stamp->Days; ?>
      	</div>
      <?php } ?>
      

       

  3. You can test this file by selecting the 'Visitor Time Zone' option in module iC calendar. If no alert message, all your theme packs are upgraded.

The custom fields can be easily displayed in your custom theme pack.
To display filled custom fields for an event, in the event details view, follow instructions below.

 

UPGRADING YOUR CUSTOM THEME PACK

  1. Open YOUR_THEME_event.php in a text editor.

  2. Add those lines where you want to display custom fields:
    					<?php // Custom Fields ?>
    					<?php if ($CUSTOM_FIELDS): ?>
    						<?php foreach ($CUSTOM_FIELDS AS $FIELD): ?>
    							<?php if ($FIELD->value) : ?>
    								<div class="ic-divRow">
    									<div class="ic-divCell ic-label"><?php echo $FIELD->title; ?></div>
    									<div class="ic-divCell"><?php echo $FIELD->value; ?></div>
    								</div>
    							<?php endif; ?>
    						<?php endforeach; ?>
    					<?php endif; ?>
    
     
  3. CSS classes and HTML structure may be different depending of your custom coding. The code above is extracted from the official theme pack 'default', and calling 'default' CSS classes.

The feature icons can be easily displayed in your custom theme pack.
To display feature icons, please follow instructions below.

 

LIST OF EVENTS

  1. Open YOUR_THEME_events.php in a text editor.

  2. Add those lines where you want to display feature icons:
    						<?php // Feature icons ?>
    						<?php if (!empty($FEATURES_ICONSIZE_LIST)) : ?>
    						<div class="ic-features-container">
    							<?php foreach ($FEATURES_ICONS as $icon) : ?>
    							<div class="ic-feature-icon">
    								<img class="iCtip" src ="<?php echo $FEATURES_ICONROOT_LIST . $icon['icon'] ?>" alt="<?php echo $icon['icon_alt'] ?>" title="<?php echo $SHOW_ICON_TITLE == '1' ? $icon['icon_alt'] : '' ?>">
    							</div>
    							<?php endforeach ?>
    						</div>
    						<?php endif ?>
    
     
  3. Open css/YOUR_THEME_component.css in a text editor.

  4. Add CSS declarations for feature icons:

    /* Feature Icons */
    /* Event List */
    .ic-content > .ic-features-container {
    }
    /* Event Detail */
    .ic-content > .ic-features-container {
    	margin-right: -5px;
    	margin-top: 5px;
    }
    .ic-feature-icon {
    	float: right;
    }
    

 


EVENT DETAILS

  1. Open YOUR_THEME_event.php in a text editor.

  2. Add those lines where you want to display feature icons:
    		<?php // Feature icons ?>
    		<?php if (!empty($FEATURES_ICONSIZE_EVENT)) : ?>
    		<div class="ic-features-container">
    			<?php foreach ($FEATURES_ICONS as $icon) : ?>
    			<div class="ic-feature-icon">
    				<img class="iCtip" src ="<?php echo $FEATURES_ICONROOT_EVENT . $icon['icon'] ?>" alt="<?php echo $icon['icon_alt'] ?>" title="<?php echo $SHOW_ICON_TITLE == '1' ? $icon['icon_alt'] : '' ?>">
    			</div>
    			<?php endforeach ?>
    		</div>
    		<?php endif ?>
    
     
  3. CSS classes and HTML structure may be different depending of your custom coding. The code above is extracted from the official theme pack 'default', and calling 'default' CSS classes.

 


MODULE CALENDAR TOOLTIP

  1. Open YOUR_THEME_day.php in a text editor.

  2. Add those lines where you want to display feature icons, inside foreach($events as $e){ ... } :
    				// Display feature icons, if required
    				if (!empty($e['features_icon_size'])) : ?>
    				<div class="ic-features-container">
    					<?php foreach ($e['features'] as $icon) : ?>
    					<div class="ic-feature-icon">
    						<img src ="<?php echo $e['features_icon_root'] . $icon['icon'] ?>" alt="<?php echo $icon['icon_alt'] ?>" title="<?php echo $e['show_icon_title'] == '1' ? $icon['icon_alt'] : '' ?>">
    					</div>
    					<?php endforeach ?>
    				</div>
    				<?php endif;
    
     
  3. Open css/YOUR_THEME_module.css in a text editor.

  4. Add CSS styling in :
    /* Features */
    #ictip .ic-features-container {
    	margin: 2px;
    }
    #ictip .ic-feature-icon {
    	float: right;
    	margin: 0px 0.5px;
    }
    
     

Adapt your Custom Theme Pack to the new option 'Visitor Time Zone'.

If you have created a custom theme pack to be used with versions before 3.2.13, you will have to edit the file YOUR_THEME_day.php to be able to used the 'Visitor Time Zone' option in module iC calendar.

 

UPGRADING YOUR CUSTOM THEME PACK

  1. Open YOUR_THEME_day.php in a text editor.

  2. Edit the 3 highlighted lines as shown below:

    1. Add cal_date="<?php echo $stamp->this_day; ?>" (line 32 in official default theme pack)
      		<?php // Color of date text depending of the category color ?>
      		<a>
      		<div class="<?php echo $stamp->ifToday; ?> <?php echo $bgcolor; ?>" cal_date="<?php echo $stamp->this_day; ?>">
      			<?php echo $stamp->Days; ?>
      		</div>
      		</a>
      

       

    2. Add cal_date="<?php echo $stamp->this_day; ?>" and replace no_event by <?php echo $stamp->ifToday; ?> (line 111 in official default theme pack) and change day to Days (line 112)

      <?php // Day with no event ?>
      <?php }else{ ?>
      	<div class="<?php echo $stamp->ifToday; ?>" cal_date="<?php echo $stamp->this_day; ?>">
      		<?php echo $stamp->Days; ?>
      	</div>
      <?php } ?>
      

       

  3. You can test this file by selecting the 'Visitor Time Zone' option in module iC calendar. If no alert message, all your theme packs are upgraded.

Adapt your Custom Theme Pack to the new option 'All Dates'.

If you have created a custom theme pack to be used with versions before 3.2.8, you will have to add a new file to be able to used the 'All Dates' option for the Events List.

The file YOUR_THEME_list.php has been removed from the new official theme packs default and ic_rounded.
This file can still be used for Next/Last date display, but not for all dates.

 

UPGRADING YOUR CUSTOM THEME PACK

  1. Copy/paste the file YOUR_THEME_list.php, and renamed it YOUR_THEME_events.php
  2. Open it in a text editor.
  3. Removed the 3 highlighted lines as shown below :

    <?php // List of Events Template ?>
    
    	<?php // List of Events ?>
    	<div class="items">
    
    -	<?php // Display for each event ?>
    -	<?php foreach ($stamp->items as $item){ ?>
    
    		<?php // START Event ?>
    		<div class="event">
    
    			<?php // START Date Box with Event Image as background ?>
    			<?php if ($item->next): ?>
    
    			<?php // Link to Event ?>
    			<a href="/<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>">
    
    			<?php // If no Event Image set ?>
    			<?php if (!$item->image): ?>
    			<div class="box_date">
    				<span class="day"><?php echo $item->day; ?></span><br/>
    				<span><?php echo $item->monthShort; ?></span>
    				<span class="noimage"><?php echo JTEXT::_('COM_ICAGENDA_EVENTS_NOIMAGE'); ?></span>
    			</div>
    			<?php endif; ?>
    
    			<?php // In case of Event Image ?>
    			<?php if ($item->image): ?>
    			<div class="box_date" style="background: url(/<?php echo $item->image; ?>) no-repeat center center; background-size: cover; border: 1px solid <?php echo $item->cat_color; ?>">
    				<span class="day"><?php echo $item->day; ?></span><br/>
    				<span><?php echo $item->monthShort; ?></span>
    			</div>
    			<?php endif; ?>
    
    			</a>
    			<?php endif; ?><?php // END Date Box ?>
    
    			<?php // START Right Content ?>
    			<div class="content">
    
    				<?php // Header (Title/Category) of the event ?>
    				<div class="eventtitle">
    
    					<?php // Title of the event ?>
    					<div class="title-header">
    						<h2>
    							<a href="/<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>"><?php echo $item->titlebar; ?></a>
    						</h2>
    					</div>
    
    					<?php // Category ?>
    					<div class="title-cat" style="color:<?php echo $item->cat_color; ?>;">
    						<?php echo $item->cat_title; ?>
    					</div>
    
    				</div>
    				<div style="clear:both"></div>
    
    				<?php // Next Date ('next' 'today' or 'last date' if no next date) ?>
    				<?php if ($item->day): ?>
    				<div class="nextdate">
    					<strong><?php echo $item->nextDate; ?></strong>
    				</div>
    				<?php endif; ?>
    
    				<?php // Location (different display, depending on the fields filled) ?>
    				<?php if ($item->place_name OR $item->city): ?>
    				<div class="place">
    
    					<?php // Place name ?>
    					<?php if ($item->place_name): ?><?php echo $item->place_name;?><?php endif; ?>
    
    					<?php // If Place Name exists and city set (Google Maps). Displays Country if set. ?>
    					<?php if ($item->city AND $item->place_name): ?>
    						<span> - </span>
    						<?php echo $item->city;?><?php if ($item->country): ?>, <?php echo $item->country;?><?php endif; ?>
    					<?php endif; ?>
    
    					<?php // If Place Name doesn't exist and city set (Google Maps). Displays Country if set. ?>
    					<?php if ($item->city AND !$item->place_name): ?>
    						<?php echo $item->city;?><?php if ($item->country): ?>, <?php echo $item->country;?><?php endif; ?>
    					<?php endif; ?>
    
    				</div>
    				<?php endif; ?>
    
    				<?php // Short Description ?>
    				<?php if ($item->desc): ?>
    				<div class="descshort">
    					<?php echo $item->descShort ; ?>
    				</div>
    				<?php endif; ?>
    
    				<?php // + infos Text ?>
    			 	<div class="moreinfos">
    			 		<a href="/<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>">
    			 			<?php echo JTEXT::_('COM_ICAGENDA_EVENTS_MORE_INFO'); ?>
    			 		</a>
    			 	</div>
    
    			</div><?php // END Right Content ?>
    			<div style="clear:both"></div>
    
    		</div><?php // END Event ?>
    
    -		<?php } ?>
    
    		<?php // AddThis Social Sharing ?>
    		<?php if ($this->atlist): ?>
    		<div class="share">
    			<?php echo $item->share; ?>
    		</div>
    		<?php endif; ?>
    
    	</div>
    	<div style="clear:both"></div>


  4. You can test this file by selecting the 'All Dates' option. If the test is successful, you can remove the file YOUR_THEME_list.php from your custom theme pack.

Follow Us