Guest User

Untitled

a guest
Aug 19th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 25.83 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @version     $Id: item.php 558 2010-09-22 11:25:17Z lefteris.kavadas $
  4.  * @package     K2
  5.  * @author      JoomlaWorks http://www.joomlaworks.gr
  6.  * @copyright   Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
  7.  * @license     GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
  8.  */
  9.  
  10. // no direct access
  11. defined('_JEXEC') or die('Restricted access');
  12.  
  13. ?>
  14. <style type="text/css">
  15.  
  16. div#k2wrapper.rt-grid-8 {
  17.  
  18. margin:0;
  19. margin-right:13px;
  20. }
  21.  
  22.  
  23.  
  24.  
  25. </style>
  26.  
  27.  
  28. <div id="k2wrapper" class="rt-grid-8">
  29. <!-- Start K2 Item Layout -->
  30. <span id="startOfPageId<?php echo JRequest::getInt('id'); ?>"></span>
  31. <?php if($this->item->params->get('itemTitle')): ?>
  32.       <!-- Item title -->
  33.       <h2 class="itemTitle">
  34.         <?php echo $this->item->title; ?>
  35.  
  36.         <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
  37.         <!-- Featured flag -->
  38.         <span>
  39.             <sup>
  40.                 <?php echo JText::_('Featured'); ?>
  41.             </sup>
  42.         </span>
  43.         <?php endif; ?>
  44.  
  45.       </h2>
  46.       <?php endif; ?>
  47.      
  48.      
  49.         <!-- K2 Plugins: K2AfterDisplayTitle -->
  50.   <?php echo $this->item->event->K2AfterDisplayTitle; ?>
  51.   <?php echo $this->item->event->AfterDisplayTitle; ?>
  52.  
  53.     <?php if(
  54.         $this->item->params->get('itemFontResizer') ||
  55.         $this->item->params->get('itemPrintButton') ||
  56.         $this->item->params->get('itemEmailButton') ||
  57.         $this->item->params->get('itemSocialButton') ||
  58.         $this->item->params->get('itemVideoAnchor') ||
  59.         $this->item->params->get('itemImageGalleryAnchor') ||
  60.         $this->item->params->get('itemCommentsAnchor')
  61.     ): ?>
  62.   <div class="itemToolbar">
  63.         <ul>
  64.             <?php if($this->item->params->get('itemFontResizer')): ?>
  65.             <!-- Font Resizer -->
  66.             <li>
  67.                 <a href="#" id="fontDecrease">
  68.                     <span>-</span>
  69.                 </a>
  70.                 <a href="#" id="fontIncrease">
  71.                     <span>+</span>
  72.                 </a>
  73.             </li>
  74.             <?php endif; ?>
  75.  
  76.             <?php if($this->item->params->get('itemPrintButton')): ?>
  77.             <!-- Print Button -->
  78.             <li>
  79.                 <?php if(JRequest::getCmd('print')==1): ?>
  80.                 <a class="itemPrintLink" href="<?php echo $this->item->printLink; ?>" onclick="window.print();return false;">
  81.                     <span><?php echo JText::_('Print'); ?></span>
  82.                 </a>
  83.                 <?php else: ?>
  84.                 <a class="modal itemPrintLink" href="<?php echo $this->item->printLink; ?>" rel="{handler:'iframe',size:{x:900,y:500}}">
  85.                     <span><?php echo JText::_('Print'); ?></span>
  86.                 </a>
  87.                 <?php endif; ?>
  88.             </li>
  89.             <?php endif; ?>
  90.  
  91.             <?php if($this->item->params->get('itemEmailButton') && (!JRequest::getInt('print')) ): ?>
  92.             <!-- Email Button -->
  93.             <li>
  94.                 <a class="itemEmailLink" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" href="<?php echo $this->item->emailLink; ?>">
  95.                     <span><?php echo JText::_('E-mail'); ?></span>
  96.                 </a>
  97.             </li>
  98.             <?php endif; ?>
  99.  
  100.             <?php if($this->item->params->get('itemSocialButton') && !is_null($this->item->params->get('socialButtonCode', NULL))): ?>
  101.             <!-- Item Social Button -->
  102.             <li>
  103.                 <?php echo $this->item->params->get('socialButtonCode'); ?>
  104.             </li>
  105.             <?php endif; ?>
  106.  
  107.             <?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
  108.             <!-- Anchor link to item video below - if it exists -->
  109.             <li>
  110.                 <a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('Video'); ?></a>
  111.             </li>
  112.             <?php endif; ?>
  113.  
  114.             <?php if($this->item->params->get('itemImageGalleryAnchor') && !empty($this->item->gallery)): ?>
  115.             <!-- Anchor link to item image gallery below - if it exists -->
  116.             <li>
  117.                 <a class="itemImageGalleryLink k2Anchor" href="<?php echo $this->item->link; ?>#itemImageGalleryAnchor"><?php echo JText::_('Image Gallery'); ?></a>
  118.             </li>
  119.             <?php endif; ?>
  120.  
  121.             <?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
  122.             <!-- Anchor link to comments below - if enabled -->
  123.             <li>
  124.                 <?php if(!empty($this->item->event->K2CommentsCounter)):?>
  125.                     <!-- K2 Plugins: K2CommentsCounter -->
  126.                     <?php echo $this->item->event->K2CommentsCounter; ?>
  127.                 <?php else:?>
  128.                     <?php if($this->item->numOfComments > 0): ?>
  129.                     <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
  130.                         <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('comments') : JText::_('comment'); ?>
  131.                     </a>
  132.                     <?php else: ?>
  133.                     <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
  134.                         <?php echo JText::_('Be the first to comment!'); ?>
  135.                     </a>
  136.                     <?php endif; ?>
  137.                 <?php endif; ?>
  138.             </li>
  139.             <?php endif; ?>
  140.         </ul>
  141.         <div class="clr"></div>
  142.   </div>
  143.     <?php endif; ?>
  144.  
  145.     <?php if($this->item->params->get('itemRating')): ?>
  146.     <!-- Item Rating -->
  147.     <div class="itemRatingBlock">
  148.         <span><?php echo JText::_('Rate this item'); ?></span>
  149.         <div class="itemRatingForm">
  150.             <ul class="itemRatingList">
  151.                 <li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
  152.                 <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('1 star out of 5'); ?>" class="one-star">1</a></li>
  153.                 <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('2 stars out of 5'); ?>" class="two-stars">2</a></li>
  154.                 <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('3 stars out of 5'); ?>" class="three-stars">3</a></li>
  155.                 <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('4 stars out of 5'); ?>" class="four-stars">4</a></li>
  156.                 <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('5 stars out of 5'); ?>" class="five-stars">5</a></li>
  157.             </ul>
  158.             <div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
  159.             <div class="clr"></div>
  160.         </div>
  161.         <div class="clr"></div>
  162.     </div>
  163.     <?php endif; ?>
  164.      
  165.      
  166. <div id="k2Container" class="itemView<?php echo ($this->item->featured) ? ' itemIsFeatured' : ''; ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">
  167.  
  168.     <!-- Plugins: BeforeDisplay -->
  169.     <?php echo $this->item->event->BeforeDisplay; ?>
  170.  
  171.     <!-- K2 Plugins: K2BeforeDisplay -->
  172.     <?php echo $this->item->event->K2BeforeDisplay; ?>
  173.  
  174.     <?php if(isset($this->item->editLink)): ?>
  175.     <!-- Item edit link -->
  176.     <span class="itemEditLink">
  177.         <a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}" href="<?php echo $this->item->editLink; ?>">
  178.             <?php echo JText::_('Edit item'); ?>
  179.         </a>
  180.     </span>
  181.     <?php endif; ?>
  182.  
  183.     <div class="itemHeader">
  184.  
  185.         <?php if($this->item->params->get('itemDateCreated')): ?>
  186.         <!-- Date created -->
  187.         <span class="itemDateCreated">
  188.             <?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?>
  189.         </span>
  190.         <?php endif; ?>
  191.        
  192.         <!-- old Postion of H2 --> 
  193.  
  194.         <?php if($this->item->params->get('itemAuthor')): ?>
  195.         <!-- Item Author -->
  196.         <span class="itemAuthor">
  197.             <?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>&nbsp;
  198.             <?php if(empty($this->item->created_by_alias)): ?>
  199.             <a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
  200.             <?php else: ?>
  201.             <?php echo $this->item->author->name; ?>
  202.             <?php endif; ?>
  203.         </span>
  204.         <?php endif; ?>
  205.  
  206.   </div>
  207.  
  208.  
  209.   <div class="itemBody">
  210.  
  211.       <!-- Plugins: BeforeDisplayContent -->
  212.       <?php echo $this->item->event->BeforeDisplayContent; ?>
  213.  
  214.       <!-- K2 Plugins: K2BeforeDisplayContent -->
  215.       <?php echo $this->item->event->K2BeforeDisplayContent; ?>
  216.  
  217.       <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
  218.       <!-- Item Image -->
  219.       <div class="itemImageBlock">
  220.           <span class="itemImage">
  221.             <a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">
  222.                 <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
  223.             </a>
  224.           </span>
  225.  
  226.           <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
  227.           <!-- Image caption -->
  228.           <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
  229.           <?php endif; ?>
  230.  
  231.           <?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
  232.           <!-- Image credits -->
  233.           <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
  234.           <?php endif; ?>
  235.  
  236.           <div class="clr"></div>
  237.       </div>
  238.       <?php endif; ?>
  239.  
  240.       <?php if(!empty($this->item->fulltext)): ?>
  241.  
  242.       <?php if($this->item->params->get('itemIntroText')): ?>
  243.       <!-- Item introtext -->
  244.       <div class="itemIntroText">
  245.         <?php echo $this->item->introtext; ?>
  246.       </div>
  247.       <?php endif; ?>
  248.  
  249.       <?php if($this->item->params->get('itemFullText')): ?>
  250.       <!-- Item fulltext -->
  251.       <div class="itemFullText">
  252.         <?php echo $this->item->fulltext; ?>
  253.       </div>
  254.       <?php endif; ?>
  255.  
  256.       <?php else: ?>
  257.  
  258.       <!-- Item text -->
  259.       <div class="itemFullText">
  260.         <?php echo $this->item->introtext; ?>
  261.       </div>
  262.  
  263.       <?php endif; ?>
  264.  
  265.         <div class="clr"></div>
  266.  
  267.  
  268.         <?php if($this->item->params->get('itemDateModified') && intval($this->item->modified)!=0):?>
  269.         <!-- Item date modified -->
  270.         <?php if($this->item->created != $this->item->modified): ?>
  271.         <span class="itemDateModified">
  272.             <?php echo JText::_('Last modified on'); ?> <?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?>
  273.         </span>
  274.         <?php endif; ?>
  275.         <?php endif; ?>
  276.  
  277.       <!-- Plugins: AfterDisplayContent -->
  278.       <?php echo $this->item->event->AfterDisplayContent; ?>
  279.  
  280.       <!-- K2 Plugins: K2AfterDisplayContent -->
  281.       <?php echo $this->item->event->K2AfterDisplayContent; ?>
  282.  
  283.       <div class="clr"></div>
  284.   </div>
  285.  
  286.   <?php if($this->item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?>
  287.   <!-- Item navigation -->
  288.   <div class="itemNavigation">
  289.     <span class="itemNavigationTitle"><?php echo JText::_('More in this category:'); ?></span>
  290.  
  291.         <?php if(isset($this->item->previousLink)): ?>
  292.         <a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
  293.             &laquo; <?php echo $this->item->previousTitle; ?>
  294.         </a>
  295.         <?php endif; ?>
  296.  
  297.         <?php if(isset($this->item->nextLink)): ?>
  298.         <a class="itemNext" href="<?php echo $this->item->nextLink; ?>">
  299.             <?php echo $this->item->nextTitle; ?> &raquo;
  300.         </a>
  301.         <?php endif; ?>
  302.  
  303.   </div>
  304.   <?php endif; ?>
  305.   <!-- Plugins: AfterDisplay -->
  306.   <?php echo $this->item->event->AfterDisplay; ?>
  307.  
  308.   <!-- K2 Plugins: K2AfterDisplay -->
  309.   <?php echo $this->item->event->K2AfterDisplay; ?>
  310.  
  311.   <?php if($this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1'))):?>
  312.   <!-- K2 Plugins: K2CommentsBlock -->
  313.   <?php echo $this->item->event->K2CommentsBlock; ?>
  314.   <?php endif;?>
  315.  
  316.  <?php if($this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)):?>
  317.   <!-- Item comments -->
  318.   <a name="itemCommentsAnchor" id="itemCommentsAnchor"></a>
  319.  
  320.   <div class="itemComments">
  321.  
  322.       <?php if($this->item->params->get('commentsFormPosition')=='above' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
  323.       <!-- Item comments form -->
  324.       <div class="itemCommentsForm">
  325.         <?php echo $this->loadTemplate('comments_form'); ?>
  326.       </div>
  327.       <?php endif; ?>
  328.  
  329.       <?php if($this->item->numOfComments>0 && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2'))): ?>
  330.       <!-- Item user comments -->
  331.       <h3 class="itemCommentsCounter">
  332.         <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('comments') : JText::_('comment'); ?>
  333.       </h3>
  334.  
  335.       <ul class="itemCommentsList">
  336.         <?php foreach ($this->item->comments as $key=>$comment): ?>
  337.         <li class="<?php echo ($key%2) ? "odd" : "even"; echo (!$this->item->created_by_alias && $comment->userID==$this->item->created_by) ? " authorResponse" : ""; ?>">
  338.  
  339.             <span class="commentLink">
  340.                 <a href="<?php echo $this->item->link; ?>#comment<?php echo $comment->id; ?>" name="comment<?php echo $comment->id; ?>" id="comment<?php echo $comment->id; ?>">
  341.                     <?php echo JText::_('Comment Link'); ?>
  342.                 </a>
  343.             </span>
  344.  
  345.                 <?php if($comment->userImage):?>
  346.                 <img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" width="<?php echo $this->item->params->get('commenterImgWidth'); ?>" />
  347.                 <?php endif; ?>
  348.  
  349.                 <span class="commentDate">
  350.                 <?php echo JHTML::_('date', $comment->commentDate, JText::_('DATE_FORMAT_LC2')); ?>
  351.             </span>
  352.  
  353.             <span class="commentAuthorName">
  354.                 <?php echo JText::_("posted by"); ?>
  355.                 <?php if(!empty($comment->userLink)): ?>
  356.                 <a href="<?php echo JFilterOutput::cleanText($comment->userLink); ?>" title="<?php echo JFilterOutput::cleanText($comment->userName); ?>" target="_blank" rel="nofollow">
  357.                     <?php echo $comment->userName; ?>
  358.                 </a>
  359.                 <?php else: ?>
  360.                 <?php echo $comment->userName; ?>
  361.                 <?php endif; ?>
  362.             </span>
  363.  
  364.             <p><?php echo $comment->commentText; ?></p>
  365.  
  366.                 <div class="clr"></div>
  367.         </li>
  368.         <?php endforeach; ?>
  369.       </ul>
  370.  
  371.       <div class="itemCommentsPagination">
  372.         <?php echo $this->pagination->getPagesLinks(); ?>
  373.         <div class="clr"></div>
  374.       </div>
  375.         <?php endif; ?>
  376.  
  377.         <?php if($this->item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
  378.       <!-- Item comments form -->
  379.       <div class="itemCommentsForm">
  380.         <?php echo $this->loadTemplate('comments_form'); ?>
  381.       </div>
  382.       <?php endif; ?>
  383.  
  384.       <?php $user = &JFactory::getUser(); if ($this->item->params->get('comments') == '2' && $user->guest):?>
  385.             <div><?php echo JText::_('Login to post comments');?></div>
  386.       <?php endif; ?>
  387.  
  388.   </div>
  389.   <?php endif; ?>
  390. </div>
  391. <!-- End K2 Container Layout -->
  392.     <div class="clr"></div>
  393.     <?php $a = true ?>
  394.       <?php if($this->item->params->get('itemImageGallery') AND !empty($this->item->gallery)): ?>
  395.       <?php $a = false ?>
  396.   <!-- Item image gallery -->
  397.   <a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor<?php echo $a ?>"></a>
  398.    <h2><?php echo JText::_('Image Gallery'); ?></h2>
  399.   <div class="itemImageGallery">
  400.       <?php echo $this->item->gallery; ?>
  401.   </div>
  402.   <?php endif; ?>
  403.  
  404. <div class="clr"></div>
  405. </div> <!-- END K2 Wrapper -->
  406.  
  407.  
  408.   <?php if(
  409.   $this->item->params->get('itemHits') ||
  410.   $this->item->params->get('itemTwitterLink') ||
  411.   $this->item->params->get('itemCategory') ||
  412.   $this->item->params->get('itemTags') ||
  413.   $this->item->params->get('itemShareLinks') ||
  414.   $this->item->params->get('itemAttachments')
  415.   ): ?>
  416.  
  417.  
  418.   <div id="itemLinksWrapper" class="rt-grid-4"><!-- START itemLinksWrapper -->
  419.     <h2>Anfahrt</h2>
  420.     {module 100}
  421.           <?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
  422.       <!-- Item extra fields -->
  423.       <div class="itemExtraFields">
  424.         <h3><?php echo JText::_('Additional Info'); ?></h3>
  425.         <ul>
  426.             <?php foreach ($this->item->extra_fields as $key=>$extraField):?>
  427.             <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
  428.                 <span class="itemExtraFieldsLabel"><?php echo $extraField->name; ?>:</span>
  429.                 <span class="itemExtraFieldsValue"><?php echo $extraField->value; ?></span>
  430.             </li>
  431.             <?php endforeach; ?>
  432.             </ul>
  433.         <div class="clr"></div>
  434.       </div>
  435.       <?php endif; ?>
  436.   <div class="itemLinks">
  437.  
  438.         <?php if($this->item->params->get('itemHits') || $this->item->params->get('itemTwitterLink')): ?>
  439.         <div class="itemHitsTwitter">
  440.             <?php if($this->item->params->get('itemHits')): ?>
  441.             <!-- Item Hits -->
  442.             <span class="itemHits">
  443.                 <?php echo JText::_('Read'); ?> <b><?php echo $this->item->hits; ?></b> <?php echo JText::_('times'); ?>
  444.             </span>
  445.             <?php endif; ?>
  446.  
  447.             <?php if($this->item->params->get('itemHits') && $this->item->params->get('itemTwitterLink') && $this->item->params->get('twitterUsername')): ?>
  448.             <span class="itemHitsTwitterSep">|</span>
  449.             <?php endif; ?>
  450.  
  451.             <?php if($this->item->params->get('itemTwitterLink') && $this->item->params->get('twitterUsername')): ?>
  452.             <!-- Twitter Link -->
  453.             <span class="itemTwitterLink">
  454.                 <a title="<?php echo JText::_('Like this? Tweet it to your followers!'); ?>" href="<?php echo $this->item->twitterURL; ?>" target="_blank">
  455.                     <?php echo JText::_('Like this? Tweet it to your followers!'); ?>
  456.                 </a>
  457.             </span>
  458.             <?php endif; ?>
  459.  
  460.             <div class="clr"></div>
  461.         </div>
  462.         <?php endif; ?>
  463.  
  464.         <?php if($this->item->params->get('itemCategory')): ?>
  465.         <!-- Item category name -->
  466.         <div class="itemCategory">
  467.             <span><?php echo JText::_('Published in'); ?></span>
  468.             <a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a>
  469.         </div>
  470.         <?php endif; ?>
  471.  
  472.       <?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?>
  473.       <!-- Item tags -->
  474.       <div class="itemTagsBlock">
  475.           <span><?php echo JText::_("Tagged under"); ?></span>
  476.           <ul class="itemTags">
  477.             <?php foreach ($this->item->tags as $tag): ?>
  478.             <li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li>
  479.             <?php endforeach; ?>
  480.           </ul>
  481.           <div class="clr"></div>
  482.       </div>
  483.      
  484.       <?php endif; ?>
  485.  
  486.         <?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>
  487.   <!-- Related items by tag -->
  488.     <div class="itemTagsBlock">
  489.         <span><?php echo JText::_("Related items (by tag)"); ?></span>
  490.         <ul class="itemTags">
  491.             <?php foreach($this->relatedItems as $key=>$item): ?>
  492.             <?php /* <li class="<?php echo ($key%2) ? "odd" : "even"; ?>"> */ ?>
  493.             <li>
  494.                 <a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
  495.             </li>
  496.             <?php endforeach; ?>
  497.         </ul>
  498.         <div class="clr"></div>
  499.     </div>
  500.     <?php endif; ?>
  501.  
  502.     <div class="clr"></div>
  503.      
  504.      
  505.       <?php if($this->item->params->get('itemShareLinks')): ?>
  506.       <!-- Item social links -->
  507.         <div class="itemSocialLinksBlock">
  508.             <span><?php echo JText::_("Social sharing"); ?></span>
  509.             <ul class="itemSocialLinks">
  510.                 <li><a class="googlebuzz" title="<?php echo JText::_("Add to Google Buzz"); ?>" href="http://www.google.com/buzz/post?url=<?php echo $this->item->socialLink; ?>&amp;message=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Google Buzz"); ?></span></a></li>
  511.                 <li><a class="facebook" title="<?php echo JText::_("Add to Facebook"); ?>" href="http://www.facebook.com/sharer.php?u=<?php echo $this->item->socialLink; ?>&amp;t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Facebook"); ?></span></a></li>
  512.                 <li><a class="delicious" title="<?php echo JText::_("Add to Delicious"); ?>" href="http://del.icio.us/post?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Delicious"); ?></span></a></li>
  513.                 <li><a class="digg" title="<?php echo JText::_("Digg this"); ?>" href="http://digg.com/submit?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Digg this"); ?></span></a></li>
  514.                 <li><a class="reddit" title="<?php echo JText::_("Add to Reddit"); ?>" href="http://reddit.com/submit?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Reddit"); ?></span></a></li>
  515.                 <li><a class="stumble" title="<?php echo JText::_("Add to StumbleUpon"); ?>" href="http://www.stumbleupon.com/submit?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to StumbleUpon"); ?></span></a></li>
  516.                 <li><a class="myspace" title="<?php echo JText::_("Add to MySpace"); ?>" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=<?php echo $this->item->socialLink; ?>&amp;t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to MySpace"); ?></span></a></li>
  517.                 <li><a class="technorati" title="<?php echo JText::_("Add to Technorati"); ?>" href="http://www.technorati.com/faves?add=<?php echo $this->item->socialLink; ?>" target="_blank"><span><?php echo JText::_("Add to Technorati"); ?></span></a></li>
  518.                 <li class="clr"></li>
  519.             </ul>
  520.             <div class="clr"></div>
  521.         </div>
  522.       <?php endif; ?>
  523.  
  524.       <?php if($this->item->params->get('itemAttachments') && count($this->item->attachments)): ?>
  525.       <!-- Item attachments -->
  526.       <div class="itemAttachmentsBlock">
  527.           <span><?php echo JText::_("Download attachments:"); ?></span>
  528.           <ul class="itemAttachments">
  529.             <?php foreach ($this->item->attachments as $attachment): ?>
  530.             <li>
  531.                 <a title="<?php echo htmlentities($attachment->titleAttribute, ENT_QUOTES, 'UTF-8'); ?>" href="<?php echo JRoute::_('index.php?option=com_k2&view=item&task=download&id='.$attachment->id); ?>">
  532.                     <?php echo $attachment->title ; ?>
  533.                 </a>
  534.                 <?php if($this->item->params->get('itemAttachmentsCounter')): ?>
  535.                 <span>(<?php echo $attachment->hits; ?> <?php echo (count($attachment->hits)==1) ? JText::_("download") : JText::_("downloads"); ?>)</span>
  536.                 <?php endif; ?>
  537.             </li>
  538.             <?php endforeach; ?>
  539.           </ul>
  540.       </div>
  541.       <?php endif; ?>
  542.  
  543.         <div class="clr"></div>
  544.   </div>
  545.   <?php endif; ?>
  546.  
  547.  
  548.  
  549.   <?php if($this->item->params->get('itemAuthorBlock') && empty($this->item->created_by_alias)):?>
  550.   <!-- Author Block -->
  551.   <div class="itemAuthorBlock">
  552.  
  553.     <?php if($this->item->params->get('itemAuthorImage') && !empty($this->item->author->avatar)):?>
  554.     <img class="itemAuthorAvatar" src="<?php echo $this->item->author->avatar; ?>" alt="<?php echo $this->item->author->name; ?>" />
  555.     <?php endif; ?>
  556.  
  557.     <div class="itemAuthorDetails">
  558.       <h3 class="itemAuthorName">
  559.         <a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
  560.       </h3>
  561.  
  562.       <?php if($this->item->params->get('itemAuthorDescription') && !empty($this->item->author->profile->description)):?>
  563.       <p><?php echo $this->item->author->profile->description; ?></p>
  564.       <?php endif; ?>
  565.  
  566.       <?php if($this->item->params->get('itemAuthorURL') && !empty($this->item->author->profile->url)):?>
  567.       <span class="itemAuthorUrl"><?php echo JText::_("Website:"); ?> <a href="<?php echo $this->item->author->profile->url; ?>" target="_blank" rel="nofollow"><?php echo str_replace('http://','',$this->item->author->profile->url); ?></a></span>
  568.       <?php endif; ?>
  569.  
  570.       <?php if($this->item->params->get('itemAuthorEmail')):?>
  571.       <span class="itemAuthorEmail"><?php echo JText::_("E-mail:"); ?> <?php echo JHTML::_('Email.cloak', $this->item->author->email); ?></span>
  572.       <?php endif; ?>
  573.  
  574.             <div class="clr"></div>
  575.  
  576.             <!-- K2 Plugins: K2UserDisplay -->
  577.             <?php echo $this->item->event->K2UserDisplay; ?>
  578.  
  579.     </div>
  580.     <div class="clr"></div>
  581.   </div>
  582.   <?php endif; ?>
  583.  
  584.   <?php if($this->item->params->get('itemAuthorLatest') && empty($this->item->created_by_alias) && isset($this->authorLatestItems)): ?>
  585.   <!-- Latest items from author -->
  586.     <div class="itemAuthorLatest">
  587.         <h3><?php echo JText::_("Latest from"); ?> <?php echo $this->item->author->name; ?></h3>
  588.         <ul>
  589.             <?php foreach($this->authorLatestItems as $key=>$item): ?>
  590.             <li class="<?php echo ($key%2) ? "odd" : "even"; ?>">
  591.                 <a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
  592.             </li>
  593.             <?php endforeach; ?>
  594.         </ul>
  595.         <div class="clr"></div>
  596.     </div>
  597.     <?php endif; ?>
  598.  
  599.   <?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?>
  600.   <!-- Item video -->
  601.   <a name="itemVideoAnchor" id="itemVideoAnchor"></a>
  602.  
  603.   <div class="itemVideoBlock">
  604.     <h3><?php echo JText::_('Related Video'); ?></h3>
  605.  
  606.         <?php if($this->item->videoType=='embedded'): ?>
  607.         <div class="itemVideoEmbedded">
  608.             <?php echo $this->item->video; ?>
  609.         </div>
  610.         <?php else: ?>
  611.         <span class="itemVideo"><?php echo $this->item->video; ?></span>
  612.         <?php endif; ?>
  613.  
  614.       <?php if($this->item->params->get('itemVideoCaption') && !empty($this->item->video_caption)): ?>
  615.       <span class="itemVideoCaption"><?php echo $this->item->video_caption; ?></span>
  616.       <?php endif; ?>
  617.  
  618.       <?php if($this->item->params->get('itemVideoCredits') && !empty($this->item->video_credits)): ?>
  619.       <span class="itemVideoCredits"><?php echo $this->item->video_credits; ?></span>
  620.       <?php endif; ?>
  621.  
  622.    
  623.   </div>
  624.  
  625.   <?php endif; ?>
  626.    <h2>Kategoriewahl</h2>
  627.    <div class="itemCategory">
  628.     {module 97}
  629.     </div>
  630.  
  631.   </div> <!-- END itemLinksWrapper -->
Advertisement
Add Comment
Please, Sign In to add comment