primo commit
This commit is contained in:
		
							
								
								
									
										1
									
								
								components/com_jem/common/views/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								components/com_jem/common/views/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| <!DOCTYPE html><title></title> | ||||
| @ -0,0 +1,235 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @version 2.3.6 | ||||
|  * @package JEM | ||||
|  * @copyright (C) 2013-2021 joomlaeventmanager.net | ||||
|  * @copyright (C) 2005-2009 Christoph Lukes | ||||
|  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| JHtml::_('behavior.tooltip'); | ||||
| ?> | ||||
|  | ||||
| <script type="text/javascript"> | ||||
| 	function tableOrdering(order, dir, view) | ||||
| 	{ | ||||
| 		var form = document.getElementById("adminForm"); | ||||
|  | ||||
| 		form.filter_order.value     = order; | ||||
| 		form.filter_order_Dir.value = dir; | ||||
| 		form.submit(view); | ||||
| 	} | ||||
| </script> | ||||
|  | ||||
| <script type="text/javascript"> | ||||
| 	function fullOrdering(id, view) | ||||
| 	{ | ||||
| 		var form = document.getElementById("adminForm"); | ||||
| 		var field = form.getElementById(id); | ||||
| 		var parts = field.value.split(' '); | ||||
|  | ||||
| 		if (parts.length > 1) { | ||||
| 			form.filter_order.value     = parts[0]; | ||||
| 			form.filter_order_Dir.value = parts[1]; | ||||
| 		} | ||||
| 		form.submit(view); | ||||
| 	} | ||||
| </script> | ||||
|  | ||||
| <?php | ||||
| 	$sort_by = array(); | ||||
|  | ||||
| 	$sort_by[] = JHtml::_('select.option', 'a.dates ASC', JText::_('COM_JEM_DATE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 	$sort_by[] = JHtml::_('select.option', 'a.dates DESC', JText::_('COM_JEM_DATE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
|  | ||||
| 	if ($this->jemsettings->showtitle == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'a.title ASC', JText::_('COM_JEM_TITLE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'a.title DESC', JText::_('COM_JEM_TITLE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showlocate == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.venue ASC', JText::_('COM_JEM_VENUE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.venue DESC', JText::_('COM_JEM_VENUE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showcity == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.city ASC', JText::_('COM_JEM_CITY') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.city DESC', JText::_('COM_JEM_CITY') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showstate == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.state ASC', JText::_('COM_JEM_STATE') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'l.state DESC', JText::_('COM_JEM_STATE') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	if ($this->jemsettings->showcat == 1) { | ||||
| 		$sort_by[] = JHtml::_('select.option', 'c.catname ASC', JText::_('COM_JEM_CATEGORY') . ' ' . JText::_('COM_JEM_ORDER_ASCENDING')); | ||||
| 		$sort_by[] = JHtml::_('select.option', 'c.catname DESC', JText::_('COM_JEM_CATEGORY') . ' ' . JText::_('COM_JEM_ORDER_DESCENDING')); | ||||
| 	} | ||||
| 	$this->lists['sort_by'] = JHtml::_('select.genericlist', $sort_by, 'sort_by', array('size'=>'1','class'=>'inputbox','onchange'=>'fullOrdering(\'sort_by\', \'\');'), 'value', 'text', $this->lists['order'] . ' ' . $this->lists['order_Dir']); | ||||
| ?> | ||||
|  | ||||
| <?php if ($this->settings->get('global_show_filter',1) || $this->settings->get('global_display',1)) : ?> | ||||
| <div id="jem_filter" class="floattext"> | ||||
| 	<?php if ($this->settings->get('global_show_filter',1)) : ?> | ||||
| 	<div class="jem_fleft"> | ||||
| 		<label for="filter"><?php echo JText::_('COM_JEM_FILTER'); ?></label> | ||||
| 		<?php echo $this->lists['filter'].' '; ?> | ||||
| 		<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search'];?>" class="inputbox" onchange="document.adminForm.submit();" /> | ||||
| 		<button class="buttonfilter" type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> | ||||
| 		<button class="buttonfilter" type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button> | ||||
| 	</div> | ||||
| 	<?php endif; ?> | ||||
|  | ||||
| 	<?php if ($this->settings->get('global_display',1)) : ?> | ||||
| 	<div class="jem_fright"> | ||||
| 		<label for="sort_by"><?php echo JText::_('COM_JEM_ORDERING'); ?></label> | ||||
| 		<?php echo $this->lists['sort_by'].' '; ?> | ||||
| 		<label for="limit"><?php echo JText::_('COM_JEM_DISPLAY_NUM'); ?></label> | ||||
| 		<?php echo $this->pagination->getLimitBox(); ?> | ||||
| 	</div> | ||||
| 	<?php endif; ?> | ||||
| </div> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <?php | ||||
| 	$hide = (array_key_exists('hide', $this->lists)) ? $this->lists['hide'] : array(); | ||||
| 	// calculate span of columns to show, summary must be 12 | ||||
| 	$default_span = array('date' => 2, 'title' => 3, 'venue' => 3, 'category' => 2, 'attendees' => 2); | ||||
| 	$a_span = array('date' => $default_span['date']); // always shown | ||||
| 	if ($this->jemsettings->showtitle == 1) { | ||||
| 		$a_span['title'] = $default_span['title']; | ||||
| 	} | ||||
| 	if (!array_key_exists('venue', $hide) && (($this->jemsettings->showlocate == 1) || ($this->jemsettings->showcity == 1) || ($this->jemsettings->showstate == 1))) { | ||||
| 		$a_span['venue'] = $default_span['venue']; | ||||
| 	} | ||||
| 	if (!array_key_exists('category', $hide) && ($this->jemsettings->showcat == 1)) { | ||||
| 		$a_span['category'] = $default_span['category']; | ||||
| 	} | ||||
| 	if (!array_key_exists('attendees', $hide) && ($this->jemsettings->showatte == 1)) { | ||||
| 		$a_span['attendees'] = $default_span['attendees']; | ||||
| 	} | ||||
| 	$total = array_sum($a_span); | ||||
| 	if (!array_key_exists('title', $a_span) && !array_key_exists('venue', $a_span) && !array_key_exists('category', $a_span)) { | ||||
| 		$a_span['date'] += 12 - $total; | ||||
| 	} else { | ||||
| 		while ($total < 12) { | ||||
| 			if (array_key_exists('title', $a_span)) { | ||||
| 				++$a_span['title']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 			if ($total < 12 && ($a_span['date'] <= $default_span['date'])) { | ||||
| 				++$a_span['date']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 			if (($total < 12) && array_key_exists('venue', $a_span)) { | ||||
| 				++$a_span['venue']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 			if (($total < 12) && array_key_exists('category', $a_span)) { | ||||
| 				++$a_span['category']; | ||||
| 				++$total; | ||||
| 			} | ||||
| 		} // while | ||||
| 	} | ||||
| ?> | ||||
| <div class="eventtable"> | ||||
| 	<div class="row-fluid sectiontableheader"> | ||||
| 		<div class="span<?php echo $a_span['date']; ?>"><?php echo JText::_('COM_JEM_TABLE_DATE'); ?></div> | ||||
| 		<?php if (array_key_exists('title', $a_span)) : ?> | ||||
| 		<div class="span<?php echo $a_span['title']; ?>"><?php echo JText::_('COM_JEM_TABLE_TITLE'); ?></div> | ||||
| 		<?php endif; ?> | ||||
| 		<?php if (array_key_exists('venue', $a_span)) : ?> | ||||
| 		<div class="span<?php echo $a_span['venue']; ?>"><?php echo JText::_('COM_JEM_TABLE_LOCATION'); ?></div> | ||||
| 		<?php endif; ?> | ||||
| 		<?php if (array_key_exists('category', $a_span)) : ?> | ||||
| 		<div class="span<?php echo $a_span['category']; ?>"><?php echo JText::_('COM_JEM_TABLE_CATEGORY'); ?></div> | ||||
| 		<?php endif; ?> | ||||
| 		<?php if (array_key_exists('attendees', $a_span)) : ?> | ||||
| 		<div class="span<?php echo $a_span['attendees']; ?>"><?php echo JText::_('COM_JEM_TABLE_ATTENDEES'); ?></div> | ||||
| 		<?php endif; ?> | ||||
| 	</div> | ||||
|  | ||||
| 	<?php if (empty($this->rows)) : ?> | ||||
| 		<div class="row-fluid sectiontableentry<?php echo $this->params->get('pageclass_sfx'); ?>" > | ||||
| 			<div class="span12"> | ||||
| 				<strong><i><?php echo JText::_('COM_JEM_NO_EVENTS'); ?></i></strong> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	<?php else : ?> | ||||
| 		<?php foreach ($this->rows as $row) : ?> | ||||
| 			<?php if (!empty($row->featured)) : ?> | ||||
| 			<div class="row-fluid sectiontableentry featured featured<?php echo $row->id.$this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 			<?php else : ?> | ||||
| 			<div class="row-fluid sectiontableentry<?php echo $this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 			<?php endif; ?> | ||||
|  | ||||
| 				<div class="span<?php echo $a_span['date']; ?> date"> | ||||
| 					<?php | ||||
| 						echo JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
| 						echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes); | ||||
| 					?> | ||||
| 				</div> | ||||
|  | ||||
| 				<?php if (array_key_exists('title', $a_span)) : ?> | ||||
| 				<div class="span<?php echo $a_span['title']; ?>"> | ||||
| 					<?php if (($this->jemsettings->showeventimage == 1) && !empty($row->datimage)) : ?> | ||||
| 					<div class="image"> | ||||
| 						<?php echo JemOutput::flyer($row, JemImage::flyercreator($row->datimage, 'event'), 'event'); ?> | ||||
| 					</div> | ||||
| 					<?php endif; ?> | ||||
| 					<?php if ($this->jemsettings->showdetails == 1) : ?> | ||||
| 					<div class="event"> | ||||
| 						<a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url"> | ||||
| 							<span itemprop="name"><?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?></span> | ||||
| 						</a><?php echo JemOutput::publishstateicon($row); ?> | ||||
| 					</div> | ||||
| 					<?php else : ?> | ||||
| 					<div class="event" itemprop="name"> | ||||
| 						<?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?> | ||||
| 					</div> | ||||
| 					<?php endif; ?> | ||||
| 				</div> | ||||
| 				<?php endif; ?> | ||||
|  | ||||
| 				<?php if (array_key_exists('venue', $a_span)) : ?> | ||||
| 				<div class="span<?php echo $a_span['venue']; ?> venue"> | ||||
| 					<?php | ||||
| 					$venue = array(); | ||||
| 					if ($this->jemsettings->showlocate == 1) { | ||||
| 						if (!empty($row->venue)) { | ||||
| 							if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) { | ||||
| 								$venue[] = "<a href='".JRoute::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; | ||||
| 							} else { | ||||
| 								$venue[] = $this->escape($row->venue); | ||||
| 							} | ||||
| 						} else { | ||||
| 							$venue[] = '-'; | ||||
| 						} | ||||
| 					} | ||||
| 					// if no city skip if also no state, else add hyphen | ||||
| 					if (($this->jemsettings->showcity == 1) && (!empty($row->city) || !empty($row->state))) { | ||||
| 						$venue[] = !empty($row->city) ? $this->escape($row->city) : '-'; | ||||
| 					} | ||||
| 					if (($this->jemsettings->showstate == 1) && !empty($row->state)) { | ||||
| 						$venue[] = $this->escape($row->state); | ||||
| 					} | ||||
| 					echo implode(', ', $venue); | ||||
| 					?> | ||||
| 				</div> | ||||
| 				<?php endif; ?> | ||||
|  | ||||
| 				<?php if (array_key_exists('category', $a_span)) : ?> | ||||
| 				<div class="span<?php echo $a_span['category']; ?> category"> | ||||
| 					<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> | ||||
| 				</div> | ||||
| 				<?php endif; ?> | ||||
|  | ||||
| 				<?php if (array_key_exists('attendees', $a_span)) : ?> | ||||
| 				<div class="span<?php echo $a_span['attendees']; ?> users"> | ||||
| 					<?php echo !empty($row->regCount) ? $this->escape($row->regCount) : '-'; ?> | ||||
| 				</div> | ||||
| 				<?php endif; ?> | ||||
| 			</div> | ||||
| 		<?php endforeach; ?> | ||||
| 	<?php endif; /* noevents */ ?> | ||||
| </div> | ||||
|  | ||||
							
								
								
									
										47
									
								
								components/com_jem/common/views/tmpl/default_attachments.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								components/com_jem/common/views/tmpl/default_attachments.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,47 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| use Joomla\CMS\Language\Text; | ||||
| use Joomla\CMS\HTML\HTMLHelper; | ||||
| use Joomla\CMS\Session\Session; | ||||
| ?> | ||||
|  | ||||
| <?php if (isset($this->attachments) && is_array($this->attachments) && (count($this->attachments) > 0)) : ?> | ||||
| <div class="files"> | ||||
| <h2 class="description"><?php echo Text::_('COM_JEM_FILES'); ?></h2> | ||||
| <table class="file"> | ||||
| 	<tbody> | ||||
| 	<?php foreach ($this->attachments as $file) : ?> | ||||
| 		<tr> | ||||
| 			<td> | ||||
| 				<?php | ||||
| 				$overlib = Text::_('COM_JEM_FILE').': '.$this->escape($file->file); | ||||
| 				if (!empty($file->name)) { | ||||
| 					$overlib .= '<BR />'.Text::_('COM_JEM_FILE_NAME').': '.$this->escape($file->name); | ||||
| 				} | ||||
| 				if (!empty($file->description)) { | ||||
| 					$overlib .= '<BR />'.Text::_('COM_JEM_FILE_DESCRIPTION').': '.$this->escape($file->description); | ||||
| 				} | ||||
| 				?> | ||||
| 				<span <?php echo JEMOutput::tooltip(Text::_('COM_JEM_DOWNLOAD'), $overlib, 'file-dl-icon file-name'); ?>> | ||||
| 					<?php | ||||
| 						$filename	= $this->escape($file->name ? $file->name : $file->file); | ||||
| 						$image		= HTMLHelper::_('image','com_jem/download_16.png', Text::_('COM_JEM_DOWNLOAD'),NULL,true)." "."<span class=file-name>".$filename."</span>"; | ||||
| 						$attribs	= array('class'=>'file-name'); | ||||
| 						echo HTMLHelper::_('link','index.php?option=com_jem&task=getfile&format=raw&file='.$file->id.'&'.Session::getFormToken().'=1',$image,$attribs); | ||||
| 					?> | ||||
| 				</span> | ||||
| 			</td> | ||||
| 		</tr> | ||||
| 	<?php endforeach; ?> | ||||
| 	</tbody> | ||||
| </table> | ||||
| </div> | ||||
| <?php endif; | ||||
| @ -0,0 +1,54 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| use Joomla\CMS\Language\Text; | ||||
| use Joomla\CMS\HTML\HTMLHelper; | ||||
| use Joomla\CMS\Session\Session; | ||||
| ?> | ||||
| <fieldset class="jem_fldst_attachments"> | ||||
| <legend><?php echo Text::_('COM_JEM_EVENT_ATTACHMENTS_TAB'); ?></legend> | ||||
| <table class="adminform" id="el-attachments"> | ||||
| 	<thead> | ||||
| 		<tr> | ||||
| 			<th style="width:25%"><?php echo Text::_('COM_JEM_ATTACHMENT_FILE'); ?></th> | ||||
| 			<th style="width:15%"><?php echo Text::_('COM_JEM_ATTACHMENT_NAME'); ?></th> | ||||
| 			<th style="width:40%"><?php echo Text::_('COM_JEM_ATTACHMENT_DESCRIPTION'); ?></th> | ||||
| 			<th style="width:20px"><?php echo Text::_('COM_JEM_ATTACHMENT_ACCESS'); ?></th> | ||||
| 			<th style="width:5px"> </th> | ||||
| 		</tr> | ||||
| 	</thead> | ||||
| 	<tbody> | ||||
| 		<?php foreach ($this->row->attachments as $file): ?> | ||||
| 		<tr> | ||||
| 			<td><?php echo wordwrap($file->file, 30, "<br>", true); ?><input style="width:200px" type="hidden" name="attached-id[]" value="<?php echo $file->id; ?>"/></td> | ||||
| 			<td><input type="text" name="attached-name[]" value="<?php echo $file->name; ?>" style="width:100px" /></td> | ||||
| 			<td><input type="text" name="attached-desc[]" value="<?php echo $file->description; ?>" style="width:100px" /></td> | ||||
| 			<td><?php echo HTMLHelper::_('select.genericlist', $this->access, 'attached-access[]', array('class'=>'inputbox','style'=>'width:100px;','size'=>'3'), 'value', 'text', $file->access); ?></td> | ||||
| 			<td><?php echo JemOutput::removebutton(Text::_('COM_JEM_GLOBAL_REMOVE_ATTACHEMENT'), array('id' => 'attach-remove'.$file->id.':'.Session::getFormToken(),'class' => 'attach-remove','title'=>Text::_('COM_JEM_GLOBAL_REMOVE_ATTACHEMENT'))); ?></td> | ||||
| 		</tr> | ||||
| 		<?php endforeach; ?> | ||||
| 		<tr> | ||||
| 			<td> | ||||
| 				<input type="file" name="attach[]" class="attach-field" size="10" style="width:200px"></input> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 				<input type="text" name="attach-name[]" value="" /> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 				<input type="text" name="attach-desc[]" value="" /> | ||||
| 			</td> | ||||
| 			<td> | ||||
| 				<?php echo HTMLHelper::_('select.genericlist', $this->access, 'attach-access[]', array('class'=>'inputbox','style'=>'width:100px;','size'=>'3'), 'value', 'text', 0); ?> | ||||
| 			</td> | ||||
| 			<td> </td> | ||||
| 		</tr> | ||||
| 	</tbody> | ||||
| </table> | ||||
| </fieldset> | ||||
							
								
								
									
										208
									
								
								components/com_jem/common/views/tmpl/default_events_table.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										208
									
								
								components/com_jem/common/views/tmpl/default_events_table.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,208 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| use Joomla\CMS\Language\Text; | ||||
| use Joomla\CMS\HTML\HTMLHelper; | ||||
| use Joomla\CMS\Router\Route; | ||||
|  | ||||
| ?> | ||||
|  | ||||
| <script> | ||||
| 	function tableOrdering(order, dir, view) | ||||
| 	{ | ||||
| 		var form = document.getElementById("adminForm"); | ||||
|  | ||||
| 		form.filter_order.value     = order; | ||||
| 		form.filter_order_Dir.value = dir; | ||||
| 		form.submit(view); | ||||
| 	} | ||||
| </script> | ||||
|  | ||||
| <?php if ($this->settings->get('global_show_filter',1) || $this->settings->get('global_display',1)) : ?> | ||||
| <div id="jem_filter" class="floattext"> | ||||
| 	<?php if ($this->settings->get('global_show_filter',1)) : ?> | ||||
| 	<div class="jem_fleft"> | ||||
| 		<?php echo $this->lists['filter'].' '; ?> | ||||
| 		<input type="text" name="filter_search" id="filter_search" class="inputbox form-control" value="<?php echo $this->lists['search'];?>" onchange="document.adminForm.submit();" /> | ||||
|         <label for="filter_month"><?php echo Text::_('COM_JEM_SEARCH_MONTH'); ?></label> | ||||
|         <input type="month" name="filter_month" id="filter_month" pattern="[0-9]{4}-[0-9]{2}" title="<?php echo Text::_('COM_JEM_SEARCH_YYYY-MM_FORMAT'); ?>" required class="inputbox form-control" placeholder="<?php echo Text::_('COM_JEM_SEARCH_YYYY-MM'); ?>" size="7" value="<?php echo $this->lists['month'] ?? '';?>">         | ||||
| 		<button class="btn btn-primary" type="submit"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button> | ||||
|       <button class="btn btn-secondary" type="button" onclick="document.getElementById('filter_search').value='';document.getElementById('filter_month').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button> | ||||
| 	</div> | ||||
| 	<?php endif; ?> | ||||
|  | ||||
| 	<?php if ($this->settings->get('global_display',1)) : ?> | ||||
| 	<div class="jem_fright"> | ||||
| 		<label for="limit"><?php echo Text::_('COM_JEM_DISPLAY_NUM'); ?></label> | ||||
| 		<?php echo $this->pagination->getLimitBox(); ?> | ||||
| 	</div> | ||||
| 	<?php endif; ?> | ||||
| </div> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <div class="table-responsive"> | ||||
| 	<table class="eventtable table table-striped" style="width:<?php echo !empty($this->jemsettings->tablewidth) ? $this->jemsettings->tablewidth : '100%'; ?>;"> | ||||
| 		<colgroup> | ||||
| 			<?php if ($this->jemsettings->showeventimage == 1) : ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->tableeventimagewidth; ?>" class="jem_col_event_image" /> | ||||
| 			<?php endif; ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->datewidth; ?>" class="jem_col_date" /> | ||||
| 			<?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->titlewidth; ?>" class="jem_col_title" /> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->locationwidth; ?>" class="jem_col_venue" /> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if ($this->jemsettings->showcity == 1) : ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->citywidth; ?>" class="jem_col_city" /> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if ($this->jemsettings->showstate == 1) : ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->statewidth; ?>" class="jem_col_state" /> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if ($this->jemsettings->showcat == 1) : ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->catfrowidth; ?>" class="jem_col_category" /> | ||||
| 			<?php endif; ?> | ||||
| 			<?php if ($this->jemsettings->showatte == 1) : ?> | ||||
| 			<col style="width:<?php echo $this->jemsettings->attewidth; ?>" class="jem_col_attendees" /> | ||||
| 			<?php endif; ?> | ||||
| 		</colgroup> | ||||
|  | ||||
| 		<thead>		 | ||||
| 			<tr> | ||||
| 				<?php if ($this->jemsettings->showeventimage == 1) : ?> | ||||
| 				<th id="jem_eventimage" class="sectiontableheader"><?php echo Text::_('COM_JEM_TABLE_EVENTIMAGE'); ?></th> | ||||
| 				<?php endif; ?> | ||||
| 				<th id="jem_date" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_DATE', 'a.dates', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 				<?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
| 				<th id="jem_title" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_TITLE', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
| 				<th id="jem_location" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_LOCATION', 'l.venue', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showcity == 1) : ?> | ||||
| 				<th id="jem_city" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CITY', 'l.city', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showstate == 1) : ?> | ||||
| 				<th id="jem_state" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_STATE', 'l.state', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showcat == 1) : ?> | ||||
| 				<th id="jem_category" class="sectiontableheader"><?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CATEGORY', 'c.catname', $this->lists['order_Dir'], $this->lists['order']); ?></th> | ||||
| 				<?php endif; ?> | ||||
| 				<?php if ($this->jemsettings->showatte == 1) : ?> | ||||
| 				<th id="jem_attendees" class="sectiontableheader"><?php echo Text::_('COM_JEM_TABLE_ATTENDEES'); ?></th> | ||||
| 				<?php endif; ?> | ||||
| 			</tr> | ||||
| 		</thead> | ||||
|  | ||||
| 		<tbody> | ||||
| 			<?php if (empty($this->rows)) : ?> | ||||
| 				<tr class="no_events"><td colspan="20"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></td></tr> | ||||
| 			<?php else : ?> | ||||
| 				<?php $odd = 0; ?> | ||||
| 				<?php foreach ($this->rows as $row) : ?> | ||||
| 					<?php $odd = 1 - $odd; ?> | ||||
| 					<?php if (!empty($row->featured)) : ?> | ||||
| 					<tr class="featured featured<?php echo $row->id.$this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 					<?php else : ?> | ||||
| 					<tr class="sectiontableentry<?php echo ($odd + 1) . $this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); ?>" itemscope="itemscope" itemtype="https://schema.org/Event"> | ||||
| 					<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showeventimage == 1) : ?> | ||||
| 						<td headers="jem_eventimage" class="header-td"> | ||||
| 							<?php if (!empty($row->datimage)) : ?> | ||||
| 								<?php | ||||
| 								$dimage = JemImage::flyercreator($row->datimage, 'event'); | ||||
| 								echo JemOutput::flyer($row, $dimage, 'event'); | ||||
| 								?> | ||||
| 							<?php endif; ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<td headers="jem_date" class="header-td"> | ||||
| 							<?php | ||||
| 							echo JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
| 							echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes); | ||||
| 							?> | ||||
| 						</td> | ||||
|  | ||||
| 						<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : ?> | ||||
| 						<td headers="jem_title" class="header-td"> | ||||
| 							<a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>"> | ||||
| 								<span itemprop="name"><?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?></span> | ||||
| 							</a><?php echo JemOutput::publishstateicon($row); | ||||
| 							echo "<meta itemprop='url' content='" . Route::_(JemHelperRoute::getEventRoute($row->slug)) . "'>"; ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : ?> | ||||
| 						<td headers="jem_title" class="header-td" itemprop="name"> | ||||
| 							<?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); | ||||
| 							echo "<meta itemprop='url' content='" . Route::_(JemHelperRoute::getEventRoute($row->slug)) . "'>"; ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
| 						<td headers="jem_location" class="header-td" itemtype="https://schema.org/Place" itemscope itemprop="location"> | ||||
| 							<?php | ||||
| 							if (!empty($row->venue)) : | ||||
| 								if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) : | ||||
| 									echo "<a href='".Route::_(JemHelperRoute::getVenueRoute($row->venueslug))."'><span itemprop='name'>".$this->escape($row->venue)."</span></a>"; | ||||
| 								else : | ||||
| 									echo "<span itemprop='name'>" . $this->escape($row->venue)."</span>"; | ||||
| 								endif; | ||||
| 							else : | ||||
| 								echo "-<meta itemprop='name' content='' />"; | ||||
| 							endif; ?> | ||||
| 							<div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress" style="display:none;"> | ||||
| 								<meta itemprop="streetAddress" content="<?php echo $this->escape($row->street); ?>" /> | ||||
| 								<meta itemprop="addressLocality" content="<?php echo $this->escape($row->city); ?>" /> | ||||
| 								<meta itemprop="addressRegion" content="<?php echo $this->escape($row->state); ?>" /> | ||||
| 								<meta itemprop="postalCode" content="<?php echo $this->escape($row->postalCode); ?>" /> | ||||
| 							</div> | ||||
| 			 | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showcity == 1) : ?> | ||||
| 						<td headers="jem_city" class="header-td"> | ||||
| 							<?php echo !empty($row->city) ? $this->escape($row->city) : "-"; ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showstate == 1) : ?> | ||||
| 						<td headers="jem_state" class="header-td"> | ||||
| 							<?php echo !empty($row->state) ? $this->escape($row->state) : "-"; ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showcat == 1) : ?> | ||||
| 						<td headers="jem_category" class="header-td"> | ||||
| 							<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> | ||||
| 						</td> | ||||
| 						<?php endif; ?> | ||||
|  | ||||
| 						<?php if ($this->jemsettings->showatte == 1) : ?> | ||||
| 						<td headers="jem_attendees" class="header-td"> | ||||
| 							<?php | ||||
| 							if (!empty($row->regCount)) :  | ||||
| 								echo $this->escape($row->regCount), " / ", $this->escape($row->maxplaces); | ||||
| 							else :  | ||||
| 								echo "- / ", $this->escape ($row->maxplaces); | ||||
| 							endif; | ||||
| 								?>																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																										    | ||||
| 							</td>	 | ||||
| 							<?php endif; ?>	 | ||||
| 					</tr> | ||||
| 				<?php endforeach; ?> | ||||
| 			<?php endif; ?> | ||||
| 		</tbody> | ||||
| 	</table> | ||||
| </div> | ||||
| <?php echo JemOutput::lightbox(); ?> | ||||
							
								
								
									
										1
									
								
								components/com_jem/common/views/tmpl/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								components/com_jem/common/views/tmpl/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| <!DOCTYPE html><title></title> | ||||
