Advertisement
Guest User

Untitled

a guest
Feb 11th, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. <?php
  2. if( ! defined( 'ABSPATH' ) ){ die(); }
  3.  
  4. global $avia_config;
  5.  
  6. /**
  7. * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  8. */
  9. get_header();
  10.  
  11. echo avia_title( array( 'title' => avia_which_archive() ) );
  12.  
  13. do_action( 'ava_after_main_title' );
  14.  
  15. /**
  16. * @since 5.6.7
  17. * @param string $main_class
  18. * @param string $context file name
  19. * @return string
  20. */
  21. $main_class = apply_filters( 'avf_custom_main_classes', 'av-main-' . basename( __FILE__, '.php' ), basename( __FILE__ ) );
  22.  
  23. ?>
  24.  
  25. <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' );?>'>
  26.  
  27. <div class='container'>
  28.  
  29. <main class='template-page template-portfolio content <?php avia_layout_class( 'content' ); ?> units <?php echo $main_class; ?>' <?php avia_markup_helper( array( 'context' => 'content', 'post_type' => 'portfolio' ) );?>>
  30.  
  31. <div class="entry-content-wrapper clearfix">
  32.  
  33. <div class="category-term-description">
  34. <?php echo term_description(); ?>
  35. </div>
  36.  
  37. <?php
  38.  
  39. $atts =array (
  40. 'link' =>
  41. array (
  42. 0 => 'category',
  43. ),
  44. 'term_rel' => 'IN',
  45. 'wc_prod_visible' => '',
  46. 'wc_prod_hidden' => 'hide',
  47. 'wc_prod_featured' => '',
  48. 'prod_order_by' => '',
  49. 'prod_order' => '',
  50. 'date_filter' => '',
  51. 'date_filter_start' => '',
  52. 'date_filter_end' => '',
  53. 'date_filter_format' => 'yy/mm/dd',
  54. 'period_filter_unit_1' => '1',
  55. 'period_filter_unit_2' => 'year',
  56. 'page_element_filter' => '',
  57. 'sort' => 'yes',
  58. 'query_orderby' => 'date',
  59. 'query_order' => 'DESC',
  60. 'caption_elements' => 'title excerpt',
  61. 'caption_styling' => '',
  62. 'caption_display' => 'always',
  63. 'img_copyright' => '',
  64. 'size' => 'fixed masonry',
  65. 'orientation' => '',
  66. 'image_size' => 'masonry',
  67. 'gap' => '1px',
  68. 'columns' => 'flexible',
  69. 'av-desktop-columns' => '',
  70. 'av-medium-columns' => '',
  71. 'av-small-columns' => '',
  72. 'av-mini-columns' => '',
  73. 'items' => '12',
  74. 'paginate' => 'none',
  75. 'color' => '',
  76. 'custom_bg' => '',
  77. 'img_copyright_font' => '',
  78. 'av-desktop-font-img_copyright_font' => '',
  79. 'av-medium-font-img_copyright_font' => '',
  80. 'av-small-font-img_copyright_font' => '',
  81. 'av-mini-font-img_copyright_font' => '',
  82. 'img_copyright_color' => '',
  83. 'img_copyright_bg' => '',
  84. 'animation' => 'active',
  85. 'animation_duration' => '',
  86. 'animation_custom_bg_color' => '',
  87. 'animation_custom_bg_color_multi_list' => '',
  88. 'animation_z_index_curtain' => '100',
  89. 'overlay_fx' => 'active',
  90. 'img_scrset' => '',
  91. 'lazy_loading' => 'disabled',
  92. 'av-desktop-hide' => '',
  93. 'av-medium-hide' => '',
  94. 'av-small-hide' => '',
  95. 'av-mini-hide' => '',
  96. 'alb_description' => '',
  97. 'id' => '',
  98. 'custom_class' => '',
  99. 'template_class' => '',
  100. 'element_template' => '',
  101. 'one_element_template' => '',
  102. 'show_locked_options_fakeArg' => '',
  103. 'av_uid' => 'av-3lh7ch',
  104. 'sc_version' => '1.0',
  105. 'ids' => false,
  106. 'action' => false,
  107. 'post_type' =>
  108. array (
  109. 'post' => 'post',
  110. 'page' => 'page',
  111. 'attachment' => 'attachment',
  112. 'revision' => 'revision',
  113. 'nav_menu_item' => 'nav_menu_item',
  114. 'custom_css' => 'custom_css',
  115. 'customize_changeset' => 'customize_changeset',
  116. 'oembed_cache' => 'oembed_cache',
  117. 'user_request' => 'user_request',
  118. 'wp_block' => 'wp_block',
  119. 'wp_template' => 'wp_template',
  120. 'wp_template_part' => 'wp_template_part',
  121. 'wp_global_styles' => 'wp_global_styles',
  122. 'wp_navigation' => 'wp_navigation',
  123. 'acf-taxonomy' => 'acf-taxonomy',
  124. 'acf-post-type' => 'acf-post-type',
  125. 'acf-field-group' => 'acf-field-group',
  126. 'acf-field' => 'acf-field',
  127. 'product' => 'product',
  128. 'product_variation' => 'product_variation',
  129. 'shop_order' => 'shop_order',
  130. 'shop_order_refund' => 'shop_order_refund',
  131. 'shop_coupon' => 'shop_coupon',
  132. 'shop_order_placehold' => 'shop_order_placehold',
  133. 'alb_elements' => 'alb_elements',
  134. 'alb_custom_layout' => 'alb_custom_layout',
  135. 'rm_content_editor' => 'rm_content_editor',
  136. 'portfolio' => 'portfolio',
  137. 'avia_framework_post' => 'avia_framework_post',
  138. ),
  139. 'offset' => 0,
  140. 'container_links' => 'active',
  141. 'link_dest' => '',
  142. 'lightbox_text' => '',
  143. 'container_class' => 'av-masonry-entries',
  144. 'auto_ratio' => 1.7,
  145. 'set_breadcrumb' => true,
  146. 'custom_markup' => '',
  147. 'taxonomy' => 'portfolio_entries',
  148. 'categories' =>
  149. array (
  150. ),
  151. );
  152.  
  153. $blog = new avia_masonry($atts);
  154. $blog->get_element_styles();
  155. $blog->query_entries();
  156. echo $blog->html();
  157. ?>
  158.  
  159. </div>
  160.  
  161. <!--end content-->
  162. </main>
  163. <?php
  164.  
  165. //get the sidebar
  166. $avia_config['currently_viewing'] = 'portfolio';
  167. get_sidebar();
  168.  
  169. ?>
  170.  
  171. </div><!--end container-->
  172.  
  173. </div><!-- close default .container_wrap element -->
  174.  
  175. <?php
  176. get_footer();
  177.  
  178.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement