1. <?php get_header(); ?>
  2. <div class="grid_12 blog-title">
  3. <h1><?php _e('Browsing the ', 'unicorn'); ?>"<?php echo single_tag_title();?>"<?php _e(' Category ', 'unicorn'); ?>&rarr;</h1>
  4. <div class="clear"></div>
  5. <?php if(category_description($category)): ?>
  6. <?php echo category_description($category); ?>
  7. <?php endif; ?>
  8. </div>
  9. <?php $sidebar_position = get_option('reedwan_sidebar_position', 'true');?>
  10. <?php if($sidebar_position=='left'): ?>
  11. <!-- Left Sidebar -->
  12. <div class="grid_4 sidebar">
  13. <?php get_sidebar();?>
  14. </div>
  15. <?php endif; ?>
  16. <?php
  17. $category_ID = get_query_var('cat');
  18. $category_blog_style = get_tax_meta($category_ID,'reedwan_blog_style');
  19.  
  20. if ($category_blog_style == 'blog-style-1')
  21. {
  22. get_template_part('includes/blog-style-one');
  23. }
  24. else if ($category_blog_style == 'blog-style-2')
  25. {
  26. get_template_part('includes/blog-style-two');
  27. }
  28. else if ($category_blog_style == 'blog-style-3')
  29. {
  30. get_template_part('includes/blog-style-three');
  31. }
  32. else if ($category_blog_style == 'blog-style-4')
  33. {
  34. get_template_part('includes/blog-style-four');
  35. }
  36. else
  37. {
  38. get_template_part('includes/blog-style-two');
  39. }
  40. ?>
  41. <?php if($sidebar_position=='right'): ?>
  42. <!-- Right Sidebar -->
  43. <div class="grid_4 sidebar">
  44. <?php get_sidebar();?>
  45. </div>
  46. <?php endif; ?>
  47.  
  48. <?php get_footer(); ?>