| @ -0,0 +1,48 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| use Joomla\CMS\Language\Text; | ||||
| use Joomla\CMS\HTML\HTMLHelper; | ||||
| use Joomla\CMS\Session\Session; | ||||
|  | ||||
| if (isset($this->attachments) && is_array($this->attachments) && (count($this->attachments) > 0)) : ?> | ||||
|   <hr class="jem-hr" style="display: none;" /> | ||||
| 	<div class="jem-files"> | ||||
| 		<?php if (count($this->attachments) > 1) : ?> | ||||
| 			<h2 class="jem-files"><?php echo Text::_('COM_JEM_FILES') ; ?></h2> | ||||
| 		<?php else : ?> | ||||
| 			<h2 class="jem-files"><?php echo Text::_('COM_JEM_FILE') ; ?></h2> | ||||
| 		<?php endif; ?> | ||||
| 		<dl class="jem-dl"> | ||||
| 			<?php foreach ($this->attachments as $index=>$file) : ?> | ||||
|         <dt class="jem-files" data-placement="bottom" data-original-title="<?php echo Text::_('COM_JEM_FILE'); ?>"><?php echo Text::_('COM_JEM_FILE').' '.($index+1); ?>:</dt> | ||||
| 				<dd class="jem-files"> | ||||
| 					<?php | ||||
| 					$overlib = Text::_('COM_JEM_FILE').': '.$this->escape($file->file); | ||||
| 					if (!empty($file->name)) { | ||||
| 						$overlib .= '<br />'.Text::_('COM_JEM_FILE_NAME').': '.$this->escape($file->name); | ||||
| 					} | ||||
| 					if (!empty($file->description)) { | ||||
| 						$overlib .= '<br />'.Text::_('COM_JEM_FILE_DESCRIPTION').': '.$this->escape($file->description); | ||||
| 					} | ||||
| 					?> | ||||
| 					<span <?php echo JEMOutput::tooltip(Text::_('COM_JEM_DOWNLOAD'), $overlib, 'jem-files'); ?>> | ||||
| 					<?php | ||||
| 						$filename	= $this->escape($file->name ? $file->name : $file->file); | ||||
| 						$image		= $filename.' <i class="fa fa-download"></i>'; | ||||
| 						$attribs	= array('class'=>'jem-files'); | ||||
| 						echo HTMLHelper::_('link','index.php?option=com_jem&task=getfile&format=raw&file='.$file->id.'&'.Session::getFormToken().'=1',$image, $attribs); | ||||
| 					?> | ||||
| 					</span> | ||||
| 				</dd> | ||||
| 			<?php endforeach; ?> | ||||
| 		</dl> | ||||
| 	</div> | ||||
| <?php endif; ?>	 | ||||
| @ -0,0 +1,18 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| if (empty($this->jemsettings->tablewidth)) : | ||||
|   echo $this->loadTemplate('jem_eventslist'); // The new layout | ||||
| else : | ||||
|   echo $this->loadTemplate('jem_eventslist_small'); // Similar to the old table-layout | ||||
| endif; | ||||
|  | ||||
| echo JemOutput::lightbox(); | ||||
| ?> | ||||
| @ -0,0 +1,382 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| use Joomla\CMS\Uri\Uri; | ||||
| use Joomla\CMS\Language\Text; | ||||
| use Joomla\CMS\HTML\HTMLHelper; | ||||
| use Joomla\CMS\Router\Route; | ||||
| use Joomla\CMS\Factory; | ||||
| ?> | ||||
|  | ||||
| <script> | ||||
|     function tableOrdering(order, dir, view) { | ||||
|         var form = document.getElementById("adminForm"); | ||||
|  | ||||
|         form.filter_order.value = order; | ||||
|         form.filter_order_Dir.value = dir; | ||||
|         form.submit(view); | ||||
|     } | ||||
| </script> | ||||
|  | ||||
|     <?php | ||||
|     $imagewidth = 'inherit'; | ||||
|     if ($this->jemsettings->imagewidth != 0) { | ||||
|      $imagewidth = $this->jemsettings->imagewidth / 2; | ||||
|      $imagewidth = $imagewidth.'px'; | ||||
|     } | ||||
|     $imagewidthstring = 'jem-imagewidth'; | ||||
|     if (JemHelper::jemStringContains($this->params->get('pageclass_sfx'), $imagewidthstring)) { | ||||
|       $pageclass_sfx = $this->params->get('pageclass_sfx'); | ||||
|       $imagewidthpos = strpos($pageclass_sfx, $imagewidthstring); | ||||
|       $spacepos = strpos($pageclass_sfx, ' ', $imagewidthpos); | ||||
|       if ($spacepos === false) { | ||||
|         $spacepos = strlen($pageclass_sfx); | ||||
|       } | ||||
|       $startpos = $imagewidthpos + strlen($imagewidthstring); | ||||
|       $endpos = $spacepos - $startpos; | ||||
|       $imagewidth = substr($pageclass_sfx, $startpos, $endpos); | ||||
|     } | ||||
|     $imageheight = 'auto'; | ||||
|     $imageheigthstring = 'jem-imageheight'; | ||||
|     if (JemHelper::jemStringContains($this->params->get('pageclass_sfx'), $imageheigthstring)) { | ||||
|       $pageclass_sfx = $this->params->get('pageclass_sfx'); | ||||
|       $imageheightpos = strpos($pageclass_sfx, $imageheigthstring); | ||||
|       $spacepos = strpos($pageclass_sfx, ' ', $imageheightpos); | ||||
|       if ($spacepos === false) { | ||||
|         $spacepos = strlen($pageclass_sfx); | ||||
|       } | ||||
|       $startpos = $imageheightpos + strlen($imageheigthstring); | ||||
|       $endpos = $spacepos - $startpos; | ||||
|       $imageheight = substr($pageclass_sfx, $startpos, $endpos); | ||||
|     } | ||||
|  | ||||
| $document = Factory::getDocument(); | ||||
| $css = ' | ||||
|     #jem .jem-list-img { | ||||
|         width: ' . $imagewidth . '; | ||||
|     } | ||||
|  | ||||
|     #jem .jem-list-img img { | ||||
|         width: ' . $imagewidth . '; | ||||
|         height: ' . $imageheight . '; | ||||
|     } | ||||
|  | ||||
|     @media not print { | ||||
|         @media only all and (max-width: 47.938rem) { | ||||
|             #jem .jem-list-img { | ||||
|                 width: 100%; | ||||
|             } | ||||
|  | ||||
|             #jem .jem-list-img img { | ||||
|             	width: ' . $imagewidth . '; | ||||
|             	height: ' . $imageheight . '; | ||||
|             } | ||||
|         } | ||||
|     }'; | ||||
| $document->addStyleDeclaration($css); | ||||
|  | ||||
| $uri = Uri::getInstance(); | ||||
| function jem_common_show_filter(&$obj) | ||||
| { | ||||
|     if ($obj->settings->get('global_show_filter', 1) && !JemHelper::jemStringContains($obj->params->get('pageclass_sfx'), 'jem-hidefilter')) { | ||||
|         return true; | ||||
|     } | ||||
|     if (JemHelper::jemStringContains($obj->params->get('pageclass_sfx'), 'jem-showfilter')) { | ||||
|         return true; | ||||
|     } | ||||
|     return false; | ||||
| } | ||||
|  | ||||
| ?> | ||||
| <?php if (jem_common_show_filter($this) && !JemHelper::jemStringContains($this->params->get('pageclass_sfx'), 'jem-filterbelow')): ?> | ||||
|     <div id="jem_filter" class="floattext jem-form jem-row jem-justify-start"> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|            <?php echo $this->lists['filter']; ?> | ||||
|       		<input type="text" name="filter_search" id="filter_search" class="inputbox form-control" value="<?php echo $this->lists['search'];?>" onchange="document.adminForm.submit();" /> | ||||
|         </div> | ||||
|         <div> | ||||
|             <label for="filter_month"><?php echo Text::_('COM_JEM_SEARCH_MONTH'); ?></label> | ||||
|         </div> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|             <input type="month" name="filter_month" id="filter_month" pattern="[0-9]{4}-[0-9]{2}" title="<?php echo Text::_('COM_JEM_SEARCH_YYYY-MM_FORMAT'); ?>" required class="inputbox form-control" placeholder="<?php echo Text::_('COM_JEM_SEARCH_YYYY-MM'); ?>" size="7" value="<?php echo $this->lists['month'] ?? '';?>"> | ||||
|         </div> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|             <button class="btn btn-primary" type="submit"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button> | ||||
|       		<button class="btn btn-secondary" type="button" onclick="document.getElementById('filter_search').value='';document.getElementById('filter_month').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button> | ||||
|         </div> | ||||
|         <?php if ($this->settings->get('global_display', 1)) : ?> | ||||
|             <div class="jem-limit-smallist"> | ||||
|                 <label for="limit"><?php echo Text::_('COM_JEM_DISPLAY_NUM'); ?></label> | ||||
|                 <?php echo $this->pagination->getLimitBox(); ?> | ||||
|  | ||||
|             </div> | ||||
|         <?php endif; ?> | ||||
|     </div> | ||||
| <?php endif; ?> | ||||
|  | ||||
| <div class="jem-misc jem-row"> | ||||
|     <div class="jem-sort jem-row jem-justify-start jem-nowrap"> | ||||
|         <i class="fa fa-sort fa-lg jem-sort-icon" aria-hidden="true"></i> | ||||
|         <div class="jem-row jem-justify-start jem-sort-parts"> | ||||
|       		<div id="jem_date" class="sectiontableheader"><i class="far fa-clock" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_DATE', 'a.dates', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       		<div id="jem_title" class="sectiontableheader"><i class="fa fa-comment" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_TITLE', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|             <?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
|         		<div id="jem_location" class="sectiontableheader"><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_LOCATION', 'l.venue', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|             <?php endif; ?> | ||||
|             <?php if ($this->jemsettings->showcity == 1) : ?> | ||||
|         		<div id="jem_city" class="sectiontableheader"><i class="fa fa-building" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CITY', 'l.city', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|             <?php endif; ?> | ||||
|             <?php if ($this->jemsettings->showstate == 1) : ?> | ||||
|         		<div id="jem_state" class="sectiontableheader"><i class="fa fa-map" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_STATE', 'l.state', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|             <?php endif; ?> | ||||
|             <?php if ($this->jemsettings->showcat == 1) : ?> | ||||
|         		<div id="jem_category" class="sectiontableheader"><i class="fa fa-tag" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CATEGORY', 'c.catname', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|             <?php endif; ?> | ||||
|             <?php if ($this->jemsettings->showatte == 1) : ?> | ||||
| 				<div id="jem_atte" class="sectiontableheader"><i class="fa fa-user" aria-hidden="true"></i> <?php echo Text::_('COM_JEM_TABLE_ATTENDEES'); ?></div> | ||||
|             <?php endif; ?> | ||||
|         </div> | ||||
|     </div> | ||||
|  | ||||
| </div> | ||||
|  | ||||
| <ul class="eventlist"> | ||||
|     <?php if ($this->noevents == 1) : ?> | ||||
|         <li class="jem-event"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></li> | ||||
|     <?php else : ?> | ||||
|         <?php | ||||
|         // Safari has problems with the "onclick" element in the <li>. It covers the links to location and category etc. | ||||
|         // This detects the browser and just writes the onclick attribute if the broswer is not Safari. | ||||
|         $isSafari = false; | ||||
|         if (strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') && !strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome')) { | ||||
|             $isSafari = true; | ||||
|         } | ||||
|         ?> | ||||
|         <?php | ||||
|         $this->rows = $this->getRows(); | ||||
|         $showMonthRow = false; | ||||
|         $previousYearMonth = ''; | ||||
|         $paramShowMonthRow = $this->params->get('showmonthrow', ''); | ||||
|         ?> | ||||
|  | ||||
|         <?php foreach ($this->rows as $row) : ?> | ||||
|             <?php | ||||
|             if ($paramShowMonthRow && $row->dates) { | ||||
|                 //get event date | ||||
|                 $year = date('Y', strtotime($row->dates)); | ||||
|                 $month = date('F', strtotime($row->dates)); | ||||
|                 $YearMonth = Text::_('COM_JEM_'.strtoupper ($month)) . ' ' . $year; | ||||
|  | ||||
|                 if (!$previousYearMonth || $previousYearMonth != $YearMonth) { | ||||
|                     $showMonthRow = $YearMonth; | ||||
|                 } | ||||
|  | ||||
|                 //Publish month row | ||||
|                 if ($showMonthRow) { ?> | ||||
|                     <li class="jem-event jem-row jem-justify-center bg-body-secondary" itemscope="itemscope"><span class="row-month"><?php echo $showMonthRow;?></span></li> | ||||
|                 <?php } | ||||
|             } ?> | ||||
|             <?php if (!empty($row->featured)) : ?> | ||||
|                 <li class="jem-event jem-row jem-justify-start jem-featured <?php echo $this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); if (!empty($row->locid)) {  echo ' venue_id' . $this->escape($row->locid); } ?>" itemscope="itemscope" itemtype="https://schema.org/Event" <?php if ($this->jemsettings->showdetails == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.Route::_(JemHelperRoute::getEventRoute($row->slug)) .'\'"'; endif; ?> > | ||||
|             <?php else : ?> | ||||
|                 <li class="jem-event jem-row jem-justify-start jem-odd<?php echo ($row->odd + 1) . $this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); if (!empty($row->locid)) {  echo ' venue_id' . $this->escape($row->locid); } ?>" itemscope="itemscope" itemtype="https://schema.org/Event" <?php if (($this->jemsettings->showdetails == 1) && (!$isSafari) && ($this->jemsettings->gddisabled == 0)) : echo 'onclick="location.href=\''. Route::_(JemHelperRoute::getEventRoute($row->slug)) .'\'"'; endif; ?>> | ||||
|             <?php endif; ?> | ||||
|  | ||||
|             <?php if ($this->jemsettings->showeventimage == 1) : ?> | ||||
|                 <div class="jem-list-img"> | ||||
|                     <?php if (!empty($row->datimage)) : ?> | ||||
|                         <?php | ||||
|                         $dimage = JemImage::flyercreator($row->datimage, 'event'); | ||||
|                         echo JemOutput::flyer($row, $dimage, 'event'); | ||||
|                         ?> | ||||
|                     <?php else : ?> | ||||
|                     <?php endif; ?> | ||||
|                 </div> | ||||
|             <?php endif; ?> | ||||
|  | ||||
|             <div class="jem-event-details" <?php if (($this->jemsettings->showdetails == 1) && (!$isSafari) && ($this->jemsettings->gddisabled == 1)) : echo 'onclick="location.href=\''. Route::_(JemHelperRoute::getEventRoute($row->slug)) .'\'"'; endif; ?>> | ||||
|                 <?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : // Display title as title of jem-event with link ?> | ||||
|                     <h3 title="<?php echo Text::_('COM_JEM_TABLE_TITLE') . ': ' . $this->escape($row->title); ?>"> | ||||
|  | ||||
|                         <a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>"><?php echo $this->escape($row->title); ?></a> | ||||
|                         <?php echo JemOutput::recurrenceicon($row); ?> | ||||
|                         <?php echo JemOutput::publishstateicon($row); ?> | ||||
|                         <?php if (!empty($row->featured)) : ?> | ||||
|                             <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|                         <?php endif; ?> | ||||
|                     </h3> | ||||
|  | ||||
|                 <?php elseif (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : //Display title as title of jem-event without link ?> | ||||
|                     <h4 title="<?php echo Text::_('COM_JEM_TABLE_TITLE') . ': ' . $this->escape($row->title); ?>"> | ||||
|                         <?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?> | ||||
|                         <?php if (!empty($row->featured)) : ?> | ||||
|                             <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|                         <?php endif; ?> | ||||
|                     </h4> | ||||
|  | ||||
|                 <?php elseif (($this->jemsettings->showtitle == 0) && ($this->jemsettings->showdetails == 1)) : // Display date as title of jem-event with link ?> | ||||
|                     <h4> | ||||
|                         <a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>"> | ||||
|                             <?php | ||||
|                             echo JemOutput::formatShortDateTime($row->dates, $row->times, | ||||
|                                 $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
|                             echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, | ||||
|                                 $row->enddates, $row->endtimes); | ||||
|                             ?> | ||||
|                         </a> | ||||
|                         <?php echo JemOutput::recurrenceicon($row); ?> | ||||
|                         <?php echo JemOutput::publishstateicon($row); ?> | ||||
|                         <?php if (!empty($row->featured)) : ?> | ||||
|                             <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|                         <?php endif; ?> | ||||
|                     </h4> | ||||
|  | ||||
|                 <?php else : // Display date as title of jem-event without link ?> | ||||
|                     <h4> | ||||
|                         <?php | ||||
|                         echo JemOutput::formatShortDateTime($row->dates, $row->times, | ||||
|                             $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
|                         echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, | ||||
|                             $row->enddates, $row->endtimes); | ||||
|                         ?> | ||||
|                         <?php echo JemOutput::recurrenceicon($row); ?> | ||||
|                         <?php echo JemOutput::publishstateicon($row); ?> | ||||
|                         <?php if (!empty($row->featured)) : ?> | ||||
|                             <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|                         <?php endif; ?> | ||||
|                     </h4> | ||||
|                 <?php endif; ?> | ||||
|  | ||||
|                 <?php // Display other information below in a row ?> | ||||
|                 <div class="jem-list-row"> | ||||
|                     <?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
|                 		<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags(JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime)); ?>"> | ||||
|                             <i class="far fa-clock" aria-hidden="true"></i> | ||||
|                             <?php | ||||
|                             echo JemOutput::formatShortDateTime($row->dates, $row->times, | ||||
|                                 $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
|                             echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, | ||||
|                                 $row->enddates, $row->endtimes); | ||||
|                             ?> | ||||
|                         </div> | ||||
|                     <?php endif; ?> | ||||
|  | ||||
|                     <?php if ($this->jemsettings->showtitle == 0) : ?> | ||||
|                 		<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$this->escape($row->title); ?>"> | ||||
|                             <i class="fa fa-comment" aria-hidden="true"></i> | ||||
|                             <?php echo $this->escape($row->title); ?> | ||||
|                         </div> | ||||
|                     <?php endif; ?> | ||||
|  | ||||
|                     <?php if (($this->jemsettings->showlocate == 1) && (!empty($row->locid))) : ?> | ||||
|                 		<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_LOCATION').': '.$this->escape($row->venue); ?>"> | ||||
|                             <i class="fa fa-map-marker" aria-hidden="true"></i> | ||||
|                             <?php if ($this->jemsettings->showlinkvenue == 1) : ?> | ||||
|                                 <?php echo "<a href='" . Route::_(JemHelperRoute::getVenueRoute($row->venueslug)) . "'>" . $this->escape($row->venue) . "</a>"; ?> | ||||
|                             <?php else : ?> | ||||
|                                 <?php echo $this->escape($row->venue); ?> | ||||
|                             <?php endif; ?> | ||||
|                         </div> | ||||
|                     <?php endif; ?> | ||||
|  | ||||
|                     <?php if (($this->jemsettings->showcity == 1) && (!empty($row->city))) : ?> | ||||
|                 		<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_CITY').': '.$this->escape($row->city); ?>"> | ||||
|                             <i class="fa fa-building" aria-hidden="true"></i> | ||||
|                             <?php echo $this->escape($row->city); ?> | ||||
|                         </div> | ||||
|                     <?php endif; ?> | ||||
|  | ||||
|                     <?php if (($this->jemsettings->showstate == 1) && (!empty($row->state))): ?> | ||||
|                 		<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_STATE').': '.$this->escape($row->state); ?>"> | ||||
|                             <i class="fa fa-map" aria-hidden="true"></i> | ||||
|                             <?php echo $this->escape($row->state); ?> | ||||
|                         </div> | ||||
|                     <?php endif; ?> | ||||
|  | ||||
|                     <?php if ($this->jemsettings->showcat == 1) : ?> | ||||
|                 		<div class="jem-event-info" title="<?php echo strip_tags(Text::_('COM_JEM_TABLE_CATEGORY').': '.implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist))); ?>"> | ||||
|                             <i class="fa fa-tag" aria-hidden="true"></i> | ||||
|                             <?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> | ||||
|                         </div> | ||||
|                     <?php endif; ?> | ||||
|  | ||||
|  | ||||
|                     <?php if ($this->jemsettings->showatte == 1) : ?> | ||||
|                         <?php if (!empty($row->regCount)) : ?> | ||||
|                 			<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_ATTENDEES').': '.$this->escape($row->regCount); ?>"> | ||||
|                                 <i class="fa fa-user" aria-hidden="true"></i> | ||||
|                                 <?php echo $this->escape($row->regCount), " / ", $this->escape($row->maxplaces); ?> | ||||
|                             </div> | ||||
|                         <?php elseif ($this->escape($row->maxplaces) == 0) : ?> | ||||
|                             <div> | ||||
|                                 <i class="fa fa-user" aria-hidden="true"></i> | ||||
|                                 <?php echo " > 0 "; ?> | ||||
|                             </div> | ||||
|                         <?php else : ?> | ||||
|                             <div class="jem-event-info-small jem-event-attendees"> | ||||
|                                 <i class="fa fa-user" aria-hidden="true"></i> | ||||
|                                 <?php echo " < ", $this->escape($row->maxplaces); ?> | ||||
|  | ||||
|                             </div> | ||||
|                         <?php endif; ?> | ||||
|                     <?php endif; ?> | ||||
|                 </div> | ||||
|             </div> | ||||
|  | ||||
|             <?php | ||||
|             if ($paramShowMonthRow) { | ||||
|                 $previousYearMonth = $YearMonth ?? ''; | ||||
|                 $showMonthRow = false; | ||||
|             } | ||||
|             ?> | ||||
|  | ||||
|             <meta itemprop="name" content="<?php echo $this->escape($row->title); ?>"/> | ||||
|           	<meta itemprop="url" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" /> | ||||
|           	<meta itemprop="identifier" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" /> | ||||
|             <div itemtype="https://schema.org/Place" itemscope itemprop="location" style="display: none;"> | ||||
|                 <?php if (!empty($row->locid)) : ?> | ||||
|                     <meta itemprop="name" content="<?php echo $this->escape($row->venue); ?>"/> | ||||
|                 <?php else : ?> | ||||
|                     <meta itemprop="name" content="None"/> | ||||
|                 <?php endif; ?> | ||||
|                 <?php | ||||
|                 $microadress = ''; | ||||
|                 if (!empty($row->city)) { | ||||
|                     $microadress .= $this->escape($row->city); | ||||
|                 } | ||||
|                 if (!empty($microadress)) { | ||||
|                     $microadress .= ', '; | ||||
|                 } | ||||
|                 if (!empty($row->state)) { | ||||
|                     $microadress .= $this->escape($row->state); | ||||
|                 } | ||||
|                 if (empty($microadress)) { | ||||
|                     $microadress .= '-'; | ||||
|                 } | ||||
|                 ?> | ||||
|                 <meta itemprop="address" content="<?php echo $microadress; ?>"/> | ||||
|             </div> | ||||
|  | ||||
|             </li> | ||||
|         <?php endforeach; ?> | ||||
|     <?php endif; ?> | ||||
| </ul> | ||||
| <?php if (jem_common_show_filter($this) && JemHelper::jemStringContains($this->params->get('pageclass_sfx'), 'jem-filterbelow')) : ?> | ||||
|     <div id="jem_filter" class="floattext jem-form jem-row jem-justify-start"> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|             <?php echo $this->lists['filter']; ?> | ||||
|       		<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search'];?>" class="inputbox" onchange="document.adminForm.submit();" /> | ||||
|         </div> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|             <button class="btn btn-primary" type="submit"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button> | ||||
|       		<button class="btn btn-secondary" type="button" onclick="document.getElementById('filter_search').value='';document.getElementById('filter_month').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button> | ||||
|         </div> | ||||
|     </div> | ||||
| <?php endif; ?> | ||||
| @ -0,0 +1,349 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| use Joomla\CMS\Uri\Uri; | ||||
| use Joomla\CMS\Language\Text; | ||||
| use Joomla\CMS\HTML\HTMLHelper; | ||||
| use Joomla\CMS\Router\Route; | ||||
|  | ||||
| $uri = Uri::getInstance(); | ||||
| ?> | ||||
|  | ||||
| <script> | ||||
| 	function tableOrdering(order, dir, view) | ||||
| 	{ | ||||
| 		var form = document.getElementById("adminForm"); | ||||
|  | ||||
| 		form.filter_order.value 	= order; | ||||
| 		form.filter_order_Dir.value	= dir; | ||||
| 		form.submit(view); | ||||
| 	} | ||||
| </script> | ||||
|  | ||||
| <style> | ||||
|   <?php if (!empty($this->jemsettings->tablewidth)) : ?> | ||||
|     #jem #adminForm { | ||||
|       width: <?php echo ($this->jemsettings->tablewidth); ?>; | ||||
|     } | ||||
|   <?php endif; ?> | ||||
|  | ||||
|   .jem-sort #jem_date, | ||||
|   #jem .jem-event .jem-event-date { | ||||
|     <?php if (!empty($this->jemsettings->datewidth)) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->datewidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_title, | ||||
|   #jem .jem-event .jem-event-title { | ||||
|     <?php if (($this->jemsettings->showtitle == 1) && (!empty($this->jemsettings->titlewidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->titlewidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_location, | ||||
|   #jem .jem-event .jem-event-venue { | ||||
|     <?php if (($this->jemsettings->showlocate == 1) && (!empty($this->jemsettings->locationwidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->locationwidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_city, | ||||
|   #jem .jem-event .jem-event-city { | ||||
|     <?php if (($this->jemsettings->showcity == 1) && (!empty($this->jemsettings->citywidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->citywidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_state, | ||||
|   #jem .jem-event .jem-event-state { | ||||
|     <?php if (($this->jemsettings->showstate == 1) && (!empty($this->jemsettings->statewidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->statewidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_category, | ||||
|   #jem .jem-event .jem-event-category { | ||||
|     <?php if (($this->jemsettings->showcat == 1) && (!empty($this->jemsettings->catfrowidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->catfrowidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
|  | ||||
|   .jem-sort #jem_atte, | ||||
|   #jem .jem-event .jem-event-attendees { | ||||
|     <?php if (($this->jemsettings->showatte == 1) && (!empty($this->jemsettings->attewidth))) : ?> | ||||
|       flex: 1 <?php echo ($this->jemsettings->attewidth); ?>; | ||||
|     <?php else : ?> | ||||
|       flex: 1; | ||||
|     <?php endif; ?> | ||||
|   } | ||||
| </style> | ||||
|  | ||||
| <?php | ||||
| function jem_common_show_filter(&$obj) { | ||||
|   if ($obj->settings->get('global_show_filter',1) && !JemHelper::jemStringContains($obj->params->get('pageclass_sfx'), 'jem-hidefilter')) { | ||||
|     return true; | ||||
|   } | ||||
|   if (JemHelper::jemStringContains($obj->params->get('pageclass_sfx'), 'jem-showfilter')) { | ||||
|     return true; | ||||
|   } | ||||
|   return false; | ||||
| } | ||||
| ?> | ||||
| <?php if (jem_common_show_filter($this) && !JemHelper::jemStringContains($this->params->get('pageclass_sfx'), 'jem-filterbelow')): ?> | ||||
|   <div id="jem_filter" class="floattext jem-form jem-row jem-justify-start"> | ||||
|     <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|     <?php echo $this->lists['filter']; ?> | ||||
|      <input type="text" name="filter_search" id="filter_search" class="inputbox form-control" value="<?php echo $this->lists['search'];?>" onchange="document.adminForm.submit();" /> | ||||
|     </div> | ||||
|         <div> | ||||
|             <label for="filter_month"><?php echo Text::_('COM_JEM_SEARCH_MONTH'); ?></label> | ||||
|         </div> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|             <input type="month" name="filter_month" id="filter_month" pattern="[0-9]{4}-[0-9]{2}" title="<?php echo Text::_('COM_JEM_SEARCH_YYYY-MM_FORMAT'); ?>" required class="inputbox form-control" placeholder="<?php echo Text::_('COM_JEM_SEARCH_YYYY-MM'); ?>" size="7" value="<?php echo $this->lists['month'] ?? '';?>"> | ||||
|         </div> | ||||
|     <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|       <button class="btn btn-primary" type="submit"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button> | ||||
|       <button class="btn btn-secondary" type="button" onclick="document.getElementById('filter_search').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button> | ||||
|     </div> | ||||
|   <?php if ($this->settings->get('global_display',1)) : ?> | ||||
|     <div class="jem-limit-smallist"> | ||||
|       <?php | ||||
|         echo '<label for="limit" class="jem-limit-text">'.Text::_('COM_JEM_DISPLAY_NUM').'</label> '; | ||||
|         //echo '<span class="jem-limit-text">'.Text::_('COM_JEM_DISPLAY_NUM').'</span> '; | ||||
|         echo $this->pagination->getLimitBox(); | ||||
|       ?> | ||||
|     </div> | ||||
|   <?php endif; ?>	 | ||||
|   </div> | ||||
| <?php endif; ?> | ||||
|  | ||||
|   <div class="jem-sort jem-sort-small"> | ||||
|     <div class="jem-list-row jem-small-list"> | ||||
|       <div id="jem_date" class="sectiontableheader"><i class="far fa-clock" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_DATE', 'a.dates', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php if ($this->jemsettings->showtitle == 1) : ?>               | ||||
|         <div id="jem_title" class="sectiontableheader"><i class="fa fa-comment" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_TITLE', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?>  | ||||
|       <?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
|         <div id="jem_location" class="sectiontableheader"><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_LOCATION', 'l.venue', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <?php if ($this->jemsettings->showcity == 1) : ?> | ||||
|         <div id="jem_city" class="sectiontableheader"><i class="fa fa-building" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CITY', 'l.city', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <?php if ($this->jemsettings->showstate == 1) : ?> | ||||
|         <div id="jem_state" class="sectiontableheader"><i class="fa fa-map" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_STATE', 'l.state', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?> | ||||
|       <?php if ($this->jemsettings->showcat == 1) : ?> | ||||
|         <div id="jem_category" class="sectiontableheader"><i class="fa fa-tag" aria-hidden="true"></i> <?php echo HTMLHelper::_('grid.sort', 'COM_JEM_TABLE_CATEGORY', 'c.catname', $this->lists['order_Dir'], $this->lists['order']); ?></div> | ||||
|       <?php endif; ?>  | ||||
|       <?php if ($this->jemsettings->showatte == 1) : ?> | ||||
| 				<div id="jem_atte" class="sectiontableheader"><i class="fa fa-user" aria-hidden="true"></i> <?php echo Text::_('COM_JEM_TABLE_ATTENDEES'); ?></div> | ||||
|       <?php endif; ?> | ||||
|     </div>     | ||||
|   </div> | ||||
|  | ||||
| <ul class="eventlist"> | ||||
|   <?php if ($this->noevents == 1) : ?> | ||||
|     <li class="jem-event"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></li> | ||||
|   <?php else : ?> | ||||
|       <?php | ||||
|       // Safari has problems with the "onclick" element in the <li>. It covers the links to location and category etc. | ||||
|       // This detects the browser and just writes the onclick attribute if the broswer is not Safari. | ||||
|       $isSafari = false; | ||||
|       if (strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') && !strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome')) { | ||||
|         $isSafari = true; | ||||
|       } | ||||
|       ?> | ||||
|         <?php | ||||
|         $this->rows = $this->getRows(); | ||||
|         $showMonthRow = false; | ||||
|         $previousYearMonth = ''; | ||||
|         $paramShowMonthRow = $this->params->get('showmonthrow', ''); | ||||
|         ?> | ||||
|  | ||||
|         <?php foreach ($this->rows as $row) : ?> | ||||
|             <?php | ||||
|             if ($paramShowMonthRow && $row->dates) { | ||||
|                 //get event date | ||||
|                 $year = date('Y', strtotime($row->dates)); | ||||
|                 $month = date('F', strtotime($row->dates)); | ||||
|                 $YearMonth = Text::_('COM_JEM_'.strtoupper ($month)) . ' ' . $year; | ||||
|  | ||||
|                 if (!$previousYearMonth || $previousYearMonth != $YearMonth) { | ||||
|                     $showMonthRow = $YearMonth; | ||||
|                 } | ||||
|  | ||||
|                 //Publish month row | ||||
|                 if ($showMonthRow) { ?> | ||||
|                     <li class="jem-event jem-row jem-justify-center bg-body-secondary" itemscope="itemscope"><span class="row-month"><?php echo $showMonthRow;?></span></li> | ||||
|                 <?php } | ||||
|             } ?> | ||||
|         <?php if (!empty($row->featured)) :   ?> | ||||
|           <li class="jem-event jem-list-row jem-small-list jem-featured <?php echo $this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); if (!empty($row->locid)) {  echo ' venue_id' . $this->escape($row->locid); } ?>" itemscope="itemscope" itemtype="https://schema.org/Event" <?php if ($this->jemsettings->showdetails == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.Route::_(JemHelperRoute::getEventRoute($row->slug)).'\'"';; endif; ?> >				<?php else : ?> | ||||
|           <li class="jem-event jem-list-row jem-small-list jem-odd<?php echo ($row->odd +1) . $this->params->get('pageclass_sfx') . ' event_id' . $this->escape($row->id); if (!empty($row->locid)) {  echo ' venue_id' . $this->escape($row->locid); } ?>" itemscope="itemscope" itemtype="https://schema.org/Event" <?php if ($this->jemsettings->showdetails == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.Route::_(JemHelperRoute::getEventRoute($row->slug)).'\'"';; endif; ?> >				<?php endif; ?>               | ||||
|               <div class="jem-event-info-small jem-event-date" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags(JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime)); ?>"> | ||||
|                 <i class="far fa-clock" aria-hidden="true"></i> | ||||
|                 <?php | ||||
|                   echo JemOutput::formatShortDateTime($row->dates, $row->times, | ||||
|                     $row->enddates, $row->endtimes, $this->jemsettings->showtime); | ||||
|                   echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, | ||||
|                     $row->enddates, $row->endtimes); | ||||
|                 ?> | ||||
|                  <?php if ($this->jemsettings->showtitle == 0) : ?> | ||||
|                   <?php echo JemOutput::recurrenceicon($row); ?> | ||||
|                   <?php echo JemOutput::publishstateicon($row); ?> | ||||
|                   <?php if (!empty($row->featured)) :?> | ||||
|                     <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|                   <?php endif; ?> | ||||
|                  <?php endif; ?> | ||||
|               </div> | ||||
|                | ||||
|               <?php if ($this->jemsettings->showtitle == 1) : ?> | ||||
|                 <div class="jem-event-info-small jem-event-title">  | ||||
| 				<h4	title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$this->escape($row->title); ?>"> | ||||
|  | ||||
|  | ||||
|                   <a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>"><?php echo $this->escape($row->title); ?></a> | ||||
|                   <?php echo JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?> | ||||
|                   <?php if (!empty($row->featured)) :?> | ||||
|                     <i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i> | ||||
|                   <?php endif; ?> | ||||
| 				  </h4> | ||||
|                 </div> | ||||
|               <?php else : ?> | ||||
|               <?php endif; ?> | ||||
|                | ||||
|               <?php if ($this->jemsettings->showlocate == 1) : ?> | ||||
|                 <?php if (!empty($row->locid)) : ?> | ||||
|                   <div class="jem-event-info-small jem-event-venue" title="<?php echo Text::_('COM_JEM_TABLE_LOCATION').': '.$this->escape($row->venue); ?>"> | ||||
|                     <i class="fa fa-map-marker" aria-hidden="true"></i> | ||||
|                     <?php if ($this->jemsettings->showlinkvenue == 1) : ?> | ||||
|                       <?php echo "<a href='".Route::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; ?> | ||||
|                     <?php else : ?> | ||||
|                       <?php echo $this->escape($row->venue); ?> | ||||
|                     <?php endif; ?>                   | ||||
|                   </div> | ||||
|                 <?php else : ?> | ||||
|                   <div class="jem-event-info-small jem-event-venue"> | ||||
|                     <i class="fa fa-map-marker" aria-hidden="true"></i> - | ||||
|                   </div> | ||||
|                 <?php endif; ?>                 | ||||
|               <?php endif; ?> | ||||
|  | ||||
|               <?php if ($this->jemsettings->showcity == 1) : ?> | ||||
|                 <?php if (!empty($row->city)) : ?> | ||||
|                   <div class="jem-event-info-small jem-event-city" title="<?php echo Text::_('COM_JEM_TABLE_CITY').': '.$this->escape($row->city); ?>"> | ||||
|                     <i class="fa fa-building" aria-hidden="true"></i> | ||||
|                     <?php echo $this->escape($row->city); ?> | ||||
|                   </div> | ||||
|                 <?php else : ?> | ||||
|                   <div class="jem-event-info-small jem-event-city"><i class="fa fa-building" aria-hidden="true"></i> -</div> | ||||
|                 <?php endif; ?> | ||||
|               <?php endif; ?> | ||||
|                | ||||
|               <?php if ($this->jemsettings->showstate == 1) : ?> | ||||
|                 <?php if (!empty($row->state)) : ?> | ||||
|                   <div class="jem-event-info-small jem-event-state" title="<?php echo Text::_('COM_JEM_TABLE_STATE').': '.$this->escape($row->state); ?>"> | ||||
|                     <i class="fa fa-map" aria-hidden="true"></i> | ||||
|                     <?php echo $this->escape($row->state); ?> | ||||
|                   </div> | ||||
|                 <?php else : ?> | ||||
|                   <div class="jem-event-info-small jem-event-state"><i class="fa fa-map" aria-hidden="true"></i> -</div> | ||||
|                 <?php endif; ?> | ||||
|               <?php endif; ?> | ||||
|                | ||||
|               <?php if ($this->jemsettings->showcat == 1) : ?> | ||||
|                 <div class="jem-event-info-small jem-event-category" title="<?php echo strip_tags(Text::_('COM_JEM_TABLE_CATEGORY').': '.implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist))); ?>"> | ||||
|                   <i class="fa fa-tag" aria-hidden="true"></i> | ||||
|                   <?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?> | ||||
|                 </div> | ||||
|               <?php endif; ?> | ||||
|                | ||||
|               <?php if ($this->jemsettings->showatte == 1) : ?> | ||||
|                 <?php if (!empty($row->regCount)) : ?> | ||||
|                   <div class="jem-event-info-small jem-event-attendees" title="<?php echo Text::_('COM_JEM_TABLE_ATTENDEES').': '.$this->escape($row->regCount); ?>"> | ||||
|                     <i class="fa fa-user" aria-hidden="true"></i> | ||||
|                     <?php echo $this->escape($row->regCount), " / ", $this->escape($row->maxplaces); ?> | ||||
|                   </div> | ||||
|                 <?php else : ?> | ||||
|                   <div class="jem-event-info-small jem-event-attendees"> | ||||
| 				  <i class="fa fa-user" aria-hidden="true"></i> | ||||
| 				  <?php echo " - / ", $this->escape ($row->maxplaces); ?> | ||||
| 				  </div> | ||||
|                 <?php endif; ?> | ||||
|               <?php endif; ?>  | ||||
|             <?php | ||||
|             if ($paramShowMonthRow) { | ||||
|                 $previousYearMonth = $YearMonth ?? ''; | ||||
|                 $showMonthRow = false; | ||||
|             } | ||||
|             ?> | ||||
|  | ||||
|               <meta itemprop="name" content="<?php echo $this->escape($row->title); ?>" /> | ||||
|               <meta itemprop="url" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" /> | ||||
|               <meta itemprop="identifier" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" /> | ||||
|               <div itemtype="https://schema.org/Place" itemscope itemprop="location" style="display: none;" > | ||||
|                 <?php if (!empty($row->locid)) : ?> | ||||
|                   <meta itemprop="name" content="<?php echo $this->escape($row->venue); ?>" /> | ||||
|                 <?php else : ?> | ||||
|                   <meta itemprop="name" content="None" /> | ||||
|                 <?php endif; ?> | ||||
|                 <?php | ||||
|                 $microadress = ''; | ||||
|                 if (!empty($row->city)) { | ||||
|                   $microadress .= $this->escape($row->city); | ||||
|                 } | ||||
|                 if (!empty($microadress)) { | ||||
|                   $microadress .= ', '; | ||||
|                 }                 | ||||
|                 if (!empty($row->state)) { | ||||
|                   $microadress .= $this->escape($row->state); | ||||
|                 } | ||||
|                 if (empty($microadress)) { | ||||
|                   $microadress .= '-'; | ||||
|                 } | ||||
|                 ?> | ||||
|                 <meta itemprop="address" content="<?php echo $microadress; ?>" /> | ||||
|               </div>                | ||||
|         </li> | ||||
| 			<?php endforeach; ?> | ||||
|   <?php endif; ?> | ||||
| </ul> | ||||
|  | ||||
| <div class="jem-row valign-baseline"> | ||||
|   <div style="margin:0; padding: 0;"> | ||||
|     <?php if (jem_common_show_filter($this) && JemHelper::jemStringContains($this->params->get('pageclass_sfx'), 'jem-filterbelow')): ?> | ||||
|       <div id="jem_filter" class="floattext jem-form jem-row jem-justify-start"> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|           <?php echo $this->lists['filter']; ?> | ||||
|           <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->lists['search'];?>" class="inputbox" onchange="document.adminForm.submit();" /> | ||||
|         </div> | ||||
|         <div class="jem-row jem-justify-start jem-nowrap"> | ||||
|           <button class="buttonfilter btn" type="submit"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button> | ||||
|           <button class="buttonfilter btn" type="button" onclick="document.getElementById('filter_search').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button> | ||||
|         </div> | ||||
|       </div> | ||||
|     <?php endif; ?> | ||||
|   </div> | ||||
|  | ||||
|  | ||||
| </div> | ||||
		Reference in New Issue
	
	Block a user