当前位置: 首页>>代码示例>>PHP>>正文


PHP K2HelperUtilities::cleanHtml方法代码示例

本文整理汇总了PHP中K2HelperUtilities::cleanHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP K2HelperUtilities::cleanHtml方法的具体用法?PHP K2HelperUtilities::cleanHtml怎么用?PHP K2HelperUtilities::cleanHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在K2HelperUtilities的用法示例。


在下文中一共展示了K2HelperUtilities::cleanHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

				</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;
开发者ID:kenyonjohnston,项目名称:hott_theater,代码行数:31,代码来源:latest.php

示例2:

			<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 
        }
开发者ID:educakanchay,项目名称:educa,代码行数:31,代码来源:comments.php

示例3: foreach

?>
">
	<?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>
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:30,代码来源:tags.php

示例4:

            <?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 
开发者ID:rodhoff,项目名称:MNW,代码行数:31,代码来源:default_theme3.php

示例5:

        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');
        }
开发者ID:sansandeep143,项目名称:av,代码行数:31,代码来源:authors.php

示例6:

" 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>
开发者ID:ForAEdesWeb,项目名称:AEW9,代码行数:31,代码来源:user.php

示例7: foreach

			<?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 
开发者ID:rodhoff,项目名称:MNW,代码行数:31,代码来源:item.php

示例8: if

			</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>
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:30,代码来源:default.php

示例9: foreach

    ?>
  <!-- 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)) {
开发者ID:educakanchay,项目名称:educared,代码行数:31,代码来源:item.php

示例10: foreach

			<?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>
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:31,代码来源:category.php

示例11:

		<?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 
开发者ID:pupsikus,项目名称:iman007.test,代码行数:31,代码来源:item.php

示例12: echo

			<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>
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:31,代码来源:item.php

示例13: if

									<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>
开发者ID:networksoft,项目名称:networksoft.com.co,代码行数:31,代码来源:category_item.php

示例14: defined

 * @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; ?>
开发者ID:networksoft,项目名称:networksoft.com.co,代码行数:31,代码来源:comments.php

示例15:

    <?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);
开发者ID:ForAEdesWeb,项目名称:AEW9,代码行数:31,代码来源:default.php


注:本文中的K2HelperUtilities::cleanHtml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。