当前位置: 首页>>代码示例>>PHP>>正文


PHP sf_get_category_list函数代码示例

本文整理汇总了PHP中sf_get_category_list函数的典型用法代码示例。如果您正苦于以下问题:PHP sf_get_category_list函数的具体用法?PHP sf_get_category_list怎么用?PHP sf_get_category_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了sf_get_category_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

            $output .= "\n\t\t" . $view_all;
        }
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, $title_class, true) : '';
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        global $sf_has_portfolio_showcase, $sf_include_carousel;
        if ($alt_display) {
            $sf_include_carousel = true;
        } else {
            $sf_has_portfolio_showcase = true;
        }
        return $output;
    }
}
/* PARAMS
   ================================================== */
$count_options = array("type" => "dropdown", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => array(__('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "description" => __("Choose the number of items to display for the asset.", 'swift-framework-plugin'));
if (sf_theme_supports('spb-port-showcase-alt')) {
    $count_options = array("type" => "textfield", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "8", "description" => __("Choose the number of items to display for the asset.", 'swift-framework-plugin'));
}
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Portfolio category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('portfolio-category'), "description" => __("Choose the category for the portfolio items.", 'swift-framework-plugin')), $count_options);
if (sf_theme_supports('spb-port-showcase-alt')) {
    $params[] = array("type" => "buttonset", "heading" => __("Include Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "description" => __("If you would like to include pagination on the showcase asset, then enable it here.", 'swift-framework-plugin'));
}
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_portfolio_showcase', array("name" => __("Portfolio Showcase", 'swift-framework-plugin'), "base" => "spb_portfolio_showcase", "class" => "spb_portfolio_showcase spb_showcase spb_tab_media", "icon" => "icon-showcase", "params" => $params));
开发者ID:arobbins,项目名称:spellestate,代码行数:31,代码来源:portfolio-showcase.php

示例2: sf_get_post_meta

        $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")))));
开发者ID:VeritasStrategies,项目名称:Poplin,代码行数:30,代码来源:testimonial-slider.php

示例3: form

    function form($instance)
    {
        // Set defaults if instance doesn't already exist
        if ($instance) {
            $title = $instance['title'];
            $number = $instance['number'];
            $category = $instance['category'];
        } else {
            // Defaults
            $title = '';
            $number = '5';
            $category = '';
        }
        // The widget form
        ?>
				<p>
					<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        echo __('Title:', 'swift-framework-admin');
        ?>
</label>
					<input id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
" class="widefat" />
				</p>
				<p>
					<label for="<?php 
        echo $this->get_field_id('number');
        ?>
"><?php 
        echo __('Number of items to show:', 'swift-framework-admin');
        ?>
</label>
					<input id="<?php 
        echo $this->get_field_id('number');
        ?>
" name="<?php 
        echo $this->get_field_name('number');
        ?>
" type="text" value="<?php 
        echo $number;
        ?>
" size="3" />
				</p>
				<p>
					<label for="<?php 
        echo $this->get_field_id('category');
        ?>
"><?php 
        _e('Category', 'wp_widget_plugin');
        ?>
</label>
					<select name="<?php 
        echo $this->get_field_name('category');
        ?>
" id="<?php 
        echo $this->get_field_id('category');
        ?>
" class="">
					<?php 
        $options = sf_get_category_list('portfolio-category');
        foreach ($options as $option) {
            echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : '', '>', $option, '</option>';
        }
        ?>
					</select>
					</p>
				</p>
		<?php 
    }
开发者ID:part-up,项目名称:blog,代码行数:79,代码来源:widget-portfolio.php

示例4: sf_gallery_filter

                $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
            }
            if ($gallery_filter == "yes") {
                $output .= sf_gallery_filter('', $category);
            }
            $output .= '</div>';
        }
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_isotope, $sf_has_galleries;
        $sf_include_isotope = true;
        $sf_has_galleries = true;
        return $output;
    }
}
/* PARAMS
   ================================================== */
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Gallery', 'swift-framework-plugin') => "gallery", __('Masonry', 'swift-framework-plugin') => "masonry", __('Masonry Gallery', 'swift-framework-plugin') => "masonry-gallery"), "description" => __("Select the type of galleries layout you'd like to show.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Item Link", 'swift-framework-plugin'), "param_name" => "link_type", "value" => array(__('Lightbox Gallery', 'swift-framework-plugin') => "lightbox", __('Gallery Page', 'swift-framework-plugin') => "page"), "description" => __("Select if you'd like the gallery thumbnail link to link through to the gallery page, or to open up the gallery in a lighbox.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like spacing between the items, or not.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Column count", 'swift-framework-plugin'), "param_name" => "columns", "value" => array("5", "4", "3", "2", "1"), "description" => __("How many gallery columns to display.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show title text", 'swift-framework-plugin'), "param_name" => "show_title", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item title text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show subtitle text", 'swift-framework-plugin'), "param_name" => "show_subtitle", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item subtitle text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show excerpt", 'swift-framework-plugin'), "param_name" => "show_excerpt", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the excerpt text.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Excerpt Length", 'swift-framework-plugin'), "param_name" => "excerpt_length", "value" => "20", "required" => array("display_type", "or", "standard,masonry"), "description" => __("The length of the excerpt for the posts.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of galleries", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of galleries to show per page. Leave blank to show ALL.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Gallery category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('gallery-category'), "description" => __("Choose the category from which you'd like to show galleries.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Filter", 'swift-framework-plugin'), "param_name" => "gallery_filter", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show the gallery category filter above the items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show pagination.", 'swift-framework-plugin')));
if (spb_get_theme_name() == "joyn") {
    $params[] = array("type" => "dropdown", "heading" => __("Thumbnail Hover Style", 'swift-framework-plugin'), "param_name" => "hover_style", "value" => array(__('Default', 'swift-framework-plugin') => "default", __('Standard', 'swift-framework-plugin') => "gallery-standard", __('Gallery Alt', 'swift-framework-plugin') => "gallery-alt-one"), "description" => __("Choose the thumbnail hover style for the asset. If set to 'Default', then this uses the thumbnail type set in the theme options.", 'swift-framework-plugin'));
}
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_galleries', array("name" => __("Galleries", 'swift-framework-plugin'), "base" => "spb_galleries", "class" => "spb_galleries spb_tab_media", "icon" => "icon-galleries", "params" => $params));
开发者ID:arobbins,项目名称:spellestate,代码行数:31,代码来源:galleries.php

