本文整理匯總了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);
}