/* * Main Blog page */ //get global prefix global $wp_query; $theId = vavo_getId(); //get template header get_header(); /************* GET OPTIONS **************/ $gridWidth = get_option('_sr_bloggridwidth'); $gridStyle = get_option('_sr_bloggridstyle'); $columns = get_option('_sr_bloggridcolumns'); $columns = get_option('_sr_bloggridcolumns'); $gridCrop = get_option('_sr_bloggridcrop'); $gridRatio = get_option('_sr_bloggridratio'); $listMouse = get_option('_sr_bloglistmousemove'); $listTrans = get_option('_sr_bloglisttransition'); $titlesize = get_option('_sr_bloggridtitlesize'); $gridSpacing = get_option('_sr_bloggridspacing'); /* Defaults */ if (!$gridStyle) { $gridStyle = "list"; if (is_search()) { $gridStyle = "grid"; } } if (!$gridSpacing) { $gridSpacing = "spaced-big"; } if (!$columns) { $columns = "3"; } if (!$listMouse) { $listMouse = 1; } if (!$listTrans) { $listTrans = "fade"; } $gridClass = 'isotope-grid blog-container style-column-'.$columns.' isotope-'.$gridSpacing; $listMediaClass = ''; if ($gridStyle == 'list') { $gridClass = 'slist blog-list text-left hover-hide slist-container blog-container '.$gridSpacing; $listMediaClass = 'size-medium size-right trans-'.$listTrans; if ($listMouse) { $listMediaClass .= ' mousemove dis-x'; } if ($gridCrop && $gridRatio) { $listMediaClass .= ' img-cover'; } } $listAdd = ""; if ($gridCrop && $gridRatio) { $listAdd .= ' data-ratio="'.esc_attr($gridRatio).'"'; } $wrapper = 'wrapper-medium'; if($gridWidth) { $wrapper = $gridWidth; } ?>

No posts has been found!