Safe_Load() public static method

safe_load(string $file, array $vars, bool $return, array $blocks) {{{
public static Safe_Load ( $file, $vars = [], $return = FALSE, $blocks = [] )
Exemplo n.º 1
0
function do_banner_story()
{
    global $globals, $current_user;
    if ($globals['ads']) {
        Haanga::Safe_Load('private/ad-middle.html');
    }
}
Exemplo n.º 2
0
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();
    }
}
Exemplo n.º 3
0
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 . '&amp;year=' . $year . '">' . "{$month}-{$year}" . '</a></li>' . "\n";