• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP sf_get_category_list函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP sf_get_embed_src函数代码示例发布时间:2022-05-24
下一篇:
PHP sf_excerpt函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap