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


PHP ThemeUtil::clean方法代码示例

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


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

示例1: zpFormattedDate

			<div class='date' day="<?php 
    echo zpFormattedDate('%e', $dt);
    ?>
"
				  month="<?php 
    echo zpFormattedDate('%b', $dt);
    ?>
"
			      year="<?php 
    echo zpFormattedDate('%Y', $dt);
    ?>
"/>
			<div class='content'><?php 
    echo getNewsContent();
    ?>
</div>
			<div class='categories'><?php 
    echo ThemeUtil::clean(NewsUtil::printNewsCategories(',', false, false), FALSE);
    ?>
</div>
			<div class='preview'><?php 
    echo ThemeUtil::clean(getNewsContent(), FALSE, 120, FALSE);
    ?>
</div>
		</div>
	<?php 
    $u++;
}
?>
</div>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:fetch-news.php

示例2: getRandomImages

echo getRandomImages()->getCustomImage(NULL, 192, 48, 192, 48, NULL, null, false);
?>
" width="195" height="48"/>
		</div>
	</div>
	
	<div id="page-date" class="opa60">
		<?php 
echo NewsUtil::printPageLastChangeDate();
?>
 
	</div>

	<?php 
$codeBlock = getCodeblock(2);
if (isset($codeBlock) && ThemeUtil::clean($codeBlock, false) != '') {
    ?>
		<div id="album-description" class="page opa60">
			<?php 
    printCodeBlock(2);
    ?>
		</div>
	<?php 
}
?>
	
	<div id="page-filler" class="opa20">&nbsp;</div>
	
</div>

开发者ID:Imagenomad,项目名称:Unsupported,代码行数:29,代码来源:left.php

示例3: while

?>
 found
	</div>

	<?php 
echo $prevNext['prev'];
?>
	<div id="image-thumb-container">
		<?php 
$u = 0;
while (next_image()) {
    $imageTitle = getImageTitle();
    $size = getSizeCustomImage(NULL, 383);
    $desc = getImageDesc();
    if (!empty($desc)) {
        $desc = ThemeUtil::clean($desc);
    } else {
        $desc = '';
    }
    ThemeUtil::$script .= "images.push({" . "  title: '{$imageTitle}', \n" . "  description: '{$desc}', \n" . "  location: '" . getCustomImageURL(NULL, 383) . "', \n" . "  url: '" . getFullImageURL() . "',\n" . "  width: " . $size[0] . ",\n" . "  height: " . $size[1] . "\n" . "});\n";
    if (isset($_highlight_image) && $_highlight_image == $_zp_current_image->filename) {
        ThemeUtil::$script .= "initialImageThumbSelection = {$u}; \n";
    }
    ?>
			<div class="image-thumb left opa60 <?php 
    echo $u % 2 == 0 ? 'even' : 'odd';
    ?>
">
				<img 
					index="<?php 
    echo $u;
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:left.php

示例4: printNewsTitle

			<div class="news-preview">
				<div class="news-preview-title">
					<span><?php 
    printNewsTitle();
    ?>
</span>
				</div>
				<div class="news-preview-content">
					<?php 
    echo ThemeUtil::clean(getNewsContent(), FALSE, 120, FALSE);
    ?>
				</div>
			</div>
		</div>
	<?php 
    ThemeUtil::$script .= 'news.push({' . '	"titleLink": \'' . $_zp_current_zenpage_news->getTitleLink() . '\',' . '	"title": \'' . ThemeUtil::clean(getNewsTitle(), FALSE) . '\',' . '	"content": \'' . ThemeUtil::clean(getNewsContent()) . '\',' . '	"date": ' . zpFormattedDate("{day: %d, month:  '%b', year: %Y}", strtotime($_zp_current_zenpage_news->getDateTime())) . ', ' . '	"categories": \'' . ThemeUtil::clean(NewsUtil::printNewsCategories(',', false, false), FALSE) . '\', ' . '    "commentson": ' . (NewsUtil::commentsAllowed() ? "true" : "false") . "," . '	"commentCount": ' . $_zp_current_zenpage_news->getCommentCount() . '}); ';
    $u++;
}
ThemeUtil::$script .= $sel;
?>
	</div>

	<?php 
echo isset($prevNext['next']) ? $prevNext['next'] : "<div id='news-nav-next' class='proxy'></div>";
?>
	
	<div id="page-filler" class="opa20">&nbsp;</div>

</div>

<div id="workaround-non-xml-comment-crap" style="display: none;"></div>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:left.php


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