コード例 #1
0
				</a>
				<div class="clr"></div>
			</div>
			<?php 
            }
            ?>
	
			<?php 
            if ($this->params->get('categoryImage') && !empty($category->image)) {
                ?>
			<div class="latestItemsCategoryImage">
				<img src="<?php 
                echo $category->image;
                ?>
" alt="<?php 
                echo K2HelperUtilities::cleanHtml($category->name);
                ?>
" style="width:<?php 
                echo $this->params->get('catImageWidth');
                ?>
px;height:auto;" />
			</div>
			<?php 
            }
            ?>
	
			<?php 
            if ($this->params->get('categoryTitle')) {
                ?>
			<h2><a href="<?php 
                echo $category->link;
コード例 #2
0
ファイル: comments.php プロジェクト: educakanchay/educa
			<span class="lcComment"><?php 
            echo $comment->commentText;
            ?>
</span>
			<?php 
        }
        ?>
			
			<?php 
        if ($comment->userImage) {
            ?>
			<a class="k2Avatar lcAvatar" href="<?php 
            echo $comment->link;
            ?>
" title="<?php 
            echo K2HelperUtilities::cleanHtml($comment->commentText);
            ?>
">
				<img src="<?php 
            echo $comment->userImage;
            ?>
" alt="<?php 
            echo JFilterOutput::cleanText($comment->userName);
            ?>
" style="width:<?php 
            echo $lcAvatarWidth;
            ?>
px;height:auto;" />
			</a>
			<?php 
        }
コード例 #3
0
ファイル: tags.php プロジェクト: vuchannguyen/hoctap
?>
">
	<?php 
foreach ($tags as $tag) {
    ?>
	<?php 
    if (!empty($tag->tag)) {
        ?>
	<a href="<?php 
        echo $tag->link;
        ?>
" style="font-size:<?php 
        echo $tag->size;
        ?>
%" title="<?php 
        echo $tag->count . ' ' . JText::_('K2_ITEMS_TAGGED_WITH') . ' ' . K2HelperUtilities::cleanHtml($tag->tag);
        ?>
">
		<?php 
        echo $tag->tag;
        ?>
	</a>
	<?php 
    }
    ?>
	<?php 
}
?>
	<div class="clr"></div>
