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


PHP gdlr_get_thumbnail_list函数代码示例

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


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

示例1: gdlrs_register_room_item

 function gdlrs_register_room_item($page_builder = array())
 {
     global $gdlr_spaces;
     $page_builder['content-item']['options']['hostel-room'] = array('title' => __('Hostel Room', 'gdlr-hotel'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(__('View all rooms', 'gdlr-hotel')), array('category' => array('title' => __('Category', 'gdlr-hotel'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('hostel_room_category'), 'description' => __('You can use Ctrl/Command button to select multiple categories or remove the selected category. <br><br> Leave this field blank to select all categories.', 'gdlr-hotel')), 'tag' => array('title' => __('Tag', 'gdlr-hotel'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('hostel_room_tag'), 'description' => __('Will be ignored when the room filter option is enabled.', 'gdlr-hotel')), 'room-style' => array('title' => __('Room Style', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('classic' => __('Classic', 'gdlr-hotel'), 'classic-no-space' => __('Classic No Space', 'gdlr-hotel'), 'modern' => __('Modern', 'gdlr-hotel'), 'modern-no-space' => __('Modern No Space', 'gdlr-hotel'), 'medium' => __('Medium Thumbnail', 'gdlr-hotel'))), 'enable-carousel' => array('title' => __('Room Carousel', 'gdlr-hotel'), 'type' => 'checkbox', 'wrapper-class' => 'room-style-wrapper modern-wrapper modern-no-space-wrapper classic-wrapper classic-no-space-wrapper'), 'room-size' => array('title' => __('Room Column Size', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), 'default' => 3, 'wrapper-class' => 'room-style-wrapper classic-wrapper classic-no-space-wrapper modern-wrapper modern-no-space-wrapper'), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-hotel'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of rooms you want to pull out.', 'gdlr-hotel')), 'num-excerpt' => array('title' => __('Num Excerpt', 'gdlr-hotel'), 'type' => 'text', 'default' => '20', 'wrapper-class' => 'room-style-wrapper medium-wrapper'), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr-hotel'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'description' => __('Only effects to <strong>standard and gallery post format</strong>', 'gdlr-hotel')), 'orderby' => array('title' => __('Order By', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('date' => __('Publish Date', 'gdlr-hotel'), 'title' => __('Title', 'gdlr-hotel'), 'rand' => __('Random', 'gdlr-hotel'))), 'order' => array('title' => __('Order', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('desc' => __('Descending Order', 'gdlr-hotel'), 'asc' => __('Ascending Order', 'gdlr-hotel'))), 'pagination' => array('title' => __('Enable Pagination', 'gdlr-hotel'), 'type' => 'checkbox'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-hotel'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr-hotel')))));
     $page_builder['content-item']['options']['hostel-room-category'] = array('title' => __('Hostel Room Category / Branches', 'gdlr-hotel'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(__('View All Branches', 'gdlr-hotel')), array('category' => array('title' => __('Select Category to Display', 'gdlr-hotel'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_id_list('hostel_room_category'), 'description' => __('Will be ignored when the room filter option is enabled.', 'gdlr-hotel')), 'item-size' => array('title' => __('Item Column Size', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), 'default' => 3, 'wrapper-class' => 'room-style-wrapper classic-wrapper modern-wrapper'), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr-hotel'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'description' => __('Only effects to <strong>standard and gallery post format</strong>', 'gdlr-hotel')), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-hotel'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr-hotel')))));
     return $page_builder;
 }
开发者ID:hoa32811,项目名称:wp_thanhtrung_hotel,代码行数:7,代码来源:gdlrs-room-option.php

示例2: gdlr_register_cause_item

 function gdlr_register_cause_item($page_builder = array())
 {
     global $gdlr_spaces;
     $page_builder['content-item']['options']['cause-search'] = array('title' => __('Cause Search', 'gdlr-cause'), 'type' => 'item', 'options' => array('title' => array('title' => __('Title', 'gdlr-cause'), 'type' => 'text', 'default' => __('Search For Causes', 'gdlr-cause')), 'caption' => array('title' => __('Caption', 'gdlr-cause'), 'type' => 'text', 'default' => __('Please fill keywords in text box and select particular category to search for all causes.', 'gdlr-cause')), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-cause'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr-cause'))));
     $page_builder['content-item']['options']['cause'] = array('title' => __('Cause', 'gdlr-cause'), 'type' => 'item', 'options' => array('title-type' => array('title' => __('Title Type', 'gdlr-cause'), 'type' => 'combobox', 'options' => array('none' => __('None', 'gdlr-cause'), 'icon' => __('Title With Icon', 'gdlr-cause'), 'left' => __('Left Align With Icon', 'gdlr-cause'), 'center' => __('Center Align With Caption', 'gdlr-cause'))), 'icon' => array('title' => __('Icon', 'gdlr-cause'), 'type' => 'text', 'wrapper-class' => 'title-type-wrapper icon-wrapper left-wrapper'), 'title' => array('title' => __('Title', 'gdlr-cause'), 'type' => 'text', 'wrapper-class' => 'title-type-wrapper left-wrapper center-wrapper icon-wrapper'), 'caption' => array('title' => __('Caption', 'gdlr-cause'), 'type' => 'textarea', 'wrapper-class' => 'title-type-wrapper center-wrapper'), 'right-text' => array('title' => __('Title Right Text', 'gdlr-cause'), 'type' => 'text', 'default' => __('View All Causes', 'gdlr-cause'), 'wrapper-class' => 'title-type-wrapper left-wrapper center-wrapper icon-wrapper'), 'right-text-link' => array('title' => __('Title Right Text Link', 'gdlr-cause'), 'type' => 'text', 'wrapper-class' => 'title-type-wrapper left-wrapper center-wrapper icon-wrapper'), 'category' => array('title' => __('Category', 'gdlr-cause'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('cause_category'), 'description' => __('You can use Ctrl/Command button to select multiple categories or remove the selected category. <br><br> Leave this field blank to select all categories.', 'gdlr-cause')), 'cause-style' => array('title' => __('Cause Style', 'gdlr-cause'), 'type' => 'combobox', 'options' => array('grid' => __('Grid Style', 'gdlr-cause'), 'medium' => __('Medium Style', 'gdlr-cause'), 'full' => __('Full Style', 'gdlr-cause'))), 'cause-size' => array('title' => __('Cause Size', 'gdlr-cause'), 'type' => 'combobox', 'options' => array('1/4' => '1/4', '1/3' => '1/3', '1/2' => '1/2', '1/1' => '1/1'), 'default' => '1/3', 'wrapper-class' => 'cause-style-wrapper grid-wrapper'), 'cause-layout' => array('title' => __('Cause Layout', 'gdlr-cause'), 'type' => 'combobox', 'options' => array('fitRows' => __('FitRows ( Order items by row )', 'gdlr-cause'), 'masonry' => __('Masonry ( Order items by spaces )', 'gdlr-cause'), 'carousel' => __('Carousel ( Only For Grid And Modern Style )', 'gdlr-cause')), 'wrapper-class' => 'cause-style-wrapper grid-wrapper', 'description' => __('You can see an example of these two layout here', 'gdlr-cause') . '<br><br> http://isotope.metafizzy.co/demos/layout-modes.html'), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-cause'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of causes you want to pull out.', 'gdlr-cause')), 'num-excerpt' => array('title' => __('Num Excerpt (Word)', 'gdlr_translate'), 'type' => 'text', 'default' => '15', 'description' => __('This is a number of word (decided by spaces) that you want to show on the post excerpt. <strong>Use 0 to hide the excerpt, -1 to show full posts and use the wordpress more tag</strong>.', 'gdlr-cause')), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr-cause'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'description' => __('Only effects to <strong>standard and gallery post format</strong>', 'gdlr-cause')), 'orderby' => array('title' => __('Order By', 'gdlr-cause'), 'type' => 'combobox', 'options' => array('date' => __('Publish Date', 'gdlr-cause'), 'title' => __('Title', 'gdlr-cause'), 'rand' => __('Random', 'gdlr-cause'), 'nearly' => __('Almost Complete Cause', 'gdlr-cause'), 'finish' => __('Complete Funding Cause', 'gdlr-cause'))), 'order' => array('title' => __('Order', 'gdlr-cause'), 'type' => 'combobox', 'options' => array('desc' => __('Descending Order', 'gdlr-cause'), 'asc' => __('Ascending Order', 'gdlr-cause'))), 'pagination' => array('title' => __('Enable Pagination', 'gdlr-cause'), 'type' => 'checkbox'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-cause'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr-cause'))));
     $page_builder['content-item']['options']['urgent-cause'] = array('title' => __('Urgent Cause', 'gdlr-cause'), 'type' => 'item', 'options' => array('title' => array('title' => __('Title', 'gdlr-cause'), 'type' => 'text', 'default' => __('Urgent Cause', 'gdlr-cause')), 'cause' => array('title' => __('Select Cause', 'gdlr-cause'), 'type' => 'combobox', 'options' => gdlr_get_post_list('cause')), 'num-excerpt' => array('title' => __('Num Excerpt (Word)', 'gdlr_translate'), 'type' => 'text', 'default' => '40', 'description' => __('This is a number of word (decided by spaces) that you want to show on the post excerpt.', 'gdlr-cause')), 'min-height' => array('title' => __('Min Height (Pixel)', 'gdlr-cause'), 'type' => 'text', 'default' => ''), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-cause'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr-cause'))));
     return $page_builder;
 }
开发者ID:TheHiddenHaku,项目名称:fuzzy-waddle,代码行数:8,代码来源:gdlr-cause-option.php

示例3: gdlr_register_portfolio_admin_option

 function gdlr_register_portfolio_admin_option($array)
 {
     if (empty($array['general']['options'])) {
         return $array;
     }
     $portfolio_option = array('title' => __('Portfolio Style', 'gdlr_translate'), 'options' => array('portfolio-slug' => array('title' => __('Portfolio Slug ( Permalink )', 'gdlr_translate'), 'type' => 'text', 'default' => 'portfolio', 'description' => __('Only <strong>a-z (lower case), hyphen and underscore</strong> is allowed here <br><br>', 'gdlr_translate') . __('After changing, you have to set the permalink at the setting > permalink to default (to reset the permalink rules) as well.', 'gdlr_translate')), 'portfolio-category-slug' => array('title' => __('Portfolio Category Slug ( Permalink )', 'gdlr_translate'), 'type' => 'text', 'default' => 'portfolio_category'), 'portfolio-tag-slug' => array('title' => __('Portfolio Tag Slug ( Permalink )', 'gdlr_translate'), 'type' => 'text', 'default' => 'portfolio_tag'), 'portfolio-comment' => array('title' => __('Enable Comment On Portfolio', 'gdlr_translate'), 'type' => 'checkbox', 'default' => 'disable'), 'portfolio-related' => array('title' => __('Enable Related Portfolio', 'gdlr_translate'), 'type' => 'checkbox', 'default' => 'enable'), 'portfolio-page-style' => array('title' => __('Portfolio Page Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('style1' => __('Portfolio Style 1', 'gdlr_translate'), 'style2' => __('Portfolio Style 2', 'gdlr_translate'), 'blog-style' => __('Blog Style', 'gdlr_translate'))), 'portfolio-thumbnail-size' => array('title' => __('Single Portfolio Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'default' => 'post-thumbnail-size'), 'related-portfolio-style' => array('title' => __('Related Portfolio Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('classic-portfolio' => __('Portfolio Classic Style', 'gdlr_translate'), 'modern-portfolio' => __('Portfolio Modern Style', 'gdlr_translate'))), 'related-portfolio-size' => array('title' => __('Related Portfolio Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('2' => __('1/2', 'gdlr_translate'), '3' => __('1/3', 'gdlr_translate'), '4' => __('1/4', 'gdlr_translate'), '5' => __('1/5', 'gdlr_translate')), 'default' => '4'), 'related-portfolio-num-fetch' => array('title' => __('Related Portfolio Num Fetch', 'gdlr_translate'), 'type' => 'text', 'default' => '4'), 'related-portfolio-num-excerpt' => array('title' => __('Related Portfolio Num Excerpt', 'gdlr_translate'), 'type' => 'text', 'default' => '25'), 'related-portfolio-thumbnail-size' => array('title' => __('Related Portfolio Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'default' => 'small-grid-size')));
     $array['general']['options']['portfolio-style'] = $portfolio_option;
     return $array;
 }
开发者ID:hoa32811,项目名称:wp_thanhtrung_hotel,代码行数:9,代码来源:gdlr-plugin-option.php

示例4: gdlr_register_post_admin_option

 function gdlr_register_post_admin_option($array)
 {
     if (empty($array['general']['options'])) {
         return $array;
     }
     global $gdlr_sidebar_controller;
     $post_option = array('title' => __('Blog Style', 'gdlr_translate'), 'options' => array('post-title' => array('title' => __('Default Post Title', 'gdlr_translate'), 'type' => 'text', 'default' => 'Single Blog Title'), 'post-caption' => array('title' => __('Default Post Caption', 'gdlr_translate'), 'type' => 'textarea', 'default' => 'This is a single blog caption'), 'post-thumbnail-size' => array('title' => __('Single Post Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'default' => 'post-thumbnail-size'), 'post-meta-data' => array('title' => __('Disable Post Meta Data', 'gdlr_translate'), 'type' => 'multi-combobox', 'options' => array('date' => 'Date', 'tag' => 'Tag', 'category' => 'Category', 'comment' => 'Comment', 'author' => 'Author'), 'description' => __('Select this to remove the meta data out of the post.<br><br>', 'gdlr_translate') . __('You can use Ctrl/Command button to select multiple option or remove the selected option.', 'gdlr_translate')), 'single-post-author' => array('title' => __('Enable Single Post Author', 'gdlr_translate'), 'type' => 'checkbox'), 'post-sidebar-template' => array('title' => __('Default Post Sidebar', 'gdlr_translate'), 'type' => 'radioimage', 'options' => array('no-sidebar' => GDLR_PATH . '/include/images/no-sidebar.png', 'both-sidebar' => GDLR_PATH . '/include/images/both-sidebar.png', 'right-sidebar' => GDLR_PATH . '/include/images/right-sidebar.png', 'left-sidebar' => GDLR_PATH . '/include/images/left-sidebar.png'), 'default' => 'right-sidebar'), 'post-sidebar-left' => array('title' => __('Default Post Sidebar Left', 'gdlr_translate'), 'type' => 'combobox', 'options' => $gdlr_sidebar_controller->get_sidebar_array(), 'wrapper-class' => 'left-sidebar-wrapper both-sidebar-wrapper post-sidebar-template-wrapper'), 'post-sidebar-right' => array('title' => __('Default Post Sidebar Right', 'gdlr_translate'), 'type' => 'combobox', 'options' => $gdlr_sidebar_controller->get_sidebar_array(), 'wrapper-class' => 'right-sidebar-wrapper both-sidebar-wrapper post-sidebar-template-wrapper')));
     $array['general']['options']['blog-style'] = $post_option;
     return $array;
 }
开发者ID:TheHiddenHaku,项目名称:fuzzy-waddle,代码行数:10,代码来源:gdlr-post-options.php

示例5: gdlr_register_cause_admin_option

 function gdlr_register_cause_admin_option($array)
 {
     global $gdlr_sidebar_controller;
     if (empty($array['general']['options'])) {
         return $array;
     }
     $cause_option = array('title' => __('Cause Style', 'gdlr_translate'), 'options' => array('cause-slug' => array('title' => __('Cause Slug ( Permalink )', 'gdlr_translate'), 'type' => 'text', 'default' => 'cause', 'description' => __('Only <strong>a-z (lower case), hyphen and underscore</strong> is allowed here <br><br>', 'gdlr_translate') . __('After changing, you have to set the permalink at the setting > permalink to default (to reset the permalink rules) as well.', 'gdlr_translate')), 'cause-category-slug' => array('title' => __('Cause Category Slug ( Permalink )', 'gdlr_translate'), 'type' => 'text', 'default' => 'cause_category'), 'cause-thumbnail-size' => array('title' => __('Single Cause Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'default' => 'post-thumbnail-size'), 'cause-recipient-name' => array('title' => __('Recipient Name (Appear in sending mail)', 'gdlr_translate'), 'type' => 'text', 'default' => 'ORGANIZATION NAME'), 'cause-donation-form' => array('title' => __('Default Donation Form', 'gdlr_translate'), 'type' => 'textarea', 'default' => '[gdlr_paypal user="youruser@domain.com"]', 'description' => __('You may put the recipient\'s paypal account here.', 'gdlr_translate')), 'cause-money-format' => array('title' => __('Cause Money Format', 'gdlr_translate'), 'type' => 'text', 'default' => '$NUMBER'), 'cause-sidebar-template' => array('title' => __('Default Post Sidebar', 'gdlr_translate'), 'type' => 'radioimage', 'options' => array('no-sidebar' => GDLR_PATH . '/include/images/no-sidebar.png', 'both-sidebar' => GDLR_PATH . '/include/images/both-sidebar.png', 'right-sidebar' => GDLR_PATH . '/include/images/right-sidebar.png', 'left-sidebar' => GDLR_PATH . '/include/images/left-sidebar.png'), 'default' => 'right-sidebar'), 'cause-sidebar-left' => array('title' => __('Default Post Sidebar Left', 'gdlr_translate'), 'type' => 'combobox', 'options' => $gdlr_sidebar_controller->get_sidebar_array(), 'wrapper-class' => 'left-sidebar-wrapper both-sidebar-wrapper cause-sidebar-template-wrapper'), 'cause-sidebar-right' => array('title' => __('Default Post Sidebar Right', 'gdlr_translate'), 'type' => 'combobox', 'options' => $gdlr_sidebar_controller->get_sidebar_array(), 'wrapper-class' => 'right-sidebar-wrapper both-sidebar-wrapper cause-sidebar-template-wrapper')));
     $array['general']['options']['cause-style'] = $cause_option;
     return $array;
 }
开发者ID:TheHiddenHaku,项目名称:fuzzy-waddle,代码行数:10,代码来源:gdlr-plugin-option.php

示例6: gdlr_register_instructor_item

function gdlr_register_instructor_item($page_builder = array())
{
    if (!function_exists('gdlr_page_builder_title_option')) {
        function gdlr_page_builder_title_option()
        {
            return array();
        }
    }
    global $gdlr_spaces;
    $page_builder['content-item']['options']['instructor'] = array('title' => __('Instructor', 'gdlr-lms'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('instructor-type' => array('title' => __('Instructor Type', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('single' => __('Single Instructor', 'gdlr-lms'), 'multiple' => __('Instructor List', 'gdlr-lms'))), 'user' => array('title' => __('Select User', 'gdlr-lms'), 'type' => 'combobox', 'options' => gdlr_lms_get_user_list(), 'wrapper-class' => 'instructor-type-wrapper single-wrapper'), 'role' => array('title' => __('Role', 'gdlr-lms'), 'type' => 'combobox', 'options' => gdlr_lms_get_role_list(), 'wrapper-class' => 'instructor-type-wrapper multiple-wrapper'), 'instructor-style' => array('title' => __('Instructor Style', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('grid' => __('Grid Style', 'gdlr-lms'), 'grid-2' => __('Grid 2nd Style', 'gdlr-lms'))), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-lms'), 'type' => 'text', 'default' => '8', 'wrapper-class' => 'instructor-type-wrapper multiple-wrapper', 'description' => __('Specify the number of instructor you want to pull out.', 'gdlr-lms')), 'num-excerpt' => array('title' => __('Num Excerpt', 'gdlr-lms'), 'type' => 'text', 'default' => '20'), 'instructor-size' => array('title' => __('Instructor Size', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('4' => '1/4', '3' => '1/3', '2' => '1/2', '1' => '1/1'), 'default' => '3', 'wrapper-class' => 'instructor-type-wrapper multiple-wrapper'), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr-lms'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'orderby' => array('title' => __('Order By', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('display_name' => __('Display Name', 'gdlr-lms'), 'ID' => __('ID', 'gdlr-lms'), 'post_count' => __('Post Count', 'gdlr-lms')), 'wrapper-class' => 'instructor-type-wrapper multiple-wrapper'), 'order' => array('title' => __('Order', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('asc' => __('Ascending Order', 'gdlr-lms'), 'desc' => __('Descending Order', 'gdlr-lms')), 'wrapper-class' => 'instructor-type-wrapper multiple-wrapper'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-lms'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr-lms')))));
    return $page_builder;
}
开发者ID:AnduZhang,项目名称:resource-center,代码行数:12,代码来源:gdlr-theme-sync.php

示例7: gdlr_create_hotel_admin_option

 function gdlr_create_hotel_admin_option()
 {
     global $hotel_option, $gdlr_sidebar_controller;
     new gdlr_admin_option(array('page_title' => __('Hotel Option', 'gdlr-hotel'), 'menu_title' => __('Hotel Option', 'gdlr-hotel'), 'menu_slug' => 'hotel_option', 'save_option' => 'gdlr_hotel_option', 'role' => 'edit_theme_options', 'position' => 83), array('general' => array('title' => __('General', 'gdlr-hotel'), 'icon' => GDLR_PATH . '/include/images/icon-general.png', 'options' => array('booking-option' => array('title' => __('Booking Option', 'gdlr-hotel'), 'options' => array('booking-slug' => array('title' => __('Booking Page Slug', 'gdlr-hotel'), 'type' => 'text', 'default' => 'booking', 'description' => __('Please only fill lower case character with no special character here.', 'gdlr-hotel')), 'transaction-per-page' => array('title' => __('Transaction Per Page', 'gdlr-hotel'), 'type' => 'text', 'default' => '30'), 'booking-money-format' => array('title' => __('Money Display Format', 'gdlr-hotel'), 'type' => 'text', 'default' => '$NUMBER'), 'enable-hotel-branch' => array('title' => __('Enable Hotel Branch ( Using Category )', 'gdlr-hotel'), 'type' => 'checkbox', 'default' => 'disable'), 'preserve-booking-room' => array('title' => __('Preserve The Room After', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('paid' => __('Paid for room', 'gdlr-hotel'), 'booking' => __('Booking for room', 'gdlr-hotel'))), 'booking-price-display' => array('title' => __('Booking Price Display', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('start-from' => __('Start From', 'gdlr-hotel'), 'full-price' => __('Full Price', 'gdlr-hotel'))), 'booking-vat-amount' => array('title' => __('Vat Amount', 'gdlr-hotel'), 'type' => 'text', 'default' => '8', 'description' => __('Input only number ( as percent )', 'gdlr-hotel') . __('Filling 0 to disable this option out.', 'gdlr-hotel')), 'block-date' => array('title' => __('Block Date', 'gdlr-hotel'), 'type' => 'textarea', 'default' => '', 'description' => __('Fill the date in yyyy-mm-dd format. Use * for recurring date, separated each date using comma, use the word \'to\' for date range. Ex. *-12-25 to *-12-31 means special season is running every Christmas to New Year\'s Eve every year.', 'gdlr-hotel')), 'booking-deposit-amount' => array('title' => __('Deposit Amount', 'gdlr-hotel'), 'type' => 'text', 'default' => '20', 'description' => __('Allow customer to pay part of price for booking the room ( as percent ).', 'gdlr-hotel') . __('Filling 0 to disable this option out.', 'gdlr-hotel')), 'payment-method' => array('title' => __('Payment Method', 'gdlr-hotel'), 'type' => 'combobox', 'options' => array('contact' => __('Only Contact Form', 'gdlr-hotel'), 'instant' => __('Include Instant Payment', 'gdlr-hotel'))), 'instant-payment-method' => array('title' => __('Instant Payment Method', 'gdlr-hotel'), 'type' => 'multi-combobox', 'options' => array('paypal' => __('Paypal', 'gdlr-hotel'), 'stripe' => __('Stripe', 'gdlr-hotel'), 'paymill' => __('Paymill', 'gdlr-hotel'), 'authorize' => __('Authorize.Net', 'gdlr-hotel')), 'wrapper-class' => 'payment-method-wrapper instant-wrapper', 'description' => __('Leaving this field blank will display all available payment method.', 'gdlr-hotel')), 'booking-thumbnail-size' => array('title' => __('Booking Thumbnail Size', 'gdlr-hotel'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'default' => 'small-grid-size'), 'booking-num-fetch' => array('title' => __('Booking Num Fetch', 'gdlr-hotel'), 'type' => 'text', 'default' => '5'), 'booking-num-excerpt' => array('title' => __('Booking Num Excerpt', 'gdlr-hotel'), 'type' => 'text', 'default' => '34'))), 'booking-mail' => array('title' => __('Booking Mail', 'gdlr-hotel'), 'options' => array('recipient-name' => array('title' => __('Recipient Name', 'gdlr-hotel'), 'type' => 'text'), 'recipient-mail' => array('title' => __('Recipient Email', 'gdlr-hotel'), 'type' => 'text'), 'booking-complete-contact' => array('title' => __('Booking Complete Contact', 'gdlr-hotel'), 'type' => 'textarea'), 'booking-code-prefix' => array('title' => __('Booking Code Prefix', 'gdlr-hotel'), 'type' => 'text', 'default' => 'GDLR'))), 'room-style' => array('title' => __('Room Style', 'gdlr-hotel'), 'options' => array('room-thumbnail-size' => array('title' => __('Single Room Thumbnail Size', 'gdlr-hotel'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'default' => 'post-thumbnail-size'))), 'paypal-payment-info' => array('title' => __('Paypal Info', 'gdlr-hotel'), 'options' => array('paypal-recipient-email' => array('title' => __('Paypal Recipient Email', 'gdlr-hotel'), 'type' => 'text', 'default' => 'testmail@test.com'), 'paypal-action-url' => array('title' => __('Paypal Action URL', 'gdlr-hotel'), 'type' => 'text', 'default' => 'https://www.paypal.com/cgi-bin/webscr'), 'paypal-currency-code' => array('title' => __('Paypal Currency Code', 'gdlr-hotel'), 'type' => 'text', 'default' => 'USD'))), 'stripe-payment-info' => array('title' => __('Stripe Info', 'gdlr-hotel'), 'options' => array('stripe-secret-key' => array('title' => __('Stripe Secret Key', 'gdlr-hotel'), 'type' => 'text'), 'stripe-publishable-key' => array('title' => __('Stripe Publishable Key', 'gdlr-hotel'), 'type' => 'text'), 'stripe-currency-code' => array('title' => __('Stripe Currency Code', 'gdlr-hotel'), 'type' => 'text', 'default' => 'usd'))), 'paymill-payment-info' => array('title' => __('Paymill Info', 'gdlr-hotel'), 'options' => array('paymill-private-key' => array('title' => __('Paymill Private Key', 'gdlr-hotel'), 'type' => 'text'), 'paymill-public-key' => array('title' => __('Paymill Public Key', 'gdlr-hotel'), 'type' => 'text'), 'paymill-currency-code' => array('title' => __('Paymill Currency Code', 'gdlr-hotel'), 'type' => 'text', 'default' => 'usd'))), 'authorize-payment-info' => array('title' => __('Authorize Info', 'gdlr-hotel'), 'options' => array('authorize-live-mode' => array('title' => __('Live Mode ', 'gdlr-hotel'), 'type' => 'checkbox', 'default' => 'disable', 'description' => __('Please turn this option off when you\'re on test mode.', 'gdlr-hotel')), 'authorize-api-id' => array('title' => __('Authorize API Login ID ', 'gdlr-hotel'), 'type' => 'text'), 'authorize-transaction-key' => array('title' => __('Authorize Transaction Key', 'gdlr-hotel'), 'type' => 'text'), 'authorize-md5-hash' => array('title' => __('Authorize MD5 Hash', 'gdlr-hotel'), 'type' => 'text')))))), $hotel_option);
 }
开发者ID:konstantin-pr,项目名称:ses215,代码行数:5,代码来源:plugin-option.php

示例8: form

        function form($instance)
        {
            $title = isset($instance['title']) ? $instance['title'] : '';
            $category = isset($instance['category']) ? $instance['category'] : '';
            $thumbnail_size = isset($instance['thumbnail_size']) ? $instance['thumbnail_size'] : '';
            ?>

			<!-- Text Input -->
			<p>
				<label for="<?php 
            echo $this->get_field_id('title');
            ?>
"><?php 
            _e('Title :', 'gdlr_translate');
            ?>
</label> 
				<input class="widefat" id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo $title;
            ?>
" />
			</p>		

			<!-- Post Category -->
			<p>
				<label for="<?php 
            echo $this->get_field_id('category');
            ?>
"><?php 
            _e('Select Player :', 'gdlr_translate');
            ?>
</label>		
				<select class="widefat" name="<?php 
            echo $this->get_field_name('category');
            ?>
" id="<?php 
            echo $this->get_field_id('category');
            ?>
">
				<?php 
            $category_list = gdlr_get_post_list('player');
            foreach ($category_list as $cat_slug => $cat_name) {
                ?>
					<option value="<?php 
                echo $cat_slug;
                ?>
" <?php 
                if ($category == $cat_slug) {
                    echo ' selected ';
                }
                ?>
><?php 
                echo $cat_name;
                ?>
</option>				
				<?php 
            }
            ?>
	
				</select> 
			</p>
			
			<!-- Thumbnail Size -->
			<p>
				<label for="<?php 
            echo $this->get_field_id('thumbnail_size');
            ?>
"><?php 
            _e('Thumbnail Size :', 'gdlr_translate');
            ?>
</label>		
				<select class="widefat" name="<?php 
            echo $this->get_field_name('thumbnail_size');
            ?>
" id="<?php 
            echo $this->get_field_id('thumbnail_size');
            ?>
">
				<?php 
            $thumbnails = gdlr_get_thumbnail_list();
            foreach ($thumbnails as $th_slug => $th_name) {
                ?>
					<option value="<?php 
                echo $th_slug;
                ?>
" <?php 
                if ($thumbnail_size == $th_slug) {
                    echo ' selected ';
                }
                ?>
><?php 
                echo $th_name;
                ?>
</option>				
				<?php 
//.........这里部分代码省略.........
开发者ID:kelscahill,项目名称:Northeast-Pride,代码行数:101,代码来源:featured-player-widget.php

示例9: form


//.........这里部分代码省略.........
            echo $this->get_field_name('category');
            ?>
" id="<?php 
            echo $this->get_field_id('category');
            ?>
">
				<option value="" <?php 
            if (empty($category)) {
                echo ' selected ';
            }
            ?>
><?php 
            _e('All', 'gdlr_translate');
            ?>
</option>
				<?php 
            $category_list = gdlr_get_term_list('portfolio_category');
            foreach ($category_list as $cat_slug => $cat_name) {
                ?>
					<option value="<?php 
                echo $cat_slug;
                ?>
" <?php 
                if ($category == $cat_slug) {
                    echo ' selected ';
                }
                ?>
><?php 
                echo $cat_name;
                ?>
</option>				
				<?php 
            }
            ?>
	
				</select> 
			</p>
				
			<!-- Show Num --> 
			<p>
				<label for="<?php 
            echo $this->get_field_id('num_fetch');
            ?>
"><?php 
            _e('Num Fetch :', 'gdlr_translate');
            ?>
</label>
				<input class="widefat" id="<?php 
            echo $this->get_field_id('num_fetch');
            ?>
" name="<?php 
            echo $this->get_field_name('num_fetch');
            ?>
" type="text" value="<?php 
            echo $num_fetch;
            ?>
" />
			</p>
			
			<!-- Thumbnail Size -->
			<p>
				<label for="<?php 
            echo $this->get_field_id('thumbnail_size');
            ?>
"><?php 
            _e('Thumbnail Size :', 'gdlr_translate');
            ?>
</label>		
				<select class="widefat" name="<?php 
            echo $this->get_field_name('thumbnail_size');
            ?>
" id="<?php 
            echo $this->get_field_id('thumbnail_size');
            ?>
">
				<?php 
            $thumbnails = gdlr_get_thumbnail_list();
            foreach ($thumbnails as $th_slug => $th_name) {
                ?>
					<option value="<?php 
                echo $th_slug;
                ?>
" <?php 
                if ($thumbnail_size == $th_slug) {
                    echo ' selected ';
                }
                ?>
><?php 
                echo $th_name;
                ?>
</option>				
				<?php 
            }
            ?>
	
				</select> 
			</p>			

		<?php 
        }
开发者ID:TheHiddenHaku,项目名称:fuzzy-waddle,代码行数:101,代码来源:port-slider-widget.php

示例10: gdlr_register_portfolio_item

 function gdlr_register_portfolio_item($page_builder = array())
 {
     global $gdlr_spaces;
     $page_builder['content-item']['options']['portfolio'] = array('title' => __('Portfolio', 'gdlr-portfolio'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('category' => array('title' => __('Category', 'gdlr-portfolio'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('portfolio_category'), 'description' => __('You can use Ctrl/Command button to select multiple categories or remove the selected category. <br><br> Leave this field blank to select all categories.', 'gdlr-portfolio')), 'tag' => array('title' => __('Tag', 'gdlr-portfolio'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('portfolio_tag'), 'description' => __('Will be ignored when the portfolio filter option is enabled.', 'gdlr-portfolio')), 'portfolio-style' => array('title' => __('Portfolio Style', 'gdlr-portfolio'), 'type' => 'combobox', 'options' => array('classic-portfolio' => __('Classic Style', 'gdlr-portfolio'), 'classic-portfolio-no-space' => __('Classic No Space Style', 'gdlr-portfolio'), 'modern-portfolio' => __('Modern Style', 'gdlr-portfolio'), 'modern-portfolio-no-space' => __('Modern No Space Style', 'gdlr-portfolio'))), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-portfolio'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of portfolios you want to pull out.', 'gdlr-portfolio')), 'num-excerpt' => array('title' => __('Num Excerpt', 'gdlr-portfolio'), 'type' => 'text', 'default' => '20', 'wrapper-class' => 'portfolio-style-wrapper classic-portfolio-wrapper classic-portfolio-no-space-wrapper'), 'portfolio-size' => array('title' => __('Portfolio Size', 'gdlr-portfolio'), 'type' => 'combobox', 'options' => array('1/4' => '1/4', '1/3' => '1/3', '1/2' => '1/2', '1/1' => '1/1'), 'default' => '1/3'), 'portfolio-layout' => array('title' => __('Portfolio Layout Order', 'gdlr-portfolio'), 'type' => 'combobox', 'options' => array('fitRows' => __('FitRows ( Order items by row )', 'gdlr-portfolio'), 'masonry' => __('Masonry ( Order items by spaces )', 'gdlr-portfolio'), 'carousel' => __('Carousel ( Only For Grid And Modern Style )', 'gdlr-portfolio')), 'description' => __('You can see an example of these two layout here', 'gdlr-portfolio') . '<br><br> http://isotope.metafizzy.co/demos/layout-modes.html'), 'portfolio-filter' => array('title' => __('Enable Portfolio filter', 'gdlr-portfolio'), 'type' => 'checkbox', 'default' => 'disable', 'description' => __('*** You have to select only 1 ( or none ) portfolio category when enable this option', 'gdlr-portfolio')), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr-portfolio'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'description' => __('Only effects to <strong>standard and gallery post format</strong>', 'gdlr-portfolio')), 'orderby' => array('title' => __('Order By', 'gdlr-portfolio'), 'type' => 'combobox', 'options' => array('date' => __('Publish Date', 'gdlr-portfolio'), 'title' => __('Title', 'gdlr-portfolio'), 'rand' => __('Random', 'gdlr-portfolio'))), 'order' => array('title' => __('Order', 'gdlr-portfolio'), 'type' => 'combobox', 'options' => array('desc' => __('Descending Order', 'gdlr-portfolio'), 'asc' => __('Ascending Order', 'gdlr-portfolio'))), 'pagination' => array('title' => __('Enable Pagination', 'gdlr-portfolio'), 'type' => 'checkbox'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-portfolio'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr-portfolio')))));
     return $page_builder;
 }
开发者ID:AnduZhang,项目名称:resource-center,代码行数:6,代码来源:gdlr-portfolio-option.php

示例11: gdlr_register_player_item

function gdlr_register_player_item($page_builder = array())
{
    global $gdlr_spaces;
    $page_builder['content-item']['options']['player'] = array('title' => __('Player', 'gdlr-soccer'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('category' => array('title' => __('Category', 'gdlr-soccer'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('player_category'), 'description' => __('You can use Ctrl/Command button to select multiple categories or remove the selected category. <br><br> Leave this field blank to select all categories.', 'gdlr-soccer')), 'player-style' => array('title' => __('Player Style', 'gdlr-soccer'), 'type' => 'combobox', 'options' => array('classic' => __('Classic Style', 'gdlr-soccer'), 'modern' => __('Modern Style', 'gdlr-soccer'))), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-soccer'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of player items you want to pull out.', 'gdlr-soccer')), 'player-size' => array('title' => __('Player Item Size', 'gdlr-soccer'), 'type' => 'combobox', 'options' => array('4' => '1/4', '3' => '1/3', '2' => '1/2', '1' => '1/1'), 'default' => '1/3'), 'player-layout' => array('title' => __('Player Layout Order', 'gdlr-soccer'), 'type' => 'combobox', 'options' => array('fitRows' => __('FitRows ( Order items by row )', 'gdlr-soccer'), 'carousel' => __('Carousel ( Only For Grid And Modern Style )', 'gdlr-soccer'))), 'player-filter' => array('title' => __('Enable Player Filter', 'gdlr-soccer'), 'type' => 'checkbox', 'default' => 'disable', 'description' => __('*** You have to select only 1 ( or none ) player category when enable this option', 'gdlr-soccer')), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr-soccer'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'description' => __('Only effects to <strong>standard and gallery post format</strong>', 'gdlr-soccer')), 'orderby' => array('title' => __('Order By', 'gdlr-soccer'), 'type' => 'combobox', 'options' => array('date' => __('Publish Date', 'gdlr-soccer'), 'title' => __('Title', 'gdlr-soccer'), 'rand' => __('Random', 'gdlr-soccer'))), 'order' => array('title' => __('Order', 'gdlr-soccer'), 'type' => 'combobox', 'options' => array('desc' => __('Descending Order', 'gdlr-soccer'), 'asc' => __('Ascending Order', 'gdlr-soccer'))), 'pagination' => array('title' => __('Enable Pagination', 'gdlr-soccer'), 'type' => 'checkbox'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-soccer'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr-soccer')))));
    return $page_builder;
}
开发者ID:kelscahill,项目名称:Northeast-Pride,代码行数:6,代码来源:player-option.php

示例12: gdlr_register_speaker_item

function gdlr_register_speaker_item($page_builder = array())
{
    global $gdlr_spaces;
    $page_builder['content-item']['options']['speaker'] = array('title' => __('Speaker', 'gdlr-conference'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('category' => array('title' => __('Category', 'gdlr-conference'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('speaker_category'), 'description' => __('You can use Ctrl/Command button to select multiple categories or remove the selected category. <br><br> Leave this field blank to select all categories.', 'gdlr-conference')), 'speaker-style' => array('title' => __('Speaker Style', 'gdlr-conference'), 'type' => 'combobox', 'options' => array('round' => __('Round Thumbnail Style', 'gdlr-conference'), 'circle' => __('Circle Thumbnail Style', 'gdlr-conference'))), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-conference'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of speaker items you want to pull out.', 'gdlr-conference')), 'speaker-size' => array('title' => __('Speaker Item Size', 'gdlr-conference'), 'type' => 'combobox', 'options' => array('4' => '1/4', '3' => '1/3', '2' => '1/2', '1' => '1/1'), 'default' => '1/3'), 'speaker-layout' => array('title' => __('Speaker Layout Order', 'gdlr-conference'), 'type' => 'combobox', 'options' => array('fitRows' => __('FitRows ( Order items by row )', 'gdlr-conference'), 'carousel' => __('Carousel', 'gdlr-conference'))), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr-conference'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'orderby' => array('title' => __('Order By', 'gdlr-conference'), 'type' => 'combobox', 'options' => array('date' => __('Publish Date', 'gdlr-conference'), 'title' => __('Title', 'gdlr-conference'), 'rand' => __('Random', 'gdlr-conference'))), 'order' => array('title' => __('Order', 'gdlr-conference'), 'type' => 'combobox', 'options' => array('desc' => __('Descending Order', 'gdlr-conference'), 'asc' => __('Ascending Order', 'gdlr-conference'))), 'pagination' => array('title' => __('Enable Pagination', 'gdlr-conference'), 'type' => 'checkbox'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-conference'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr-conference')))));
    return $page_builder;
}
开发者ID:eugene-gromky-co,项目名称:mindfulnesssummit,代码行数:6,代码来源:speaker-option.php


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