'', 'filter_nav' => 'line-grow', 'filter_align' => 'center', '_id' => 'portfolio-'.rand(), 'link' => '', 'class' => '', 'visibility' => '', 'orderby' => 'menu_order', 'order' => '', 'offset' => '', 'exclude' => '', 'number' => '999', 'ids' => '', 'cat' => '', 'lightbox' => '', 'lightbox_image_size' => 'original', // Layout 'style' => '', 'columns' => '4', 'columns__sm' => '', 'columns__md' => '', 'col_spacing' => 'small', 'type' => 'slider', // slider, row, masonery, grid 'width' => '', 'grid' => '1', 'grid_height' => '600px', 'grid_height__md' => '500px', 'grid_height__sm' => '400px', 'slider_nav_style' => 'reveal', 'slider_nav_position' => '', 'slider_nav_color' => '', 'slider_bullets' => 'false', 'slider_arrows' => 'true', 'auto_slide' => 'false', 'infinitive' => 'true', 'depth' => '', 'depth_hover' => '', // Box styles 'animate' => '', 'text_pos' => '', 'text_padding' => '', 'text_bg' => '', 'text_color' => '', 'text_hover' => '', 'text_align' => 'center', 'text_size' => '', 'image_size' => 'medium', 'image_mask' => '', 'image_width' => '', 'image_radius' => '', 'image_height' => '100%', 'image_hover' => '', 'image_hover_alt' => '', 'image_overlay' => '', // Deprecated 'height' => '', ), $atts)); ob_start(); if($height && !$image_height) $image_height = $height; // Get Default Theme style if(!$style) $style = flatsome_option('portfolio_style'); // Fix old if($tag == 'featured_items_slider') $type = 'slider'; // Set Classes. $wrapper_class = array( 'portfolio-element-wrapper', 'has-filtering' ); $classes_box = array( 'portfolio-box', 'box', 'has-hover' ); $classes_image = array(); $classes_text = array( 'box-text' ); // Fix Grid type if($type == 'grid'){ $columns = 0; $current_grid = 0; $grid = flatsome_get_grid($grid); $grid_total = count($grid); flatsome_get_grid_height($grid_height, $_id); } // Wrapper classes. if ( $visibility ) $wrapper_class[] = $visibility; // Set box style if($style) $classes_box[] = 'box-'.$style; if($style == 'overlay') $classes_box[] = 'dark'; if($style == 'shade') $classes_box[] = 'dark'; if($style == 'badge') $classes_box[] = 'hover-dark'; if($text_pos) $classes_box[] = 'box-text-'.$text_pos; if($style == 'overlay' && !$image_overlay) $image_overlay = true; // Set image styles if($image_hover) $classes_image[] = 'image-'.$image_hover; if($image_hover_alt) $classes_image[] = 'image-'.$image_hover_alt; if($image_height) $classes_image[] = 'image-cover'; // Text classes if($text_hover) $classes_text[] = 'show-on-hover hover-'.$text_hover; if($text_align) $classes_text[] = 'text-'.$text_align; if($text_size) $classes_text[] = 'is-'.$text_size; if($text_color == 'dark') $classes_text[] = 'dark'; $css_col = array( array( 'attribute' => 'border-radius', 'value' => $image_radius, 'unit' => '%'), ); $css_args_img = array( array( 'attribute' => 'border-radius', 'value' => $image_radius, 'unit' => '%'), array( 'attribute' => 'width', 'value' => $image_width, 'unit' => '%' ), ); $css_image_height = array( array( 'attribute' => 'padding-top', 'value' => $image_height), ); $css_args = array( array( 'attribute' => 'background-color', 'value' => $text_bg ), array( 'attribute' => 'padding', 'value' => $text_padding ), ); if($animate) {$animate = 'data-animate="'.$animate.'"';} echo '