示例5: wp_reset_postdata

        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")))));
开发者ID:VeritasStrategies,项目名称:Poplin,代码行数:30,代码来源:posts-carousel.php

示例6: lip_love_it_link

                $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")))));
开发者ID:nhatnam1102,项目名称:wp-content,代码行数:30,代码来源:recent-posts.php

示例7: sf_portfolio_filter

 function sf_portfolio_filter($style = "basic", $parent_category = "")
 {
     $filter_output = $tax_terms = "";
     $options = get_option('sf_dante_options');
     $filter_wrap_bg = $options['filter_wrap_bg'];
     if ($parent_category == "" || $parent_category == "all") {
         $tax_terms = sf_get_category_list('portfolio-category', 1);
     } else {
         $tax_terms = sf_get_category_list('portfolio-category', 1, $parent_category);
     }
     if ($style == "slide-out") {
         $filter_output .= '<div class="filter-wrap slideout-filter row clearfix">' . "\n";
         $filter_output .= '<a href="#" class="select"><i class="fa-justify"></i>' . __("Filter our work", "swiftframework") . '</a>' . "\n";
         $filter_output .= '<div class="filter-slide-wrap col-sm-12 alt-bg ' . $filter_wrap_bg . '">' . "\n";
         $filter_output .= '<ul class="portfolio-filter filtering row clearfix">' . "\n";
         $filter_output .= '<li class="all selected col-sm-2"><a data-filter="*" href="#"><span class="item-name">' . __("All", "swiftframework") . '</span><span class="item-count">0</span></a></li>' . "\n";
         foreach ($tax_terms as $tax_term) {
             $term = get_term_by('name', $tax_term, 'portfolio-category');
             if ($term) {
                 $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>' . "\n";
             } else {
                 $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>' . "\n";
             }
         }
         $filter_output .= '</ul></div></div>' . "\n";
     } else {
         if ($style == "full-width") {
             $filter_output .= '<div class="container">';
         }
         $filter_output .= '<div class="filter-wrap row clearfix">' . "\n";
         $filter_output .= '<ul class="portfolio-filter-tabs bar-styling filtering col-sm-12 clearfix">' . "\n";
         $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __("All", "swiftframework") . '</span><span class="item-count">0</span></a></li>' . "\n";
         foreach ($tax_terms as $tax_term) {
             $term = get_term_by('name', $tax_term, 'portfolio-category');
             if ($term) {
                 $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>' . "\n";
             } else {
                 $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>' . "\n";
             }
         }
         $filter_output .= '</ul></div>' . "\n";
         if ($style == "full-width") {
             $filter_output .= '</div>';
         }
     }
     return $filter_output;
 }
