-
ID),$imageWidth);
$fullimg = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'full');
$ii++;
?>
- post_title) . '" />' : '');?>
ID,'_npr_gallery_fullwidth',true) == 'true') ? true : false; $postPerPage = (get_post_meta($post->ID,'_npr_gallery_ppp',true) > 0) ? get_post_meta($post->ID,'_npr_gallery_ppp',true) : 10; $postPage = get_query_var('paged'); $getPostCategories = get_post_meta($post->ID,'_npr_gallery_categories',true); if(!is_array($getPostCategories)) $getPostCategories = array(); $postCategories = implode(',',$getPostCategories); $sidebarPosition = npr_sidebar_position(); if($sidebarPosition == 'fullwidth') $fullwidth = true; $gallerySize = 'gallery-small'; $imageWidth = array(170,127); $imageInRows = 3; switch(get_post_meta($post->ID,'_npr_gallery_size',true)) { case '1': $gallerySize = 'gallery-small'; $imageWidth = ($fullwidth) ? array(200,150) : array(170,127); $imageInRows = ($fullwidth) ? 4 : 3; break; case '2': $gallerySize = 'gallery-medium'; $imageWidth = array(260,195); $imageInRows = ($fullwidth) ? 3 : 2; break; case '3': $gallerySize = 'gallery-large'; $imageWidth = ($fullwidth) ? array(410,307) : array(550,412); $imageInRows = ($fullwidth) ? 2 : 1; break; default: $gallerySize = 'gallery-small'; break; } get_header(); get_template_part('template_part/breadcrumb'); if(npr_option('single_page_image') == 'true') { if($fullwidth === true) { $imsa = array(920,920); } else { $imsa = array(600,600); } $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),$imsa); if($thumb !== false) { $thumb = '