Exemple #1
0
<?php

$id_404 = isset($ish_options['use_page_for_404']) && '1' == $ish_options['use_page_for_404'] && isset($ish_options['page_for_404']) ? $ish_options['page_for_404'] : '';
get_header();
if ('' != $id_404 && '-1' != $id_404) {
    // 404 Page set in the backend
    ishyoboy_get_lead($id_404);
    ?>

    <!-- Content part section -->
    <section class="part-content">
        <div class="row">
            <div class="<?php 
    echo ishyoboy_get_content_class($id_404);
    ?>
">
                <?php 
    $my_post = get_post($id_404);
    // Breadcrumbs display
    ishyoboy_show_breadcrumbs();
    ?>
                <?php 
    echo apply_filters('the_content', $my_post->post_content);
    ?>

            </div>

            <?php 
    // SIDEBAR
    get_sidebar('404');
    ?>
Exemple #2
0
    } else {
        $lead .= __('Archives', 'ishyoboy');
    }
    $lead .= '</h1>';
    ishyoboy_custom_lead($lead);
} else {
    ishyoboy_get_lead(get_the_ID());
}
?>

<!-- Content part section -->
<section class="part-content">
    <div class="row">

        <div class="<?php 
echo ishyoboy_get_content_class();
?>
">
            <?php 
// Breadcrumbs display
ishyoboy_show_breadcrumbs();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $format = get_post_format();
        if (false === $format) {
            $format = 'standard';
        }
        get_template_part('content-post', $format);
    }
    echo '<div class="space"></div>';
Exemple #3
0
}
get_header();
global $wp_query;
//var_dump($wp_query);
?>


<?php 
ishyoboy_get_lead($shop_page_id);
?>

    <!-- Content part section -->
    <section class="part-content">
        <div class="row">
            <div class="<?php 
echo ishyoboy_get_content_class($shop_page_id);
?>
">
                <?php 
// Breadcrumbs display
ishyoboy_show_breadcrumbs();
?>

                <div class="space"></div>

                <?php 
woocommerce_content();
?>

                <div class="space"></div>