开发者ID:roycocup,项目名称:enclothed,代码行数:47,代码来源:sf-portfolio.php

示例8: sf_directory_location_filter

            $output .= '<input type="text" name="dir-search-value" id="dir-search-value" value="' . $dir_search_val . '" placeholder="' . $dir_placeholder . '"></div>';
            $output .= '<div class="directory-filter">' . sf_directory_location_filter() . '</div>';
            $output .= '<div class="directory-filter"> ' . sf_directory_category_filter($category_term, $directory_category) . '</div>';
            $output .= '<div class="directory-search-container"><a class="btn read-more-button directorySearch" name="directory-search-button" id="directory-search-button">' . __("Search", 'swift-framework-plugin') . '</a></div>';
            $output .= '</form>';
            $output .= '</div></div>' . $this->endBlockComment($width);
        }
        if ($fullscreen) {
            $output .= "\n\t\t" . '<div class="directory-results container">';
        } else {
            $output .= "\n\t\t" . '<div class="directory-results">';
        }
        if ($directory_map_results != 'map') {
            // ITEMS OUTPUT
            $items = sf_directory_items($excerpt_length, $pagination, $item_count, $directory_category, $order);
            $output .= $items;
        }
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div></div>';
        if ($fullscreen && $width == "col-sm-12") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_maps;
        $sf_include_maps = true;
        return $output;
    }
}
SPBMap::map('spb_directory', array("name" => __("Directory Map", 'swift-framework-plugin'), "base" => "spb_directory", "controls" => "full", "class" => "spb_directory", "icon" => "icon-directory-map", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Map Height", 'swift-framework-plugin'), "param_name" => "size", "value" => "300", "description" => __('Enter map height in pixels. Example: 300.', 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Directory category", 'swift-framework-plugin'), "param_name" => "directory_category", "value" => sf_get_category_list('directory-category'), "description" => __("Choose the category from which you'd like to show the directory items.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order", 'swift-framework-plugin'), "param_name" => "order", "std" => "date", "value" => array(__('Default', 'swift-framework-plugin') => "standard", __('Date (Ascending)', 'swift-framework-plugin') => "date-asc", __('Date (Descending)', 'swift-framework-plugin') => "date-desc", __('Title (Ascending)', 'swift-framework-plugin') => "title-asc", __('Title (Descending)', 'swift-framework-plugin') => "title-desc"), "description" => __("Select how you'd like the items to be ordered.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Map Filter", 'swift-framework-plugin'), "param_name" => "directory_map_filter", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("If yes, will be added a filter to refine the results.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Filter Position", 'swift-framework-plugin'), "param_name" => "directory_map_filter_pos", "value" => array(__("Above", 'swift-framework-plugin') => "above", __("Below", 'swift-framework-plugin') => "below"), "required" => array("directory_map_filter", "=", "yes"), "description" => __("Choose the position of the Map Filter(above or below).", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display Results", 'swift-framework-plugin'), "param_name" => "directory_map_results", "value" => array(__("Map", 'swift-framework-plugin') => "map", __("List", 'swift-framework-plugin') => "list", __("Map & List", 'swift-framework-plugin') => "maplist"), "description" => __("Choose how the results will be displayed.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Excerpt Length", 'swift-framework-plugin'), "param_name" => "excerpt_length", "value" => "", "description" => __("The length of the excerpt for the list results text(leave empty for full description.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of directory items to show per page. Leave blank to show ALL directory items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "description" => __("Show directory pagination.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Type", 'swift-framework-plugin'), "param_name" => "type", "value" => array(__("Map", 'swift-framework-plugin') => "roadmap", __("Satellite", 'swift-framework-plugin') => "satellite", __("Hybrid", 'swift-framework-plugin') => "hybrid", __("Terrain", 'swift-framework-plugin') => "terrain"), "description" => __("Select map display type. NOTE, if you set a color below, then only the standard Map type will show.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Zoom", 'swift-framework-plugin'), "param_name" => "zoom", "value" => array(__("14 - Default", 'swift-framework-plugin') => 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20), "description" => __("This zoom field will only work for 1 map pin. When displaying more than 1 result the zoom will be calculate based on the pins of the map.", 'swift-framework-plugin')), array("type" => "colorpicker", "heading" => __("Map Color", 'swift-framework-plugin'), "param_name" => "color", "value" => "", "description" => __('If you would like, you can enter a hex color here to style the map by changing the hue.', 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Map Saturation", 'swift-framework-plugin'), "param_name" => "saturation", "value" => array(__("Color", 'swift-framework-plugin') => "color", __("Mono (Light)", 'swift-framework-plugin') => "mono-light", __("Mono (Dark)", 'swift-framework-plugin') => "mono-dark"), "description" => __("Set whether you would like the map to be in color or mono (black/white).", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Fullscreen Display", 'swift-framework-plugin'), "param_name" => "fullscreen", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "buttonset_on" => "no", "description" => __("If yes, the map will be displayed from screen edge to edge.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
开发者ID:arobbins,项目名称:spellestate,代码行数:30,代码来源:directory.php

示例9: pagenavi

        }
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap">';
            $items .= pagenavi($testimonials);
            $items .= '</div>';
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $el_class .= ' testimonial';
        $output .= "\n\t" . '<div class="spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content testimonial-wrap ' . $text_size . '">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '') : '';
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
/* PARAMS
   ================================================== */
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Text size", 'swift-framework-plugin'), "param_name" => "text_size", "value" => array(__('Normal', 'swift-framework-plugin') => "normal", __('Large', 'swift-framework-plugin') => "large"), "description" => __("Choose the size of the text.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "6", "description" => __("The number of testimonials to show per page. Leave blank to show ALL testimonials.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Testimonials Order", 'swift-framework-plugin'), "param_name" => "order", "value" => array(__('Random', 'swift-framework-plugin') => "rand", __('Latest', 'swift-framework-plugin') => "date"), "description" => __("Choose the order of the testimonials.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Testimonials category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('testimonials-category'), "description" => __("Choose the category for the testimonials.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Show testimonial pagination (1/1 width element only).", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Testimonials page link", 'swift-framework-plugin'), "param_name" => "page_link", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Include a link to the testimonials page (which you must choose in the theme options).", 'swift-framework-plugin')));
if (spb_get_theme_name() == "uplift") {
    $params[] = array("type" => "dropdown", "heading" => __("Display Type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Masonry', 'swift-framework-plugin') => "masonry"), "std" => 'standard', "description" => __("Choose the display type for the asset.", 'swift-framework-plugin'));
    $params[] = array("type" => "dropdown", "heading" => __("Column count", 'swift-framework-plugin'), "param_name" => "columns", "value" => array("5", "4", "3", "2", "1"), "required" => array("display_type", "=", "masonry"), "std" => '3', "description" => __("How many columns to display.", 'swift-framework-plugin'));
}
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SPBMap
   ================================================== */
SPBMap::map('spb_testimonial', array("name" => __("Testimonials", 'swift-framework-plugin'), "base" => "spb_testimonial", "class" => "", "icon" => "icon-testimonials", "wrapper_class" => "clearfix", "controls" => "full", "params" => $params));
开发者ID:arobbins,项目名称:spellestate,代码行数:31,代码来源:testimonial.php

示例10: sf_gallery_filter

 function sf_gallery_filter($style = "basic", $parent_category = "")
 {
     $filter_output = $tax_terms = "";
     if ($parent_category == "" || $parent_category == "All") {
         $tax_terms = sf_get_category_list('gallery-category', 1, '', true);
     } else {
         $tax_terms = sf_get_category_list('gallery-category', 1, $parent_category, true);
     }
     $filter_output .= '<div class="filter-wrap clearfix">' . "\n";
     $filter_output .= '<ul class="post-filter-tabs filtering clearfix">' . "\n";
     $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __("Show all", "swiftframework") . '</span></a></li>' . "\n";
     foreach ($tax_terms as $tax_term) {
         $term = get_term_by('name', $tax_term, 'gallery-category');
         if ($term) {
             $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
         } else {
             $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span></a></li>' . "\n";
         }
     }
     $filter_output .= '</ul></div>' . "\n";
     return $filter_output;
 }
开发者ID:Infernosaint,项目名称:WPSetupTest2,代码行数:22,代码来源:sf-galleries.php

示例11: pagenavi

        $items .= '</div>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap">';
            $items .= pagenavi($clients_items);
            $items .= '</div>';
        }
        // PAGE BUILDER OUPUT
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_clients_widget clients-wrap carousel-asset spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb-asset-content">';
        $output .= "\n\t\t" . '<div class="title-wrap clearfix">';
        if ($title != '') {
            $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
        }
        if ($carousel == "yes") {
            $output .= spb_carousel_arrows();
        }
        $output .= '</div>';
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $sf_include_carousel;
        $sf_include_carousel = true;
        return $output;
    }
}
SPBMap::map('spb_clients', array("name" => __("Clients", 'swift-framework-plugin'), "base" => "spb_clients", "class" => "clients", "icon" => "spb-icon-clients", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of clients to show per page. Leave blank to show ALL clients.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Columns", 'swift-framework-plugin'), "param_name" => "item_columns", "value" => array(__('2', 'swift-framework-plugin') => "2", __('3', 'swift-framework-plugin') => "3", __('4', 'swift-framework-plugin') => "4", __('5', 'swift-framework-plugin') => "5"), "std" => '4', "description" => __("Choose the amount of columns you would like for the clients asset.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Clients category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('clients-category'), "description" => __("Choose the category for the client items.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Enable Carousel", 'swift-framework-plugin'), "param_name" => "carousel", "value" => array(__("Yes", 'swift-framework-plugin') => "yes", __("No", 'swift-framework-plugin') => "no"), "description" => __("Enable carousel functionality.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "description" => __("Show clients pagination (non-carousel only).", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
开发者ID:Infernosaint,项目名称:WPSetupTest2,代码行数:30,代码来源:clients.php

示例12: sf_portfolio_filter

 function sf_portfolio_filter($style = "basic", $post_type = "portfolio", $parent_category = "", $frontend_display = false)
 {
     $filter_output = $tax_terms = "";
     $taxonomy_name = 'category';
     if ($post_type != "post") {
         $taxonomy_name = $post_type . '-category';
     }
     if ($parent_category == "" || $parent_category == "All") {
         $tax_terms = sf_get_category_list($taxonomy_name, 1, '', true);
     } else {
         $tax_terms = sf_get_category_list($taxonomy_name, 1, $parent_category, true);
     }
     $filter_output .= '<div class="filter-wrap clearfix">' . "\n";
     $filter_output .= '<ul class="post-filter-tabs filtering clearfix">' . "\n";
     $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __("Show all", "swiftframework") . '</span></a></li>' . "\n";
     foreach ($tax_terms as $tax_term) {
         $term = get_term_by('slug', $tax_term, $taxonomy_name);
         if ($term) {
             $filter_output .= '<li><a href="#" title="' . $term->name . '" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
         } else {
             $filter_output .= '<li><a href="#" title="' . $tax_term . '" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span></a></li>' . "\n";
         }
     }
     $filter_output .= '</ul></div>' . "\n";
     return $filter_output;
 }
开发者ID:shimion,项目名称:wishlistshimion,代码行数:26,代码来源:sf-portfolio.php

示例13: get_the_title

                    $faqs->the_post();
                    $faq_title = get_the_title();
                    $faq_text = apply_filters('the_content', get_the_content());
                    $faq_text = str_replace(']]>', ']]&gt;', $faq_text);
                    $items .= '<li class="faq-item closed">';
                    $items .= '<h5 data-before="' . __('Q:', 'swiftframework') . '">' . $faq_title . '</h5>';
                    $items .= '<div class="faq-text" data-before="' . __('A:', 'swiftframework') . '">' . do_shortcode($faq_text) . '</div>';
                    $items .= '</li>';
                }
                $items .= '<div class="spb_divider go_to_top_icon1 spb_content_element "><a class="animate-top" href="#">' . $up_icon . '</a></div>';
                $items .= '</ul>';
                wp_reset_postdata();
            }
        }
        $el_class = $this->getExtraClass($el_class);
        $width = spb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="spb_faqs_element spb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="spb_wrapper faqs-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . $this->spb_title($title, '') : '';
        $output .= "\n\t\t\t" . $items_nav;
        $output .= "\n\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        // Row
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        // Return
        return $output;
    }
}
SPBMap::map('spb_faqs', array("name" => __("FAQs", 'swift-framework-plugin'), "base" => "spb_faqs", "class" => "", "icon" => "icon-faqs", "wrapper_class" => "clearfix", "controls" => "full", "params" => array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("FAQ category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('faqs-category'), "description" => __("Choose the category for the FAQ.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin')))));
开发者ID:arobbins,项目名称:spellestate,代码行数:30,代码来源:faqs.php

示例14: array

            }
            $output .= '</div>';
        }
        $output .= "\n\t\t" . $items;
        $output .= "\n\t\t" . '</div>';
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        if ($fullwidth == "yes" && $sidebars == "no-sidebars") {
            $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);
        } else {
            $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        }
        global $sf_include_isotope, $sf_has_portfolio;
        $sf_include_isotope = true;
        $sf_has_portfolio = true;
        return $output;
    }
}
/* PARAMS
   ================================================== */
