示例#1
0
function xtreme_navigation($nav)
{
    $el = 'div';
    $options = get_option(XF_OPTIONS);
    if (xtreme_is_html5()) {
        $el = $options['xc_navigation']['html5_tag']['value'];
    }
    xtreme_start_container($nav . 'nav', 'navigation', $el);
    do_action('xtreme_' . $nav . 'nav_top');
    echo _xtreme_navigation_content($nav);
    do_action('xtreme_' . $nav . 'nav_bottom');
    xtreme_end_container($el);
}
function xtreme_teaser_footer($container, $role, $el)
{
    xtreme_start_container($container, $role, $el);
    do_action('xtreme_' . $container . '_top');
    $count = xtreme_container_subcol_count($container);
    if ($count == 1) {
        do_action($container . '_subcol', 1);
    }
    if ($count > 1) {
        echo '<div class="ym-grid ym-equalize linearize-level-1">';
        echo xtreme_subcolumns_wrapper($container, 1);
        do_action($container . '_subcol', 1);
        echo '</div></div>';
    }
    for ($i = 2; $i <= 5; $i++) {
        if ($count >= $i) {
            echo xtreme_subcolumns_wrapper($container, $i);
            do_action($container . '_subcol', $i);
            echo '</div></div>';
        }
    }
    if ($count > 1) {
        echo '</div>';
    }
    do_action('xtreme_' . $container . '_bottom');
    xtreme_end_container($el);
}