<?php /** * The template for displaying Archive pages. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package OrbitNews */ get_header(); ?> <?php $sidebar = orbitnews_sidebars(); $sidebar_pos = $sidebar['layout']; switch ($sidebar_pos) { case 'left': $content_pos = 'right'; $column_size = 'eight'; break; case 'right': $content_pos = 'left'; $column_size = 'eight'; break; case 'no-sidebar': $content_pos = 'center'; $column_size = 'twelve'; break; default: $content_pos = 'left'; $column_size = 'eight';
<?php /** * The template for displaying content * Used for both single and index/archive/search. * Supported Post Formats: standard/audio/gallery/video * @package OrbitNews */ $post_id = get_the_ID(); // Post Id Variable for Loop $post_format = get_post_format(); // Post Format $sidebar = orbitnews_sidebars($post_id); // Get sidebar array $sidebar_pos = $sidebar['layout']; // Sidebar Position $other_thumb = 'post-thumb'; // Post Thumbnail size for post listing $excerpt_length = '20'; // Excerept Length with sidebar // If there is no sidebar set bigger thumbnails and larger excerpt if ($sidebar_pos == 'no-sidebar') { $other_thumb = 'medium-thumb'; // Post Thumbnail size for post listing $excerpt_length = '45'; // Excerept Length without sidebar } //Show Hide Tags for this post $post_tags_vis = get_post_meta($post_id, 'orn_post_tags_meta', true); if (empty($post_tags_vis) || 'default' == $post_tags_vis) { $post_tags_vis = ot_get_option('orn_post_tags');
<?php /** * The Sidebar containing the main widget areas. * * @package OrbitNews */ ?> <?php // Restore $wp_query and global post data to the original main query wp_reset_query(); // Setup Sidebar and Sidebar Layout $sidebar = orbitnews_sidebars($post->ID); // Get sidebar array $sidebar_pos = $sidebar['layout']; // Get sidebar layout $sidebar_name = $sidebar['name']; // Get sidebar name ?> <aside id="sidebar" class="four column pull-<?php echo $sidebar_pos; ?> "> <ul class="no-bullet"> <?php do_action('before_sidebar'); ?> <?php