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


PHP PHPTAL::cleanUpCache方法代码示例

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


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

示例1: isset

	warrant to Australis Media Pty Ltd that your use of the Vanilla
	theme software will comply with the CC-GNU-GPL.
*/
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) {
    die;
}
if (CFCT_DEBUG) {
    cfct_banner(__FILE__);
}
global $vnl_width, $vnl_nesting, $vnl_template, $vnl_utility, $tpl;
$vnl_width = isset($vnl_width) ? $vnl_width : vanilla_get_option("vnl_grid_width");
$vnl_nesting = isset($vnl_nesting) ? $vnl_nesting : vanilla_get_option("vnl_grid_nesting");
$vnl_template = isset($vnl_template) ? $vnl_template : vanilla_get_option("vnl_grid_template");
$vnl_utility = isset($vnl_utility) ? $vnl_utility : vanilla_get_option("vnl_utility_nesting");
// Page-specific overides
//$vnl_width = "yui-d3";
//$vnl_nesting = "yui-gd";
//$vnl_template = "yui-t2";
//$vnl_utility = "yui-bg";
// create a new PHPTAL template object
$template = new PHPTAL(vanilla_get_template('posts/tag.html'));
$template->cleanUpCache();
$tag_title = '<a href="' . get_tag_link(intval(get_query_var('tag_id'))) . '" title="">' . single_tag_title('', false) . '</a>';
$tag_title = sprintf(__('Tag Archives: %s', 'carrington'), $tag_title);
$tpl["page"] = array("width" => $vnl_width, "nesting" => $vnl_nesting, "template" => $vnl_template, "utility" => $vnl_utility, "body_class" => sandbox_body_class(false), "bd_class" => "{$vnl_width} {$vnl_template}", "tag_title" => $tag_title, "cat_description" => $cat_description ? $cat_description : 0);
get_header();
vnl_include('loop');
vnl_include('nav-posts');
get_footer();
// Execute the PHPTAL template
vanilla_output_page($template);
开发者ID:alicam,项目名称:vanilla-theme,代码行数:31,代码来源:tag.php


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