コード例 #1
0
ファイル: page.php プロジェクト: congtrieu112/phim
    ?>
        <?php 
}
?>

        <div class="row">
            <!-- Bread Crumb Start -->
            <?php 
if (function_exists('vm_breadcrumbs')) {
    vm_breadcrumbs();
}
?>
            <!-- Bread Crumb End -->
            <!-- Content Column Start -->
            <?php 
$content_layout = vm_get_post_meta('_vm_contentlayout_option');
if ($content_layout == '1c') {
    $content_class = 'col-lg-12 col-md-12 col-sm-12 col-xs-12 conentsection';
} else {
    if ($content_layout == '3cl' || $content_layout == '3cr' || $content_layout == '3cm') {
        $content_class = 'col-lg-6 col-md-12 col-sm-12 col-xs-12 equalcol conentsection';
    } else {
        if ($content_layout == '2cl' || $content_layout == '2cr') {
            $content_class = 'col-lg-9 col-md-12 col-sm-12 col-xs-12 equalcol conentsection';
        } else {
            $content_class = 'col-lg-12 col-md-12 col-sm-12 col-xs-12 conentsection';
        }
    }
}
?>
コード例 #2
0
ファイル: functions.php プロジェクト: congtrieu112/phim
function get_nav_shortcode($nav_type = 'top')
{
    global $post;
    $shortcode = '';
    $header_layout = vm_get_post_meta('_vm_headerlayout_option');
    if ($header_layout == 'flipped' && $nav_type == 'top') {
        $shortcode = '[vm_categorynav_bar sticky="none"]';
    } else {
        if ($header_layout == 'flipped' && $nav_type == 'category') {
            $shortcode = '[vm_topnav_bar]';
        } else {
            if ($header_layout != 'flipped' && $nav_type == 'top') {
                $shortcode = '[vm_topnav_bar]';
            } else {
                $shortcode = '[vm_categorynav_bar]';
            }
        }
    }
    echo do_shortcode($shortcode);
}