Exemplo n.º 1
0
function spb_map($attributes)
{
    if (!isset($attributes['base'])) {
        trigger_error("Wrong spb_map object. Base attribute is required", E_USER_ERROR);
        die;
    }
    SPBMap::map($attributes['base'], $attributes);
}
Exemplo n.º 2
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")))));
Exemplo n.º 3
0
        }
        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));
        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")))));
Exemplo 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")))));
Exemplo n.º 6
0
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_content_element spb_image_banner ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= "\n\t\t" . do_shortcode('[sf_imagebanner image_id="' . $image_id . '" image_size="' . $image_size . '" fixed_height="' . $fixed_height . '" image="' . $img_url . '" image_width="' . $image_width . '" image_height="' . $image_height . '" image_alt="' . $image_alt . '" animation="' . $animation . '" contentpos="' . $content_pos . '" textalign="' . $content_textalign . '" href="' . $image_link . '" target="' . $link_target . '"]' . $content . '[/sf_imagebanner]');
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
    public function singleParamHtmlHolder($param, $value)
    {
        $output = '';
        $param_name = isset($param['param_name']) ? $param['param_name'] : '';
        $type = isset($param['type']) ? $param['type'] : '';
        $class = isset($param['class']) ? $param['class'] : '';
        if (isset($param['holder']) == false || $param['holder'] == 'hidden') {
            $output .= '<input type="hidden" class="spb_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="' . $value . '" />';
            if ($param['type'] == 'attach_image') {
                $img = spb_getImageBySize(array('attach_id' => (int) preg_replace('/[^\\d]/', '', $value), 'thumb_size' => 'thumbnail'));
                $output .= ($img ? $img['thumbnail'] : '<img width="150" height="150" src="' . SwiftPageBuilder::getInstance()->assetURL('img/blank_f7.gif') . '" class="attachment-thumbnail" alt="" title="" />') . '<a href="#" class="column_edit_trigger' . ($img && !empty($img['p_img_large'][0]) ? ' image-exists' : '') . '"><i class="spb-icon-single-image"></i>' . __('No image yet! Click here to select it now.', 'swift-framework-plugin') . '</a>';
            }
        } else {
            $output .= '<' . $param['holder'] . ' class="spb_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '">' . $value . '</' . $param['holder'] . '>';
        }
        return $output;
    }
}
$image_sizes = array(__("Full", 'swift-framework-plugin') => "full", __("Large", 'swift-framework-plugin') => "large", __("Medium", 'swift-framework-plugin') => "medium", __("Thumbnail", 'swift-framework-plugin') => "thumbnail", __("Small 4/3 Cropped", 'swift-framework-plugin') => "thumb-image", __("Medium 4/3 Cropped", 'swift-framework-plugin') => "thumb-image-twocol", __("Large 4/3 Cropped", 'swift-framework-plugin') => "thumb-image-onecol", __("Large 1/1 Cropped", 'swift-framework-plugin') => "large-square");
$image_sizes = apply_filters('sf_image_sizes', $image_sizes);
SPBMap::map('spb_image_banner', array("name" => __("Image Banner", 'swift-framework-plugin'), "base" => "spb_image_banner", "class" => "spb_image_banner_widget spb_tab_media", "icon" => "icon-image-banner", "params" => array(array("type" => "attach_image", "heading" => __("Image", 'swift-framework-plugin'), "param_name" => "image", "value" => "", "description" => ""), array("type" => "dropdown", "heading" => __("Image Size", 'swift-framework-plugin'), "param_name" => "image_size", "value" => $image_sizes, "description" => __("Select the source size for the image (NOTE: this doesn't affect it's size on the front-end, only the quality).", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Fixed image height", 'swift-framework-plugin'), "param_name" => "fixed_height", "value" => "", "description" => __("If you wish to fix the image height, for purposes such as a grid, then please provide a numeric value here (no px).", 'swift-framework-plugin')), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Text", 'swift-framework-plugin'), "param_name" => "content", "value" => '', "description" => __("Enter your content.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Content Position", 'swift-framework-plugin'), "param_name" => "content_pos", "value" => array(__("Left", 'swift-framework-plugin') => "left", __("Center", 'swift-framework-plugin') => "center", __("Right", 'swift-framework-plugin') => "right"), "description" => __("Choose the alignment for the content.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Content Text Align", 'swift-framework-plugin'), "param_name" => "content_textalign", "value" => array(__("Left", 'swift-framework-plugin') => "left", __("Center", 'swift-framework-plugin') => "center", __("Right", 'swift-framework-plugin') => "right"), "description" => __("Choose the alignment for the text within the content.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Animation", 'swift-framework-plugin'), "param_name" => "animation", "value" => spb_animations_list(), "description" => __("Select an intro animation for the content that will show it when it appears within the viewport.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Animation Delay", 'swift-framework-plugin'), "param_name" => "animation_delay", "value" => "200", "description" => __("If you wish to add a delay to the animation, then you can set it here (default 200) (ms).", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Add link to image", 'swift-framework-plugin'), "param_name" => "image_link", "value" => "", "description" => __("If you would like the image to link to a URL, then enter it here. NOTE: this will override the lightbox functionality if you have enabled it.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Link target", 'swift-framework-plugin'), "param_name" => "link_target", "value" => array(__("Self", 'swift-framework-plugin') => "_self", __("New Window", 'swift-framework-plugin') => "_blank"), "description" => __("Select if you want the link to open in a new window", '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')))));
Exemplo n.º 7
0
        extract(shortcode_atts(array('title' => '', 'icon' => '', 'character' => '', 'image' => '', 'svg_icon' => '', 'animate_svg' => '', 'box_type' => '', 'box_icon_type' => '', 'icon_color' => '', 'icon_bg_color' => '', 'text_color' => '', 'bg_color' => '', 'flip_text_color' => '', 'flip_bg_color' => '', 'animated_box_style' => '', 'animated_box_rounded' => '', 'animation' => '', 'animation_delay' => '', 'link' => '', 'target' => '', 'el_class' => '', 'el_position' => '', 'width' => '1/1'), $atts));
        $output = '';
        if ($image != "") {
            $img_url = wp_get_attachment_url($image, 'full');
            $image_object = sf_aq_resize($img_url, 70, 70, true, false);
            $image_url = $image_object[0];
        }
        $icon_box_output = do_shortcode('[sf_iconbox icon="' . $icon . '" character="' . $character . '" image="' . $image_url . '" svg="' . $svg_icon . '" animate_svg="' . $animate_svg . '" type="' . $box_type . '" icon_type="' . $box_icon_type . '" title="' . $title . '" animation="' . $animation . '" animation_delay="' . $animation_delay . '" bg_color="' . $bg_color . '" text_color="' . $text_color . '" icon_color="' . $icon_color . '" icon_bg_color="' . $icon_bg_color . '" flip_text_color="' . $flip_text_color . '" flip_bg_color="' . $flip_bg_color . '" animated_box_style="' . $animated_box_style . '" animated_box_rounded="' . $animated_box_rounded . '" link="' . $link . '" target="' . $target . '"]' . $content . '[/sf_iconbox]');
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_icon_box ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= "\n\t\t" . $icon_box_output;
        $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;
    }
}
$target_arr = array(__("Same window", 'swift-framework-plugin') => "_self", __("New window", 'swift-framework-plugin') => "_blank");
$icon_box_icon_types = array('' => '', __("Icon", 'swift-framework-plugin') => "icon", __("Character", 'swift-framework-plugin') => "character", __("Image", 'swift-framework-plugin') => "image");
$icon_box_types = array(__('Standard', 'swift-framework-plugin') => "standard", __('Standard with Title Icon', 'swift-framework-plugin') => "standard-title", __('Bold', 'swift-framework-plugin') => "bold", __('Left Icon', 'swift-framework-plugin') => "left-icon", __('Left Icon Alt', 'swift-framework-plugin') => "left-icon-alt", __('Boxed One', 'swift-framework-plugin') => "boxed-one", __('Boxed Two', 'swift-framework-plugin') => "boxed-two", __('Boxed Three', 'swift-framework-plugin') => "boxed-three", __('Boxed Four', 'swift-framework-plugin') => "boxed-four", __('Animated', 'swift-framework-plugin') => "animated");
if (spb_get_theme_name() == "atelier") {
    $icon_box_types = array(__('Standard', 'swift-framework-plugin') => "standard", __('Standard with Title Icon', 'swift-framework-plugin') => "standard-title", __('Left Icon', 'swift-framework-plugin') => "left-icon", __('Left Icon Alt', 'swift-framework-plugin') => "left-icon-alt", __('Boxed One', 'swift-framework-plugin') => "boxed-one", __('Boxed Two', 'swift-framework-plugin') => "boxed-two", __('Boxed Three', 'swift-framework-plugin') => "boxed-three", __('Boxed Four', 'swift-framework-plugin') => "boxed-four", __('Animated', 'swift-framework-plugin') => "animated");
}
$icon_box_icon_types = apply_filters('spb_icon_box_icon_types', $icon_box_icon_types);
$icon_box_types = apply_filters('spb_icon_box_types', $icon_box_types);
SPBMap::map('spb_icon_box', array("name" => __("Icon Box", 'swift-framework-plugin'), "base" => "spb_icon_box", "class" => "spb_tab_ui", "icon" => "icon-icon-box", "wrapper_class" => "clearfix", "params" => array(array("type" => "textfield", "heading" => __("Icon Box title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Icon Box title text.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Icon Box Type", 'swift-framework-plugin'), "param_name" => "box_type", "value" => $icon_box_types, "description" => __("Choose the type of icon box.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Icon Box Icon Type", 'swift-framework-plugin'), "param_name" => "box_icon_type", "value" => $icon_box_icon_types, "description" => __("Choose the type of icon box.", 'swift-framework-plugin')), array("type" => "icon-picker", "heading" => __("Icon Box Icon", 'swift-framework-plugin'), "param_name" => "icon", "value" => "", "required" => array("box_icon_type", "=", "icon"), "description" => ''), array("type" => "textfield", "heading" => __("Icon Box Character", 'swift-framework-plugin'), "param_name" => "character", "value" => "", "required" => array("box_icon_type", "=", "character"), "description" => __("Instead of an icon, you can optionally provide a single letter/digit here. NOTE: This will override the icon selection.", 'swift-framework-plugin')), array("type" => "attach_image", "heading" => __("Icon Box Image", 'swift-framework-plugin'), "param_name" => "image", "value" => "", "required" => array("box_icon_type", "=", "image"), "description" => __("Instead of an icon, you can optionally upload an image here. This will be resized to 70px x 70px. NOTE: This will override the icon selection.", 'swift-framework-plugin')), array("type" => "icon-picker", "heading" => __("Icon Box SVG", 'swift-framework-plugin'), "param_name" => "svg_icon", "data" => spb_get_svg_icons(), "value" => "", "required" => array("box_icon_type", "=", "svg"), "description" => __("You can select an SVG icon here.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Animate SVG Icon", 'swift-framework-plugin'), "param_name" => "animate_svg", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "required" => array("box_icon_type", "=", "svg"), "description" => __("If you are using an outline svg icon, then you can enable/disable the drawing animation on appear here.", 'swift-framework-plugin')), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Text", 'swift-framework-plugin'), "param_name" => "content", "value" => __("click the edit button to change this text.", 'swift-framework-plugin'), "description" => __("Enter your content.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Icon Box Link", 'swift-framework-plugin'), "param_name" => "link", "value" => "", "description" => __("If you would like, you can set a link here for the icon and title to link through to.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Link Target", 'swift-framework-plugin'), "param_name" => "target", "value" => $target_arr), array("type" => "section", "param_name" => "ib_animation_options", "heading" => __("Animation Options", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Intro Animation", 'swift-framework-plugin'), "param_name" => "animation", "value" => spb_animations_list(), "description" => __("Select an intro animation for the icon box that will show it when it appears within the viewport.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Animation Delay", 'swift-framework-plugin'), "param_name" => "animation_delay", "value" => "0", "description" => __("If you wish to add a delay to the animation, then you can set it here (ms).", 'swift-framework-plugin')), array("type" => "section_tab", "param_name" => "design_tab", "heading" => __("Design Options", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Icon color", 'swift-framework-plugin'), "param_name" => "icon_color", "value" => "", "description" => __("Set the icon colour for the icon box, or leave blank to use the default colours.", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Icon Background color", 'swift-framework-plugin'), "param_name" => "icon_bg_color", "value" => "", "description" => __("Set the icon background colour for the icon box, or leave blank to use the default colours.", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Text color", 'swift-framework-plugin'), "param_name" => "text_color", "value" => "", "description" => __("Set the text colour for the icon box, or leave blank to use the default colours.", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Background color", 'swift-framework-plugin'), "param_name" => "bg_color", "value" => "", "description" => __("Set the background colour for the icon box, or leave blank to use the default colours.", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Flip Background color", 'swift-framework-plugin'), "param_name" => "flip_bg_color", "value" => "", "required" => array("box_type", "or", "animated,animated-alt"), "description" => __("Set the background colour for the back of the animated icon box, or leave blank to use the default colours.", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Flip Text color", 'swift-framework-plugin'), "param_name" => "flip_text_color", "value" => "", "required" => array("box_type", "or", "animated,animated-alt"), "description" => __("Set the text colour for the back of the animated icon box, or leave blank to use the default colours.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Animated Box Style", 'swift-framework-plugin'), "param_name" => "animated_box_style", "value" => array(__('Stroke', 'swift-framework-plugin') => "stroke", __('Coloured', 'swift-framework-plugin') => "coloured"), "std" => 'coloured', "required" => array("box_type", "=", "animated-alt"), "description" => __("If you are using the animated icon box option, you can choose the style here.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Animated Box Rounded", 'swift-framework-plugin'), "param_name" => "animated_box_rounded", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "std" => 'yes', "required" => array("box_type", "=", "animated-alt"), "description" => __("If you are using the animated icon box option, you can choose to set it to be rounded here.", 'swift-framework-plugin')), array("type" => "section_tab", "param_name" => "misc_tab", "heading" => __("Misc Options", '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')))));
Exemplo n.º 8
0
<?php

class SwiftPageBuilderShortcode_spb_slider extends SwiftPageBuilderShortcode
{
    protected function content($atts, $content = null)
    {
        $width = $el_class = $output = $items = $el_position = '';
        extract(shortcode_atts(array("item_count" => '12', "revslider_shortcode" => '', "layerslider_shortcode" => '', 'el_position' => '', 'width' => '1/1', 'el_class' => ''), $atts));
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_slider_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper slider-wrap">';
        if ($revslider_shortcode != "") {
            $output .= "\n\t\t\t\t" . sf_return_slider($revslider_shortcode);
        } else {
            if ($layerslider_shortcode != "") {
                $output .= "\n\t\t\t\t" . do_shortcode('[layerslider id="' . $layerslider_shortcode . '"]');
            }
        }
        $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_slider', array("name" => __("Revolution / Layer Slider", "swift-framework-admin"), "base" => "spb_slider", "class" => "spb_revslider", "icon" => "spb-icon-revslider", "params" => array(array("type" => "textfield", "heading" => __("Revolution Slider Alias", "swift-framework-admin"), "param_name" => "revslider_shortcode", "value" => "", "description" => __("Enter the Revolution Slider alias here for the one that you wish to show. This can be found within the Revolution Slider Admin Panel. NOTE: IF YOU ARE TRYING TO ADD A FULL WIDTH SLIDER, THEN PLEASE PROVIDE THE ALIAS IN THE PAGE META OPTIONS INSTEAD OF USING THIS ASSET.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("LayerSlider ID", "swift-framework-admin"), "param_name" => "layerslider_shortcode", "value" => "", "description" => __("Enter the LayerSlider ID here for the one that you wish to show. This can be found within the LayerSlider Admin Panel.", "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")))));
Exemplo n.º 9
0
 *
 *   Swift Page Builder - Progress Bar Shortcode
 *   ------------------------------------------------
 *   Swift Framework
 *   Copyright Swift Ideas 2016 - http://www.swiftideas.com
 *
 */
class SwiftPageBuilderShortcode_spb_progress_bar extends SwiftPageBuilderShortcode
{
    protected function content($atts, $content = null)
    {
        $width = $el_class = $output = $items = $el_position = '';
        extract(shortcode_atts(array('percentage' => '', 'text' => '', 'value' => '', 'colour' => '#222', 'width' => '1/1', 'el_position' => '', 'el_class' => '', 'width' => '1/1'), $atts));
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_progress_bar spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= "\n\t\t\t" . do_shortcode('[sf_progress_bar percentage="' . $percentage . '" name="' . $text . '" value="' . $value . '" type="standard" colour="' . $colour . '"]');
        $output .= "\n\t\t" . '</div>';
        $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" => __("Bar Percentage", 'swift-framework-plugin'), "param_name" => "percentage", "value" => "10", "description" => __("The percentage of the progress bar.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Progress Text", 'swift-framework-plugin'), "param_name" => "text", "value" => "", "description" => __("Enter the text that you'd like shown above the bar, i.e. 'COMPLETED'.\n", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Progress Value", 'swift-framework-plugin'), "param_name" => "value", "value" => "10%", "description" => __("Enter value that you'd like shown at the end of the bar on completion, i.e. '90%'", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Bar Colour", 'swift-framework-plugin'), "param_name" => "colour", "value" => "", "description" => __("Select a colour for the bar.", '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')));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_progress_bar', array("name" => __("Progress Bar", 'swift-framework-plugin'), "base" => "spb_progress_bar", "class" => "spb_progress_bar", "icon" => "icon-progres-bars-v5", "params" => $params));
Exemplo n.º 10
0
class SwiftPageBuilderShortcode_supersearch extends SwiftPageBuilderShortcode
{
    protected function content($atts, $content = null)
    {
        $title = $width = $el_class = $output = $items = $el_position = '';
        extract(shortcode_atts(array('title' => '', 'el_position' => '', 'width' => '1/1', 'el_class' => ''), $atts));
        /* PAGE BUILDER OUTPUT
        			================================================== */
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        if ($fullwidth == "yes" && $width == "col-sm-12") {
            $fullwidth = true;
        } else {
            $fullwidth = false;
        }
        $output .= "\n\t" . '<div class="spb_supersearch_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper supersearch-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>' : '';
        $output .= "\n\t\t\t" . do_shortcode('[sf_supersearch]');
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes") {
            $output = $this->startRow($el_position, '', true, "full-width") . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        return $output;
    }
}
SPBMap::map('supersearch', array("name" => __("Super Search", "swift-framework-admin"), "base" => "supersearch", "class" => "spb_supersearch", "icon" => "spb-icon-supersearch", "params" => array(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")))));
Exemplo n.º 11
0
<?php

/*
 *
 *	Swift Page Builder - Sitemap Shortcode
 *	------------------------------------------------
 *	Swift Framework
 * 	Copyright Swift Ideas 2015 - http://www.swiftideas.com
 *
 */
class SwiftPageBuilderShortcode_spb_sitemap extends SwiftPageBuilderShortcode
{
    public function content($atts, $content = null)
    {
        $title = $output = $el_class = $width = $el_position = '';
        extract(shortcode_atts(array('title' => '', 'el_class' => '', 'el_position' => '', 'width' => '1/2'), $atts));
        $sitemap = '[sf_sitemap]';
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_content_element ' . $width . $el_class . '">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '') : '';
        $output .= "\n\t\t" . do_shortcode($sitemap);
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        //
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
SPBMap::map('spb_sitemap', array("name" => __("Sitemap", 'swift-framework-plugin'), "base" => "spb_sitemap", "class" => "", "icon" => "spb-icon-sitemap", "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" => "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')))));
Exemplo n.º 12
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")))));
Exemplo n.º 13
0
        extract(shortcode_atts(array('title' => '', 'address' => '', 'size' => 200, 'zoom' => 14, 'color' => '', 'saturation' => '', 'pin_image' => '', 'type' => 'm', 'pinlink' => '', 'fullscreen' => 'no', 'el_position' => '', 'width' => '1/1', 'el_class' => ''), $atts));
        $output = '';
        if ($address == '') {
            return null;
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $size = str_replace(array('px', ' '), array('', ''), $size);
        $img_url = wp_get_attachment_image_src($pin_image, 'full');
        if ($fullscreen == "yes" && $width == "col-sm-12") {
            $output .= "\n\t" . '<div class="spb_gmaps_widget fullscreen-map spb_content_element ' . $width . $el_class . '">';
        } else {
            $output .= "\n\t" . '<div class="spb_gmaps_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 .= '<div class="spb_map_wrapper"><div class="map-canvas" style="width:100%;height:' . $size . 'px;" data-address="' . $address . '" data-zoom="' . $zoom . '" data-maptype="' . $type . '" data-mapcolor="' . $color . '" data-mapsaturation="' . $saturation . '" data-pinimage="' . $img_url[0] . '" data-pinlink="' . $pinlink . '"></div></div>';
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullscreen == "yes") {
            $output = $this->startRow($el_position, '', true, "full-width") . $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_gmaps', array("name" => __("Google Map", "swift-framework-admin"), "base" => "spb_gmaps", "class" => "", "icon" => "spb-icon-map-pin", "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" => __("Address", "swift-framework-admin"), "param_name" => "address", "value" => "", "description" => __('Enter the address that you would like to show on the map here, i.e. "Cupertino".', "swift-framework-admin")), array("type" => "textfield", "heading" => __("Map Height", "swift-framework-admin"), "param_name" => "size", "value" => "300", "description" => __('Enter map height in pixels. Example: 300.', "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Map Type", "swift-framework-admin"), "param_name" => "type", "value" => array(__("Map", "swift-framework-admin") => "ROADMAP", __("Satellite", "swift-framework-admin") => "SATELLITE", __("Hybrid", "swift-framework-admin") => "HYBRID", __("Terrain", "swift-framework-admin") => "TERRAIN"), "description" => __("Select map display type. NOTE, if you set a color below, then only the standard Map type will show.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Map Zoom", "swift-framework-admin"), "param_name" => "zoom", "value" => array(__("14 - Default", "swift-framework-admin") => 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20)), array("type" => "textfield", "heading" => __("Map Color", "swift-framework-admin"), "param_name" => "color", "value" => "", "description" => __('If you would like, you can enter a hex color here to style the map by changing the hue. Please provide the # as well, e.g. #ff9900', "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Map Saturation", "swift-framework-admin"), "param_name" => "saturation", "value" => array(__("Color", "swift-framework-admin") => "color", __("Mono", "swift-framework-admin") => "mono"), "description" => __("Set whether you would like the map to be in color or mono (black/white).", "swift-framework-admin")), array("type" => "attach_image", "heading" => __("Custom Map Pin", "swift-framework-admin"), "param_name" => "pin_image", "value" => "", "description" => "Choose an image to use as the custom pin for the address on the map. Upload your custom map pin, the image size must be 150px x 75px."), array("type" => "textfield", "heading" => __("Custom Pin Link", "swift-framework-admin"), "param_name" => "pinlink", "value" => "", "description" => __('If you would like the map pin to link through to a custom URL, then please provide it here. Ensure that you include http:// at the start of the URL.', "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Fullscreen Display", "swift-framework-admin"), "param_name" => "fullscreen", "value" => array(__("No", "swift-framework-admin") => "no", __("Yes", "swift-framework-admin") => "yes"), "description" => __("If yes, the map will be displayed from screen edge to edge.", "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")))));
Exemplo n.º 14
0
 public function showEditFormJavascript_callback()
 {
     $element = $this->post('element');
     $shortCode = $this->post('shortcode');
     $shortCode = stripslashes($shortCode);
     $this->removeShortCode($element);
     $settings = SPBMap::getShortCode($element);
     new SwiftPageBuilderShortcode_Settings($settings);
     echo do_shortcode($shortCode);
     die;
 }
Exemplo n.º 15
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')))));
Exemplo n.º 16
0
        }
        $width = spb_translateColumnWidthToSpan("1/1");
        $output .= '<div class="' . $width . '"><div class="alert spb_content_element ' . $color . '"><div class="messagebox_text">' . spb_format_content($content) . '</div></div></div>' . $this->endBlockComment('alert box') . "\n";
        //$output .= '<div class="spb_messagebox message '.$color.'"><div class="messagebox_text">'.spb_format_content($content).'</div></div>';
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
SPBMap::map('spb_message', array("name" => __("Message Box", "swift-framework-admin"), "base" => "spb_message", "class" => "spb_messagebox spb_controls_top_right", "icon" => "spb-icon-message-box", "wrapper_class" => "alert", "controls" => "edit_popup_delete", "params" => array(array("type" => "dropdown", "heading" => __("Message box type", "swift-framework-admin"), "param_name" => "color", "value" => array(__('Informational', "swift-framework-admin") => "alert-info", __('Warning', "swift-framework-admin") => "alert-block", __('Success', "swift-framework-admin") => "alert-success", __('Error', "swift-framework-admin") => "alert-error"), "description" => __("Select message type.", "swift-framework-admin")), array("type" => "textarea_html", "holder" => "div", "class" => "messagebox_text", "heading" => __("Message text", "swift-framework-admin"), "param_name" => "content", "value" => __("<p>This is a message box. Click the edit button to edit this text.</p>", "swift-framework-admin"), "description" => __("Message text.", "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"))), "js_callback" => array("init" => "spbMessageInitCallBack")));
/* TOGGLE ASSET
	================================================== */
class SwiftPageBuilderShortcode_spb_toggle extends SwiftPageBuilderShortcode
{
    protected function content($atts, $content = null)
    {
        $title = $el_class = $open = null;
        extract(shortcode_atts(array('title' => __("Click to toggle", "swift-framework-admin"), 'el_class' => '', 'open' => 'false', 'el_position' => '', 'width' => '1/1'), $atts));
        $output = '';
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $open = $open == 'true' ? ' spb_toggle_title_active' : '';
        $el_class .= $open == ' spb_toggle_title_active' ? ' spb_toggle_open' : '';
        $output .= '<div class="toggle-wrap ' . $width . '">';
        $output .= '<div class="spb_toggle' . $open . '">' . $title . '</div><div class="spb_toggle_content' . $el_class . '">' . spb_format_content($content) . '</div>' . $this->endBlockComment('toggle') . "\n";
        $output .= '</div>';
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
SPBMap::map('spb_toggle', array("name" => __("Toggle", "swift-framework-admin"), "base" => "spb_toggle", "class" => "spb_faq", "icon" => "spb-icon-toggle", "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "toggle_title", "heading" => __("Toggle title", "swift-framework-admin"), "param_name" => "title", "value" => __("Toggle title", "swift-framework-admin"), "description" => __("Toggle block title.", "swift-framework-admin")), array("type" => "textarea_html", "holder" => "div", "class" => "toggle_content", "heading" => __("Toggle content", "swift-framework-admin"), "param_name" => "content", "value" => __("<p>The toggle content goes here, click the edit button to change this text.</p>", "swift-framework-admin"), "description" => __("Toggle block content.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Default state", "swift-framework-admin"), "param_name" => "open", "value" => array(__("Closed", "swift-framework-admin") => "false", __("Open", "swift-framework-admin") => "true"), "description" => __("Select this if you want toggle to be open by default.", "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")))));
Exemplo n.º 17
0
 public function getContentLayouts($el_type = null)
 {
     $output = '';
     $element_button = new SPBElementButton();
     if ($el_type == 'most_used_elements') {
         $most_used_el = array();
         if (get_option('spb_most_used_elements')) {
             $spb_most_used_elements = get_option('spb_most_used_elements');
             arsort($spb_most_used_elements);
             $spb_most_used_elements = array_slice($spb_most_used_elements, 0, 24);
             foreach ($spb_most_used_elements as $used_element => $value) {
                 array_push($most_used_el, $used_element);
             }
         }
     }
     foreach (SPBMap::getShortCodes() as $sc_base => $el) {
         if ($el_type == 'most_used_elements') {
             if (in_array($sc_base, $most_used_el)) {
                 $output .= $element_button->setBase($sc_base)->setup($el)->output();
             }
         } else {
             if ($el['name'] != 'Map Pin' && $el['name'] != 'Pricing Column' && $el['name'] != 'Pricing Column Feature' && $el['name'] != 'Multilayer Parallax Layer' && $el['name'] != 'Icon Box Grid Element') {
                 $media_pos = strpos($el['class'], 'spb_tab_media');
                 $ui_pos = strpos($el['class'], 'spb_tab_ui');
                 $layout_pos = strpos($el['class'], 'spb_tab_layout');
                 if (isset($el['class']) && $media_pos === false && $ui_pos === false && $layout_pos === false) {
                     $el['class'] .= ' spb_tab_misc';
                 }
                 $output .= $element_button->setBase($sc_base)->setup($el)->output();
             }
         }
     }
     return $output;
 }
Exemplo n.º 18
0
        $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));
Exemplo n.º 19
0
                    $thumb_slider .= "<li><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' /></li>" . "\n";
                }
                $thumb_slider .= '</ul></div>' . "\n";
            }
            $items .= $main_slider;
            $items .= $thumb_slider;
        }
        wp_reset_postdata();
        /* PAGE BUILDER OUTPUT
        			================================================== */
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        $output .= "\n\t" . '<div class="spb_gallery_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper gallery-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);
        global $sf_has_gallery;
        $sf_has_gallery = true;
        return $output;
    }
}
if (is_admin()) {
    $galery_list = array("type" => "dropdown", "heading" => __("Gallery", "swift-framework-admin"), "param_name" => "gallery_id", "value" => sf_list_galleries(), "description" => __("Choose the gallery which you'd like to display. You can add galleries in the left admin area.", "swift-framework-admin"));
} else {
    $galery_list = array("type" => "dropdown", "heading" => __("Gallery", "swift-framework-admin"), "param_name" => "gallery_id", "value" => "", "description" => __("Choose the gallery which you'd like to display. You can add galleries in the left admin area.", "swift-framework-admin"));
}
SPBMap::map('sf_gallery', array("name" => __("Gallery", "swift-framework-admin"), "base" => "sf_gallery", "class" => "spb_gallery", "icon" => "spb-icon-gallery", "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")), $galery_list, array("type" => "dropdown", "heading" => __("Slider transition", "swift-framework-admin"), "param_name" => "slider_transition", "value" => array(__("Slide", "swift-framework-admin") => "slide", __("Fade", "swift-framework-admin") => "fade"), "description" => __("Choose the transition type for the slider.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show thumbnail navigation", "swift-framework-admin"), "param_name" => "show_thumbs", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Show a thumbnail navigation display below the slider.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Enable Autoplay", "swift-framework-admin"), "param_name" => "autoplay", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Choose whether to autoplay the slider or not.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Show captions", "swift-framework-admin"), "param_name" => "show_captions", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Choose whether to show captions on the slider or not.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Enable gallery lightbox", "swift-framework-admin"), "param_name" => "enable_lightbox", "value" => array(__("Yes", "swift-framework-admin") => "yes", __("No", "swift-framework-admin") => "no"), "description" => __("Enable lightbox functionality from the gallery.", "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")))));
Exemplo n.º 20
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")))));
Exemplo n.º 21
0
//        "value"       => "0",
//        "description" => __( "If you wish to add a delay to the animation, then you can set it here (ms).", 'swiftframework' )
//    );
$params[] = array("type" => "section", "param_name" => "section_misc_options", "heading" => __("Row Misc Options", 'swiftframework'));
//    $params[] = array(
//        "type"        => "dropdown",
//        "heading"     => __( "Responsive Visiblity", 'swiftframework' ),
//        "param_name"  => "row_responsive_vis",
//        "holder"      => 'indicator',
//        "value"       => spb_responsive_vis_list(),
//        "description" => __( "Set the responsive visiblity for the row, if you would only like it to display on certain display sizes.", 'swiftframework' )
//    );
//    $params[] = array(
//        "type"        => "textfield",
//        "heading"     => __( "Row ID", 'swiftframework' ),
//        "param_name"  => "row_id",
//        "value"       => "",
//        "description" => __( "If you wish to add an ID to the row, then add it here. You can then use the id to deep link to this section of the page. This is also used for one page navigation. NOTE: Make sure this is unique to the page!!", 'swiftframework' )
//    );
//    $params[] = array(
//        "type"        => "textfield",
//        "heading"     => __( "Row Section Name", 'swiftframework' ),
//        "param_name"  => "row_name",
//        "value"       => "",
//        "description" => __( "This is used for the one page navigation, to identify the row. If this is left blank, then the row will be left off of the one page navigation.", 'swiftframework' )
//    );
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swiftframework'), "param_name" => "row_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.", 'swiftframework'));
/*  for PRO users! -  SHORTCODE MAP
	================================================== */
SPBMap::map('spb_row', array("name" => __("Row", 'swiftframework'), "base" => "spb_row", "controls" => "edit_delete", "content_element" => false, "params" => $params));
Exemplo n.º 22
0
 *
 */
class SwiftPageBuilderShortcode_spb_latest_tweets extends SwiftPageBuilderShortcode
{
    protected function content($atts, $content = null)
    {
        $width = $tweets_count = $pb_margin_bottom = $pb_border_bottom = $pb_border_top = $el_class = $output = $items = $el_position = '';
        extract(shortcode_atts(array('el_position' => '', 'tweets_count' => '1', 'pb_margin_bottom' => 'no', 'pb_border_bottom' => 'no', 'pb_border_top' => 'no', 'width' => '1/1', 'twitter_username' => '', 'el_class' => ''), $atts));
        if ($pb_margin_bottom == "yes") {
            $el_class .= ' pb-margin-bottom';
        }
        if ($pb_border_bottom == "yes") {
            $el_class .= ' pb-border-bottom';
        }
        if ($pb_border_top == "yes") {
            $el_class .= ' pb-border-top';
        }
        $tweet_output = sf_get_tweets($twitter_username, $tweets_count);
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_latest_tweets_widget ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content spb_wrapper latest-tweets-wrap clearfix">';
        $output .= "\n\t\t\t" . '<div class="twitter-bird"><i class="fa-twitter"></i></div><ul class="tweet-wrap">' . $tweet_output . "</ul>";
        $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_latest_tweets', array("name" => __("Tweets", 'swift-framework-plugin'), "base" => "spb_latest_tweets", "class" => "spb-latest-tweets", "icon" => "spb-icon-latest-tweets", "params" => array(array("type" => "textfield", "heading" => __("Twitter username", 'swift-framework-plugin'), "param_name" => "twitter_username", "value" => "", "description" => __("The twitter username you'd like to show the latest tweet for. Make sure to not include the @.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Number of Tweets", 'swift-framework-plugin'), "param_name" => "tweets_count", "value" => "1", "description" => __("The number of tweets you'd like to show.", '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')))));
Exemplo n.º 23
0
<?php

class SwiftPageBuilderShortcode_spb_icon_box extends SwiftPageBuilderShortcode
{
    public function content($atts, $content = null)
    {
        $title = $el_class = $text_color = $image_url = $image_object = $width = $el_position = '';
        extract(shortcode_atts(array('title' => '', 'character' => '', 'image' => '', 'animation' => '', 'animation_delay' => '', 'box_type' => '', 'color' => '', 'link' => '', 'target' => '', 'el_class' => '', 'el_position' => '', 'width' => '1/1'), $atts));
        $output = '';
        if ($image != "") {
            $img_url = wp_get_attachment_url($image, 'full');
            $image_object = sf_aq_resize($img_url, 70, 70, true, false);
            $image_url = $image_object[0];
        }
        $icon_box_output = do_shortcode('[sf_iconbox character="' . $character . '" image="' . $image . '" color="standard" type="' . $box_type . '" title="' . $title . '" animation="' . $animation . '" animation_delay="' . $animation_delay . '" color="' . $color . '" link="' . $link . '" target="' . $target . '"]' . $content . '[/sf_iconbox]');
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_icon_box ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper box-wrap">';
        $output .= "\n\t\t\t" . $icon_box_output;
        $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_carousel = true;
        return $output;
    }
}
$target_arr = array(__("Same window", "swift-framework-admin") => "_self", __("New window", "swift-framework-admin") => "_blank");
SPBMap::map('spb_icon_box', array("name" => __("Icon Box", "swift-framework-admin"), "base" => "spb_icon_box", "class" => "", "icon" => "spb-icon-icon-box", "wrapper_class" => "clearfix", "params" => array(array("type" => "textfield", "heading" => __("Icon Box title", "swift-framework-admin"), "param_name" => "title", "holder" => 'div', "value" => "", "description" => __("Icon Box title text.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Icon Box Type", "swift-framework-admin"), "param_name" => "box_type", "value" => array(__('Standard', "swift-framework-admin") => "standard", __('Standard with Title Icon', "swift-framework-admin") => "standard-title", __('Left Icon', "swift-framework-admin") => "left-icon", __('Left Icon Alt', "swift-framework-admin") => "left-icon-alt", __('Boxed One', "swift-framework-admin") => "boxed-one", __('Boxed Two', "swift-framework-admin") => "boxed-two", __('Boxed Three', "swift-framework-admin") => "boxed-three", __('Boxed Four', "swift-framework-admin") => "boxed-four", __('Animated', "swift-framework-admin") => "animated"), "description" => __("Choose the type of icon box.", "swift-framework-admin")), array("type" => "icon-picker", "heading" => __("Icon Box Icon", "swift-framework-admin"), "param_name" => "image", "value" => "", "description" => ''), array("type" => "textfield", "heading" => __("Icon Box Character", "swift-framework-admin"), "param_name" => "character", "value" => "", "description" => __("Instead of an icon, you can optionally provide a single letter/digit here. NOTE: This will override the icon selection.", "swift-framework-admin")), array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Text", "swift-framework-admin"), "param_name" => "content", "value" => __("click the edit button to change this text.", "swift-framework-admin"), "description" => __("Enter your content.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Icon Box Color", "swift-framework-admin"), "param_name" => "color", "value" => array(__('Standard', "swift-framework-admin") => "standard", __('Accent', "swift-framework-admin") => "accent", __('Secondary Accent', "swift-framework-admin") => "secondary-accent", __('Icon One', "swift-framework-admin") => "icon-one", __('Icon Two', "swift-framework-admin") => "icon-two", __('Icon Three', "swift-framework-admin") => "icon-three", __('Icon Four', "swift-framework-admin") => "icon-four"), "description" => __("These colours are all set in the Color Customiser (link in the WP Admin Bar).", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Icon Box Link", "swift-framework-admin"), "param_name" => "link", "value" => "", "description" => __("If you would like, you can set a link here for the icon and title to link through to.", "swift-framework-admin")), array("type" => "dropdown", "heading" => __("Link Target", "swift-framework-admin"), "param_name" => "target", "value" => $target_arr), array("type" => "dropdown", "heading" => __("Intro Animation", "swift-framework-admin"), "param_name" => "animation", "value" => array(__("None", "swift-framework-admin") => "none", __("Fade In", "swift-framework-admin") => "fade-in", __("Fade From Left", "swift-framework-admin") => "fade-from-left", __("Fade From Right", "swift-framework-admin") => "fade-from-right", __("Fade From Bottom", "swift-framework-admin") => "fade-from-bottom", __("Move Up", "swift-framework-admin") => "move-up", __("Grow", "swift-framework-admin") => "grow", __("Fly", "swift-framework-admin") => "fly", __("Helix", "swift-framework-admin") => "helix", __("Flip", "swift-framework-admin") => "flip", __("Pop Up", "swift-framework-admin") => "pop-up", __("Spin", "swift-framework-admin") => "spin", __("Flip X", "swift-framework-admin") => "flip-x", __("Flip Y", "swift-framework-admin") => "flip-y"), "description" => __("Select an intro animation for the icon box that will show it when it appears within the viewport.", "swift-framework-admin")), array("type" => "textfield", "heading" => __("Animation Delay", "swift-framework-admin"), "param_name" => "animation_delay", "value" => "0", "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")), 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")))));
Exemplo n.º 24
0
            }
            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));
Exemplo n.º 25
0
        $output .= "\n\t\t\t" . '</div>';
        if ('spb_tour' == $this->shortcode) {
            $output .= "\n\t\t\t" . '<div class="spb_tour_next_prev_nav"> <span class="spb_prev_slide"><a href="#prev" title="' . __('Previous slide', "swiftframework") . '">' . __('Previous slide', "swiftframework") . '</a></span> <span class="spb_next_slide"><a href="#next" title="' . __('Next slide', "swiftframework") . '">' . __('Next slide', "swiftframework") . '</a></span></div>';
        }
        $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_tabs', array("name" => __("Tabs", "swift-framework-admin"), "base" => "spb_tabs", "controls" => "full", "class" => "spb_tabs", "icon" => "spb-icon-tabs", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "swift-framework-admin"), "param_name" => "tab_asset_title", "value" => "", "description" => __("What text use as widget title. Leave blank if no title is needed.", "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"))), "custom_markup" => '
		<div class="tab_controls">
			<button class="add_tab">' . __("Add New Tab", "swift-framework-admin") . '</button>
	</div>
	
		<div class="spb_tabs_holder">
			%content%
		</div>', 'default_content' => '
		<ul>
			<li><a href="#tab-1"><span>' . __('Tab 1', 'swift-framework-admin') . '</span></a><a class="edit_tab"></a><a class="delete_tab"></a></li>
			<li><a href="#tab-2"><span>' . __('Tab 2', 'swift-framework-admin') . '</span></a><a class="edit_tab"></a><a class="delete_tab"></a></li>
		</ul>
	
		<div id="tab-1" class="row-fluid spb_column_container spb_sortable_container not-column-inherit">
			[spb_text_block width="1/1"] ' . __('This is a text block. Click the edit button to change this text.', 'swift-framework-admin') . ' [/spb_text_block]
		</div>
	
		<div id="tab-2" class="row-fluid spb_column_container spb_sortable_container not-column-inherit">
			[spb_text_block width="1/1"] ' . __('This is a text block. Click the edit button to change this text.', 'swift-framework-admin') . ' [/spb_text_block]
		</div>', "js_callback" => array("init" => "spbTabsInitCallBack", "shortcode" => "spbTabsGenerateShortcodeCallBack")));
Exemplo n.º 26
0
class SwiftPageBuilderShortcode_spb_supersearch extends SwiftPageBuilderShortcode
{
    protected function content($atts, $content = null)
    {
        $title = $width = $el_class = $output = $items = $el_position = '';
        extract(shortcode_atts(array('title' => '', 'fullwidth' => '', 'el_position' => '', 'width' => '1/1', 'el_class' => ''), $atts));
        /* PAGE BUILDER OUTPUT
           ================================================== */
        $width = spb_translateColumnWidthToSpan($width);
        $el_class = $this->getExtraClass($el_class);
        if ($fullwidth == "yes" && $width == "col-sm-12") {
            $fullwidth = true;
        } else {
            $fullwidth = false;
        }
        $output .= "\n\t" . '<div class="spb_supersearch_widget spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '', $fullwidth) : '';
        $output .= "\n\t\t" . do_shortcode('[sf_supersearch]');
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        return $output;
    }
}
SPBMap::map('spb_supersearch', array("name" => __("Super Search", 'swift-framework-plugin'), "base" => "spb_supersearch", "class" => "spb_supersearch", "icon" => "spb-icon-supersearch", "params" => array(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 yes if you'd like the divider to be full width (only to be used with no sidebars, and with Standard/Thin/Dotted divider types).", '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')))));
Exemplo n.º 27
0
        $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")))));
Exemplo n.º 28
0
/*
 *
 *	Swift Page Builder - Code-Snipper Shortcode
 *	------------------------------------------------
 *	Swift Framework
 * 	Copyright Swift Ideas 2016 - http://www.swiftideas.com
 *
 */
class SwiftPageBuilderShortcode_spb_codesnippet extends SwiftPageBuilderShortcode
{
    public function content($atts, $content = null)
    {
        $title = $el_class = $width = $el_position = '';
        extract(shortcode_atts(array('title' => '', 'language' => '', 'el_class' => '', 'el_position' => '', 'width' => '1'), $atts));
        $output = '';
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_codesnippet_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '') : '';
        $output .= "\n\t\t" . '<pre><code class="code-block language-' . $language . '">' . spb_format_content($content) . '</code></pre>';
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        //
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
SPBMap::map('spb_codesnippet', array("name" => __("Code Snippet", 'swift-framework-plugin'), "base" => "spb_codesnippet", "class" => "spb_codesnippet", "icon" => "icon-code-snippet", "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" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Text", 'swift-framework-plugin'), "param_name" => "content", "value" => __("<p>Add your code snippet here.</p>", 'swift-framework-plugin'), "description" => __("Enter your code snippet.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Language", 'swift-framework-plugin'), "param_name" => "language", "value" => array('HTML' => 'markup', 'CSS' => 'css', 'PHP' => 'php', 'JavaScript' => 'javascript')), 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')))));
Exemplo n.º 29
0
}
$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'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_blog', array("name" => __("Blog", 'swift-framework-plugin'), "base" => "spb_blog", "class" => "spb_blog spb_tab_media", "icon" => "icon-blog", "params" => $params));
Exemplo n.º 30
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")))));