Ejemplo n.º 1
0
            $output .= "\n\t\t" . $view_all;
        }
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, $title_class, true) : '';
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        global $sf_has_portfolio_showcase, $sf_include_carousel;
        if ($alt_display) {
            $sf_include_carousel = true;
        } else {
            $sf_has_portfolio_showcase = true;
        }
        return $output;
    }
}
/* PARAMS
   ================================================== */
$count_options = array("type" => "dropdown", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => array(__('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "description" => __("Choose the number of items to display for the asset.", 'swift-framework-plugin'));
if (sf_theme_supports('spb-port-showcase-alt')) {
    $count_options = array("type" => "textfield", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "8", "description" => __("Choose the number of items to display for the asset.", 'swift-framework-plugin'));
}
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Portfolio category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('portfolio-category'), "description" => __("Choose the category for the portfolio items.", 'swift-framework-plugin')), $count_options);
if (sf_theme_supports('spb-port-showcase-alt')) {
    $params[] = array("type" => "buttonset", "heading" => __("Include Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "description" => __("If you would like to include pagination on the showcase asset, then enable it here.", 'swift-framework-plugin'));
}
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_portfolio_showcase', array("name" => __("Portfolio Showcase", 'swift-framework-plugin'), "base" => "spb_portfolio_showcase", "class" => "spb_portfolio_showcase spb_showcase spb_tab_media", "icon" => "icon-showcase", "params" => $params));
        $sidebar_config = sf_get_post_meta(get_the_ID(), 'sf_sidebar_config', true);
        $sidebars = '';
        if ($sidebar_config == "left-sidebar" || $sidebar_config == "right-sidebar") {
            $sidebars = 'one-sidebar';
        } else {
            if ($sidebar_config == "both-sidebars") {
                $sidebars = 'both-sidebars';
            } else {
                $sidebars = 'no-sidebars';
            }
        }
        $el_class .= ' testimonial';
        // Full width setup
        $fullwidth = false;
        if ($alt_background != "none") {
            $fullwidth = true;
        }
        $output .= "\n\t" . '<div class="spb_testimonial_slider_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper slider-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<div class="heading-wrap"><h3 class="spb-heading spb-center-heading"><span>' . $title . '</span></h3></div>' : '';
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position, $width, $fullwidth, false, $alt_background) . $output . $this->endRow($el_position, $width, $fullwidth, false);
        global $sf_include_carousel;
        $sf_include_carousel = true;
        return $output;
    }
}
SPBMap::map('testimonial_slider', array("name" => __("Testimonials Slider", "swift-framework-admin"), "base" => "testimonial_slider", "class" => "spb_testimonial_slider spb_slider", "icon" => "spb-icon-testimonial_slider", "wrapper_class" => "clearfix", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Text size", "swift-framework-admin"), "param_name" => "text_size", "value" => array(__('Normal', "swift-framework-admin") => "normal", __('Large', "swift-framework-admin") => "large"), "description" => __("Choose the size of the text.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "6", "description" => __("The number of testimonials to show. Leave blank to show ALL testimonials.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Testimonials Order", "swift-framework-admin"), "param_name" => "order", "value" => array(__('Random', "swift-framework-admin") => "rand", __('Latest', "swift-framework-admin") => "date"), "description" => __("Choose the order of the testimonials.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Testimonials category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('testimonials-category'), "description" => __("Choose the category for the testimonials.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Slider autoplay", "swift-framework-admin"), "param_name" => "autoplay", "value" => array(__('Yes', "swift-framework-admin") => "yes", __('No', "swift-framework-admin") => "no"), "description" => __("Select if you want the slider to autoplay or not.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show alt background", "swift-framework-admin"), "param_name" => "alt_background", "value" => array(__("None", "swift-framework-admin") => "none", __("Alt 1", "swift-framework-admin") => "alt-one", __("Alt 2", "swift-framework-admin") => "alt-two", __("Alt 3", "swift-framework-admin") => "alt-three", __("Alt 4", "swift-framework-admin") => "alt-four", __("Alt 5", "swift-framework-admin") => "alt-five", __("Alt 6", "swift-framework-admin") => "alt-six", __("Alt 7", "swift-framework-admin") => "alt-seven", __("Alt 8", "swift-framework-admin") => "alt-eight", __("Alt 9", "swift-framework-admin") => "alt-nine", __("Alt 10", "swift-framework-admin") => "alt-ten"), "description" => __("Show an alternative background around the asset. These can all be set in Theme Options > Asset Background Options. NOTE: This is only available on a page with the no sidebar setup.", "swift-framework-admin")), array("type" => "altbg_preview", "heading" => __("Alt Background Preview", "swift-framework-admin"), "param_name" => "altbg_preview", "value" => "", "description" => __("", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 3
0
    function form($instance)
    {
        // Set defaults if instance doesn't already exist
        if ($instance) {
            $title = $instance['title'];
            $number = $instance['number'];
            $category = $instance['category'];
        } else {
            // Defaults
            $title = '';
            $number = '5';
            $category = '';
        }
        // The widget form
        ?>
				<p>
					<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        echo __('Title:', 'swift-framework-admin');
        ?>
</label>
					<input id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
" class="widefat" />
				</p>
				<p>
					<label for="<?php 
        echo $this->get_field_id('number');
        ?>
"><?php 
        echo __('Number of items to show:', 'swift-framework-admin');
        ?>
</label>
					<input id="<?php 
        echo $this->get_field_id('number');
        ?>
" name="<?php 
        echo $this->get_field_name('number');
        ?>
" type="text" value="<?php 
        echo $number;
        ?>
" size="3" />
				</p>
				<p>
					<label for="<?php 
        echo $this->get_field_id('category');
        ?>
"><?php 
        _e('Category', 'wp_widget_plugin');
        ?>
</label>
					<select name="<?php 
        echo $this->get_field_name('category');
        ?>
" id="<?php 
        echo $this->get_field_id('category');
        ?>
" class="">
					<?php 
        $options = sf_get_category_list('portfolio-category');
        foreach ($options as $option) {
            echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : '', '>', $option, '</option>';
        }
        ?>
					</select>
					</p>
				</p>
		<?php 
    }
Ejemplo n.º 4
0
                $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
            }
            if ($gallery_filter == "yes") {
                $output .= sf_gallery_filter('', $category);
            }
            $output .= '</div>';
        }
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_isotope, $sf_has_galleries;
        $sf_include_isotope = true;
        $sf_has_galleries = true;
        return $output;
    }
}
/* PARAMS
   ================================================== */
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Gallery', 'swift-framework-plugin') => "gallery", __('Masonry', 'swift-framework-plugin') => "masonry", __('Masonry Gallery', 'swift-framework-plugin') => "masonry-gallery"), "description" => __("Select the type of galleries layout you'd like to show.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Item Link", 'swift-framework-plugin'), "param_name" => "link_type", "value" => array(__('Lightbox Gallery', 'swift-framework-plugin') => "lightbox", __('Gallery Page', 'swift-framework-plugin') => "page"), "description" => __("Select if you'd like the gallery thumbnail link to link through to the gallery page, or to open up the gallery in a lighbox.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like spacing between the items, or not.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Column count", 'swift-framework-plugin'), "param_name" => "columns", "value" => array("5", "4", "3", "2", "1"), "description" => __("How many gallery columns to display.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show title text", 'swift-framework-plugin'), "param_name" => "show_title", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item title text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show subtitle text", 'swift-framework-plugin'), "param_name" => "show_subtitle", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item subtitle text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show excerpt", 'swift-framework-plugin'), "param_name" => "show_excerpt", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the excerpt text.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Excerpt Length", 'swift-framework-plugin'), "param_name" => "excerpt_length", "value" => "20", "required" => array("display_type", "or", "standard,masonry"), "description" => __("The length of the excerpt for the posts.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of galleries", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of galleries to show per page. Leave blank to show ALL.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Gallery category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('gallery-category'), "description" => __("Choose the category from which you'd like to show galleries.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Filter", 'swift-framework-plugin'), "param_name" => "gallery_filter", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show the gallery category filter above the items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show pagination.", 'swift-framework-plugin')));
if (spb_get_theme_name() == "joyn") {
    $params[] = array("type" => "dropdown", "heading" => __("Thumbnail Hover Style", 'swift-framework-plugin'), "param_name" => "hover_style", "value" => array(__('Default', 'swift-framework-plugin') => "default", __('Standard', 'swift-framework-plugin') => "gallery-standard", __('Gallery Alt', 'swift-framework-plugin') => "gallery-alt-one"), "description" => __("Choose the thumbnail hover style for the asset. If set to 'Default', then this uses the thumbnail type set in the theme options.", 'swift-framework-plugin'));
}
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_galleries', array("name" => __("Galleries", 'swift-framework-plugin'), "base" => "spb_galleries", "class" => "spb_galleries spb_tab_media", "icon" => "icon-galleries", "params" => $params));
Ejemplo n.º 5
0
        wp_reset_postdata();
        $items .= '</div>';
        $items .= '<a href="#" class="carousel-prev"><i class="ss-navigateleft"></i></a><a href="#" class="carousel-next"><i class="ss-navigateright"></i></a>';
        $options = get_option('sf_dante_options');
        if ($options['enable_swipe_indicators']) {
            $items .= '<div class="sf-swipe-indicator"></div>';
        }
        $items .= '</div>';
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $output .= "\n\t" . '<div class="spb_posts_carousel_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper carousel-wrap alt-nav">';
        if ($title != '') {
            if ($width == "col-sm-12") {
                $output .= "\n\t\t\t" . '<div class="heading-wrap"><h3 class="spb-heading spb-center-heading"><span>' . $title . '</span></h3></div>';
            } else {
                $output .= "\n\t\t\t" . '<div class="heading-wrap"><h3 class="spb-heading"><span>' . $title . '</span></h3></div>';
            }
        }
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $sf_include_carousel, $sf_include_isotope;
        $sf_include_carousel = true;
        $sf_include_isotope = true;
        return $output;
    }
}
SPBMap::map('posts_carousel', array("name" => __("Posts Carousel", "swift-framework-admin"), "base" => "posts_carousel", "class" => "spb_posts_carousel spb_carousel", "icon" => "spb-icon-posts-carousel", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "12", "description" => __("The number of blog items to show in the carousel.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Posts category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('category'), "description" => __("Choose the category for the blog items.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Posts offset", "swift-framework-admin"), "param_name" => "offset", "value" => "0", "description" => __("The offset for the start of the posts that are displayed, e.g. enter 5 here to start from the 5th post.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Posts order", "swift-framework-admin"), "param_name" => "posts_order", "value" => array(__("Ascending", "swift-framework-admin") => "ASC", __("Descending", "swift-framework-admin") => "DESC"), "description" => __("The order of the posts.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show title text", "swift-framework-admin"), "param_name" => "show_title", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show the item title text.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show item excerpt", "swift-framework-admin"), "param_name" => "show_excerpt", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show the item excerpt text.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show item details", "swift-framework-admin"), "param_name" => "show_details", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show the item details.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Excerpt Length", "swift-framework-admin"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 6
0
                $items .= '</div>';
                $items .= '<div class="post-item-details clearfix">';
                $items .= '<span class="post-date">' . $post_date . '</span>';
                $items .= '<div class="comments-likes">';
                if (comments_open()) {
                    $items .= '<a href="' . $post_permalink . '#comment-area"><i class="ss-chat"></i><span>' . $post_comments . '</span></a> ';
                }
                if (function_exists('lip_love_it_link')) {
                    $items .= lip_love_it_link(get_the_ID(), '<i class="ss-heart"></i>', '<i class="ss-heart"></i>', false);
                }
                $items .= '</div>';
                $items .= '</div>';
                $items .= '</li>';
            }
            wp_reset_query();
            $items .= '</ul>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_recent_posts_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper recent-posts-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>' : '';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
SPBMap::map('recent_posts', array("name" => __("Recent Posts", "swift-framework-admin"), "base" => "recent_posts", "class" => "spb_recent_posts", "icon" => "spb-icon-recent-posts", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Columns", "swift-framework-admin"), "param_name" => "item_columns", "value" => array(__('1', "swift-framework-admin") => "1", __('2', "swift-framework-admin") => "2", __('3', "swift-framework-admin") => "3", __('4', "swift-framework-admin") => "4"), "description" => __("Choose the amount of columns you would like for the team asset.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "4", "description" => __("The number of blog items to show per page.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Blog category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('category'), "description" => __("Choose the category for the blog items.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Posts offset", "swift-framework-admin"), "param_name" => "offset", "value" => "0", "description" => __("The offset for the start of the posts that are displayed, e.g. enter 5 here to start from the 5th post.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Posts order", "swift-framework-admin"), "param_name" => "posts_order", "value" => array(__("Ascending", "swift-framework-admin") => "ASC", __("Descending", "swift-framework-admin") => "DESC"), "description" => __("The order of the posts.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Excerpt Length", "swift-framework-admin"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 7
0
 function sf_portfolio_filter($style = "basic", $parent_category = "")
 {
     $filter_output = $tax_terms = "";
     $options = get_option('sf_dante_options');
     $filter_wrap_bg = $options['filter_wrap_bg'];
     if ($parent_category == "" || $parent_category == "all") {
         $tax_terms = sf_get_category_list('portfolio-category', 1);
     } else {
         $tax_terms = sf_get_category_list('portfolio-category', 1, $parent_category);
     }
     if ($style == "slide-out") {
         $filter_output .= '<div class="filter-wrap slideout-filter row clearfix">' . "\n";
         $filter_output .= '<a href="#" class="select"><i class="fa-justify"></i>' . __("Filter our work", "swiftframework") . '</a>' . "\n";
         $filter_output .= '<div class="filter-slide-wrap col-sm-12 alt-bg ' . $filter_wrap_bg . '">' . "\n";
         $filter_output .= '<ul class="portfolio-filter filtering row clearfix">' . "\n";
         $filter_output .= '<li class="all selected col-sm-2"><a data-filter="*" href="#"><span class="item-name">' . __("All", "swiftframework") . '</span><span class="item-count">0</span></a></li>' . "\n";
         foreach ($tax_terms as $tax_term) {
             $term = get_term_by('name', $tax_term, 'portfolio-category');
             if ($term) {
                 $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>' . "\n";
             } else {
                 $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>' . "\n";
             }
         }
         $filter_output .= '</ul></div></div>' . "\n";
     } else {
         if ($style == "full-width") {
             $filter_output .= '<div class="container">';
         }
         $filter_output .= '<div class="filter-wrap row clearfix">' . "\n";
         $filter_output .= '<ul class="portfolio-filter-tabs bar-styling filtering col-sm-12 clearfix">' . "\n";
         $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __("All", "swiftframework") . '</span><span class="item-count">0</span></a></li>' . "\n";
         foreach ($tax_terms as $tax_term) {
             $term = get_term_by('name', $tax_term, 'portfolio-category');
             if ($term) {
                 $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>' . "\n";
             } else {
                 $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>' . "\n";
             }
         }
         $filter_output .= '</ul></div>' . "\n";
         if ($style == "full-width") {
             $filter_output .= '</div>';
         }
     }
     return $filter_output;
 }
Ejemplo n.º 8
0
            $output .= '<input type="text" name="dir-search-value" id="dir-search-value" value="' . $dir_search_val . '" placeholder="' . $dir_placeholder . '"></div>';
            $output .= '<div class="directory-filter">' . sf_directory_location_filter() . '</div>';
            $output .= '<div class="directory-filter"> ' . sf_directory_category_filter($category_term, $directory_category) . '</div>';
            $output .= '<div class="directory-search-container"><a class="btn read-more-button directorySearch" name="directory-search-button" id="directory-search-button">' . __("Search", 'swift-framework-plugin') . '</a></div>';
            $output .= '</form>';
            $output .= '</div></div>' . $this->endBlockComment($width);
        }
        if ($fullscreen) {
            $output .= "\n\t\t" . '<div class="directory-results container">';
        } else {
            $output .= "\n\t\t" . '<div class="directory-results">';
        }
        if ($directory_map_results != 'map') {
            // ITEMS OUTPUT
            $items = sf_directory_items($excerpt_length, $pagination, $item_count, $directory_category, $order);
            $output .= $items;
        }
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div></div>';
        if ($fullscreen && $width == "col-sm-12") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_maps;
        $sf_include_maps = true;
        return $output;
    }
}
SPBMap::map('spb_directory', array("name" => __("Directory Map", 'swift-framework-plugin'), "base" => "spb_directory", "controls" => "full", "class" => "spb_directory", "icon" => "icon-directory-map", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Map Height", 'swift-framework-plugin'), "param_name" => "size", "value" => "300", "description" => __('Enter map height in pixels. Example: 300.', 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Directory category", 'swift-framework-plugin'), "param_name" => "directory_category", "value" => sf_get_category_list('directory-category'), "description" => __("Choose the category from which you'd like to show the directory items.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order", 'swift-framework-plugin'), "param_name" => "order", "std" => "date", "value" => array(__('Default', 'swift-framework-plugin') => "standard", __('Date (Ascending)', 'swift-framework-plugin') => "date-asc", __('Date (Descending)', 'swift-framework-plugin') => "date-desc", __('Title (Ascending)', 'swift-framework-plugin') => "title-asc", __('Title (Descending)', 'swift-framework-plugin') => "title-desc"), "description" => __("Select how you'd like the items to be ordered.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Map Filter", 'swift-framework-plugin'), "param_name" => "directory_map_filter", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("If yes, will be added a filter to refine the results.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Filter Position", 'swift-framework-plugin'), "param_name" => "directory_map_filter_pos", "value" => array(__("Above", 'swift-framework-plugin') => "above", __("Below", 'swift-framework-plugin') => "below"), "required" => array("directory_map_filter", "=", "yes"), "description" => __("Choose the position of the Map Filter(above or below).", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display Results", 'swift-framework-plugin'), "param_name" => "directory_map_results", "value" => array(__("Map", 'swift-framework-plugin') => "map", __("List", 'swift-framework-plugin') => "list", __("Map & List", 'swift-framework-plugin') => "maplist"), "description" => __("Choose how the results will be displayed.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Excerpt Length", 'swift-framework-plugin'), "param_name" => "excerpt_length", "value" => "", "description" => __("The length of the excerpt for the list results text(leave empty for full description.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of directory items to show per page. Leave blank to show ALL directory items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "description" => __("Show directory pagination.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Type", 'swift-framework-plugin'), "param_name" => "type", "value" => array(__("Map", 'swift-framework-plugin') => "roadmap", __("Satellite", 'swift-framework-plugin') => "satellite", __("Hybrid", 'swift-framework-plugin') => "hybrid", __("Terrain", 'swift-framework-plugin') => "terrain"), "description" => __("Select map display type. NOTE, if you set a color below, then only the standard Map type will show.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Zoom", 'swift-framework-plugin'), "param_name" => "zoom", "value" => array(__("14 - Default", 'swift-framework-plugin') => 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20), "description" => __("This zoom field will only work for 1 map pin. When displaying more than 1 result the zoom will be calculate based on the pins of the map.", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Map Color", 'swift-framework-plugin'), "param_name" => "color", "value" => "", "description" => __('If you would like, you can enter a hex color here to style the map by changing the hue.', 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Saturation", 'swift-framework-plugin'), "param_name" => "saturation", "value" => array(__("Color", 'swift-framework-plugin') => "color", __("Mono (Light)", 'swift-framework-plugin') => "mono-light", __("Mono (Dark)", 'swift-framework-plugin') => "mono-dark"), "description" => __("Set whether you would like the map to be in color or mono (black/white).", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Fullscreen Display", 'swift-framework-plugin'), "param_name" => "fullscreen", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "no", "description" => __("If yes, the map will be displayed from screen edge to edge.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
Ejemplo n.º 9
0
        }
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap">';
            $items .= pagenavi($testimonials);
            $items .= '</div>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $el_class .= ' testimonial';
        $output .= "\n\t" . '<div class="spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content testimonial-wrap ' . $text_size . '">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '') : '';
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
/* PARAMS
   ================================================== */
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Text size", 'swift-framework-plugin'), "param_name" => "text_size", "value" => array(__('Normal', 'swift-framework-plugin') => "normal", __('Large', 'swift-framework-plugin') => "large"), "description" => __("Choose the size of the text.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "6", "description" => __("The number of testimonials to show per page. Leave blank to show ALL testimonials.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Testimonials Order", 'swift-framework-plugin'), "param_name" => "order", "value" => array(__('Random', 'swift-framework-plugin') => "rand", __('Latest', 'swift-framework-plugin') => "date"), "description" => __("Choose the order of the testimonials.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Testimonials category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('testimonials-category'), "description" => __("Choose the category for the testimonials.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Show testimonial pagination (1/1 width element only).", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Testimonials page link", 'swift-framework-plugin'), "param_name" => "page_link", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Include a link to the testimonials page (which you must choose in the theme options).", 'swift-framework-plugin')));
if (spb_get_theme_name() == "uplift") {
    $params[] = array("type" => "dropdown", "heading" => __("Display Type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Masonry', 'swift-framework-plugin') => "masonry"), "std" => 'standard', "description" => __("Choose the display type for the asset.", 'swift-framework-plugin'));
    $params[] = array("type" => "dropdown", "heading" => __("Column count", 'swift-framework-plugin'), "param_name" => "columns", "value" => array("5", "4", "3", "2", "1"), "required" => array("display_type", "=", "masonry"), "std" => '3', "description" => __("How many columns to display.", 'swift-framework-plugin'));
}
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SPBMap
   ================================================== */
SPBMap::map('spb_testimonial', array("name" => __("Testimonials", 'swift-framework-plugin'), "base" => "spb_testimonial", "class" => "", "icon" => "icon-testimonials", "wrapper_class" => "clearfix", "controls" => "full", "params" => $params));
Ejemplo n.º 10
0
 function sf_gallery_filter($style = "basic", $parent_category = "")
 {
     $filter_output = $tax_terms = "";
     if ($parent_category == "" || $parent_category == "All") {
         $tax_terms = sf_get_category_list('gallery-category', 1, '', true);
     } else {
         $tax_terms = sf_get_category_list('gallery-category', 1, $parent_category, true);
     }
     $filter_output .= '<div class="filter-wrap clearfix">' . "\n";
     $filter_output .= '<ul class="post-filter-tabs filtering clearfix">' . "\n";
     $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __("Show all", "swiftframework") . '</span></a></li>' . "\n";
     foreach ($tax_terms as $tax_term) {
         $term = get_term_by('name', $tax_term, 'gallery-category');
         if ($term) {
             $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
         } else {
             $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span></a></li>' . "\n";
         }
     }
     $filter_output .= '</ul></div>' . "\n";
     return $filter_output;
 }
Ejemplo n.º 11
0
        $items .= '</div>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap">';
            $items .= pagenavi($clients_items);
            $items .= '</div>';
        }
        // PAGE BUILDER OUPUT
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_clients_widget clients-wrap carousel-asset spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= "\n\t\t" . '<div class="title-wrap clearfix">';
        if ($title != '') {
            $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
        }
        if ($carousel == "yes") {
            $output .= spb_carousel_arrows();
        }
        $output .= '</div>';
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $sf_include_carousel;
        $sf_include_carousel = true;
        return $output;
    }
}
SPBMap::map('spb_clients', array("name" => __("Clients", 'swift-framework-plugin'), "base" => "spb_clients", "class" => "clients", "icon" => "spb-icon-clients", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of clients to show per page. Leave blank to show ALL clients.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Columns", 'swift-framework-plugin'), "param_name" => "item_columns", "value" => array(__('2', 'swift-framework-plugin') => "2", __('3', 'swift-framework-plugin') => "3", __('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "std" => '4', "description" => __("Choose the amount of columns you would like for the clients asset.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Clients category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('clients-category'), "description" => __("Choose the category for the client items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Enable Carousel", 'swift-framework-plugin'), "param_name" => "carousel", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "description" => __("Enable carousel functionality.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Show clients pagination (non-carousel only).", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
Ejemplo n.º 12
0
 function sf_portfolio_filter($style = "basic", $post_type = "portfolio", $parent_category = "", $frontend_display = false)
 {
     $filter_output = $tax_terms = "";
     $taxonomy_name = 'category';
     if ($post_type != "post") {
         $taxonomy_name = $post_type . '-category';
     }
     if ($parent_category == "" || $parent_category == "All") {
         $tax_terms = sf_get_category_list($taxonomy_name, 1, '', true);
     } else {
         $tax_terms = sf_get_category_list($taxonomy_name, 1, $parent_category, true);
     }
     $filter_output .= '<div class="filter-wrap clearfix">' . "\n";
     $filter_output .= '<ul class="post-filter-tabs filtering clearfix">' . "\n";
     $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __("Show all", "swiftframework") . '</span></a></li>' . "\n";
     foreach ($tax_terms as $tax_term) {
         $term = get_term_by('slug', $tax_term, $taxonomy_name);
         if ($term) {
             $filter_output .= '<li><a href="#" title="' . $term->name . '" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
         } else {
             $filter_output .= '<li><a href="#" title="' . $tax_term . '" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span></a></li>' . "\n";
         }
     }
     $filter_output .= '</ul></div>' . "\n";
     return $filter_output;
 }
Ejemplo n.º 13
0
                    $faqs->the_post();
                    $faq_title = get_the_title();
                    $faq_text = apply_filters('the_content', get_the_content());
                    $faq_text = str_replace(']]>', ']]&gt;', $faq_text);
                    $items .= '<li class="faq-item closed">';
                    $items .= '<h5 data-before="' . __('Q:', 'swiftframework') . '">' . $faq_title . '</h5>';
                    $items .= '<div class="faq-text" data-before="' . __('A:', 'swiftframework') . '">' . do_shortcode($faq_text) . '</div>';
                    $items .= '</li>';
                }
                $items .= '<div class="spb_divider go_to_top_icon1 spb_content_element "><a class="animate-top" href="#">' . $up_icon . '</a></div>';
                $items .= '</ul>';
                wp_reset_postdata();
            }
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_faqs_element spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper faqs-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '') : '';
        $output .= "\n\t\t\t" . $items_nav;
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        // Row
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        // Return
        return $output;
    }
}
SPBMap::map('spb_faqs', array("name" => __("FAQs", 'swift-framework-plugin'), "base" => "spb_faqs", "class" => "", "icon" => "icon-faqs", "wrapper_class" => "clearfix", "controls" => "full", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("FAQ category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('faqs-category'), "description" => __("Choose the category for the FAQ.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
Ejemplo n.º 14
0
            }
            $output .= '</div>';
        }
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_isotope, $sf_has_portfolio;
        $sf_include_isotope = true;
        $sf_has_portfolio = true;
        return $output;
    }
}
/* PARAMS
   ================================================== */