</div>
コード例 #4
0
ファイル: default_theme3.php プロジェクト: rodhoff/MNW
            <?php 
        }
        ?>
            <?php 
        if ($params->get('item_author_display', 1)) {
            ?>
                <div class="item-author">
					<?php 
            echo JText::_('K2_AUTHOR_BY');
            ?>
		
					<?php 
            if (isset($item->authorLink)) {
                ?>
					<a rel="author" title="<?php 
                echo K2HelperUtilities::cleanHtml($item->author);
                ?>
" href="<?php 
                echo $item->authorLink;
                ?>
"><?php 
                echo $item->author;
                ?>
</a>
					<?php 
            } else {
                ?>
					<?php 
                echo $item->author;
                ?>
					<?php 
コード例 #5
0
ファイル: authors.php プロジェクト: sansandeep143/av
        echo $author->items;
        ?>
)</span>
      	<?php 
    }
    ?>
      </a>

      <?php 
    if ($params->get('authorLatestItem')) {
        ?>
      <a class="abAuthorLatestItem" href="<?php 
        echo $author->latest->link;
        ?>
" title="<?php 
        echo K2HelperUtilities::cleanHtml($author->latest->title);
        ?>
">
      	<?php 
        echo $author->latest->title;
        ?>
	      <span class="abAuthorCommentsCount">
	      	(<?php 
        echo $author->latest->numOfComments;
        ?>
 <?php 
        if ($author->latest->numOfComments == '1') {
            echo JText::_('K2_MODK2TOOLS_COMMENT');
        } else {
            echo JText::_('K2_MODK2TOOLS_COMMENTS');
        }
コード例 #6
0
ファイル: user.php プロジェクト: ForAEdesWeb/AEW9
" title="<?php 
            if (!empty($item->image_caption)) {
                echo K2HelperUtilities::cleanHtml($item->image_caption);
            } else {
                echo K2HelperUtilities::cleanHtml($item->title);
            }
            ?>
">
				    	<img src="<?php 
            echo $item->imageGeneric;
            ?>
" alt="<?php 
            if (!empty($item->image_caption)) {
                echo K2HelperUtilities::cleanHtml($item->image_caption);
            } else {
                echo K2HelperUtilities::cleanHtml($item->title);
            }
            ?>
" style="width:<?php 
            echo $this->params->get('itemImageGeneric');
            ?>
px; height:auto;" />
				    </a>
				  </span>
				  <div class="clr"></div>
			  </div>
			  <?php 
        }
        ?>
		
				<div class="clr"></div>
コード例 #7
0
ファイル: item.php プロジェクト: rodhoff/MNW
			<?php 
    foreach ($this->relatedItems as $key => $item) {
        ?>
			<li class="<?php 
        echo $key % 2 ? "odd" : "even";
        echo ' col-sm-' . number_format(12 / $this->item->params->get('itemRelatedLimit'));
        ?>
">
                <?php 
        if ($this->item->params->get('itemRelatedImageSize')) {
            ?>
                <?php 
            //Create placeholder items images
            $src = $item->image;
            if (!empty($src)) {
                $thumb_img = '<img class="itemRelImg" style="height:auto; width: ' . $item->imageWidth . 'px;" src="' . $src . '" alt="' . K2HelperUtilities::cleanHtml($item->title) . '" />';
            } else {
                if ($is_placehold) {
                    $thumb_img = yt_placehold($placehold_size['related_items'], $item->title, $item->title);
                }
            }
            echo $thumb_img;
            ?>
				<?php 
        }
        ?>

                <?php 
        if ($this->item->params->get('itemRelatedCategory')) {
            ?>
				<div class="itemRelCat"><a href="<?php 
コード例 #8
0
ファイル: default.php プロジェクト: GitIPFire/Homeworks
			</a>
			<?php endif; ?>

      <!-- Plugins: AfterDisplay -->
      <?php echo $item->event->AfterDisplay; ?>

      <!-- K2 Plugins: K2AfterDisplay -->
      <?php echo $item->event->K2AfterDisplay; ?>

      <div class="clr"></div>
    </li>
    <?php endforeach; ?>
    <li class="clearList"></li>
  </ul>
  <?php endif; ?>

	<?php if($params->get('itemCustomLink')): ?>
	<a class="moduleCustomLink" href="<?php echo $params->get('itemCustomLinkURL'); ?>" title="<?php echo K2HelperUtilities::cleanHtml($itemCustomLinkTitle); ?>"><?php echo $itemCustomLinkTitle; ?></a>
	<?php endif; ?>

	<?php if($params->get('feed')): ?>
	<div class="k2FeedIcon">
		<a href="<?php echo JRoute::_('index.php?option=com_k2&view=itemlist&format=feed&moduleID='.$module->id); ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
			<span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
		</a>
		<div class="clr"></div>
	</div>
	<?php endif; ?>

</div>
コード例 #9
0
ファイル: item.php プロジェクト: educakanchay/educared
    ?>
  <!-- Related items by tag -->
	<div class="itemRelated">
		<h3 class="title-related"><?php 
    echo JText::_("K2_RELATED_ITEMS_BY_TAG");
    ?>
</h3>
		<ul class="items">
			<?php 
    foreach ($this->relatedItems as $key => $item) {
        ?>
			<li class="item">
				<div class="item-images">
				<?php 
        $src_rela = $item->imageLarge;
        $title_rela = K2HelperUtilities::cleanHtml($item->title);
        if ($this->item->params->get('itemRelatedImageSize')) {
            //Create placeholder items images
            if (!empty($src_rela)) {
                $thumb_img = '<img src="' . $src_rela . '" alt="' . $title_rela . '" />';
            } else {
                if ($is_placehold) {
                    $thumb_img = yt_placehold($placehold_size['related_items'], $this->item->title);
                }
            }
            echo $thumb_img;
        }
        ?>
				</div>
				<?php 
        if ($this->item->params->get('itemRelatedTitle', 1)) {
コード例 #10
0
ファイル: category.php プロジェクト: GitIPFire/Homeworks
			<?php foreach($this->subCategories as $key=>$subCategory): ?>

			<?php
			// Define a CSS class for the last container on each row
			if( (($key+1)%($this->params->get('subCatColumns'))==0))
				$lastContainer= ' subCategoryContainerLast';
			else
				$lastContainer='';
			?>

			<div class="subCategoryContainer<?php echo $lastContainer; ?>"<?php echo (count($this->subCategories)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('subCatColumns'), 1).'%;"'; ?>>
				<div class="subCategory">
					<?php if($this->params->get('subCatImage') && $subCategory->image): ?>
					<!-- Subcategory image -->
					<a class="subCategoryImage" href="<?php echo $subCategory->link; ?>">
						<img alt="<?php echo K2HelperUtilities::cleanHtml($subCategory->name); ?>" src="<?php echo $subCategory->image; ?>" />
					</a>
					<?php endif; ?>

					<?php if($this->params->get('subCatTitle')): ?>
					<!-- Subcategory title -->
					<h2>
						<a href="<?php echo $subCategory->link; ?>">
							<?php echo $subCategory->name; ?><?php if($this->params->get('subCatTitleItemCounter')) echo ' ('.$subCategory->numOfItems.')'; ?>
						</a>
					</h2>
					<?php endif; ?>

					<?php if($this->params->get('subCatDescription')): ?>
					<!-- Subcategory description -->
					<p><?php echo $subCategory->description; ?></p>
コード例 #11
0
ファイル: item.php プロジェクト: pupsikus/iman007.test
		<?php 
if ($params->get('itemAuthorBlock') && empty($this->item->created_by_alias) || $params->get('itemAuthorLatest') && empty($this->item->created_by_alias) && isset($this->authorLatestItems)) {
    ?>
		<div class="itemAuthorData">
			<?php 
    if ($params->get('itemAuthorBlock') && empty($this->item->created_by_alias)) {
        ?>
			<div class="itemAuthorBlock">
					<?php 
        if ($params->get('itemAuthorImage') && !empty($this->item->author->avatar)) {
            ?>
					<div class="gkAvatar"> <img src="<?php 
            echo $this->item->author->avatar;
            ?>
" alt="<?php 
            echo K2HelperUtilities::cleanHtml($this->item->author->name);
            ?>
" />
					</div>
					<?php 
        }
        ?>
					<div class="itemAuthorDetails">
							<h3> <a rel="author" href="<?php 
        echo $this->item->author->link;
        ?>
"><?php 
        echo $this->item->author->name;
        ?>
</a> </h3>
							<?php 
コード例 #12
0
ファイル: item.php プロジェクト: GitIPFire/Homeworks
			<li class="<?php echo ($key%2) ? "odd" : "even"; ?>">

				<?php if($this->item->params->get('itemRelatedTitle', 1)): ?>
				<a class="itemRelTitle" href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
				<?php endif; ?>

				<?php if($this->item->params->get('itemRelatedCategory')): ?>
				<div class="itemRelCat"><?php echo JText::_("K2_IN"); ?> <a href="<?php echo $item->category->link ?>"><?php echo $item->category->name; ?></a></div>
				<?php endif; ?>

				<?php if($this->item->params->get('itemRelatedAuthor')): ?>
				<div class="itemRelAuthor"><?php echo JText::_("K2_BY"); ?> <a rel="author" href="<?php echo $item->author->link; ?>"><?php echo $item->author->name; ?></a></div>
				<?php endif; ?>

				<?php if($this->item->params->get('itemRelatedImageSize')): ?>
				<img style="width:<?php echo $item->imageWidth; ?>px;height:auto;" class="itemRelImg" src="<?php echo $item->image; ?>" alt="<?php K2HelperUtilities::cleanHtml($item->title); ?>" />
				<?php endif; ?>

				<?php if($this->item->params->get('itemRelatedIntrotext')): ?>
				<div class="itemRelIntrotext"><?php echo $item->introtext; ?></div>
				<?php endif; ?>

				<?php if($this->item->params->get('itemRelatedFulltext')): ?>
				<div class="itemRelFulltext"><?php echo $item->fulltext; ?></div>
				<?php endif; ?>

				<?php if($this->item->params->get('itemRelatedMedia')): ?>
				<?php if($item->videoType=='embedded'): ?>
				<div class="itemRelMediaEmbedded"><?php echo $item->video; ?></div>
				<?php else: ?>
				<div class="itemRelMedia"><?php echo $item->video; ?></div>
コード例 #13
0
									<li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
								</ul>
								<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
								<div class="clr"></div>
							</div>
							<div class="clr"></div>
						</div>
					<?php endif; ?>
					<?php if($this->item->params->get('catItemAttachments') && count($this->item->attachments)): ?>
						<!-- Item attachments -->
						<div class="catItemAttachmentsBlock">
							<span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span>
							<ul class="catItemAttachments">
								<?php foreach ($this->item->attachments as $attachment): ?>
									<li>
										<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>">
											<?php echo $attachment->title ; ?>
										</a>
										<?php if($this->item->params->get('catItemAttachmentsCounter')): ?>
											<span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
										<?php endif; ?>
									</li>
								<?php endforeach; ?>
							</ul>
						</div>
					<?php endif; ?>
					<div class="clr"></div>
				</div>
			<?php endif; ?>
			<!--Category Name-->
		</div>
コード例 #14
0
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

// no direct access
defined('_JEXEC') or die;

?>

<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2LatestCommentsBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">

	<?php if(count($comments)): ?>
	<ul>
		<?php foreach ($comments as $key=>$comment):	?>
		<li class="lcComment">
		<?php if($comment->userImage): ?>
			<a class="k2Avatar lcAvatar" href="<?php echo $comment->link; ?>" title="<?php echo K2HelperUtilities::cleanHtml($comment->commentText); ?>">
				<img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" style="width:<?php echo $lcAvatarWidth; ?>px;height:auto;" />
			</a>
			<?php endif; ?>
			
			<?php if($params->get('commentLink')): ?>
				<a href="<?php echo $comment->link; ?>"><span class="lcComment"><?php echo $comment->commentText; ?></span></a>
				<?php else: ?>
				<span class="lcComment"><?php echo $comment->commentText; ?></span>
			<?php endif; ?>
		

			<?php if($params->get('commentDate')): ?>
			<span class="lcCommentDate">
				<?php if($params->get('commentDateFormat') == 'relative'): ?>
				<?php echo $comment->commentDate; ?>
コード例 #15
0
ファイル: default.php プロジェクト: ForAEdesWeb/AEW9
    <?php 
    }
    ?>
  </ul>
  <?php 
}
?>

	<?php 
if ($params->get('itemCustomLink')) {
    ?>
	<a class="moduleCustomLink" href="<?php 
    echo $params->get('itemCustomLinkURL');
    ?>
" title="<?php 
    echo K2HelperUtilities::cleanHtml($itemCustomLinkTitle);
    ?>
"><?php 
    echo $itemCustomLinkTitle;
    ?>
</a>
	<?php 
}
?>

	<?php 
if ($params->get('feed')) {
    ?>
	<div class="k2FeedIcon">
		<a href="<?php 
    echo JRoute::_('index.php?option=com_k2&view=itemlist&format=feed&moduleID=' . $module->id);
コード例 #16
0
ファイル: userblock.php プロジェクト: GitIPFire/Homeworks
// no direct access
defined('_JEXEC') or die;

?>

<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2UserBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">

	<?php if($userGreetingText): ?>
	<p class="ubGreeting"><?php echo $userGreetingText; ?></p>
  <?php endif; ?>

	<div class="k2UserBlockDetails">
	  <?php if($params->get('userAvatar')): ?>
	  <a class="k2Avatar ubAvatar" href="<?php echo JRoute::_(K2HelperRoute::getUserRoute($user->id)); ?>" title="<?php echo JText::_('K2_MY_PAGE'); ?>">
	  	<img src="<?php echo K2HelperUtilities::getAvatar($user->id, $user->email); ?>" alt="<?php echo K2HelperUtilities::cleanHtml($user->name); ?>" style="width:<?php echo $avatarWidth; ?>px;height:auto;" />
	  </a>
	  <?php endif; ?>
	  <span class="ubName"><?php echo $user->name; ?></span>
		<span class="ubCommentsCount"><?php echo JText::_('K2_YOU_HAVE'); ?> <b><?php echo $user->numOfComments; ?></b> <?php if($user->numOfComments==1) echo JText::_('K2_PUBLISHED_COMMENT'); else echo JText::_('K2_PUBLISHED_COMMENTS'); ?></span>
	  <div class="clr"></div>
	</div>

  <ul class="k2UserBlockActions">
		<?php if(is_object($user->profile) && isset($user->profile->addLink)): ?>
		<li>
			<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $user->profile->addLink; ?>"><?php echo JText::_('K2_ADD_NEW_ITEM'); ?></a>
		</li>
		<?php endif; ?>
		<li>
			<a href="<?php echo JRoute::_(K2HelperRoute::getUserRoute($user->id)); ?>"><?php echo JText::_('K2_MY_PAGE'); ?></a>
コード例 #17
0
	  <?php 
    if ($this->item->params->get('catItemAttachments') && count($this->item->attachments)) {
        ?>
	  <!-- Item attachments -->
	  <div class="catItemAttachmentsBlock">
		  <span><?php 
        echo JText::_('K2_DOWNLOAD_ATTACHMENTS');
        ?>
</span>
		  <ul class="catItemAttachments">
		    <?php 
        foreach ($this->item->attachments as $attachment) {
            ?>
		    <li>
			    <a title="<?php 
            echo K2HelperUtilities::cleanHtml($attachment->titleAttribute);
            ?>
" href="<?php 
            echo $attachment->link;
            ?>
">
			    	<?php 
            echo $attachment->title;
            ?>
			    </a>
			    <?php 
            if ($this->item->params->get('catItemAttachmentsCounter')) {
                ?>
			    <span>(<?php 
                echo $attachment->hits;
                ?>
コード例 #18
0
ファイル: default.php プロジェクト: GitIPFire/Homeworks
					<span><?php echo JText::_('K2_WEBSITE'); ?></span>
				</a>
				<?php endif; ?>

				<?php if($userEmail): ?>
				<span class="ubUserEmail" title="<?php echo JText::_('K2_EMAIL'); ?>">
					<?php echo JHTML::_('Email.cloak', $user->email); ?>
				</span>
				<?php endif; ?>
			</div>
			<?php endif; ?>

			<?php if($userItemCount && count($user->items)): ?>
			<h3><?php echo JText::_('K2_RECENT_ITEMS'); ?></h3>
			<ul class="ubUserItems">
				<?php foreach ($user->items as $item): ?>
				<li>
					<a href="<?php echo $item->link; ?>" title="<?php echo K2HelperUtilities::cleanHtml($item->title); ?>">
						<?php echo $item->title; ?>
					</a>
				</li>
				<?php endforeach; ?>
			</ul>
			<?php endif; ?>

			<div class="clr"></div>
		</li>
		<?php endforeach; ?>
	</ul>
</div>
コード例 #19
0
ファイル: userblock.php プロジェクト: jdrzaic/joomla-dummy
?>
<div class="k2UserBlockDetails">
	<?php 
if ($params->get('userAvatar')) {
    ?>
	<a class="k2Avatar ubAvatar" href="<?php 
    echo JRoute::_(K2HelperRoute::getUserRoute($user->id));
    ?>
" title="<?php 
    echo JText::_('K2_MY_PAGE');
    ?>
"> <img src="<?php 
    echo K2HelperUtilities::getAvatar($user->id, $user->email);
    ?>
" alt="<?php 
    echo K2HelperUtilities::cleanHtml($user->name);
    ?>
" style="width:<?php 
    echo $avatarWidth;
    ?>
px;height:auto;" /> </a>
	<?php 
}
?>
	<span class="ubName"><?php 
echo $user->name;
?>
</span> <span class="ubCommentsCount"><?php 
echo JText::_('K2_YOU_HAVE');
?>
 <b><?php 
コード例 #20
0
ファイル: generic.php プロジェクト: rodhoff/MNW
            ?>
" title="<?php 
            if (!empty($item->image_caption)) {
                echo K2HelperUtilities::cleanHtml($item->image_caption);
            } else {
                echo K2HelperUtilities::cleanHtml($item->title);
            }
            ?>
">

                        <?php 
            //Create placeholder items images
            //var_dump($item);die;
            $src = $item->imageGeneric;
            if (!empty($src)) {
                $thumb_img = '<img src="' . $src . '" alt="' . (!empty($item->image_caption) ? K2HelperUtilities::cleanHtml($item->image_caption) : K2HelperUtilities::cleanHtml($item->title)) . '" />';
            } else {
                if ($is_placehold) {
                    $thumb_img = yt_placehold($placehold_size['listing'], $item->title, $item->title);
                }
            }
            echo $thumb_img;
            ?>
				    </a>
				  </span>
                <?php 
            if ($this->params->get('genericItemCategory')) {
                ?>
                    <!-- Item category name -->
                    <div class="genericItemCategory">
                        <h3><a href="<?php