本文整理汇总了PHP中Haanga::Safe_Load方法的典型用法代码示例。如果您正苦于以下问题:PHP Haanga::Safe_Load方法的具体用法?PHP Haanga::Safe_Load怎么用?PHP Haanga::Safe_Load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Haanga
的用法示例。
在下文中一共展示了Haanga::Safe_Load方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_banner_story
function do_banner_story()
{
global $globals, $current_user;
if ($globals['ads']) {
Haanga::Safe_Load('private/ad-middle.html');
}
}
示例2: haanga_2918f6e9aedbd5d32e8a5d091ed1985fcf7008e3
function haanga_2918f6e9aedbd5d32e8a5d091ed1985fcf7008e3($vars, $return = FALSE, $blocks = array())
{
global $test_global, $global1;
extract($vars);
if ($return == TRUE) {
ob_start();
}
echo Haanga::Safe_Load('foobar-tpl.tpl', $vars, TRUE, array()) . '
' . Haanga::Safe_Load('assert_templates/partial.tpl', $vars, TRUE, array()) . '
';
if ($return == TRUE) {
return ob_get_clean();
}
}
示例3: do_active_stories
do_active_stories();
do_banner_promotions();
do_last_subs('published', 5, 'link_votes');
do_best_comments();
do_vertical_tags('published');
echo '</div>' . "\n";
/*** END SIDEBAR ***/
echo '<div id="newswrap">' . "\n";
if ($links) {
$counter = 0;
foreach ($links as $dblink) {
$link = Link::from_db($dblink->link_id);
$link->show_clicks = true;
$link->print_summary();
$counter++;
Haanga::Safe_Load('private/ad-interlinks.html', compact('counter', 'page_size'));
}
}
do_pages($rows, $page_size);
echo '</div>' . "\n";
do_footer_menu();
do_footer();
function print_period_tabs()
{
global $globals, $current_user, $range_values, $range_names, $month, $year;
if (!($current_range = check_integer('range')) || $current_range < 1 || $current_range >= count($range_values)) {
$current_range = 0;
}
echo '<ul class="subheader">' . "\n";
if ($month > 0 && $year > 0) {
echo '<li class="selected"><a href="popular?month=' . $month . '&year=' . $year . '">' . "{$month}-{$year}" . '</a></li>' . "\n";