Example #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');
    ?>
Example #2
0
    ishyoboy_custom_lead($lead);
} elseif (is_archive()) {
    $lead = '<div class="archive-lead post-archive-lead"><h1 class="color1">';
    if (is_day()) {
        $lead .= sprintf(__('Daily Archives: %s', 'ishyoboy'), '<span>' . get_the_date() . '</span>');
    } elseif (is_month()) {
        $lead .= sprintf(__('Monthly Archives: %s', 'ishyoboy'), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'ishyoboy')) . '</span>');
    } elseif (is_year()) {
        $lead .= sprintf(__('Yearly Archives: %s', 'ishyoboy'), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'ishyoboy')) . '</span>');
    } 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()) {
Example #3
0
$shop_page_id = null;
if (is_shop()) {
    $shop_page_id = woocommerce_get_page_id('shop');
    $page_title = get_the_title($shop_page_id);
    $ish_woo_id = $shop_page_id;
} else {
    $ish_woo_id = get_the_ID();
}
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>