Пример #1
0
<?php

get_header();
?>

<?php 
$archive_page = get_iron_option('page_for_videos');
$archive_page = empty($archive_page) ? false : post_permalink($archive_page);
/**
 * Setup Dynamic Sidebar
 */
list($has_sidebar, $sidebar_position, $sidebar_area) = setup_dynamic_sidebar($post->ID);
?>

		<!-- container -->
		<div class="container">
		<div class="boxed">

		<?php 
$single_title = get_iron_option('single_video_page_title');
if (!empty($single_title)) {
    ?>
		
			<span class="heading-t"></span>
				<h1><?php 
    echo $single_title;
    ?>
</h1>
			<span class="heading-b"></span>
		
		<?php 
Пример #2
0
/**
* The Template for displaying product archives, including the main shop page which is a post type archive.
*
* Override this template by copying it to yourtheme/woocommerce/archive-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.0.0
*/
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
get_header('shop');
list($has_sidebar, $sidebar_position, $sidebar_area) = setup_dynamic_sidebar(get_option('woocommerce_shop_page_id'));
/**
* woocommerce_before_main_content hook
*
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
*/
do_action('woocommerce_before_main_content');
?>


<?php 
if ($has_sidebar) {
    ?>
	<div class="container">
	<div class="boxed">
Пример #3
0
    $attr[] = 'data-term="' . $term->term_id . '"';
}
$paginate_method = get_iron_option('paginate_method');
$attr[] = 'data-paginate="' . $paginate_method . '"';
$attr[] = 'data-template="' . $item_template . '"';
$attr[] = 'data-excerpts="' . $enable_excerpts . '"';
$attr[] = 'data-postdate="' . $show_post_date . '"';
$attr[] = 'data-eventsfilter="' . $events_filter . '"';
$attr[] = 'data-isocol="' . $isocol . '"';
if ($paginate_method == 'paginate_scroll') {
    $paginate_method = "paginate_more";
}
/**
 * Setup Dynamic Sidebar
 */
list($has_sidebar, $sidebar_position, $sidebar_area) = setup_dynamic_sidebar($page_for_archive->ID);
/**
 * Setup Post Type Structure
 */
switch ($post_type) {
    case 'post':
        $tag = 'div';
        $show_post_date = (bool) get_iron_option('show_post_date');
        if (empty($item_template)) {
            $item_template = 'post_grid';
        }
        if ($item_template == 'post_grid') {
            $class = 'articles-section';
        } else {
            if ($item_template == 'post_isotope') {
                $class = 'isotope-wrap';