// Partial to use when displaying babystreet_portfolio_category category, archive and page template global $wp; $enable_portfolio_infinite = 'no'; if ( babystreet_get_option( 'enable_portfolio_infinite' ) ) { $enable_portfolio_infinite = 'yes'; } $use_load_more_on_portfolio = 'no'; if ( babystreet_get_option( 'use_load_more_on_portfolio' ) ) { $use_load_more_on_portfolio = 'yes'; } wp_localize_script('babystreet-front', 'babystreet_portfolio_js_params', array( 'enable_portfolio_infinite' => $enable_portfolio_infinite, 'use_load_more_on_portfolio' => $use_load_more_on_portfolio )); if (!isset($babystreet_portfolio_style_class)) { $babystreet_portfolio_style_class = 'grid-unit'; } if (!isset($babystreet_columns_class)) { $babystreet_columns_class = 'portfolio-col-3'; } // If the style is different than grid, we dont need columns if ($babystreet_portfolio_style_class != 'grid-unit') { $babystreet_columns_class = ''; } // If style is masonary no crop on images if ($babystreet_portfolio_style_class == 'masonry-unit') { $babystreet_thumb_size = 'medium_large'; } else { $babystreet_thumb_size = 'babystreet-640x640'; } // get the gaps style if (babystreet_get_option('portfoio_cat_display')) { $babystreet_gaps_class = 'babystreet-10px-gap'; } else { $babystreet_gaps_class = ''; } $babystreet_subtitle = ''; $babystreet_title_background_image = ''; $babystreet_title_alignment = 'left_title'; if (is_page()) { // Get the babystreet custom options $babystreet_page_options = get_post_custom(get_the_ID()); $babystreet_show_title_page = 'yes'; $babystreet_show_breadcrumb = 'yes'; $babystreet_featured_slider = 'none'; $babystreet_rev_slider_before_header = 0; if (isset($babystreet_page_options['babystreet_show_title_page']) && trim($babystreet_page_options['babystreet_show_title_page'][0]) != '') { $babystreet_show_title_page = $babystreet_page_options['babystreet_show_title_page'][0]; } if (isset($babystreet_page_options['babystreet_show_breadcrumb']) && trim($babystreet_page_options['babystreet_show_breadcrumb'][0]) != '') { $babystreet_show_breadcrumb = $babystreet_page_options['babystreet_show_breadcrumb'][0]; } if (isset($babystreet_page_options['babystreet_rev_slider']) && trim($babystreet_page_options['babystreet_rev_slider'][0]) != '') { $babystreet_featured_slider = $babystreet_page_options['babystreet_rev_slider'][0]; } if (isset($babystreet_page_options['babystreet_rev_slider_before_header']) && trim($babystreet_page_options['babystreet_rev_slider_before_header'][0]) != '') { $babystreet_rev_slider_before_header = $babystreet_page_options['babystreet_rev_slider_before_header'][0]; } $babystreet_featured_flex_slider_imgs = babystreet_get_more_featured_images(get_the_ID()); if (isset($babystreet_page_options['babystreet_page_subtitle']) && trim($babystreet_page_options['babystreet_page_subtitle'][0]) != '') { $babystreet_subtitle = $babystreet_page_options['babystreet_page_subtitle'][0]; } if (isset($babystreet_page_options['babystreet_title_background_imgid']) && trim($babystreet_page_options['babystreet_title_background_imgid'][0]) != '') { $babystreet_img = wp_get_attachment_image_src($babystreet_page_options['babystreet_title_background_imgid'][0], 'full'); $babystreet_title_background_image = $babystreet_img[0]; } if (isset($babystreet_page_options['babystreet_title_alignment']) && trim($babystreet_page_options['babystreet_title_alignment'][0]) != '') { $babystreet_title_alignment = $babystreet_page_options['babystreet_title_alignment'][0]; } } $babystreet_sidebar_choice = apply_filters('babystreet_has_sidebar', ''); if ($babystreet_sidebar_choice != 'none') { $babystreet_has_sidebar = is_active_sidebar($babystreet_sidebar_choice); } else { $babystreet_has_sidebar = false; } $babystreet_offcanvas_sidebar_choice = apply_filters('babystreet_has_offcanvas_sidebar', ''); if ($babystreet_offcanvas_sidebar_choice != 'none') { $babystreet_has_offcanvas_sidebar = is_active_sidebar($babystreet_offcanvas_sidebar_choice); } else { $babystreet_has_offcanvas_sidebar = false; } $babystreet_sidebar_classes = array(); if ($babystreet_has_sidebar) { $babystreet_sidebar_classes[] = 'has-sidebar'; } if ($babystreet_has_offcanvas_sidebar) { $babystreet_sidebar_classes[] = 'has-off-canvas-sidebar'; } // Sidebar position $babystreet_sidebar_classes[] = apply_filters('babystreet_left_sidebar_position_class', ''); ?>

Portfolio