}
?>

<?php 
while (have_posts()) {
    the_post();
    ?>
    
<section class="bliccaThemes-waypoint" data-animate-down="on-sticky" data-animate-up="off-sticky">  
      <div class="caption-container">
        <div class="caption" <?php 
    bliccaThemes_caption_image($post);
    ?>
><div class="container"><div class="row"><div class="col-md-12">
              <h1 <?php 
    bliccaThemes_h2($post);
    ?>
><?php 
    the_title();
    ?>
</h1>
              <div class="bt_caption_sep">
              <?php 
    if (!empty($theme_options['subpage_leaf'])) {
        ?>
                    <img src="<?php 
        echo esc_url($theme_options['subpage_leaf']);
        ?>
"> 
              <?php 
    } else {
Пример #2
0
function bliccaThemes_before_main_content()
{
    global $post;
    if (function_exists('get_option_tree')) {
        $theme_options = get_option('option_tree');
    }
    $woocommerce_style = get_option_tree('woocommerce_style', $theme_options);
    if (!isset($woocommerce_style) || $woocommerce_style == "") {
        $woocommerce_style == "col-md-8";
    }
    if (is_single()) {
        $woocommerce_style = "col-md-12";
    }
    if (isset($theme_options['shop_header'])) {
        /* dont */
    } else {
        $theme_options['shop_header'] = "Set from Theme Options";
    }
    if (isset($theme_options['shop_caption'])) {
        /*dont */
    } else {
        $theme_options['shop_caption'] = " ";
    }
    if (isset($theme_options['shop_item'])) {
        $shop_item = $theme_options['shop_item'];
    } else {
        $shop_item = 3;
    }
    ?>
<section class="bliccaThemes-waypoint" data-animate-down="on-sticky" data-animate-up="off-sticky">   
    <div class="caption-container">
        <div class="caption"><div class="container"><div class="row"><div class="col-md-12">
            <h1 <?php 
    bliccaThemes_h2($post);
    ?>
><?php 
    echo $theme_options['shop_header'];
    ?>
</h1>
              <div class="bt_caption_sep">
              <?php 
    if (!empty($theme_options['subpage_leaf'])) {
        ?>
                    <img src="<?php 
        echo esc_url($theme_options['subpage_leaf']);
        ?>
"> 
              <?php 
    } else {
        ?>
              
                  <img src="<?php 
        echo get_template_directory_uri();
        ?>
/img/iconpronto.png">
              <?php 
    }
    ?>
              </div>
            <p><?php 
    echo esc_html($theme_options['shop_caption']);
    ?>
</p>
        </div></div></div></div>
	</div>
	<div class="bliccaThemes-shop bliccaThemes-shop-grid<?php 
    echo esc_attr($shop_item);
    ?>
"><div class="container"><div class="<?php 
    echo esc_attr($woocommerce_style);
    ?>
">
<?php 
}