Skip to content

Instantly share code, notes, and snippets.

@drmenzelit
Last active September 25, 2015 06:56
Show Gist options
  • Save drmenzelit/b055bcb4d35af046a4a5 to your computer and use it in GitHub Desktop.
Save drmenzelit/b055bcb4d35af046a4a5 to your computer and use it in GitHub Desktop.
Event calendar
<?php
/**
* @package Joomla.Site
* @subpackage mod_articles_latest
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<dl class="latestnews<?php echo $moduleclass_sfx; ?>" itemscope itemtype="http://schema.org/Event">
<?php foreach ($list as $item) : ?>
<dt itemprop="Date">
<span class="fa fa-calendar">&nbsp;</span><?php echo JHtml::_('date', $item->created, "d.m.Y"); ?>
</dt>
<dd>
<a href="<?php echo $item->link; ?>" itemprop="url">
<span itemprop="name">
<?php echo $item->title; ?>
</span>
</a>
</dd>
<?php endforeach; ?>
</dl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment