Advertisement
pixedelic

index.2.8.4.php

Sep 12th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 39.47 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Delight
  5.  */
  6.  
  7. get_header(); ?>
  8.  
  9.  
  10. <?php
  11. /*---------------------------------------------------------------------- if POSTS --------------------------------------------------------------------*/
  12. if (get_pix_option('pix_frontpage_posttype')=='posts'){ ?>
  13.  
  14.  
  15. <section>
  16. <?php
  17. global $custom_options;
  18. global $custom_payoff;
  19. global $page, $paged;
  20. if ( get_query_var('paged') ) {
  21.     $paged = get_query_var('paged');
  22. } else if ( get_query_var('page') ) {
  23.     $paged = get_query_var('page');
  24. } else {
  25.     $paged = 1;
  26. }
  27.  
  28. if (get_pix_option('pix_sliding_frontpage')== 'open') {
  29.     $class = 'open_toggle';
  30. } elseif (get_pix_option('pix_sliding_frontpage')== 'default' && get_pix_option('pix_sliding_page')=='open') {
  31.     $class = 'open_toggle';
  32. } elseif (get_pix_option('pix_sliding_frontpage')== 'always') {
  33.     $class = 'open_toggle always_open';
  34. } elseif (get_pix_option('pix_sliding_frontpage')== 'default' && get_pix_option('pix_sliding_page')=='always') {
  35.     $class = 'open_toggle always_open';
  36. }
  37.  
  38. if((get_pix_option('pix_sidebar_frontpage_layout')=='nosidebar' && get_pix_option('pix_front_page_layout') == 'right')||get_pix_option('pix_sidebar_frontpage_layout')== 'leftsidebar'){
  39.     $left = 'margin-right';
  40.     $classside = 'leftsidebar';
  41. } elseif (get_pix_option('pix_sidebar_frontpage_layout')=='default'  && (get_pix_option('pix_general_sidebar')=='leftsidebar' || (get_pix_option('pix_general_sidebar')=='nosidebar' && get_pix_option('pix_general_template')=='right'))) {
  42.     $left = 'margin-right';
  43. }
  44.  
  45. if (get_pix_option('pix_sidebar_frontpage_layout')== 'leftsidebar'|| (get_pix_option('pix_sidebar_frontpage_layout')=='default' && get_pix_option('pix_general_sidebar')=='leftsidebar')) {
  46. ?>
  47.     <aside class="<?php echo $classside.' '.$class; ?>">
  48.         <div>
  49. <?php dynamic_sidebar(get_pix_option('pix_sidebar_frontpage')); ?>
  50.         </div>
  51.     </aside>
  52. <?php }
  53. wp_reset_query();
  54. ?>
  55.  
  56. <?php
  57.  
  58. if( (get_pix_option('pix_sidebar_frontpage_layout')=='nosidebar' && get_pix_option('pix_front_page_layout') == 'wide') || get_pix_option('pix_sidebar_frontpage_layout')=='default'   && get_pix_option('pix_general_sidebar')=='nosidebar' && get_pix_option('pix_general_template') == 'wide'){ $width = 'seveneighty'; $size_th = 'wideCol'; $sizes = '&amp;h=399&amp;w=708'; $new_size= ' style="width:708px; height:399px;"'; } else { $size_th = 'narrowCol'; $sizes = '&amp;h=240&amp;w=427'; $new_size= ' style="width:427px; height:240px;"'; }
  59. ?>
  60.     <article class="<?php echo $class.' '.$left.' '.$width; ?>">
  61.         <div>
  62.         <?php
  63.         $my_query = null;
  64.         if(is_array(get_pix_option('pix_frontpage_posttype_categories')) && !in_array('all',get_pix_option('pix_frontpage_posttype_categories'))){
  65.                 $cat_selected = implode(',',get_pix_option('pix_frontpage_posttype_categories'));
  66.                 $my_query = new WP_Query('cat='.$cat_selected.'&paged=' . $paged.'&posts_per_page='.get_pix_option('pix_frontpage_galleries_ppp'));
  67.                 $my2_query = new WP_Query('cat='.$cat_selected.'&posts_per_page=-1');
  68.         } else {
  69.             $my_query = new WP_Query('paged=' . $paged.'&posts_per_page='.get_pix_option('pix_frontpage_galleries_ppp'));
  70.             $my2_query = new WP_Query('posts_per_page=-1');
  71.         }
  72.         ?>
  73. <?php if ($my_query->have_posts()) : ?>
  74.                 <h2 class="entry-title"><?php echo stripslashes(get_pix_option( 'pix_front_page_title' )); ?></h2>
  75.                 <?php global $paged; if($paged==1) { echo do_shortcode(wpautop(stripslashes(get_pix_option( 'pix_front_page_content' )))); } ?>
  76.             <?php while ( $my_query->have_posts() ) : $my_query->the_post();
  77.     $meta_options = get_post_meta(get_the_ID(), $custom_options->get_the_id(), TRUE);
  78.     $meta_title = get_post_meta(get_the_ID(), $custom_payoff->get_the_id(), TRUE);
  79.    
  80.     if($meta_title['payoff']!='') {
  81.         $the_title = $meta_title['payoff'];
  82.     } else {
  83.         $the_title = get_the_title();
  84.     }
  85.              ?>
  86.    
  87.             <div id="post-<?php the_ID(); ?>" <?php post_class('hentry'); ?>>
  88.                     <h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo get_the_title(); ?>"><?php echo $the_title; ?></a></h3>
  89.                 <?php if(get_pix_option('pix_archive_show_postmetadata')=='show') { ?>
  90.                     <div class="postmetadata">
  91.                         <span>
  92.                             <?php echo get_the_date(); ?>
  93.                         </span>
  94.                         <?php delight_posted_on(); ?>
  95.                     </div><!-- .postmetadata -->
  96.                 <?php }// show postmetadata ?>
  97.                
  98.                 <?php if($meta_title['subtitle']!=''){?><p class="subtitle"><?php echo $meta_title['subtitle']; ?></p><?php } ?>
  99.                 <?php if(has_post_thumbnail()) {
  100.                     $image_id = get_post_thumbnail_id();  
  101.                     $image_url = wp_get_attachment_image_src($image_id,'full');  
  102.                     $image_url = $image_url[0];
  103.                     $imgdata = wp_get_attachment_image_src( get_post_thumbnail_id(), $size_th );
  104.                     ?><div class="imgHentry"><img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/scripts/timthumb.php?src=<?php echo $imgdata[0].$sizes; ?>" style="display:block" alt=""><div class="linkIcon"<?php echo $new_size; ?>>
  105.                 <?php if(get_pix_option('pix_frontpage_posts_image_link')=='') { ?>
  106.                     <a href="<?php the_permalink(); ?>" class="goto-icon"<?php echo $new_size; ?>></a>
  107.                 <?php } else {
  108.                    
  109.                     if (get_pix_option('pix_frontpage_posts_image_link') == 'both'){
  110.                         if($size_th == 'wideCol') {
  111.                             $imgwidth = 708*0.5;
  112.                             $imgheight = 399;
  113.                         } else {
  114.                             $imgwidth = 427*0.5;
  115.                             $imgheight = 240;
  116.                         }
  117.                     } else {
  118.                         if($size_th == 'wideCol') {
  119.                             $imgwidth = 708;
  120.                             $imgheight = 399;
  121.                         } else {
  122.                             $imgwidth = 427;
  123.                             $imgheight = 240;
  124.                         }
  125.                     }
  126.                    
  127.                     if(get_pix_option('pix_frontpage_posts_image_link')=='enlarge' || get_pix_option('pix_frontpage_posts_image_link')=='both' ) { ?><a href="<?php echo $image_url; ?>" class="enlarge-icon" data-rel="portfolio" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  128.                     <?php if(get_pix_option('pix_frontpage_posts_image_link')=='goto' || get_pix_option('pix_frontpage_posts_image_link')=='both') { ?><a href="<?php the_permalink(); ?>" class="goto-icon" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  129.                 <?php } ?>
  130.                     </div></div><!-- .imgHentry --><?php
  131.                 } ?>
  132.                 <?php if (get_pix_option('pix_frontpage_content_excerpt')=='excerpt') { custom_the_excerpt(get_pix_option('pix_frontpage_length_excerpt'), __('Read more','delight')); } else { the_content(__('Read more','delight')); } ?>
  133.                 <div class="clear"></div>
  134.             </div>
  135.         <?php endwhile; ?>
  136. <?php if(function_exists('pix_pagenavi')) { pix_pagenavi($my2_query->post_count);} wp_reset_query(); ?>
  137.         </div>
  138. <?php endif; ?>
  139.     </article>
  140.  
  141. <?php
  142.  
  143. if (get_pix_option('pix_sidebar_frontpage_layout')== 'rightsidebar' || (get_pix_option('pix_sidebar_frontpage_layout')=='default' && get_pix_option('pix_general_sidebar')=='rightsidebar')) {?>
  144.     <aside class="<?php echo $classside.' '.$class; ?>">
  145.         <div>
  146. <?php dynamic_sidebar(get_pix_option('pix_sidebar_frontpage')); ?>
  147.         </div>
  148.     </aside>
  149. <?php }
  150. wp_reset_query();
  151. ?>
  152.  
  153. </section>
  154. <?php get_footer(); ?>
  155.  
  156.  
  157. <?php }  /*---------------------------------------------------------------------- if PORTFOLIO --------------------------------------------------------------------*/
  158. elseif (get_pix_option('pix_frontpage_posttype')=='portfolio'){ ?>
  159.  
  160.  
  161. <?php
  162. /**
  163.  * @package WordPress
  164.  * @subpackage Delight
  165.  */
  166.  
  167. get_header();
  168.  
  169. global $custom_options;
  170. global $custom_payoff;
  171. global $custom_url;
  172. global $print_isotope;
  173.  
  174. $print_isotope=true;
  175.  
  176.  
  177. if(is_array(get_pix_option('pix_frontpage_posttype_galleries')) && !in_array('all',get_pix_option('pix_frontpage_posttype_galleries'))){
  178.     $cat_selected = implode(',',get_pix_option('pix_frontpage_posttype_galleries'));
  179. } else {
  180.     $cat_selected = '';
  181. }
  182.  
  183. $size_th = 'narrowCol';
  184. $size_page = 429;
  185.  
  186. function getInfScroll() {
  187.     global $page, $paged, $print_infinite;
  188.     if ( get_query_var('paged') ) {
  189.         $paged = get_query_var('paged');
  190.     } else if ( get_query_var('page') ) {
  191.         $paged = get_query_var('page');
  192.     } else {
  193.         $paged = 1;
  194.     }
  195.     $print_infinite = true;
  196.     echo '<span id="page_nav_span"><a id="page_nav" class="button medium alignleft" href="'. esc_url(get_pagenum_link($paged+1)).'">'.__( 'More items' ).'</a></span>';
  197. }
  198.  
  199. function tooltip_info($the_action){
  200.     switch (get_pix_option('pix_frontpage_galleries_tooltip')){
  201.         case 'title':
  202.             return  'data-title="'.get_the_title().'" ';
  203.             break;
  204.         case 'titleexcerpt':
  205.             return 'data-title="'.get_the_title().'" data-excerpt="'.get_the_excerpt().'" ';
  206.             break;
  207.         case 'titleaction':
  208.             return 'data-title="'.get_the_title().'" data-action="'.$the_action.'" ';
  209.             break;
  210.         case 'titleexcerptaction':
  211.             return 'data-title="'.get_the_title().'" data-excerpt="'.get_the_excerpt().'" data-action="'.$the_action.'" ';
  212.             break;
  213.         case 'action':
  214.             return 'data-action="'.$the_action.'" ';
  215.             break;
  216.         case 'hide':
  217.             return 'data-hide="hide" ';
  218.             break;
  219.     }
  220. }
  221. ?>
  222.  
  223.  
  224. <section<?php if(get_pix_option('pix_frontpage_galleries_template')=='widepage'){ echo ' class="widepagePortfolio"'; } else { echo ' class="pagePortfolio"'; } ?>>
  225. <?php
  226.  
  227. if (get_pix_option('pix_frontpage_galleries_template')!='widepage' && (get_pix_option('pix_sidebar_frontpage_layout')== 'leftsidebar'|| (get_pix_option('pix_sidebar_frontpage_layout')=='default' && get_pix_option('pix_general_sidebar')=='leftsidebar' ) ) ) {
  228.  
  229.  
  230. get_sidebar();
  231. }
  232. wp_reset_query();
  233. ?>
  234.  
  235. <?php
  236. if (get_pix_option('pix_frontpage_galleries_filterable') == 'show' || get_pix_option('pix_frontpage_galleries_scrolling') == 'show' ) {
  237.     $class = 'open_toggle always_open';
  238. } else {
  239.     if (get_pix_option('pix_sliding_frontpage')== 'open') {
  240.         $class = 'open_toggle';
  241.     } elseif (get_pix_option('pix_sliding_frontpage')== 'default' && get_pix_option('pix_sliding_page')=='open') {
  242.         $class = 'open_toggle';
  243.     } elseif (get_pix_option('pix_sliding_frontpage')== 'always') {
  244.         $class = 'open_toggle always_open';
  245.     } elseif (get_pix_option('pix_sliding_frontpage')== 'default' && get_pix_option('pix_sliding_page')=='always') {
  246.         $class = 'open_toggle always_open';
  247.     }
  248. }
  249.  
  250. if((get_pix_option('pix_sidebar_frontpage_layout')=='nosidebar' && get_pix_option('pix_front_page_layout') == 'right')||get_pix_option('pix_sidebar_frontpage_layout')== 'leftsidebar'){
  251.     $left = 'margin-right';
  252.     $classside = 'leftsidebar';
  253. } elseif (get_pix_option('pix_sidebar_frontpage_layout')=='default'  && (get_pix_option('pix_general_sidebar')=='leftsidebar' || (get_pix_option('pix_general_sidebar')=='nosidebar' && get_pix_option('pix_general_template')=='right'))) {
  254.     $left = 'margin-right';
  255. }
  256.  
  257. if( (get_pix_option('pix_sidebar_frontpage_layout')=='nosidebar' && get_pix_option('pix_front_page_layout') == 'wide') || get_pix_option('pix_sidebar_frontpage_layout')=='default'   && get_pix_option('pix_general_sidebar')=='nosidebar' && get_pix_option('pix_general_template') == 'wide'){ $width = 'seveneighty'; $size_th = 'wideCol'; $size_page = 710; }
  258.  
  259.  
  260.  
  261. if(get_pix_option('pix_frontpage_galleries_template')=='widepage') { $size_th = 'floatPort';
  262.     $code_array = array();
  263.     $code_array2 = array();
  264.     global $page, $paged;
  265.     if ( get_query_var('paged') ) {
  266.         $paged = get_query_var('paged');
  267.     } else if ( get_query_var('page') ) {
  268.         $paged = get_query_var('page');
  269.     } else {
  270.         $paged = 1;
  271.     }
  272.     $args=array(
  273.         'gallery'   => $cat_selected,
  274.         'post_type' => 'portfolio',
  275.         'posts_per_page' => -1,
  276.         'paged' => $paged
  277.     );
  278.     $my_query = null;
  279.     $my_query = new WP_Query($args);
  280.     $numposts = $my_query->post_count;
  281.     while ( $my_query->have_posts() ) : $my_query->the_post();
  282.         $terms_ar = get_the_terms( get_the_id(), 'image_tag' );
  283.         if($terms_ar){
  284.             foreach( $terms_ar as $term ) {
  285.                 if(!in_array($term->slug,$code_array)){
  286.                     $code_array[] = $term->slug;
  287.                 }
  288.                 if(!in_array($term->name,$code_array2)){
  289.                     $code_array2[] = $term->name;
  290.                 }
  291.                 unset($term);
  292.             }
  293.     }
  294.     endwhile;
  295.     if(count($code_array)!=0 && count($code_array2)!=0) {
  296.         $code_array3 = array_combine($code_array, $code_array2);
  297.         echo '<span id="filtering-nav"><a href="#filter" data-filter="*" class="selected">'. __('All','delight') .'</a>';
  298.    
  299.         foreach( $code_array3 as $key => $value ) {
  300.             echo '<a href="#filter" data-filter=".'.$key.'">'.$value.'</a>';
  301.         }
  302.         echo '</span>';
  303.     } else {
  304.         echo '<span>You must have at least one image tag (better two tags at least) to use the filter option</span>';
  305.     }
  306.    
  307.     wp_reset_query();
  308. ?>
  309. <div class="isoFilter">
  310. <?php
  311.     $args=array(
  312.         'gallery'   => $cat_selected,
  313.         'post_type' => 'portfolio',
  314.         'posts_per_page' => $posts_per_page,
  315.         'paged' => $paged
  316.     );
  317.     $my_query = null;
  318.     $my_query = new WP_Query($args);
  319.  
  320.     $i=0; while ( $my_query->have_posts() ) : $my_query->the_post();
  321.     $meta_options = get_post_meta(get_the_ID(), $custom_options->get_the_id(), TRUE);
  322.     $meta_destination = get_post_meta(get_the_ID(), $custom_destination->get_the_id(), TRUE);
  323.     $meta_title = get_post_meta(get_the_ID(), $custom_payoff->get_the_id(), TRUE);
  324.     $meta_url = get_post_meta(get_the_ID(), $custom_url->get_the_id(), TRUE);
  325.    
  326.     if($meta_title['payoff']!='') {
  327.         $the_title = $meta_title['payoff'];
  328.     } else {
  329.         $the_title = get_the_title();
  330.     }
  331.              ?>
  332.    
  333.             <div id="post-<?php the_ID(); ?>" <?php $postid = $post->ID; $postClass = 'all '; $terms_ar = get_the_terms( $postid, 'image_tag' ); if($terms_ar){foreach ($terms_ar as $term) { $postClass .= $term->slug.' '; }} post_class( $postClass );  ?>>                
  334.                 <?php if(has_post_thumbnail()) {
  335.                     $imgdata = wp_get_attachment_image_src( get_post_thumbnail_id(), $size_th );
  336.                     $imgwidth = $imgdata[1];
  337.                     $imgheight = $imgdata[2];
  338.    
  339.                 ?>
  340.                     <div class="imgHentry" style="width:<?php echo $imgwidth+2; ?>px; height:<?php echo $imgheight+2; ?>px; margin-top:0">
  341.                         <?php the_post_thumbnail($size_th); ?>
  342.  
  343.                         <?php
  344.                             $links = array();
  345.                             if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_colorbox')); }
  346.                             if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_gotopage')); }
  347.                             $result = count($links);
  348.                             if ($result!=0) {
  349.                                 $imgwidth2 = $imgwidth/$result;
  350.                             }
  351.                            
  352.                             if(has_post_thumbnail()) {
  353.                                 $image_id = get_post_thumbnail_id();  
  354.                                 $image_url = wp_get_attachment_image_src($image_id,'full');  
  355.                                 $image_url = $image_url[0];
  356.                                 if($meta_destination['featured_video']!=''){
  357.                                     if(strpos($meta_destination['featured_video'],'wp-content')==true){
  358.                                         $image_url = get_bloginfo('stylesheet_directory').'/scripts/flowplayer.php?movie='.$meta_destination['featured_video'].'&amp;title='.urlencode(get_the_title());
  359.                                     } else {
  360.                                         $image_url = $meta_destination['featured_video'];
  361.                                     }
  362.                                 }
  363.                             }
  364.                            
  365.                             if($meta_url['featured_url']!=''){
  366.                                 $featured_href = 'href='.$meta_url['featured_url'].' target="'.$meta_url['featured_target'].'" ';
  367.                             } else {
  368.                                 $featured_href = 'href='.get_permalink().' target="_self" ';
  369.                             }
  370.                            
  371.                         ?>
  372.                         <div class="linkIcon" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;"><?php $the_id = get_the_ID(); ?>
  373.                             <?php if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { ?><a href="<?php echo $image_url; ?>" class="<?php if($meta_destination['featured_video']!=''){ ?>play-icon<?php } else { ?>enlarge-icon<?php } ?>" <?php if($meta_destination['featured_video']!=''){ echo tooltip_info(__('Play video','delight')); } else { echo tooltip_info(__('Enlarge picture','delight')); } ?> <?php if(get_pix_option('pix_frontpage_galleries_slideshow')=='show') { ?> data-rel="portfolio"<?php } ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  374.                             <?php if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { ?><a <?php echo $featured_href; ?> class="goto-icon" <?php echo tooltip_info(__('Go to the attachment page','delight')); ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  375.                         </div>
  376.                     </div><!-- .imgHentry -->
  377.                 <?php } ?>
  378.                 <div class="clear"></div>
  379.             </div>
  380.         <?php $i++; endwhile; wp_reset_query(); ?>
  381.        
  382. </div><!-- .isoFilter -->        
  383. <?php
  384.     if(get_pix_option('pix_frontpage_galleries_scrolling')=='show') {
  385.         getInfScroll();
  386.     } else {
  387.         if(function_exists('pix_pagenavi')) { pix_pagenavi( $numposts );}
  388.     }
  389. ?>
  390. <?php } else { //if get_pix_option('pix_frontpage_galleries_template')!='widepage' ?>
  391.     <article class="<?php echo $class.' '.$left.' '.$width; ?>">
  392.         <div>
  393.              <h2 class="entry-title"><?php echo stripslashes(get_pix_option( 'pix_front_page_title' )); ?></h2>
  394.                 <?php echo do_shortcode(wpautop(stripslashes(get_pix_option( 'pix_front_page_content' )))); ?>
  395. <?php if(get_pix_option('pix_frontpage_galleries_filterable')=='show') {
  396.     $code_array = array();
  397.     $code_array2 = array();
  398.     global $page, $paged;
  399.     if ( get_query_var('paged') ) {
  400.         $paged = get_query_var('paged');
  401.     } else if ( get_query_var('page') ) {
  402.         $paged = get_query_var('page');
  403.     } else {
  404.         $paged = 1;
  405.     }
  406.     $args=array(
  407.         'gallery'   => $cat_selected,
  408.         'post_type' => 'portfolio',
  409.         'posts_per_page' => -1,
  410.         'paged' => $paged
  411.     );
  412.     $my_query = null;
  413.     $my_query = new WP_Query($args);
  414.     while ( $my_query->have_posts() ) : $my_query->the_post();
  415.         $terms_ar = get_the_terms( get_the_id(), 'image_tag' );
  416.         if($terms_ar){
  417.             foreach( $terms_ar as $term ) {
  418.                 if(!in_array($term->slug,$code_array)){
  419.                     $code_array[] = $term->slug;
  420.                 }
  421.                 if(!in_array($term->name,$code_array2)){
  422.                     $code_array2[] = $term->name;
  423.                 }
  424.                 unset($term);
  425.             }
  426.     }
  427.     endwhile;
  428.     if(count($code_array)!=0 && count($code_array2)!=0) {
  429.         $code_array3 = array_combine($code_array, $code_array2);
  430.         echo '<span id="filtering-nav"><a href="#filter" data-filter="*" class="selected">'. __('All','delight') .'</a>';
  431.    
  432.         foreach( $code_array3 as $key => $value ) {
  433.             echo '<a href="#filter" data-filter=".'.$key.'">'.$value.'</a>';
  434.         }
  435.         echo '</span>';
  436.     } else {
  437.         echo '<span>You must have at least one image tag (better two tags at least) to use the filter option</span>';
  438.     }
  439.    
  440.     wp_reset_query();
  441. } ?>
  442.  
  443. <?php
  444. if($size_page == 710) {
  445.     switch (get_pix_option('pix_frontpage_galleries_template')) {
  446.         case 'twocolumns':
  447.             $isoWidth = 30;
  448.             break;
  449.         case 'threecolumns':
  450.             $isoWidth = 7;
  451.             break;
  452.         case 'fourcolumns':
  453.             $isoWidth = 6;
  454.             break;
  455.         case 'fivecolumns':
  456.             $isoWidth = 0;
  457.             break;
  458.     }
  459. } else {
  460.     switch (get_pix_option('pix_frontpage_galleries_template')) {
  461.         case 'twocolumns':
  462.             $isoWidth = 19;
  463.             break;
  464.         case 'threecolumns':
  465.             $isoWidth = 6;
  466.             break;
  467.         case 'fourcolumns':
  468.             $isoWidth = 7;
  469.             break;
  470.         case 'fivecolumns':
  471.             $isoWidth = 1;
  472.             break;
  473.     }
  474. }
  475. ?>
  476.  
  477.         <div class="isoFilter" style="width:<?php echo ($size_page+$isoWidth); ?>px; margin-left:-<?php echo $isoWidth; ?>px">
  478. <?php
  479.     $args=array(
  480.         'gallery'   => $cat_selected,
  481.         'post_type' => 'portfolio',
  482.         'posts_per_page' => $posts_per_page,
  483.         'paged' => $paged
  484.     );
  485.     $args2=array(
  486.         'gallery'   => $cat_selected,
  487.         'post_type' => 'portfolio',
  488.         'posts_per_page' => -1,
  489.         'paged' => $paged
  490.     );
  491.     $my_query = null;
  492.     $my_query2 = null;
  493.     $my_query = new WP_Query($args);
  494.     $my_query2 = new WP_Query($args2);
  495.     $numposts = $my_query2->post_count;
  496.  
  497.     $i=0; while ( $my_query->have_posts() ) : $my_query->the_post();
  498.     $meta_options = get_post_meta(get_the_ID(), $custom_options->get_the_id(), TRUE);
  499.     $meta_destination = get_post_meta(get_the_ID(), $custom_destination->get_the_id(), TRUE);
  500.     $meta_title = get_post_meta(get_the_ID(), $custom_payoff->get_the_id(), TRUE);
  501.     $meta_url = get_post_meta(get_the_ID(), $custom_url->get_the_id(), TRUE);
  502.    
  503.    
  504.    
  505.     if($meta_title['payoff']!='') {
  506.         $the_title = $meta_title['payoff'];
  507.     } else {
  508.         $the_title = get_the_title();
  509.     }
  510.              ?>
  511.    
  512. <?php if(get_pix_option('pix_frontpage_galleries_template')=='onecolumn') { ?>
  513.  
  514.             <div id="post-<?php the_ID(); ?>" <?php $postid = $post->ID; $postClass = 'all '; $terms_ar = get_the_terms( $postid, 'image_tag' ); if($terms_ar){foreach ($terms_ar as $term) { $postClass .= $term->slug.' '; }} post_class( $postClass );  ?>>                
  515.                 <?php if(has_post_thumbnail()) {
  516.                     $imgdata = wp_get_attachment_image_src( get_post_thumbnail_id(), $size_th );
  517.                     $imgwidth = $imgdata[1];
  518.                     $imgheight = $imgdata[2];
  519.                 ?>
  520.                     <div class="imgHentry" style="width:<?php echo $imgwidth+2; ?>px; height:<?php echo $imgheight+2; ?>px;">
  521.                         <?php the_post_thumbnail($size_th); ?>
  522.                         <?php
  523.                             $links = array();
  524.                             if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_colorbox')); }
  525.                             if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_gotopage')); }
  526.                             $result = count($links);
  527.                             if ($result!=0) {
  528.                                 $imgwidth2 = $imgwidth/$result;
  529.                             }
  530.                            
  531.                             if(has_post_thumbnail()) {
  532.                                 $image_id = get_post_thumbnail_id();  
  533.                                 $image_url = wp_get_attachment_image_src($image_id,'full');  
  534.                                 $image_url = $image_url[0];
  535.                                 if($meta_destination['featured_video']!=''){
  536.                                     if(strpos($meta_destination['featured_video'],'wp-content')==true){
  537.                                         $image_url = get_bloginfo('stylesheet_directory').'/scripts/flowplayer.php?movie='.$meta_destination['featured_video'].'&amp;title='.get_the_title();
  538.                                     } else {
  539.                                         $image_url = $meta_destination['featured_video'];
  540.                                     }
  541.                                 }
  542.                             }
  543.                            
  544.                             if($meta_url['featured_url']!=''){
  545.                                 $featured_href = 'href='.$meta_url['featured_url'].' target="'.$meta_url['featured_target'].'" ';
  546.                             } else {
  547.                                 $featured_href = 'href='.get_permalink().' target="_self" ';
  548.                             }
  549.                         ?>
  550.                         <div class="linkIcon" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;"><?php $the_id = get_the_ID(); ?>
  551.                             <?php if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { ?><a href="<?php echo $image_url; ?>" class="<?php if($meta_destination['featured_video']!=''){ ?>play-icon<?php } else { ?>enlarge-icon<?php } ?>" <?php if($meta_destination['featured_video']!=''){ echo tooltip_info(__('Play video','delight')); } else { echo tooltip_info(__('Enlarge picture','delight')); } ?> <?php if(get_pix_option('pix_frontpage_galleries_slideshow')=='show') { ?> data-rel="portfolio"<?php } ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  552.                             <?php if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { ?><a <?php echo $featured_href; ?> class="goto-icon" <?php echo tooltip_info(__('Go to the attachment page','delight')); ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  553.  
  554.                         </div>
  555.                     </div><!-- .imgHentry -->
  556.                 <?php } ?>
  557.                 <div class="clear"></div>
  558.             </div>
  559.  
  560.  
  561. <?php } elseif(get_pix_option('pix_frontpage_galleries_template')=='twocolumns') { ?>
  562.  
  563.             <?php
  564.                 $attachment_id = get_post_thumbnail_id($post->ID);
  565.                 $thumb_src = wp_get_attachment_image_src( $attachment_id, $size_th );
  566.                 if($size_page == 710) {
  567.                     $lessmargin = 30;
  568.                     $marginleft = 30;
  569.                     $imgwidth = 338;
  570.                     $imgheight = 191;
  571.                 } else {
  572.                     $lessmargin = 19;
  573.                     $marginleft = 19;
  574.                     $imgwidth = 203;
  575.                     $imgheight = 115;
  576.                 }
  577.  
  578.                 $links = array();
  579.                 if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_colorbox')); }
  580.                 if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_gotopage')); }
  581.                 $result = count($links);
  582.                 if ($result!=0) {
  583.                     $imgwidth2 = $imgwidth/$result;
  584.                 }
  585.  
  586.                             if(has_post_thumbnail()) {
  587.                                 $image_id = get_post_thumbnail_id();  
  588.                                 $image_url = wp_get_attachment_image_src($image_id,'full');  
  589.                                 $image_url = $image_url[0];
  590.                                 if($meta_destination['featured_video']!=''){
  591.                                     if(strpos($meta_destination['featured_video'],'wp-content')==true){
  592.                                         $image_url = get_bloginfo('stylesheet_directory').'/scripts/flowplayer.php?movie='.$meta_destination['featured_video'].'&amp;title='.get_the_title();
  593.                                     } else {
  594.                                         $image_url = $meta_destination['featured_video'];
  595.                                     }
  596.                                 }
  597.                             }
  598.  
  599.                             if($meta_url['featured_url']!=''){
  600.                                 $featured_href = 'href='.$meta_url['featured_url'].' target="'.$meta_url['featured_target'].'" ';
  601.                             } else {
  602.                                 $featured_href = 'href='.get_permalink().' target="_self" ';
  603.                             }
  604.             ?>
  605.             <div id="post-<?php the_ID(); ?>" <?php $postid = $post->ID; $postClass = 'all '; $terms_ar = get_the_terms( $postid, 'image_tag' ); if($terms_ar){foreach ($terms_ar as $term) { $postClass .= $term->slug.' '; }} post_class( $postClass );  ?> style="width: <?php echo ($imgwidth+2); ?>px; margin-left:<?php echo $marginleft; ?>px">                
  606.                 <div class="imgHentry" style="width:<?php echo ($imgwidth+2); ?>px; height:<?php echo ($imgheight+2); ?>px; margin-top:<?php echo ($marginleft); ?>px">
  607.                
  608.                 <?php if(has_post_thumbnail()) { ?>
  609.                     <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/scripts/timthumb.php?src=<?php echo $thumb_src[0]; ?>&amp;h=<?php echo $imgheight; ?>&amp;w=<?php echo $imgwidth; ?>" alt="">
  610.                     <div class="linkIcon" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;"><?php $the_id = get_the_ID(); ?>
  611.                         <?php if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { ?><a href="<?php echo $image_url; ?>" class="<?php if($meta_destination['featured_video']!=''){ ?>play-icon<?php } else { ?>enlarge-icon<?php } ?>" <?php if($meta_destination['featured_video']!=''){ echo tooltip_info(__('Play video','delight')); } else { echo tooltip_info(__('Enlarge picture','delight')); } ?> <?php if(get_pix_option('pix_frontpage_galleries_slideshow')=='show') { ?> data-rel="portfolio"<?php } ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  612.                         <?php if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { ?><a <?php echo $featured_href; ?> class="goto-icon" <?php echo tooltip_info(__('Go to the attachment page','delight')); ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  613.                     </div>
  614.                 <?php } ?>
  615.                 </div><!-- .imgHentry -->
  616.             </div>
  617.            
  618.             <?php if(($i+1)%2==0) { echo '<div class="clear"></div>'; } ?>
  619.  
  620.  
  621. <?php } elseif(get_pix_option('pix_frontpage_galleries_template')=='threecolumns') { ?>
  622.  
  623.             <?php
  624.                 $attachment_id = get_post_thumbnail_id($post->ID);
  625.                 $thumb_src = wp_get_attachment_image_src( $attachment_id, $size_th );
  626.                 if($size_page == 710) {
  627.                     $lessmargin = 14;
  628.                     $marginleft = 7;
  629.                     $imgwidth = 230;
  630.                     $imgheight = 130;
  631.                 } else {
  632.                     $lessmargin = 12;
  633.                     $marginleft = 6;
  634.                     $imgwidth = 137;
  635.                     $imgheight = 78;
  636.                 }
  637.  
  638.                 $links = array();
  639.                 if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_colorbox')); }
  640.                 if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_gotopage')); }
  641.                 $result = count($links);
  642.                 if ($result!=0) {
  643.                     $imgwidth2 = $imgwidth/$result;
  644.                 }
  645.  
  646.                             if(has_post_thumbnail()) {
  647.                                 $image_id = get_post_thumbnail_id();  
  648.                                 $image_url = wp_get_attachment_image_src($image_id,'full');  
  649.                                 $image_url = $image_url[0];
  650.                                 if($meta_destination['featured_video']!=''){
  651.                                     if(strpos($meta_destination['featured_video'],'wp-content')==true){
  652.                                         $image_url = get_bloginfo('stylesheet_directory').'/scripts/flowplayer.php?movie='.$meta_destination['featured_video'].'&amp;title='.get_the_title();
  653.                                     } else {
  654.                                         $image_url = $meta_destination['featured_video'];
  655.                                     }
  656.                                 }
  657.                             }
  658.  
  659.                             if($meta_url['featured_url']!=''){
  660.                                 $featured_href = 'href='.$meta_url['featured_url'].' target="'.$meta_url['featured_target'].'" ';
  661.                             } else {
  662.                                 $featured_href = 'href='.get_permalink().' target="_self" ';
  663.                             }
  664.             ?>
  665.             <div id="post-<?php the_ID(); ?>" <?php $postid = $post->ID; $postClass = 'all '; $terms_ar = get_the_terms( $postid, 'image_tag' ); if($terms_ar){foreach ($terms_ar as $term) { $postClass .= $term->slug.' '; }} post_class( $postClass );  ?> style="width: <?php echo ($imgwidth+2); ?>px; margin-left:<?php echo $marginleft; ?>px">                
  666.                 <div class="imgHentry" style="width:<?php echo ($imgwidth+2); ?>px; height:<?php echo ($imgheight+2); ?>px; margin-top:<?php echo ($marginleft); ?>px">
  667.                
  668.                 <?php if(has_post_thumbnail()) { ?>
  669.                     <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/scripts/timthumb.php?src=<?php echo $thumb_src[0]; ?>&amp;h=<?php echo $imgheight; ?>&amp;w=<?php echo $imgwidth; ?>" alt="">
  670.                     <div class="linkIcon" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;"><?php $the_id = get_the_ID(); ?>
  671.                         <?php if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { ?><a href="<?php echo $image_url; ?>" class="<?php if($meta_destination['featured_video']!=''){ ?>play-icon<?php } else { ?>enlarge-icon<?php } ?>" <?php if($meta_destination['featured_video']!=''){ echo tooltip_info(__('Play video','delight')); } else { echo tooltip_info(__('Enlarge picture','delight')); } ?> <?php if(get_pix_option('pix_frontpage_galleries_slideshow')=='show') { ?> data-rel="portfolio"<?php } ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  672.                         <?php if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { ?><a <?php echo $featured_href; ?> class="goto-icon" <?php echo tooltip_info(__('Go to the attachment page','delight')); ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  673.                     </div>
  674.                 <?php } ?>
  675.                 </div><!-- .imgHentry -->
  676.             </div>
  677.            
  678.             <?php if(($i+1)%3==0) { echo '<div class="clear"></div>'; } ?>
  679.  
  680.  
  681. <?php } elseif(get_pix_option('pix_frontpage_galleries_template')=='fourcolumns') { ?>
  682.  
  683.             <?php
  684.                 $attachment_id = get_post_thumbnail_id($post->ID);
  685.                 $thumb_src = wp_get_attachment_image_src( $attachment_id, $size_th );
  686.                 if($size_page == 710) {
  687.                     $lessmargin = 18;
  688.                     $marginleft = 6;
  689.                     $imgwidth = 171;
  690.                     $imgheight = 98;
  691.                 } else {
  692.                     $lessmargin = 21;
  693.                     $marginleft = 7;
  694.                     $imgwidth = 100;
  695.                     $imgheight = 57;
  696.                 }
  697.  
  698.                 $links = array();
  699.                 if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_colorbox')); }
  700.                 if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_gotopage')); }
  701.                 $result = count($links);
  702.                 if ($result!=0) {
  703.                     $imgwidth2 = $imgwidth/$result;
  704.                 }
  705.  
  706.                             if(has_post_thumbnail()) {
  707.                                 $image_id = get_post_thumbnail_id();  
  708.                                 $image_url = wp_get_attachment_image_src($image_id,'full');  
  709.                                 $image_url = $image_url[0];
  710.                                 if($meta_destination['featured_video']!=''){
  711.                                     if(strpos($meta_destination['featured_video'],'wp-content')==true){
  712.                                         $image_url = get_bloginfo('stylesheet_directory').'/scripts/flowplayer.php?movie='.$meta_destination['featured_video'].'&amp;title='.get_the_title();
  713.                                     } else {
  714.                                         $image_url = $meta_destination['featured_video'];
  715.                                     }
  716.                                 }
  717.                             }
  718.  
  719.                             if($meta_url['featured_url']!=''){
  720.                                 $featured_href = 'href='.$meta_url['featured_url'].' target="'.$meta_url['featured_target'].'" ';
  721.                             } else {
  722.                                 $featured_href = 'href='.get_permalink().' target="_self" ';
  723.                             }
  724.             ?>
  725.             <div id="post-<?php the_ID(); ?>" <?php $postid = $post->ID; $postClass = 'all '; $terms_ar = get_the_terms( $postid, 'image_tag' ); if($terms_ar){foreach ($terms_ar as $term) { $postClass .= $term->slug.' '; }} post_class( $postClass );  ?> style="width: <?php echo ($imgwidth+2); ?>px; margin-left:<?php echo $marginleft; ?>px">                
  726.                 <div class="imgHentry" style="width:<?php echo ($imgwidth+2); ?>px; height:<?php echo ($imgheight+2); ?>px; margin-top:<?php echo ($marginleft); ?>px">
  727.                
  728.                 <?php if(has_post_thumbnail()) { ?>
  729.                     <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/scripts/timthumb.php?src=<?php echo $thumb_src[0]; ?>&amp;h=<?php echo $imgheight; ?>&amp;w=<?php echo $imgwidth; ?>" alt="">
  730.                     <div class="linkIcon" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;"><?php $the_id = get_the_ID(); ?>
  731.                         <?php if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { ?><a href="<?php echo $image_url; ?>" class="<?php if($meta_destination['featured_video']!=''){ ?>play-icon<?php } else { ?>enlarge-icon<?php } ?>" <?php if($meta_destination['featured_video']!=''){ echo tooltip_info(__('Play video','delight')); } else { echo tooltip_info(__('Enlarge picture','delight')); } ?> <?php if(get_pix_option('pix_frontpage_galleries_slideshow')=='show') { ?> data-rel="portfolio"<?php } ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  732.                         <?php if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { ?><a <?php echo $featured_href; ?> class="goto-icon" <?php echo tooltip_info(__('Go to the attachment page','delight')); ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  733.                     </div>
  734.                 <?php } ?>
  735.                 </div><!-- .imgHentry -->
  736.             </div>
  737.            
  738.             <?php if(($i+1)%4==0) { echo '<div class="clear"></div>'; } ?>
  739.  
  740.  
  741. <?php } elseif(get_pix_option('pix_frontpage_galleries_template')=='fivecolumns') { ?>
  742.  
  743.             <?php
  744.                 $attachment_id = get_post_thumbnail_id($post->ID);
  745.                 $thumb_src = wp_get_attachment_image_src( $attachment_id, $size_th );
  746.                 if($size_page == 710) {
  747.                     $lessmargin = 0;
  748.                     $marginleft = 0;
  749.                     $imgwidth = 142;
  750.                     $imgheight = 80;
  751.                 } else {
  752.                     $lessmargin = 4;
  753.                     $marginleft = 1;
  754.                     $imgwidth = 85;
  755.                     $imgheight = 48;
  756.                 }
  757.  
  758.                 $links = array();
  759.                 if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_colorbox')); }
  760.                 if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { array_push($links, get_pix_option('pix_frontpage_galleries_gotopage')); }
  761.                 $result = count($links);
  762.                 if ($result!=0) {
  763.                     $imgwidth2 = $imgwidth/$result;
  764.                 }
  765.  
  766.                             if(has_post_thumbnail()) {
  767.                                 $image_id = get_post_thumbnail_id();  
  768.                                 $image_url = wp_get_attachment_image_src($image_id,'full');  
  769.                                 $image_url = $image_url[0];
  770.                                 if($meta_destination['featured_video']!=''){
  771.                                     if(strpos($meta_destination['featured_video'],'wp-content')==true){
  772.                                         $image_url = get_bloginfo('stylesheet_directory').'/scripts/flowplayer.php?movie='.$meta_destination['featured_video'].'&amp;title='.get_the_title();
  773.                                     } else {
  774.                                         $image_url = $meta_destination['featured_video'];
  775.                                     }
  776.                                 }
  777.                             }
  778.  
  779.                             if($meta_url['featured_url']!=''){
  780.                                 $featured_href = 'href='.$meta_url['featured_url'].' target="'.$meta_url['featured_target'].'" ';
  781.                             } else {
  782.                                 $featured_href = 'href='.get_permalink().' target="_self" ';
  783.                             }
  784.             ?>
  785.             <div id="post-<?php the_ID(); ?>" <?php $postid = $post->ID; $postClass = 'all '; $terms_ar = get_the_terms( $postid, 'image_tag' ); if($terms_ar){foreach ($terms_ar as $term) { $postClass .= $term->slug.' '; }} post_class( $postClass );  ?> style="width: <?php echo ($imgwidth); ?>px; margin-left:<?php echo $marginleft; ?>px">                
  786.                 <div class="imgHentry" style="width:<?php echo ($imgwidth); ?>px; height:<?php echo ($imgheight); ?>px; margin-top:<?php echo ($marginleft); ?>px">
  787.                
  788.                 <?php if(has_post_thumbnail()) { ?>
  789.                     <img style="border:0!important" src="<?php echo get_bloginfo('stylesheet_directory'); ?>/scripts/timthumb.php?src=<?php echo $thumb_src[0]; ?>&amp;h=<?php echo $imgheight; ?>&amp;w=<?php echo $imgwidth; ?>">
  790.                     <div class="linkIcon" style="width:<?php echo $imgwidth; ?>px; height:<?php echo $imgheight; ?>px;"><?php $the_id = get_the_ID(); ?>
  791.                         <?php if(get_pix_option('pix_frontpage_galleries_colorbox')=='show') { ?><a href="<?php echo $image_url; ?>" class="<?php if($meta_destination['featured_video']!=''){ ?>play-icon<?php } else { ?>enlarge-icon<?php } ?>" <?php if($meta_destination['featured_video']!=''){ echo tooltip_info(__('Play video','delight')); } else { echo tooltip_info(__('Enlarge picture','delight')); } ?> <?php if(get_pix_option('pix_frontpage_galleries_slideshow')=='show') { ?> data-rel="portfolio"<?php } ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  792.                         <?php if(get_pix_option('pix_frontpage_galleries_gotopage')=='show') { ?><a <?php echo $featured_href; ?> class="goto-icon" <?php echo tooltip_info(__('Go to the attachment page','delight')); ?> style="width:<?php echo $imgwidth2; ?>px; height:<?php echo $imgheight; ?>px;">&nbsp;</a><?php } ?>
  793.                     </div>
  794.                 <?php } ?>
  795.                 </div><!-- .imgHentry -->
  796.             </div>
  797.            
  798.  
  799. <?php } ?>
  800.         <?php $i++; endwhile; ?>
  801.         </div><!-- .isoFilter -->
  802. <?php
  803.     if(get_pix_option('pix_frontpage_galleries_scrolling')=='show') {
  804.         getInfScroll();
  805.     } else {
  806.         if(function_exists('pix_pagenavi')) { pix_pagenavi( $numposts );}
  807.     }
  808. ?>
  809.         </div>
  810.     </article>
  811.  
  812. <?php }//if get_pix_option('pix_frontpage_galleries_template')=='widepage'
  813.  
  814. if (get_pix_option('pix_frontpage_galleries_template')!='widepage' && (get_pix_option('pix_sidebar_frontpage_layout')== 'rightsidebar' || (get_pix_option('pix_sidebar_frontpage_layout')=='default' && get_pix_option('pix_general_sidebar')=='rightsidebar' ) ) ) {  ?>
  815.     <aside class="<?php echo $classside.' '.$class; ?>">
  816.         <div>
  817. <?php dynamic_sidebar(get_pix_option('pix_sidebar_frontpage')); ?>
  818.         </div>
  819.     </aside>
  820. <?php }
  821. wp_reset_query();
  822. ?>
  823.  
  824. </section>
  825. <?php get_footer(); ?>
  826. <?php } else { ?>
  827. <section>
  828. </section>
  829. <?php get_footer(); ?>
  830. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement