Advertisement
patrickc

Untitled

Jul 3rd, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. $cur_cat_id = get_cat_id( single_cat_title("",false) );
  3. $cur_category = get_cat_name( $cur_cat_id );
  4. $category = get_category( get_query_var( 'cat' ) );
  5. //$cat_id = $category->cat_ID;
  6. //$cat_option = get_option('sidebar_' . $cat_id);
  7. if(is_home()) {
  8. $category_display = get_theme_option(wp_get_theme()->name . '_home_home_posts_layout');
  9. } elseif(is_search() || is_author() || is_tag()) {
  10. $category_display = get_theme_option(wp_get_theme()->name . '_general_cat_page_layout');
  11. } else {
  12. $category_display = get_option("category_display_$cur_cat_id");
  13. }
  14. $category_layout_sb = get_option("category_layout_$cur_cat_id");
  15. $post_id = $cur_cat_id;
  16. ?>
  17. <?php if ( $category_display == 'cat_layout_one' ) { ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement