Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @version $Id: latest_item.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
- * @package K2
- * @author JoomlaWorks http://www.joomlaworks.net
- * @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
- * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
- */
- // no direct access
- defined('_JEXEC') or die;
- ?>
- <!-- Start K2 Item Layout -->
- <div class="latestItemView">
- <!-- Plugins: BeforeDisplay -->
- <?php echo $this->item->event->BeforeDisplay; ?>
- <!-- K2 Plugins: K2BeforeDisplay -->
- <?php echo $this->item->event->K2BeforeDisplay; ?>
- <div class="latestItemHeader">
- <?php if ($this->item->params->get('latestItemTitle')): ?>
- <!-- Item title -->
- <h2 class="latestItemTitle">
- <?php if ($this->item->params->get('latestItemTitleLinked')): ?>
- <a href="<?php echo $this->item->link; ?>">
- <?php echo $this->item->title; ?>
- </a>
- <?php else: ?>
- <?php echo $this->item->title; ?>
- <?php endif; ?>
- </h2>
- <?php endif; ?>
- </div>
- <?php if ($this->item->params->get('latestItemCategory') || $this->item->params->get('latestItemDateCreated')): ?>
- <dl class="article-info">
- <dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
- <?php endif; ?>
- <?php if ($this->item->params->get('latestItemCategory')): ?>
- <!-- Item category name -->
- <dd class="category-name">
- <?php echo JText::_('K2_PUBLISHED_IN'); ?> <a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a>
- </dd>
- <?php endif; ?>
- <?php if ($this->item->params->get('latestItemDateCreated')): ?>
- <!-- Date created -->
- <dd class="blog-published">
- <span class="rt-date-day rt-date-ribbon"><?php echo JHTML::_('date', $this->item->created, JText::_('d')) ?></span>
- <span class="rt-date-month rt-date-ribbon"><?php echo JHTML::_('date', $this->item->created, JText::_('M')) ?></span>
- </dd>
- <?php /* <span class="latestItemDateCreated">
- <?php echo JHTML::_('date', $this->item->created, JText::_('K2_DATE_FORMAT_LC2')); ?>
- </span> */ ?>
- <?php endif; ?>
- <?php if ($this->item->params->get('latestItemCategory') || $this->item->params->get('latestItemDateCreated')): ?>
- </dl>
- <?php endif; ?>
- <!-- Plugins: AfterDisplayTitle -->
- <?php echo $this->item->event->AfterDisplayTitle; ?>
- <!-- K2 Plugins: K2AfterDisplayTitle -->
- <?php echo $this->item->event->K2AfterDisplayTitle; ?>
- <!-- Plugins: BeforeDisplayContent -->
- <?php echo $this->item->event->BeforeDisplayContent; ?>
- <!-- K2 Plugins: K2BeforeDisplayContent -->
- <?php echo $this->item->event->K2BeforeDisplayContent; ?>
- <?php if ($this->item->params->get('latestItemImage') && !empty($this->item->image)): ?>
- <!-- Item Image -->
- <div>
- <a href="<?php echo $this->item->link; ?>" title="<?php if (!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
- <img src="<?php echo $this->item->image; ?>" alt="<?php if (!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="float: left;width:<?php echo $this->item->imageWidth; ?>px;height:auto;margin-right:16px;" />
- </a> </div>
- <?php if ($this->item->params->get('latestItemIntroText')): ?>
- <!-- Item introtext -->
- <div> <?php echo $this->item->introtext; ?>
- <?php endif; ?>
- <div class="clr"></div>
- </div>
- <?php endif; ?>
- <?php if ($this->item->params->get('latestItemTags') && count($this->item->tags)): ?>
- <!-- Item tags -->
- <div class="smallmarginbottom submedmargintop rt-relative">
- <div class="rt-floatright rt-teaser">
- <?php foreach ($this->item->tags as $tag): ?>
- <a class="button rt-btn-condensed" href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a>
- <?php endforeach; ?>
- </div>
- </div>
- <?php endif; ?>
- <div class="clr"></div>
- <div class="clr"></div>
- <!-- Plugins: AfterDisplayContent -->
- <?php echo $this->item->event->AfterDisplayContent; ?>
- <!-- K2 Plugins: K2AfterDisplayContent -->
- <?php echo $this->item->event->K2AfterDisplayContent; ?>
- <div class="clr"></div>
- <?php if ($this->params->get('latestItemVideo') && !empty($this->item->video)): ?>
- <!-- Item video -->
- <div class="latestItemVideoBlock">
- <h3><?php echo JText::_('K2_RELATED_VIDEO'); ?></h3>
- <span class="latestItemVideo<?php if ($this->item->videoType == 'embedded'): ?> embedded<?php endif; ?>"><?php echo $this->item->video; ?></span>
- </div>
- <?php endif; ?>
- <?php if ($this->item->params->get('latestItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1'))): ?>
- <!-- Anchor link to comments below -->
- <div class="latestItemCommentsLink">
- <?php if (!empty($this->item->event->K2CommentsCounter)): ?>
- <!-- K2 Plugins: K2CommentsCounter -->
- <?php echo $this->item->event->K2CommentsCounter; ?>
- <?php else: ?>
- <?php if ($this->item->numOfComments > 0): ?>
- <a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
- <?php echo $this->item->numOfComments; ?> <?php echo ($this->item->numOfComments > 1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
- </a>
- <?php else: ?>
- <a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
- <?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?>
- </a>
- <?php endif; ?>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <?php if ($this->item->params->get('latestItemReadMore')): ?>
- <!-- Item "read more..." link -->
- <div class="latestItemReadMore">
- <a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
- <?php echo JText::_('K2_READ_MORE'); ?>
- </a>
- </div>
- <?php endif; ?>
- <div class="clr"></div>
- <!-- Plugins: AfterDisplay -->
- <?php echo $this->item->event->AfterDisplay; ?>
- <!-- K2 Plugins: K2AfterDisplay -->
- <?php echo $this->item->event->K2AfterDisplay; ?>
- <div class="clr"></div>
- <div class="item-separator"></div>
- </div>
- <!-- End K2 Item Layout -->
Advertisement
Add Comment
Please, Sign In to add comment