本文整理汇总了PHP中context::global_filter方法的典型用法代码示例。如果您正苦于以下问题:PHP context::global_filter方法的具体用法?PHP context::global_filter怎么用?PHP context::global_filter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类context
的用法示例。
在下文中一共展示了context::global_filter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div id="header">
<h1><a href="<?php
echo context::global_filter($core->blog->url, 0, 0, 0, 0, 0, 'BlogURL');
?>
"><em><?php
echo context::global_filter($core->blog->name, 1, 0, 0, 0, 0, 'BlogName');
?>
</em> <?php
echo context::global_filter($core->blog->settings->editor, 1, 0, 0, 0, 0, 'BlogEditor');
?>
</a></span></h1>
<p><?php
echo context::global_filter($core->blog->desc, 0, 0, 0, 0, 0, 'BlogDescription');
?>
</p>
<?php
if ($core->hasBehavior('publicTopAfterContent')) {
$core->callBehavior('publicTopAfterContent', $core, $_ctx);
}
?>
</div>
示例2: __
echo __('page');
?>
<?php
echo context::global_filter(context::PaginationPosition(0), 0, 0, 0, 0, 0, 'PaginationCurrent');
?>
<?php
echo __('of');
?>
<?php
echo context::global_filter(context::PaginationNbPages(), 0, 0, 0, 0, 0, 'PaginationCounter');
?>
<?php
if (!context::PaginationStart()) {
?>
- <a href="<?php
echo context::global_filter(context::PaginationURL(-1), 0, 0, 0, 0, 0, 'PaginationURL');
?>
" class="next"><?php
echo __('next entries');
?>
»</a><?php
}
?>
</p>
<?php
}
?>
<?php
}
?>
<?php
示例3: url
<style type="text/css" media="screen">
@import url(<?php
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/style.css);
</style>
<style type="text/css" media="print">
@import url(<?php
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/../default/print.css);
</style>
<script type="text/javascript" src="<?php
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/../default/js/jquery.js"></script>
<script type="text/javascript" src="<?php
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/../default/js/jquery.cookie.js"></script>
<?php
try {
echo $core->tpl->getData('user_head.html');
} catch (Exception $e) {
}
if ($core->hasBehavior('publicHeadContent')) {
$core->callBehavior('publicHeadContent', $core, $_ctx);
}