$pagination_types = array(__('None', 'swift-framework-plugin') => "none", __('Standard', 'swift-framework-plugin') => "standard");
$pagination_types = apply_filters('spb_portfolio_pagination_types', $pagination_types);
$params = array(array("type" => "textfield", "heading" => __("Widget title", 'swift-framework-plugin'), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Display type", 'swift-framework-plugin'), "param_name" => "display_type", "value" => array(__('Standard', 'swift-framework-plugin') => "standard", __('Gallery', 'swift-framework-plugin') => "gallery", __('Masonry', 'swift-framework-plugin') => "masonry", __('Masonry Gallery', 'swift-framework-plugin') => "masonry-gallery", __('Multi Size Masonry', 'swift-framework-plugin') => "multi-size-masonry"), "description" => __("Select the type of portfolio you'd like to show.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Multi Size Masonry Ratio", 'swift-framework-plugin'), "param_name" => "multi_size_ratio", "value" => array("1/1", "4/3"), "required" => array("display_type", "=", "multi-size-masonry"), "description" => __("Choose whether to display 4/3, or 1/1 ratio thumbnails.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Full Width", 'swift-framework-plugin'), "param_name" => "fullwidth", "value" => array(__('No', 'swift-framework-plugin') => "no", __('Yes', 'swift-framework-plugin') => "yes"), "buttonset_on" => "yes", "description" => __("Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Gutters", 'swift-framework-plugin'), "param_name" => "gutters", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Select if you'd like spacing between the items, or not.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Column count", 'swift-framework-plugin'), "param_name" => "columns", "value" => array("5", "4", "3", "2", "1"), "required" => array("display_type", "!=", "multi-size-masonry"), "description" => __("How many portfolio columns to display.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show title text", 'swift-framework-plugin'), "param_name" => "show_title", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item title text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show subtitle text", 'swift-framework-plugin'), "param_name" => "show_subtitle", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item subtitle text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Show item excerpt", 'swift-framework-plugin'), "param_name" => "show_excerpt", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("display_type", "or", "standard,masonry"), "description" => __("Show the item excerpt text.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Excerpt Hover", 'swift-framework-plugin'), "param_name" => "hover_show_excerpt", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "std" => "no", "required" => array("display_type", "or", "gallery,masonry-gallery,multi-size-masonry"), "description" => __("Show the item excerpt on hover, instead of the arrow button.", 'swift-framework-plugin')), array("type" => "textfield", "heading" => __("Excerpt Length", 'swift-framework-plugin'), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", 'swift-framework-plugin')), array("type" => "textfield", "class" => "", "heading" => __("Number of items", 'swift-framework-plugin'), "param_name" => "item_count", "value" => "12", "description" => __("The number of portfolio items to show per page. Leave blank to show ALL portfolio items.", 'swift-framework-plugin')), array("type" => "select-multiple", "heading" => __("Portfolio category", 'swift-framework-plugin'), "param_name" => "category", "value" => sf_get_category_list('portfolio-category'), "description" => __("Choose the category from which you'd like to show the portfolio items.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order by", 'swift-framework-plugin'), "param_name" => "order_by", "value" => array(__('None', 'swift-framework-plugin') => "none", __('ID', 'swift-framework-plugin') => "ID", __('Title', 'swift-framework-plugin') => "title", __('Date', 'swift-framework-plugin') => "date", __('Random', 'swift-framework-plugin') => "rand"), "description" => __("Select how you'd like the items to be ordered.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Order", 'swift-framework-plugin'), "param_name" => "order", "value" => array(__("Descending", 'swift-framework-plugin') => "DESC", __("Ascending", 'swift-framework-plugin') => "ASC"), "description" => __("Select if you'd like the items to be ordered in ascending or descending order.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Filter", 'swift-framework-plugin'), "param_name" => "portfolio_filter", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "description" => __("Show the portfolio category filter above the items.", 'swift-framework-plugin')), array("type" => "dropdown", "heading" => __("Pagination", 'swift-framework-plugin'), "param_name" => "pagination", "value" => $pagination_types, "description" => __("Show portfolio pagination.", 'swift-framework-plugin')), array("type" => "buttonset", "heading" => __("Portfolio Page Button", 'swift-framework-plugin'), "param_name" => "button_enabled", "value" => array(__('Yes', 'swift-framework-plugin') => "yes", __('No', 'swift-framework-plugin') => "no"), "buttonset_on" => "yes", "required" => array("portfolio_filter", "=", "yes"), "description" => __("Select if you'd like to include a button in the title bar to link through to all portfolio items. The page is set in Theme Options > Custom Post Type Options.", 'swift-framework-plugin')));
if (spb_get_theme_name() == "joyn") {
    $params[] = array("type" => "dropdown", "heading" => __("Thumbnail Hover Style", 'swift-framework-plugin'), "param_name" => "hover_style", "value" => array(__('Default', 'swift-framework-plugin') => "default", __('Standard', 'swift-framework-plugin') => "gallery-standard", __('Gallery Alt', 'swift-framework-plugin') => "gallery-alt-one"), "description" => __("Choose the thumbnail hover style for the asset. If set to 'Default', then this uses the thumbnail type set in the theme options.", 'swift-framework-plugin'));
}
$params[] = array("type" => "section", "param_name" => "advanced_options", "heading" => __("Advanced Options", 'swift-framework-plugin'));
$params[] = array("type" => "dropdown", "heading" => __("Post Type Override", 'swift-framework-plugin'), "param_name" => "post_type", "value" => spb_get_post_types(), "description" => __("If you'd like to override the post type for which the content is of this asset is made up of, then you can select it here.", 'swift-framework-plugin'));
$params[] = array("type" => "textfield", "heading" => __("Extra class", 'swift-framework-plugin'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'swift-framework-plugin'));
/* SHORTCODE MAP
   ================================================== */
SPBMap::map('spb_portfolio', array("name" => __("Portfolio", 'swift-framework-plugin'), "base" => "spb_portfolio", "class" => "spb_portfolio spb_tab_media", "icon" => "icon-portfolio", "params" => $params));
开发者ID:arobbins,项目名称:spellestate,代码行数:31,代码来源:portfolio.php

示例15: spb_translateColumnWidthToSpan

        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")))));
开发者ID:roycocup,项目名称:enclothed,代码行数:30,代码来源:portfolio-carousel.php


注:本文中的sf_get_category_list函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。