コード例 #1
0
<?php

get_header();
if (is_shop() || is_product_category() || is_product_tag()) {
    //page header for main shop page
    nectar_page_header(woocommerce_get_page_id('shop'));
}
//change to 3 columsn per row when using sidebar
if (!function_exists('loop_columns')) {
    function loop_columns()
    {
        return 3;
        // 3 products per row
    }
}
?>

<div class="container-wrap">
	
	<div class="container main-content">
		
		<div class="row">
			
			<?php 
if (function_exists('yoast_breadcrumb')) {
    yoast_breadcrumb('<p id="breadcrumbs">', '</p>');
}
$options = get_nectar_theme_options();
$main_shop_layout = !empty($options['main_shop_layout']) ? $options['main_shop_layout'] : 'no-sidebar';
$single_product_layout = !empty($options['single_product_layout']) ? $options['single_product_layout'] : 'no-sidebar';
//single product layout
コード例 #2
0
<?php

get_header();
?>

<?php 
nectar_page_header(get_option('page_for_posts'));
?>

<div class="container-wrap">
		
	<div class="container main-content">
		
		<div class="row">
			
			<?php 
$options = get_nectar_theme_options();
$blog_type = $options['blog_type'];
if ($blog_type == null) {
    $blog_type = 'std-blog-sidebar';
}
$masonry_class = null;
$masonry_style = null;
$infinite_scroll_class = null;
$load_in_animation = !empty($options['blog_loading_animation']) ? $options['blog_loading_animation'] : 'none';
//enqueue masonry script if selected
if ($blog_type == 'masonry-blog-sidebar' || $blog_type == 'masonry-blog-fullwidth' || $blog_type == 'masonry-blog-full-screen-width') {
    $masonry_class = 'masonry';
}
if ($blog_type == 'masonry-blog-full-screen-width') {
    $masonry_class = 'masonry full-width-content';
コード例 #3
0
ファイル: page.php プロジェクト: The-Keep-Studios/tks-website
<?php

get_header();
?>

<?php 
nectar_page_header($post->ID);
?>

<div class="container-wrap">
	
	<div class="container main-content">
		
		<div class="row">
			
			<?php 
//breadcrumbs
if (function_exists('yoast_breadcrumb') && !is_home() && !is_front_page()) {
    yoast_breadcrumb('<p id="breadcrumbs">', '</p>');
}
//buddypress
global $bp;
if ($bp && !bp_is_blog_page()) {
    echo '<h1>' . get_the_title() . '</h1>';
}
?>
			
			<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();