本文整理汇总了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>
示例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"> </div>
</div>
示例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;
示例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"> </div>
</div>
<div id="workaround-non-xml-comment-crap" style="display: none;"></div>