Advertisement
Guest User

taxonomy-portfolio_entries.php

a guest
Nov 4th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. * This template controlls the portfolio overview pages:
  5. * 4,3 2 and 1 Column Portfolios are generated by this file in conjunction with includes/loop-portfolio.php
  6. *
  7. * This file is called by the includes/helper_template.php file if the users applied a portfolio page to this page
  8. * All logic checks are located in includes/helper_template.php function avia_get_template()
  9. */
  10.  
  11. global $avia_config;
  12.  
  13.  
  14. /*
  15. * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  16. */
  17. get_header();
  18.  
  19. if(empty($avia_config['portfolio_columns'])) $avia_config['portfolio_columns'] = 4;
  20.  
  21. $description = is_tag() ? tag_description() : category_description();
  22.  
  23. avia_template_set_page_layout(false, $avia_config['portfolio_layout']);
  24.  
  25. ?>
  26.  
  27. <!-- ####### MAIN CONTAINER ####### -->
  28. <div class='container_wrap <?php echo $avia_config['layout']; ?>' id='main'>
  29.  
  30. <div class='container container-portfolio-size-<?php echo $avia_config['portfolio_columns']; ?>'>
  31.  
  32. <?php avia_title(); ?>
  33. <div class='content <?php echo $avia_config['content_class']; ?> units template-portfolio-overview content portfolio-size-<?php echo $avia_config['portfolio_columns']; ?>'>
  34.  
  35. <?php
  36. echo $description;
  37. /* Run the loop to output the posts.
  38. * If you want to overload this in a child theme then include a file
  39. * called loop-portfolio.php and that will be used instead.
  40. */
  41.  
  42. get_template_part( 'includes/loop', 'portfolio' );
  43.  
  44. ?>
  45.  
  46. <!--end content-->
  47. </div>
  48.  
  49. <?php
  50.  
  51. wp_reset_query();
  52. if(strpos($avia_config['layout'], 'sidebar') !== false)
  53. {
  54. //get the sidebar
  55. $avia_config['currently_viewing'] = 'page';
  56. get_sidebar();
  57. }
  58. ?>
  59.  
  60.  
  61. </div><!--end container-->
  62.  
  63. </div>
  64. <!-- ####### END MAIN CONTAINER ####### -->
  65.  
  66.  
  67. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement