Exemplo n.º 1
0
function xt_smart_sidebar()
{
    global $post;
    $post_settings = xt_get_single_settings('post');
    extract($post_settings);
    $is_endless_template = xt_is_endless_template();
    $enabled = (bool) xt_option('single_post_smart_sidebar');
    if (!$enabled || $is_endless_template) {
        return false;
    }
    $position = xt_option('single_post_smart_sidebar_position');
    $items = xt_option('single_post_smart_sidebar_items');
    if (empty($items["enabled"])) {
        return false;
    }
    echo '<div class="smart-sidebar">';
    foreach ($items["enabled"] as $key => $item) {
        echo '<div class="smart-sidebar-item">';
        if (strpos($key, 'divider') !== false) {
            echo '<div class="smart-sidebar-divider"></div>';
        } else {
            if ($key == 'social-share') {
                echo xt_socialshare();
            } else {
                if ($key == 'post-date' && $show_post_date) {
                    xt_post_date();
                } else {
                    if ($key == 'post-author' && $show_post_author) {
                        xt_post_author();
                    } else {
                        if ($key == 'post-stats' && $show_post_stats) {
                            echo '<div class="meta">';
                            xt_post_stats(true, array('mini'));
                            echo '</div>';
                        } else {
                            if ($key == 'widget-zone' && $show_post_author) {
                                $widget_zone = xt_option('single_post_smart_sidebar_widget_zone');
                                $widget_zone_active = is_active_sidebar($widget_zone);
                                if ($widget_zone_active) {
                                    xt_show_dynamic_sidebar($widget_zone, 'single-post.php', "smart-sidebar", "smart-{$datemodified_enabled} position-" . $position);
                                }
                            }
                        }
                    }
                }
            }
        }
        echo '</div>';
    }
    echo '</div>';
}
Exemplo n.º 2
0
        echo esc_attr($current_page_title);
        ?>
">
			<meta itemprop="description" content="<?php 
        echo esc_attr(get_the_excerpt());
        ?>
">
		</div>
	</div>
	
	<?php 
        if ($has_sidebar) {
            ?>
	<div data-margin_top="50" data-margin_bottom="50" class="medium-4 column has-sticky-sidebar<?php 
            echo $sidebar_position === 'left' ? ' left' : '';
            ?>
">
		<?php 
            xt_show_dynamic_sidebar($sidebar_area, 'page.php', 'sidebar', 'sidebar position-' . $sidebar_position);
            ?>
	</div>
	<?php 
        }
        ?>
			
</div>	

<?php 
    }
}
get_footer();
Exemplo n.º 3
0
				</div>
			</div>
			
		</div>
		<!-- End Main Content -->	
	

		<?php 
    if ($has_sidebar) {
        ?>

		<div data-margin_top="50" data-margin_bottom="50" class="hide-for-small medium-5 large-4 column has-sticky-sidebar<?php 
        echo $sidebar_position === 'left' ? ' left' : '';
        ?>
">
			<?php 
        xt_show_dynamic_sidebar($sidebar_area, 'archive-product.php', 'sidebar', 'sidebar position-' . $sidebar_position);
        ?>
		</div>	
		
		<?php 
    }
    ?>
		
		
	</div>	


	<?php 
    get_footer('shop');
}
Exemplo n.º 4
0
					
					<!-- End After Content Widget Zone-->	
	
				</div>
				<!-- End Main Content -->	
				
				<?php 
if ($has_sidebar) {
    ?>
		
				<div data-margin_top="50" data-margin_bottom="50" class="medium-4 column has-sticky-sidebar<?php 
    echo $sidebar_position === 'left' ? ' left' : '';
    ?>
">
					<?php 
    xt_show_dynamic_sidebar($sidebar_area, 'single-post.php', 'sidebar', 'sidebar position-' . $sidebar_position);
    ?>
				</div>	
				
				<?php 
}
?>
				
								
				<?php 
if ($behind_title_fw) {
    ?>
				</div>
				<?php 
}
?>