$pagination_types = array(__('None', 'swift-framework-plugin') => "none", __('Standard', 'swift-framework-plugin') => "standard");
$pagination_types = apply_filters('spb_portfolio_pagination_types', $pagination_types);
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Gallery', 'swift-framework-plugin') => "gallery", __('Masonry', 'swift-framework-plugin') => "masonry", __('Masonry Gallery', 'swift-framework-plugin') => "masonry-gallery", __('Multi Size Masonry', 'swift-framework-plugin') => "multi-size-masonry"), "description" => __("Select the type of portfolio you'd like to show.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Multi Size Masonry Ratio", 'swift-framework-plugin'), "param_name" => "multi_size_ratio", "value" => array("1/1", "4/3"), "required" => array("display_type", "=", "multi-size-masonry"), "description" => __("Choose whether to display 4/3, or 1/1 ratio thumbnails.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like spacing between the items, or not.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Column count", 'swift-framework-plugin'), "param_name" => "columns", "value" => array("5", "4", "3", "2", "1"), "required" => array("display_type", "!=", "multi-size-masonry"), "description" => __("How many portfolio columns to display.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show title text", 'swift-framework-plugin'), "param_name" => "show_title", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item title text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show subtitle text", 'swift-framework-plugin'), "param_name" => "show_subtitle", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item subtitle text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show item excerpt", 'swift-framework-plugin'), "param_name" => "show_excerpt", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item excerpt text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Excerpt Hover", 'swift-framework-plugin'), "param_name" => "hover_show_excerpt", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "std" => "no", "required" => array("display_type", "or", "gallery,masonry-gallery,multi-size-masonry"), "description" => __("Show the item excerpt on hover, instead of the arrow button.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Excerpt Length", 'swift-framework-plugin'), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of portfolio items to show per page. Leave blank to show ALL portfolio items.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Portfolio category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('portfolio-category'), "description" => __("Choose the category from which you'd like to show the portfolio items.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order by", 'swift-framework-plugin'), "param_name" => "order_by", "value" => array(__('None', 'swift-framework-plugin') => "none", __('ID', 'swift-framework-plugin') => "ID", __('Title', 'swift-framework-plugin') => "title", __('Date', 'swift-framework-plugin') => "date", __('Random', 'swift-framework-plugin') => "rand"), "description" => __("Select how you'd like the items to be ordered.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order", 'swift-framework-plugin'), "param_name" => "order", "value" => array(__("Descending", 'swift-framework-plugin') => "DESC", __("Ascending", 'swift-framework-plugin') => "ASC"), "description" => __("Select if you'd like the items to be ordered in ascending or descending order.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Filter", 'swift-framework-plugin'), "param_name" => "portfolio_filter", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show the portfolio category filter above the items.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => $pagination_types, "description" => __("Show portfolio pagination.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Portfolio Page Button", 'swift-framework-plugin'), "param_name" => "button_enabled", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("portfolio_filter", "=", "yes"), "description" => __("Select if you'd like to include a button in the title bar to link through to all portfolio items. The page is set in Theme Options > Custom Post Type Options.", 'swift-framework-plugin')));
if (spb_get_theme_name() == "joyn") {
    $params[] = array("type" => "dropdown", "heading" => __("Thumbnail Hover Style", 'swift-framework-plugin'), "param_name" => "hover_style", "value" => array(__('Default', 'swift-framework-plugin') => "default", __('Standard', 'swift-framework-plugin') => "gallery-standard", __('Gallery Alt', 'swift-framework-plugin') => "gallery-alt-one"), "description" => __("Choose the thumbnail hover style for the asset. If set to 'Default', then this uses the thumbnail type set in the theme options.", 'swift-framework-plugin'));
}
$params[] = array("type" => "section", "param_name" => "advanced_options", "heading" => __("Advanced Options", 'swift-framework-plugin'));
$params[] = array("type" => "dropdown", "heading" => __("Post Type Override", 'swift-framework-plugin'), "param_name" => "post_type", "value" => spb_get_post_types(), "description" => __("If you'd like to override the post type for which the content is of this asset is made up of, then you can select it here.", 'swift-framework-plugin'));
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_portfolio', array("name" => __("Portfolio", 'swift-framework-plugin'), "base" => "spb_portfolio", "class" => "spb_portfolio spb_tab_media", "icon" => "icon-portfolio", "params" => $params));
Ejemplo n.º 15
0
        if ($options['enable_swipe_indicators']) {
            $items .= '<div class="sf-swipe-indicator"></div>';
        }
        $items .= '</div>';
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        if ($alt_background == "none" || $sidebar_config != "no-sidebars" || $width != "col-sm-12") {
            $output .= "\n\t" . '<div class="spb_portfolio_carousel_widget spb_content_element ' . $width . $el_class . '">';
        } else {
            $output .= "\n\t" . '<div class="spb_portfolio_carousel_widget spb_content_element alt-bg ' . $alt_background . ' ' . $width . $el_class . '">';
        }
        $output .= "\n\t\t" . '<div class="spb_wrapper carousel-wrap">';
        if ($title != '') {
            if ($width == "col-sm-12") {
                $output .= "\n\t\t\t" . '<div class="heading-wrap"><h3 class="spb-heading spb-center-heading"><span>' . $title . '</span></h3></div>';
            } else {
                $output .= "\n\t\t\t" . '<div class="heading-wrap"><h3 class="spb-heading"><span>' . $title . '</span></h3></div>';
            }
        }
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $sf_include_carousel, $sf_include_isotope;
        $sf_include_carousel = true;
        $sf_include_isotope = true;
        return $output;
    }
}
SPBMap::map('portfolio_carousel', array("name" => __("Portfolio Carousel", "swift-framework-admin"), "base" => "portfolio_carousel", "class" => "spb_portfolio_carousel spb_carousel", "icon" => "spb-icon-portfolio-carousel", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "12", "description" => __("The number of portfolio items to show in the carousel.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Portfolio category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('portfolio-category'), "description" => __("Choose the category for the portfolio items.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show item excerpt", "swift-framework-admin"), "param_name" => "show_excerpt", "value" => array(__('No', "swift-framework-admin") => "no", __('Yes', "swift-framework-admin") => "yes"), "description" => __("Show the item excerpt text. (Standard/Masonry only)", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Excerpt Length", "swift-framework-admin"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show alt background", "swift-framework-admin"), "param_name" => "alt_background", "value" => array(__("None", "swift-framework-admin") => "none", __("Alt 1", "swift-framework-admin") => "alt-one", __("Alt 2", "swift-framework-admin") => "alt-two", __("Alt 3", "swift-framework-admin") => "alt-three", __("Alt 4", "swift-framework-admin") => "alt-four", __("Alt 5", "swift-framework-admin") => "alt-five", __("Alt 6", "swift-framework-admin") => "alt-six", __("Alt 7", "swift-framework-admin") => "alt-seven", __("Alt 8", "swift-framework-admin") => "alt-eight", __("Alt 9", "swift-framework-admin") => "alt-nine", __("Alt 10", "swift-framework-admin") => "alt-ten"), "description" => __("Show an alternative background around the asset. These can all be set in Theme Options > Asset Background Options. NOTE: This is only available on a page with the no sidebar setup.", "swift-framework-admin")), array("type" => "altbg_preview", "heading" => __("Alt Background Preview", "swift-framework-admin"), "param_name" => "altbg_preview", "value" => "", "description" => __("", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 16
0
                $items .= '</li>';
                $count++;
            }
            wp_reset_query();
            $items .= '</ul>';
            $items .= '<a href="#" class="prev"><i class="ss-navigateleft"></i></a><a href="#" class="next"><i class="ss-navigateright"></i></a>';
            $options = get_option('sf_dante_options');
            if ($options['enable_swipe_indicators']) {
                $items .= '<div class="sf-swipe-indicator"></div>';
            }
            $items .= '</div>';
        }
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $output .= "\n\t" . '<div class="spb_team_carousel_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper carousel-wrap">';
        if ($title != '') {
            $output .= "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
        }
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $sf_include_carousel, $sf_include_isotope;
        $sf_include_carousel = true;
        $sf_include_isotope = true;
        return $output;
    }
}
SPBMap::map('team_carousel', array("name" => __("Team Carousel", "swift-framework-admin"), "base" => "team_carousel", "class" => "team_carousel spb_carousel", "icon" => "spb-icon-team-carousel", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Team category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('team-category'), "description" => __("Choose the category for the portfolio items.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Excerpt Length", "swift-framework-admin"), "param_name" => "excerpt_length", "value" => "", "description" => __("The length of the excerpt for each of the team members. Default 60.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 17
0
        } else {
            if ($sidebar_config == "both-sidebars") {
                $sidebars = 'both-sidebars';
            } else {
                $sidebars = 'no-sidebars';
            }
        }
        $el_class .= ' testimonial';
        $output .= "\n\t" . '<div class="spb_testimonial_slider_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t" . '<div class="spb-bg-color-wrap">';
        $output .= "\n\t\t" . '<div class="spb-asset-content spb_wrapper slider-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<div class="heading-wrap"><h3 class="spb-heading spb-center-heading">' . $title . '</h3></div>' : '';
        if ($title == "") {
            $output .= "\n\t\t\t" . '<div class="testimonial-icon">' . $quote_icon . '</div>';
        }
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_carousel;
        $sf_include_carousel = true;
        return $output;
    }
}
SPBMap::map('spb_testimonial_slider', array("name" => __("Testimonials Slider", 'swift-framework-plugin'), "base" => "spb_testimonial_slider", "class" => "spb_testimonial_slider", "icon" => "spb-icon-testimonial_slider", "wrapper_class" => "clearfix", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Text size", 'swift-framework-plugin'), "param_name" => "text_size", "value" => array(__('Large', 'swift-framework-plugin') => "large", __('Standard', 'swift-framework-plugin') => "standard"), "description" => __("Choose the size of the text.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "6", "description" => __("The number of testimonials to show. Leave blank to show ALL testimonials.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Testimonials Order", 'swift-framework-plugin'), "param_name" => "order", "value" => array(__('Random', 'swift-framework-plugin') => "rand", __('Latest', 'swift-framework-plugin') => "date"), "description" => __("Choose the order of the testimonials.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Testimonials category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('testimonials-category'), "description" => __("Choose the category for the testimonials.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Slider autoplay", 'swift-framework-plugin'), "param_name" => "autoplay", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "description" => __("Select if you want the slider to autoplay or not.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
Ejemplo n.º 18
0
 *	Swift Page Builder - Swift Slider Shortcode
 *	------------------------------------------------
 *	Swift Framework
 * 	Copyright Swift Ideas 2015 - http://www.swiftideas.com
 *
 */
class SwiftPageBuilderShortcode_spb_swift_slider extends SwiftPageBuilderShortcode
{
    protected function content($atts, $content = null)
    {
        $width = $el_class = $output = $items = $el_position = '';
        extract(shortcode_atts(array('category' => '', 'fullscreen' => 'false', 'maxheight' => '', 'slidecount' => '', 'autoplay' => '', 'transition' => '', 'loop' => '', 'nav' => 'true', 'pagination' => 'true', 'continue' => 'true', 'el_position' => '', 'fullwidth' => '', 'width' => '1/1', 'el_class' => ''), $atts));
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_swift-slider spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= "\n\t\t\t" . do_shortcode('[swift_slider type="slider" category="' . $category . '" fullscreen="' . $fullscreen . '" max_height="' . $maxheight . '" slide_count="' . $slidecount . '" transition="' . $transition . '" loop="' . $loop . '" nav="' . $nav . '" pagination="' . $pagination . '" autoplay="' . $autoplay . '" continue="' . $continue . '"]');
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $width == "col-sm-12") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_has_swiftslider;
        $sf_has_swiftslider = true;
        return $output;
    }
}
SPBMap::map('spb_swift_slider', array("name" => __("Swift Slider", 'swift-framework-plugin'), "base" => "spb_swift_slider", "class" => "spb_swiftslider", "icon" => "spb-icon-swiftslider", "params" => array(array("type" => "buttonset", "heading" => __("Fullscreen", 'swift-framework-plugin'), "param_name" => "fullscreen", "value" => array(__('Yes', 'swift-framework-plugin') => "true", __('No', 'swift-framework-plugin') => "false"), "description" => __("Choose if you would like the slider to be window height.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Slider Max Height", 'swift-framework-plugin'), "param_name" => "maxheight", "value" => "600", "description" => __("Set the maximum height that the Swift Slider should display at (optional) (no px).", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Slide Count", 'swift-framework-plugin'), "param_name" => "slidecount", "value" => "5", "description" => __("Set the number of slides to show. If blank then all will show.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Slide category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('swift-slider-category'), "description" => __("Choose the category of slide that you would like to show, or all.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Autoplay", 'swift-framework-plugin'), "param_name" => "autoplay", "value" => "", "description" => __("If you would like the slider to auto-rotate, then set the autoplay rotate time in ms here. I.e. you would enter '5000' for the slider to rotate every 5 seconds.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Transition", 'swift-framework-plugin'), "param_name" => "transition", "value" => array(__('Slide', 'swift-framework-plugin') => "slide", __('Fade', 'swift-framework-plugin') => "fade"), "description" => __("Select the transition between slides.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Loop", 'swift-framework-plugin'), "param_name" => "loop", "value" => array(__('Yes', 'swift-framework-plugin') => "true", __('No', 'swift-framework-plugin') => "false"), "description" => __("Select if you'd like the slider to loop.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Navigation", 'swift-framework-plugin'), "param_name" => "nav", "value" => array(__('Yes', 'swift-framework-plugin') => "true", __('No', 'swift-framework-plugin') => "false"), "description" => __('Choose if you would like to display the left/right arrows on the slider.', 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('Yes', 'swift-framework-plugin') => "true", __('No', 'swift-framework-plugin') => "false"), "description" => __("Choose if you would like to display the slider pagination.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Continue", 'swift-framework-plugin'), "param_name" => "continue", "value" => array(__('Yes', 'swift-framework-plugin') => "true", __('No', 'swift-framework-plugin') => "false"), "description" => __("Choose if you would like to display the continue button on the slider to progress to the content. If you want to only display the slider on the page, and no content, then make sure you set this to NO.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "description" => __("Select if you'd like the slider to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
Ejemplo n.º 19
0
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_isotope, $sf_has_team, $sf_include_carousel;
        $sf_include_isotope = true;
        $sf_has_team = true;
        if ($carousel == "yes") {
            $sf_include_carousel = true;
        }
        return $output;
    }
}
/* PARAMS
   ================================================== */
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display Type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Standard (No Excerpt)', 'swift-framework-plugin') => "standard-alt", __('Gallery', 'swift-framework-plugin') => "gallery"), "description" => __("Choose the display type for the team members.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Carousel", 'swift-framework-plugin'), "param_name" => "carousel", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "description" => __("Enables carousel funcitonality in the asset.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Columns", 'swift-framework-plugin'), "param_name" => "item_columns", "value" => array(__('1', 'swift-framework-plugin') => "1", __('2', 'swift-framework-plugin') => "2", __('3', 'swift-framework-plugin') => "3", __('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "std" => '4', "description" => __("Choose the amount of columns you would like for the team asset.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of team members to show per page.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Specific Team Member(s)", 'swift-framework-plugin'), "param_name" => "post_ids", "value" => "", "description" => __("Select specific team members to show here, providing the post ID in comma delimited format.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Custom Image Height", 'swift-framework-plugin'), "param_name" => "custom_image_height", "value" => "", "description" => __("Enter a value here if you would like to override the image height of the team member images. Numerical value (no px).", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Team category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('team-category'), "description" => __("Choose the category for the team items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Profile Link", 'swift-framework-plugin'), "param_name" => "profile_link", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like the team members to link through to the profile page.", 'swift-framework-plugin')));
if (sf_theme_supports('spb-team-ajax')) {
    $params[] = array("type" => "buttonset", "heading" => __("AJAX Overlay", 'swift-framework-plugin'), "param_name" => "ajax_overlay", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "std" => 'no', "description" => __("Select if you'd like the team profile links to open up the team member via an AJAX overlay. NOTE: Shortcodes/jquery functions will not function within this mode, works best when only", 'swift-framework-plugin'));
}
$params[] = array("type" => "buttonset", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "description" => __("Show team pagination.", 'swift-framework-plugin'));
$params[] = array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin'));
$params[] = array("type" => "buttonset", "heading" => __("Gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like spacing between the items, or not.", 'swift-framework-plugin'));
$params[] = array("type" => "dropdown", "heading" => __("Order by", 'swift-framework-plugin'), "param_name" => "order_by", "value" => array(__('None', 'swift-framework-plugin') => "none", __('ID', 'swift-framework-plugin') => "ID", __('Title', 'swift-framework-plugin') => "title", __('Date', 'swift-framework-plugin') => "date", __('Random', 'swift-framework-plugin') => "rand"), "description" => __("Select how you'd like the items to be ordered.", 'swift-framework-plugin'));
$params[] = array("type" => "dropdown", "heading" => __("Order", 'swift-framework-plugin'), "param_name" => "order", "value" => array(__("Descending", 'swift-framework-plugin') => "DESC", __("Ascending", 'swift-framework-plugin') => "ASC"), "description" => __("Select if you'd like the items to be ordered in ascending or descending order.", 'swift-framework-plugin'));
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_team', array("name" => __("Team", 'swift-framework-plugin'), "base" => "spb_team", "class" => "team", "icon" => "icon-team", "params" => $params));
Ejemplo n.º 20
0
        wp_reset_postdata();
        $items .= '</ul>';
        if ($view_all_link == "yes") {
            $options = get_option('sf_dante_options');
            $jobs_page = __($options['jobs_page'], 'swiftframework');
            if ($jobs_page) {
                $jobs_page_title = get_page_by_path($jobs_page);
                if (isset($jobs_page_title)) {
                    $jobs_page_id = $jobs_page_title->ID;
                }
            }
            if ($jobs_page && isset($jobs_page_title)) {
                $items .= '<a href="' . get_permalink($jobs_page_id) . '" class="read-more">' . __("View all vacancies", "swiftframework") . ' [' . $current_jobs . ']</a>';
            }
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper jobs-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading">' . $title . '</h3>' : '';
        $output .= "\n\t\t\t" . "<p>" . $job_text . "</p>";
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        //
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
SPBMap::map('jobs_overview', array("name" => __("Jobs Overview", "swift-framework-admin"), "base" => "jobs_overview", "class" => "", "icon" => "spb-icon-jobs-overview", "wrapper_class" => "clearfix", "controls" => "full", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Intro Text", "swift-framework-admin"), "param_name" => "job_text", "value" => __("", "swift-framework-admin"), "description" => __("Enter the intro text for the jobs overview.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "3", "description" => __("The number of jobs to show in the overview list. Leave blank to show ALL jobs.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Jobs Order", "swift-framework-admin"), "param_name" => "order", "value" => array(__('Random', "swift-framework-admin") => "rand", __('Latest', "swift-framework-admin") => "date"), "description" => __("Choose the order of the jobs.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Jobs category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('jobs-category'), "description" => __("Choose the category for the jobs.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("View all link", "swift-framework-admin"), "param_name" => "view_all_link", "value" => array(__('Yes', "swift-framework-admin") => "yes", __('No', "swift-framework-admin") => "no"), "description" => __("Show the view all jobs link. Make sure you have selected the page within theme options for this to work.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 21
0
            }
            $items .= '<span class="job-date">' . $job_date . '</span>';
            $items .= '<h5>' . $job_title . '</h5>';
            $items .= '<div class="job-text">' . do_shortcode($job_text) . '</div>';
            $items .= '<a href="' . get_permalink() . '" class="read-more">' . __("Learn more", "swiftframework") . '</a>';
            $items .= '</div>';
            $items .= '</li>';
        }
        wp_reset_postdata();
        $items .= '</ul>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap">';
            $items .= pagenavi($jobs);
            $items .= '</div>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper jobs-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>' : '';
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        //
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
SPBMap::map('spb_jobs', array("name" => __("Jobs", "swift-framework-admin"), "base" => "spb_jobs", "class" => "", "icon" => "spb-icon-jobs", "wrapper_class" => "clearfix", "controls" => "full", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "6", "description" => __("The number of jobs to show per page. Leave blank to show ALL jobs.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Jobs Order", "swift-framework-admin"), "param_name" => "order", "value" => array(__('Random', "swift-framework-admin") => "rand", __('Latest', "swift-framework-admin") => "date"), "description" => __("Choose the order of the jobs.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Jobs category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('jobs-category'), "description" => __("Choose the category for the jobs.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Pagination", "swift-framework-admin"), "param_name" => "pagination", "value" => array(__('No', "swift-framework-admin") => "no", __('Yes', "swift-framework-admin") => "yes"), "description" => __("Show jobs pagination.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 22
0
            }
            $output .= '</div>';
        } else {
            $output .= "\n\t\t" . '<div class="title-wrap clearfix">';
            if ($title != '') {
                $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
            }
            if ($carousel == "yes") {
                $output .= spb_carousel_arrows();
            }
            $output .= '</div>';
        }
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_isotope, $sf_has_team, $sf_include_carousel;
        $sf_include_isotope = true;
        $sf_has_team = true;
        if ($carousel == "yes") {
            $sf_include_carousel = true;
        }
        return $output;
    }
}
SPBMap::map('spb_team', array("name" => __("Team", 'swift-framework-plugin'), "base" => "spb_team", "class" => "team", "icon" => "spb-icon-team", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display Type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Standard (No Excerpt)', 'swift-framework-plugin') => "standard-alt", __('Gallery', 'swift-framework-plugin') => "gallery"), "description" => __("Choose the display type for the team members.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Carousel", 'swift-framework-plugin'), "param_name" => "carousel", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Enables carousel funcitonality in the asset.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Columns", 'swift-framework-plugin'), "param_name" => "item_columns", "value" => array(__('1', 'swift-framework-plugin') => "1", __('2', 'swift-framework-plugin') => "2", __('3', 'swift-framework-plugin') => "3", __('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "std" => '4', "description" => __("Choose the amount of columns you would like for the team asset.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of team members to show per page.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Custom Image Height", 'swift-framework-plugin'), "param_name" => "custom_image_height", "value" => "", "description" => __("Enter a value here if you would like to override the image height of the team member images. Numerical value (no px).", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Team category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('team-category'), "description" => __("Choose the category for the team items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Profile Link", 'swift-framework-plugin'), "param_name" => "profile_link", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "description" => __("Select if you'd like the team members to link through to the profile page.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Show team pagination.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "description" => __("Select if you'd like spacing between the items, or not.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
Ejemplo n.º 23
0
        if ($show_blog_aux == "yes" && $sidebars == "no-sidebars") {
            $blog_aux = sf_blog_aux($width);
        }
        /* BLOG ITEMS
           ================================================== */
        $items = sf_blog_items($blog_type, $masonry_effect_type, $show_title, $show_excerpt, $show_details, $excerpt_length, $content_output, $show_read_more, $item_count, $category, $exclude_categories, $pagination, $sidebars, $width, $offset, $posts_order);
        /* FINAL OUTPUT
        			================================================== */
        $el_class = $this->getExtraClass($el_class);
        $output .= "\n\t" . '<div class="spb_blog_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper blog-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>' : '';
        if ($blog_aux != "") {
            $output .= "\n\t\t\t" . $blog_aux;
        }
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($blog_type == "masonry-fw") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_has_blog, $sf_include_imagesLoaded;
        $sf_include_imagesLoaded = true;
        $sf_has_blog = true;
        return $output;
    }
}
SPBMap::map('blog', array("name" => __("Blog", "swift-framework-admin"), "base" => "blog", "class" => "spb_blog", "icon" => "spb-icon-blog", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show blog aux options", "swift-framework-admin"), "param_name" => "show_blog_aux", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show the blog aux options - categories/tags/search/archives/rss. NOTE: This is only available on a page with the no sidebar setup.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Blog type", "swift-framework-admin"), "param_name" => "blog_type", "value" => array(__('Standard', "swift-framework-admin") => "standard", __('Mini', "swift-framework-admin") => "mini", __('Masonry', "swift-framework-admin") => "masonry", __('Masonry (Full Width)', "swift-framework-admin") => "masonry-fw"), "description" => __("Select the display type for the blog.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Masonry Animation Type", "swift-framework-admin"), "param_name" => "masonry_effect_type", "value" => array(__('Effect 1', "swift-framework-admin") => "effect-1", __('Effect 2', "swift-framework-admin") => "effect-2", __('Effect 3', "swift-framework-admin") => "effect-3", __('Effect 4', "swift-framework-admin") => "effect-4", __('Effect 5', "swift-framework-admin") => "effect-5", __('Effect 6', "swift-framework-admin") => "effect-6", __('Effect 7', "swift-framework-admin") => "effect-7", __('Effect 8', "swift-framework-admin") => "effect-8", __('No Effect', "swift-framework-admin") => "no-effect"), "description" => __("If you choose the masonry blog type, you can choose the animation effect here.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "5", "description" => __("The number of blog items to show per page.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Blog category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('category'), "description" => __("Choose the category for the blog items.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Posts offset", "swift-framework-admin"), "param_name" => "offset", "value" => "0", "description" => __("The offset for the start of the posts that are displayed, e.g. enter 5 here to start from the 5th post.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Posts order", "swift-framework-admin"), "param_name" => "posts_order", "value" => array(__("Descending", "swift-framework-admin") => "DESC", __("Ascending", "swift-framework-admin") => "ASC"), "description" => __("The order of the posts.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show title text", "swift-framework-admin"), "param_name" => "show_title", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show the item title text.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show item excerpt", "swift-framework-admin"), "param_name" => "show_excerpt", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show the item excerpt text.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show item details", "swift-framework-admin"), "param_name" => "show_details", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show the item details.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Excerpt Length", "swift-framework-admin"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Content Output", "swift-framework-admin"), "param_name" => "content_output", "value" => array(__("Excerpt", "swift-framework-admin") => "excerpt", __("Full Content", "swift-framework-admin") => "full_content"), "description" => __("Choose whether to display the excerpt or the full content for the post. Full content is not available for the masonry view.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show read more link", "swift-framework-admin"), "param_name" => "show_read_more", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show a read more link below the excerpt.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Pagination", "swift-framework-admin"), "param_name" => "pagination", "value" => array(__("Infinite scroll", "swift-framework-admin") => "infinite-scroll", __("Load more (AJAX)", "swift-framework-admin") => "load-more", __("Standard", "swift-framework-admin") => "standard", __("None", "swift-framework-admin") => "none"), "description" => __("Show pagination.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 24
0
 function sf_portfolio_filter($style = "basic", $post_type = "portfolio", $parent_category = "", $frontend_display = false)
 {
     $filter_output = $tax_terms = "";
     $show_all_icon = apply_filters('sf_portfolio_show_all_icon', 'ss-gridlines');
     $taxonomy_name = 'category';
     if ($post_type != "post") {
         $taxonomy_name = $post_type . '-category';
     }
     if ($parent_category == "" || $parent_category == "All") {
         $tax_terms = sf_get_category_list($taxonomy_name, 1, '', true);
     } else {
         $tax_terms = sf_get_category_list($taxonomy_name, 1, $parent_category, true);
     }
     $filter_output .= '<div class="filter-wrap clearfix">' . "\n";
     $filter_output .= '<ul class="post-filter-tabs filtering clearfix">' . "\n";
     $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><i class="' . $show_all_icon . '"></i><span class="item-name">' . __("Show all", "swiftframework") . '</span></a></li>' . "\n";
     foreach ($tax_terms as $tax_term) {
         $term = get_term_by('name', $tax_term, $taxonomy_name);
         $term_meta = $term_icon = "";
         if (isset($term->term_id)) {
             $term_meta = get_option("portfolio-category_{$term->term_id}");
         }
         if (isset($term_meta['icon'])) {
             $term_icon = $term_meta['icon'];
         }
         if ($term) {
             $term_slug = strtolower($term->slug);
             $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term_slug . '" data-filter=".' . $term_slug . '">';
             if ($term_icon != "") {
                 $filter_output .= '<i class="' . $term_icon . '"></i>';
             }
             $filter_output .= '<span class="item-name">' . $term->name . '</span></a></li>' . "\n";
         } else {
             $tax_slug = strtolower($tax_term);
             $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_slug . '" data-filter=".' . $tax_slug . '"><span class="item-name">' . $tax_term . '</span></a></li>' . "\n";
         }
     }
     $filter_output .= '</ul></div>' . "\n";
     return $filter_output;
 }
Ejemplo n.º 25
0
        if ($options['enable_swipe_indicators']) {
            $items .= '<div class="sf-swipe-indicator"></div>';
        }
        $items .= '</div>';
        if ($page_link == "yes") {
            $options = get_option('sf_dante_options');
            $testimonials_page = __($options['testimonial_page'], 'swiftframework');
            if ($testimonials_page) {
                $items .= '<a href="' . get_permalink($testimonials_page) . '" class="read-more">' . __("More", "swiftframework") . '<i class="ssnavigate-right"></i></a>';
            }
        }
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $el_class .= ' testimonial';
        $output .= "\n\t" . '<div class="spb_testimonial_carousel_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper carousel-wrap">';
        if ($title != '') {
            $output .= "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
        }
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $sf_include_carousel, $sf_include_isotope;
        $sf_include_carousel = true;
        $sf_include_isotope = true;
        return $output;
    }
}
SPBMap::map('testimonial_carousel', array("name" => __("Testimonials Carousel", "swift-framework-admin"), "base" => "testimonial_carousel", "class" => "spb_testimonial_carousel spb_carousel", "icon" => "spb-icon-testimonial_carousel", "wrapper_class" => "clearfix", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "6", "description" => __("The number of testimonials to show per page. Leave blank to show ALL testimonials.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Testimonials Order", "swift-framework-admin"), "param_name" => "order", "value" => array(__('Random', "swift-framework-admin") => "rand", __('Latest', "swift-framework-admin") => "date"), "description" => __("Choose the order of the testimonials.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Testimonials category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('testimonials-category'), "description" => __("Choose the category for the testimonials.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Testimonials page link", "swift-framework-admin"), "param_name" => "page_link", "value" => array(__('No', "swift-framework-admin") => "no", __('Yes', "swift-framework-admin") => "yes"), "description" => __("Include a link to the testimonials page (which you must choose in the theme options).", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 26
0
            $image = sf_aq_resize($client_img_url, $client_width, $client_height, true, false);
            if ($image) {
                if ($client_link_url) {
                    $items .= '<a href="' . $client_link_url . '" target="_blank"><img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" /></a>';
                } else {
                    $items .= '<img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" />';
                }
            }
            $items .= '</figure>';
        }
        wp_reset_postdata();
        $items .= '</ul></div>';
        // Full width setup
        $fullwidth = false;
        if ($alt_background != "none" && $sidebars == "no-sidebars") {
            $fullwidth = true;
        }
        // PAGE BUILDER OUPUT
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_featured_clients_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper clients-wrap row">';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position, $width, $fullwidth, "", $alt_background) . $output . $this->endRow($el_position, $width, $fullwidth);
        return $output;
    }
}
SPBMap::map('clients_featured', array("name" => __("Clients (Featured)", "swift-framework-admin"), "base" => "clients_featured", "class" => "clients_featured", "icon" => "spb-icon-clients-featured", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Clients category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('clients-category'), "description" => __("Choose the category for the client items.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show alt background", "swift-framework-admin"), "param_name" => "alt_background", "value" => array(__("None", "swift-framework-admin") => "none", __("Alt 1", "swift-framework-admin") => "alt-one", __("Alt 2", "swift-framework-admin") => "alt-two", __("Alt 3", "swift-framework-admin") => "alt-three", __("Alt 4", "swift-framework-admin") => "alt-four", __("Alt 5", "swift-framework-admin") => "alt-five", __("Alt 6", "swift-framework-admin") => "alt-six", __("Alt 7", "swift-framework-admin") => "alt-seven", __("Alt 8", "swift-framework-admin") => "alt-eight", __("Alt 9", "swift-framework-admin") => "alt-nine", __("Alt 10", "swift-framework-admin") => "alt-ten"), "description" => __("Show an alternative background around the asset. These can all be set in Theme Options > Asset Background Options. NOTE: This is only available on a page with the no sidebar setup.", "swift-framework-admin")), array("type" => "altbg_preview", "heading" => __("Alt Background Preview", "swift-framework-admin"), "param_name" => "altbg_preview", "value" => "", "description" => __("", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 27
0
            $output .= "\n\t\t" . '<div class="title-wrap clearfix">';
        }
        if ($title != '') {
            $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
        }
        $output .= spb_carousel_arrows();
        $output .= '</div>';
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_carousel, $sf_include_isotope;
        $sf_include_carousel = true;
        $sf_include_isotope = true;
        return $output;
    }
}
/* SHORTCODE PARAMS
   ================================================== */
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of portfolio items to show in the carousel.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Columns", 'swift-framework-plugin'), "param_name" => "item_columns", "value" => array(__('2', 'swift-framework-plugin') => "2", __('3', 'swift-framework-plugin') => "3", __('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "std" => "4", "description" => __("Choose the amount of columns you would like for the asset.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "std" => 'no', "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "std" => 'yes', "description" => __("Select if you'd like spacing between the items, or not.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Portfolio category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('portfolio-category'), "description" => __("Choose the category for the portfolio items.", 'swift-framework-plugin')));
if (spb_get_theme_name() == "joyn") {
    $params[] = array("type" => "dropdown", "heading" => __("Thumbnail Hover Style", 'swift-framework-plugin'), "param_name" => "hover_style", "value" => array(__('Default', 'swift-framework-plugin') => "default", __('Standard', 'swift-framework-plugin') => "gallery-standard", __('Gallery Alt', 'swift-framework-plugin') => "gallery-alt-one"), "description" => __("Choose the thumbnail hover style for the asset. If set to 'Default', then this uses the thumbnail type set in the theme options.", 'swift-framework-plugin'));
}
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_portfolio_carousel', array("name" => __("Portfolio Carousel", 'swift-framework-plugin'), "base" => "spb_portfolio_carousel", "class" => "spb_portfolio_carousel spb_carousel spb_tab_media", "icon" => "icon-portfolio-carousel", "params" => $params));
Ejemplo n.º 28
0
            }
            $items .= '</figcaption>';
            $items .= '</figure>';
            $items .= '</li>';
            $count++;
        }
        wp_reset_postdata();
        $items .= '</ul>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap">';
            $items .= pagenavi($team_members);
            $items .= '</div>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="team_list_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper">';
        $output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>' : '';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $sf_include_isotope, $sf_has_team;
        $sf_include_isotope = true;
        $sf_has_team = true;
        return $output;
    }
}
SPBMap::map('team', array("name" => __("Team Gallery", "swift-framework-admin"), "base" => "team", "class" => "team", "icon" => "spb-icon-team", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Columns", "swift-framework-admin"), "param_name" => "item_columns", "value" => array(__('2', "swift-framework-admin") => "2", __('3', "swift-framework-admin") => "3", __('4', "swift-framework-admin") => "4"), "description" => __("Choose the amount of columns you would like for the team asset.", "swift-framework-admin")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "swift-framework-admin"), "param_name" => "item_count", "value" => "12", "description" => __("The number of team members to show per page.", "swift-framework-admin")), array("type" => "select-multiple", "heading" => __("Team category", "swift-framework-admin"), "param_name" => "category", "value" => sf_get_category_list('team-category'), "description" => __("Choose the category for the portfolio items.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Pagination", "swift-framework-admin"), "param_name" => "pagination", "value" => array(__('No', "swift-framework-admin") => "no", __('Yes', "swift-framework-admin") => "yes"), "description" => __("Show testimonial pagination.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Extra class name", "swift-framework-admin"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")))));
Ejemplo n.º 29
0
        $sf_include_imagesLoaded = true;
        $sf_has_blog = true;
        return $output;
    }
}
$blog_types = array(__('Standard', 'swift-framework-plugin') => "standard", __('Timeline', 'swift-framework-plugin') => "timeline", __('Bold', 'swift-framework-plugin') => "bold", __('Mini', 'swift-framework-plugin') => "mini", __('Masonry', 'swift-framework-plugin') => "masonry");
if (spb_get_theme_name() == "atelier") {
    $blog_types = array(__('Standard', 'swift-framework-plugin') => "standard", __('Bold', 'swift-framework-plugin') => "bold", __('Mini', 'swift-framework-plugin') => "mini", __('Masonry', 'swift-framework-plugin') => "masonry");
}
if (spb_get_theme_name() == "uplift") {
    $blog_types = array(__('Standard', 'swift-framework-plugin') => "standard", __('Timeline', 'swift-framework-plugin') => "timeline", __('Masonry', 'swift-framework-plugin') => "masonry");
}
$blog_types = apply_filters('spb_blog_display_types', $blog_types);
/* PARAMS
   ================================================== */
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Blog type", 'swift-framework-plugin'), "param_name" => "blog_type", "value" => $blog_types, "std" => "masonry", "description" => __("Select the display type for the blog.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Masonry gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("blog_type", "=", "masonry"), "description" => __("Select if you'd like spacing between the items, or not (Masonry type only).", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Masonry Columns", 'swift-framework-plugin'), "param_name" => "columns", "value" => array("5", "4", "3", "2", "1"), "std" => "4", "required" => array("blog_type", "=", "masonry"), "description" => __("How many blog masonry columns to display. NOTE: Only for the masonry blog type, and not when fullwidth mode is selected, as this is adaptive.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "std" => "no", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "5", "description" => __("The number of blog items to show per page.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Blog category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('category'), "description" => __("Choose the category for the blog items.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Posts offset", 'swift-framework-plugin'), "param_name" => "offset", "value" => "0", "description" => __("The offset for the start of the posts that are displayed, e.g. enter 5 here to start from the 5th post.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order by", 'swift-framework-plugin'), "param_name" => "order_by", "std" => "date", "value" => array(__('None', 'swift-framework-plugin') => "none", __('ID', 'swift-framework-plugin') => "ID", __('Title', 'swift-framework-plugin') => "title", __('Date', 'swift-framework-plugin') => "date", __('Random', 'swift-framework-plugin') => "rand"), "description" => __("Select how you'd like the items to be ordered.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order", 'swift-framework-plugin'), "param_name" => "order", "std" => "DESC", "value" => array(__("Ascending", 'swift-framework-plugin') => "ASC", __("Descending", 'swift-framework-plugin') => "DESC"), "description" => __("Select if you'd like the items to be ordered in ascending or descending order.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show title text", 'swift-framework-plugin'), "param_name" => "show_title", "std" => "yes", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show the item title text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show item excerpt", 'swift-framework-plugin'), "param_name" => "show_excerpt", "std" => "yes", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("blog_type", "!=", "bold"), "description" => __("Show the item excerpt text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show item details", 'swift-framework-plugin'), "param_name" => "show_details", "std" => "yes", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show the item details.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Excerpt Length", 'swift-framework-plugin'), "param_name" => "excerpt_length", "value" => "20", "required" => array("blog_type", "!=", "bold"), "description" => __("The length of the excerpt for the posts.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Content Output", 'swift-framework-plugin'), "param_name" => "content_output", "value" => array(__("Excerpt", 'swift-framework-plugin') => "excerpt", __("Full Content", 'swift-framework-plugin') => "full_content"), "required" => array("blog_type", "!=", "bold"), "description" => __("Choose whether to display the excerpt or the full content for the post. Full content is not available for the masonry or bold view types.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show read more link", 'swift-framework-plugin'), "param_name" => "show_read_more", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show a read more link below the excerpt. NOTE: Not used in Bold or Masonry types.", 'swift-framework-plugin')), array("type" => "section_tab", "param_name" => "social_options_tab", "heading" => __("Social Integration", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Social Integration", 'swift-framework-plugin'), "param_name" => "social_integration", "std" => "no", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Enable social integration within the blog posts (only on Masonry blog types). NOTE: This will only integrate Twitter/Instagram posts to the first page of your blog, and won't be included in any further pages, or content loaded via infinite scroll or AJAX. It therefore works best when you show a high number of blog posts on a single page, and pagination MUST be set to none.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Twitter Username", 'swift-framework-plugin'), "param_name" => "twitter_username", "value" => "", "required" => array("social_integration", "=", "yes"), "description" => __("Enter your twitter username here to include tweets in the blog grid. Ensure you have the Twitter oAuth plugin installed and your details added.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of Instagram items", 'swift-framework-plugin'), "param_name" => "insta_item_count", "value" => "", "required" => array("social_integration", "=", "yes"), "description" => __("The number of instagram items to show. If you haven't already, you'll need to set up your Instagram account in Swift Framework > Instagram Auth.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of Tweets", 'swift-framework-plugin'), "param_name" => "tweet_item_count", "value" => "", "required" => array("social_integration", "=", "yes"), "description" => __("The number of tweets to show.", 'swift-framework-plugin')), array("type" => "section_tab", "param_name" => "aux_options_tab", "heading" => __("Aux", 'swift-framework-plugin')), $params[] = array("type" => "buttonset", "heading" => __("Filter", 'swift-framework-plugin'), "param_name" => "blog_filter", "std" => "yes", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "description" => __("Show the blog category filter above the items.", 'swift-framework-plugin')));
if (spb_get_theme_name() == "uplift") {
    $params[] = array("type" => "buttonset", "heading" => __("Basic Filter", 'swift-framework-plugin'), "param_name" => "basic_blog_filter", "std" => "no", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "required" => array("blog_filter", "=", "yes"), "description" => __("Set the blog filter to be basic, simply a category filter.", 'swift-framework-plugin'));
}
$params[] = array("type" => "dropdown", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__("Infinite scroll", 'swift-framework-plugin') => "infinite-scroll", __("Load more (AJAX)", 'swift-framework-plugin') => "load-more", __("Standard", 'swift-framework-plugin') => "standard", __("None", 'swift-framework-plugin') => "none"), "description" => __("Show pagination.", 'swift-framework-plugin'));
if (spb_get_theme_name() == "atelier") {
    $params[] = array("type" => "section_tab", "param_name" => "styling_options_tab", "heading" => __("Styling", 'swift-framework-plugin'));
    $params[] = array("type" => "buttonset", "heading" => __("Alt Styling", 'swift-framework-plugin'), "param_name" => "alt_styling", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "description" => __("Select 'Yes' if you'd like the standard blog item content to be boxed.", 'swift-framework-plugin'));
}
if (spb_get_theme_name() == "joyn") {
    $params[] = array("type" => "section_tab", "param_name" => "styling_options_tab", "heading" => __("Styling", 'swift-framework-plugin'));
    $params[] = array("type" => "dropdown", "heading" => __("Thumbnail Hover Style", 'swift-framework-plugin'), "param_name" => "hover_style", "value" => array(__('Default', 'swift-framework-plugin') => "default", __('Standard', 'swift-framework-plugin') => "gallery-standard", __('Gallery Alt', 'swift-framework-plugin') => "gallery-alt-one"), "description" => __("Choose the thumbnail hover style for the asset. If set to 'Default', then this uses the thumbnail type set in the theme options.", 'swift-framework-plugin'));
}
$params[] = array("type" => "section_tab", "param_name" => "advanced_options_tab", "heading" => __("Advanced", 'swift-framework-plugin'));
$params[] = array("type" => "dropdown", "heading" => __("Post Type Override", 'swift-framework-plugin'), "param_name" => "post_type", "value" => spb_get_post_types(), "description" => __("If you'd like to override the post type for which the content is of this asset is made up of, then you can select it here.", 'swift-framework-plugin'));
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
        wp_reset_postdata();
        $items .= '</ul></div>';
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $sidebar_config = sf_get_post_meta(get_the_ID(), 'sf_sidebar_config', true);
        $sidebars = '';
        if ($sidebar_config == "left-sidebar" || $sidebar_config == "right-sidebar") {
            $sidebars = 'one-sidebar';
        } else {
            if ($sidebar_config == "both-sidebars") {
                $sidebars = 'both-sidebars';
            } else {
                $sidebars = 'no-sidebars';
            }
        }
        if ($alt_background == "none" || $sidebars != "no-sidebars") {
            $output .= "\n\t" . '<div class="spb_portfolio_showcase_widget spb_content_element no-bg ' . $width . $el_class . '">';
        } else {
            $output .= "\n\t" . '<div class="spb_portfolio_showcase_widget spb_content_element alt-bg ' . $alt_background . ' ' . $width . $el_class . '">';
        }
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '', true) : '';
        $output .= "\n\t\t" . $items;
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        global $sf_has_portfolio_showcase;
        $sf_has_portfolio_showcase = true;
        return $output;
    }
}
SPBMap::map('spb_portfolio_showcase', array("name" => __("Portfolio Showcase", 'swift-framework-plugin'), "base" => "spb_portfolio_showcase", "class" => "spb_portfolio_showcase spb_showcase", "icon" => "spb-icon-portfolio-showcase", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Portfolio category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('portfolio-category'), "description" => __("Choose the category for the portfolio items.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => array(__('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "description" => __("Choose the display type for the asset.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));