本文整理汇总了PHP中gdlr_get_term_list函数的典型用法代码示例。如果您正苦于以下问题:PHP gdlr_get_term_list函数的具体用法?PHP gdlr_get_term_list怎么用?PHP gdlr_get_term_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gdlr_get_term_list函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: gdlr_register_session_item
function gdlr_register_session_item($page_builder = array())
{
global $gdlr_spaces;
$page_builder['content-item']['options']['session'] = array('title' => __('Session', '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('session_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')), 'session-style' => array('title' => __('Item Style', 'gdlr-conference'), 'type' => 'combobox', 'options' => array('small' => __('Small Style', 'gdlr-conference'), 'tab' => __('Tab Style', 'gdlr-conference'), 'full' => __('Full Style', 'gdlr-conference'))), 'num-excerpt' => array('title' => __('Excerpt Number', 'gdlr-conference'), 'type' => 'text', 'default' => '30'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-conference'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr-conference')))));
$page_builder['content-item']['options']['session-counter'] = array('title' => __('Session Counter', 'gdlr-conference'), 'type' => 'item', 'options' => array('select-session' => array('title' => __('Select Session', 'gdlr-conference'), 'type' => 'combobox', 'options' => gdlr_get_post_list('session')), '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,代码行数:7,代码来源:session-option.php
示例2: 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
示例3: 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
示例4: gdlr_register_course_item
function gdlr_register_course_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']['course'] = array('title' => __('Course', 'gdlr-lms'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('category' => array('title' => __('Category', 'gdlr-lms'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('course_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-lms')), 'course-style' => array('title' => __('Course Style', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('grid' => __('Grid Style', 'gdlr-lms'), 'grid-2' => __('Grid 2nd Style', 'gdlr-lms'), 'medium' => __('Medium Style', 'gdlr-lms'), 'full' => __('Full Style', 'gdlr-lms'))), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-lms'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of courses you want to pull out.', 'gdlr-lms')), 'num-excerpt' => array('title' => __('Num Excerpt', 'gdlr-lms'), 'type' => 'text', 'default' => '20', 'wrapper-class' => 'course-style-wrapper full-wrapper'), 'course-size' => array('title' => __('Course Size', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('4' => '1/4', '3' => '1/3', '2' => '1/2', '1' => '1/1'), 'default' => '3', 'wrapper-class' => 'course-style-wrapper grid-wrapper grid-2-wrapper'), 'course-layout' => array('title' => __('Course Layout Order', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('fitRows' => __('FitRows ( Order items by row )', 'gdlr-lms'), 'carousel' => __('Carousel ( Only For Grid Style )', 'gdlr-lms')), 'wrapper-class' => 'course-style-wrapper grid-wrapper grid-2-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('date' => __('Publish Date', 'gdlr-lms'), 'title' => __('Title', 'gdlr-lms'), 'rand' => __('Random', 'gdlr-lms'))), 'order' => array('title' => __('Order', 'gdlr-lms'), 'type' => 'combobox', 'options' => array('desc' => __('Descending Order', 'gdlr-lms'), 'asc' => __('Ascending Order', 'gdlr-lms'))), 'pagination' => array('title' => __('Enable Pagination', 'gdlr-lms'), 'type' => 'checkbox'), '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')))));
$page_builder['content-item']['options']['course-search'] = array('title' => __('Course Search', 'gdlr-lms'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('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,代码行数:13,代码来源:gdlr-theme-sync.php
示例5: gdlr_print_portfolio_item
function gdlr_print_portfolio_item($settings = array())
{
gdlr_include_portfolio_scirpt();
$item_id = empty($settings['page-item-id']) ? '' : ' id="' . $settings['page-item-id'] . '" ';
global $gdlr_spaces;
$margin = !empty($settings['margin-bottom']) && $settings['margin-bottom'] != $gdlr_spaces['bottom-blog-item'] ? 'margin-bottom: ' . $settings['margin-bottom'] . ';' : '';
$margin_style = !empty($margin) ? ' style="' . $margin . '" ' : '';
$settings['title-type'] = empty($settings['title-type']) ? 'none' : $settings['title-type'];
$settings['title'] = empty($settings['title']) ? '' : $settings['title'];
$settings['caption'] = empty($settings['caption']) ? '' : $settings['caption'];
$settings['icon'] = empty($settings['icon']) ? '' : $settings['icon'];
$right_text = '';
$right_text_class = '';
$carousel = false;
$settings['right-text'] = empty($settings['right-text']) ? '' : $settings['right-text'];
$settings['right-text-link'] = empty($settings['right-text-link']) ? '' : $settings['right-text-link'];
if (!empty($settings['right-text-link']) && !empty($settings['right-text'])) {
$right_text_class = 'gdlr-right-text ';
$right_text .= '<a class="gdlr-right-text-link" href="' . $settings['right-text-link'] . '" >' . $settings['right-text'] . '</a>';
}
if ($settings['portfolio-layout'] == 'carousel') {
$carousel = true;
$right_text_class .= 'gdlr-nav-container ';
}
$ret = gdlr_get_item_title(array('title' => $settings['title'], 'caption' => $settings['caption'], 'icon' => $settings['icon'], 'type' => $settings['title-type'], 'carousel' => $carousel, 'additional_class' => $right_text_class, 'additional_html' => $right_text));
$ret .= '<div class="portfolio-item-wrapper type-' . $settings['portfolio-style'] . '" ';
$ret .= $item_id . $margin_style . ' data-ajax="' . AJAX_URL . '" >';
// query posts section
$args = array('post_type' => 'portfolio', 'suppress_filters' => false);
$args['posts_per_page'] = empty($settings['num-fetch']) ? '5' : $settings['num-fetch'];
$args['orderby'] = empty($settings['orderby']) ? 'post_date' : $settings['orderby'];
$args['order'] = empty($settings['order']) ? 'desc' : $settings['order'];
$args['paged'] = get_query_var('paged') ? get_query_var('paged') : 1;
if (!empty($settings['category']) || !empty($settings['tag']) && $settings['portfolio-filter'] == 'disable') {
$args['tax_query'] = array('relation' => 'OR');
if (!empty($settings['category'])) {
array_push($args['tax_query'], array('terms' => explode(',', $settings['category']), 'taxonomy' => 'portfolio_category', 'field' => 'slug'));
}
if (!empty($settings['tag']) && $settings['portfolio-filter'] == 'disable') {
array_push($args['tax_query'], array('terms' => explode(',', $settings['tag']), 'taxonomy' => 'portfolio_tag', 'field' => 'slug'));
}
}
$query = new WP_Query($args);
// create the portfolio filter
$settings['portfolio-size'] = str_replace('1/', '', $settings['portfolio-size']);
if ($settings['portfolio-filter'] == 'enable') {
// ajax infomation
$ret .= '<div class="gdlr-ajax-info" data-num-fetch="' . $args['posts_per_page'] . '" ';
$ret .= 'data-orderby="' . $args['orderby'] . '" data-order="' . $args['order'] . '" ';
$ret .= 'data-thumbnail-size="' . $settings['thumbnail-size'] . '" data-port-style="' . $settings['portfolio-style'] . '" ';
$ret .= 'data-port-size="' . $settings['portfolio-size'] . '" data-port-layout="' . $settings['portfolio-layout'] . '" ';
$ret .= 'data-ajax="' . admin_url('admin-ajax.php') . '" data-category="' . $settings['category'] . '" ></div>';
// category filter
if (empty($settings['category'])) {
$parent = array('gdlr-all' => __('All', 'gdlr-portfolio'));
$settigns['category-id'] = '';
} else {
$term = get_term_by('slug', $settings['category'], 'portfolio_category');
$parent = array($settings['category'] => $term->name);
$settings['category-id'] = $term->term_id;
}
$filters = $parent + gdlr_get_term_list('portfolio_category', $settings['category-id']);
$filter_active = 'active';
$ret .= '<div class="portfolio-item-filter">';
foreach ($filters as $filter_id => $filter) {
$filter_id = $filter_id == 'gdlr-all' ? '' : $filter_id;
$ret .= '<a class="' . $filter_active . '" href="#" ';
$ret .= 'data-category="' . $filter_id . '" ><span class="sep">/</span>' . $filter . '</a>';
$filter_active = '';
}
$ret .= '</div>';
}
$no_space = strpos($settings['portfolio-style'], 'no-space') > 0 ? 'gdlr-item-no-space' : '';
$no_space .= ' gdlr-portfolio-column-' . $settings['portfolio-size'];
$ret .= '<div class="portfolio-item-holder ' . $no_space . '">';
if ($settings['portfolio-style'] == 'classic-portfolio' || $settings['portfolio-style'] == 'classic-portfolio-no-space') {
$ret .= gdlr_get_classic_portfolio($query, $settings['portfolio-size'], $settings['thumbnail-size'], $settings['portfolio-layout']);
} else {
if ($settings['portfolio-style'] == 'modern-portfolio' || $settings['portfolio-style'] == 'modern-portfolio-no-space') {
$ret .= gdlr_get_modern_portfolio($query, $settings['portfolio-size'], $settings['thumbnail-size'], $settings['portfolio-layout']);
}
}
$ret .= '<div class="clear"></div>';
$ret .= '</div>';
// create pagination
if ($settings['portfolio-filter'] == 'enable' && $settings['pagination'] == 'enable') {
$ret .= gdlr_get_ajax_pagination($query->max_num_pages, $args['paged']);
} else {
if ($settings['pagination'] == 'enable') {
$ret .= gdlr_get_pagination($query->max_num_pages, $args['paged']);
}
}
$ret .= '</div>';
// portfolio-item-wrapper
return $ret;
}
开发者ID:TheHiddenHaku,项目名称:fuzzy-waddle,代码行数:96,代码来源:gdlr-portfolio-item.php
示例6: form
function form($instance)
{
$title = isset($instance['title']) ? $instance['title'] : '';
$category = isset($instance['category']) ? $instance['category'] : '';
$num_fetch = isset($instance['num_fetch']) ? $instance['num_fetch'] : 6;
?>
<!-- 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('Category :', 'gdlr_translate');
?>
</label>
<select class="widefat" name="<?php
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>
<?php
}
开发者ID:hoa32811,项目名称:wp_thanhtrung_hotel,代码行数:99,代码来源:recent-port-widget-2.php
示例7: gdlr_create_page_builder_option
function gdlr_create_page_builder_option()
{
global $gdlr_spaces;
new gdlr_page_builder(array('post_type' => array('page'), 'meta_title' => __('Page Builder Options', 'gdlr_translate')), apply_filters('gdlr_page_builder_option', array('column-wrapper-item' => array('title' => __('Column Wrapper Item', 'gdlr_translate'), 'blank_option' => __('- Select Column Item -', 'gdlr_translate'), 'options' => array('column1-5' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '1/5'), 'column1-4' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '1/4'), 'column2-5' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '2/5'), 'column1-3' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '1/3'), 'column1-2' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '1/2'), 'column3-5' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '3/5'), 'column2-3' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '2/3'), 'column3-4' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '3/4'), 'column4-5' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '4/5'), 'column1-1' => array('title' => __('Column Item', 'gdlr_translate'), 'type' => 'wrapper', 'size' => '1/1'), 'color-wrapper' => array('title' => __('Color Wrapper', 'gdlr_translate'), 'type' => 'wrapper', 'options' => array('background-type' => array('title' => __('Background Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('color' => __('Color', 'gdlr_translate'), 'transparent' => __('Transparent', 'gdlr_translate'))), 'background' => array('title' => __('Background Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#ffffff', 'wrapper-class' => 'color-wrapper background-type-wrapper'), 'skin' => array('title' => __('Skin', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_skin_list(), 'description' => __('Can be created at the Theme Options > Elements Color > Custom Skin section', 'gdlr_translate')), 'show-section' => array('title' => __('Show This Section In', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('gdlr-show-all' => __('All Devices', 'gdlr_translate'), 'gdlr-hide-in-tablet' => __('Hide This Section In Tablet', 'gdlr_translate'), 'gdlr-hide-in-mobile' => __('Hide This Section In Mobile', 'gdlr_translate'), 'gdlr-hide-in-tablet-mobile' => __('Hide This Section In Tablet and Mobile', 'gdlr_translate'))), 'border' => array('title' => __('Border', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('none' => __('None', 'gdlr_translate'), 'top' => __('Border Top', 'gdlr_translate'), 'bottom' => __('Border Bottom', 'gdlr_translate'), 'both' => __('Both Border', 'gdlr_translate'))), 'border-top-color' => array('title' => __('Border Top Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#e9e9e9', 'wrapper-class' => 'border-wrapper top-wrapper both-wrapper'), 'border-bottom-color' => array('title' => __('Border Bottom Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#e9e9e9', 'wrapper-class' => 'border-wrapper bottom-wrapper both-wrapper'), 'padding-top' => array('title' => __('Padding Top', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['top-wrapper'], 'description' => __('Spaces before starting any content in this section', 'gdlr_translate')), 'padding-bottom' => array('title' => __('Padding Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-wrapper'], 'description' => __('Spaces after ending of the content in this section', 'gdlr_translate')))), 'parallax-bg-wrapper' => array('title' => __('Background/Parallax Wrapper', 'gdlr_translate'), 'type' => 'wrapper', 'options' => array('type' => array('title' => __('Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('image' => __('Background Image', 'gdlr_translate'), 'pattern' => __('Predefined Pattern', 'gdlr_translate'), 'video' => __('Video Background', 'gdlr_translate')), 'default' => 'image'), 'background' => array('title' => __('Background Image', 'gdlr_translate'), 'button' => __('Upload', 'gdlr_translate'), 'type' => 'upload', 'wrapper-class' => 'type-wrapper image-wrapper'), 'background-mobile' => array('title' => __('Background Mobile', 'gdlr_translate'), 'button' => __('Upload', 'gdlr_translate'), 'type' => 'upload', 'wrapper-class' => 'type-wrapper image-wrapper'), 'background-speed' => array('title' => __('Background Speed', 'gdlr_translate'), 'type' => 'text', 'default' => '0', 'wrapper-class' => 'type-wrapper image-wrapper', 'description' => __('Fill 0 if you don\'t want the background to scroll and 1 when you want the background to have the same speed as the scroll bar', 'gdlr_translate') . '<br><br><strong>' . __('*** only allow the number between -1 to 1', 'gdlr_translate') . '</strong>'), 'pattern' => array('title' => __('Pattern', 'gdlr_translate'), 'type' => 'radioimage', 'options' => array('1' => GDLR_PATH . '/include/images/pattern/pattern-1.png', '2' => GDLR_PATH . '/include/images/pattern/pattern-2.png', '3' => GDLR_PATH . '/include/images/pattern/pattern-3.png', '4' => GDLR_PATH . '/include/images/pattern/pattern-4.png', '5' => GDLR_PATH . '/include/images/pattern/pattern-5.png', '6' => GDLR_PATH . '/include/images/pattern/pattern-6.png', '7' => GDLR_PATH . '/include/images/pattern/pattern-7.png', '8' => GDLR_PATH . '/include/images/pattern/pattern-8.png'), 'wrapper-class' => 'type-wrapper pattern-wrapper', 'default' => '1'), 'video' => array('title' => __('Youtube URL', 'gdlr_translate'), 'type' => 'text', 'wrapper-class' => 'type-wrapper video-wrapper'), 'video-overlay' => array('title' => __('Video Overlay Opacity', 'gdlr_translate'), 'type' => 'text', 'default' => '0.5', 'wrapper-class' => 'type-wrapper video-wrapper'), 'video-player' => array('title' => __('Video Control Bar', 'gdlr_translate'), 'type' => 'checkbox', 'default' => 'enable', 'wrapper-class' => 'type-wrapper video-wrapper'), 'skin' => array('title' => __('Skin', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_skin_list(), 'description' => __('Can be created at the Theme Options > Elements Color > Custom Skin section', 'gdlr_translate')), 'show-section' => array('title' => __('Show This Section In', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('gdlr-show-all' => __('All Devices', 'gdlr_translate'), 'gdlr-hide-in-tablet' => __('Hide This Section In Tablet', 'gdlr_translate'), 'gdlr-hide-in-mobile' => __('Hide This Section In Mobile', 'gdlr_translate'), 'gdlr-hide-in-tablet-mobile' => __('Hide This Section In Tablet and Mobile', 'gdlr_translate'))), 'border' => array('title' => __('Border', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('none' => __('None', 'gdlr_translate'), 'top' => __('Border Top', 'gdlr_translate'), 'bottom' => __('Border Bottom', 'gdlr_translate'), 'both' => __('Both Border', 'gdlr_translate'))), 'border-top-color' => array('title' => __('Border Top Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#e9e9e9', 'wrapper-class' => 'border-wrapper top-wrapper both-wrapper'), 'border-bottom-color' => array('title' => __('Border Bottom Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#e9e9e9', 'wrapper-class' => 'border-wrapper bottom-wrapper both-wrapper'), 'padding-top' => array('title' => __('Padding Top', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['top-wrapper'], 'description' => __('Spaces before starting any content in this section', 'gdlr_translate')), 'padding-bottom' => array('title' => __('Padding Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-wrapper'], 'description' => __('Spaces after ending of the content in this section', 'gdlr_translate')))), 'full-size-wrapper' => array('title' => __('Full Size Wrapper', 'gdlr_translate'), 'type' => 'wrapper', 'options' => array('background' => array('title' => __('Background Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#ffffff'), 'show-section' => array('title' => __('Show This Section In', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('gdlr-show-all' => __('All Devices', 'gdlr_translate'), 'gdlr-hide-in-tablet' => __('Hide This Section In Tablet', 'gdlr_translate'), 'gdlr-hide-in-mobile' => __('Hide This Section In Mobile', 'gdlr_translate'), 'gdlr-hide-in-tablet-mobile' => __('Hide This Section In Tablet and Mobile', 'gdlr_translate'))), 'border' => array('title' => __('Border', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('none' => __('None', 'gdlr_translate'), 'top' => __('Border Top', 'gdlr_translate'), 'bottom' => __('Border Bottom', 'gdlr_translate'), 'both' => __('Both Border', 'gdlr_translate'))), 'border-top-color' => array('title' => __('Border Top Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#e9e9e9', 'wrapper-class' => 'border-wrapper top-wrapper both-wrapper'), 'border-bottom-color' => array('title' => __('Border Bottom Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#e9e9e9', 'wrapper-class' => 'border-wrapper bottom-wrapper both-wrapper'), 'padding-top' => array('title' => __('Padding Top', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['top-full-wrapper'], 'description' => __('Spaces before starting any content in this section', 'gdlr_translate')), 'padding-bottom' => array('title' => __('Padding Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-wrapper'], 'description' => __('Spaces after ending of the content in this section', 'gdlr_translate')))))), 'content-item' => array('title' => __('Content/Post Type Item', 'gdlr_translate'), 'blank_option' => __('- Select Content Item -', 'gdlr_translate'), 'options' => array('accordion' => array('title' => __('Accordion', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('accordion' => array('type' => 'tab', 'default-title' => __('Accordion', 'gdlr_translate'))), gdlr_page_builder_title_option(), array('initial-state' => array('title' => __('Initial Open', 'gdlr_translate'), 'type' => 'text', 'default' => 1, 'description' => __('0 will close all tab as an initial state, 1 will open the first tab and so on.', 'gdlr_translate')), 'style' => array('title' => __('Accordion Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('style-1' => __('Style 1 ( Colored Background )', 'gdlr_translate'), 'style-2' => __('Style 2 ( Transparent Background )', 'gdlr_translate'))), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'blog' => array('title' => __('Blog', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('category' => array('title' => __('Category', 'gdlr_translate'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('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_translate')), 'tag' => array('title' => __('Tag', 'gdlr_translate'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('post_tag'), '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_translate')), 'num-excerpt' => array('title' => __('Num Excerpt (Word)', 'gdlr_translate'), 'type' => 'text', 'default' => '25', '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_translate')), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr_translate'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of posts you want to pull out.', 'gdlr_translate')), 'blog-style' => array('title' => __('Blog Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('blog-widget' => __('Blog Widget', 'gdlr_translate'), 'blog-1-4' => '1/4 ' . __('Blog Grid', 'gdlr_translate'), 'blog-1-3' => '1/3 ' . __('Blog Grid', 'gdlr_translate'), 'blog-1-2' => '1/2 ' . __('Blog Grid', 'gdlr_translate'), 'blog-1-1' => '1/1 ' . __('Blog Grid', 'gdlr_translate'), 'blog-medium' => __('Blog Medium', 'gdlr_translate'), 'blog-full' => __('Blog Full', 'gdlr_translate')), 'default' => 'blog-1-1'), 'blog-layout' => array('title' => __('Blog Layout Order', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('fitRows' => __('FitRows ( Order items by row )', 'gdlr_translate'), 'masonry' => __('Masonry ( Order items by spaces )', 'gdlr_translate'), 'carousel' => __('Carousel ( Only For Blog Grid )', 'gdlr_translate')), 'wrapper-class' => 'blog-1-4-wrapper blog-1-3-wrapper blog-1-2-wrapper blog-style-wrapper', 'description' => __('You can see an example of these two layout here', 'gdlr_translate') . '<br>http://isotope.metafizzy.co/demos/layout-modes.html'), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'wrapper-class' => 'blog-1-4-wrapper blog-1-3-wrapper blog-1-2-wrapper blog-style-wrapper blog-full-wrapper blog-medium-wrapper', 'description' => __('Only effects to <strong>standard and gallery post format</strong>.', 'gdlr_translate')), 'orderby' => array('title' => __('Order By', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('date' => __('Publish Date', 'gdlr_translate'), 'title' => __('Title', 'gdlr_translate'), 'rand' => __('Random', 'gdlr_translate'))), 'order' => array('title' => __('Order', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('desc' => __('Descending Order', 'gdlr_translate'), 'asc' => __('Ascending Order', 'gdlr_translate'))), 'offset' => array('title' => __('Offset', 'gdlr_translate'), 'type' => 'text', 'description' => __('Fill in number of the posts you want to skip. Please noted that this will not works well with pagination', 'gdlr_translate')), 'pagination' => array('title' => __('Enable Pagination', 'gdlr_translate'), 'type' => 'checkbox'), 'enable-sticky' => array('title' => __('Prepend Sticky Post', 'gdlr_translate'), 'type' => 'checkbox', 'default' => 'disable'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'box-icon-item' => array('title' => __('Box Icon', 'gdlr_translate'), 'type' => 'item', 'options' => array('icon' => array('title' => __('Icon Class', 'gdlr_translate'), 'type' => 'text'), 'icon-position' => array('title' => __('Icon Position', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('left' => __('Left', 'gdlr_translate'), 'top' => __('Top', 'gdlr_translate'))), 'icon-type' => array('title' => __('Icon Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('normal' => __('Normal', 'gdlr_translate'), 'circle' => __('Circle Background', 'gdlr_translate'))), 'icon-color' => array('title' => __('Icon Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#5e5e5e'), 'icon-background' => array('title' => __('Icon Background', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#91d549', 'wrapper-class' => 'icon-type-wrapper circle-wrapper'), 'title' => array('title' => __('Title', 'gdlr_translate'), 'type' => 'text'), 'content' => array('title' => __('Content Text', 'gdlr_translate'), 'type' => 'tinymce'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'column-service' => array('title' => __('Column Service', 'gdlr_translate'), 'type' => 'item', 'options' => array('type' => array('title' => __('Media Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('icon' => __('Icon', 'gdlr_translate'), 'image' => __('Image', 'gdlr_translate'))), 'image' => array('title' => __('Service Image', 'gdlr_translate'), 'type' => 'upload', 'button' => __('upload', 'gdlr_translate'), 'wrapper-class' => 'type-wrapper image-wrapper'), 'icon' => array('title' => __('Icon Class', 'gdlr_translate'), 'type' => 'text', 'wrapper-class' => 'type-wrapper icon-wrapper'), 'title' => array('title' => __('Title', 'gdlr_translate'), 'type' => 'text'), 'style' => array('title' => __('Item Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('type-1' => __('Style 1', 'gdlr_translate'), 'type-2' => __('Style 2', 'gdlr_translate'))), 'content' => array('title' => __('Content Text', 'gdlr_translate'), 'type' => 'tinymce'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'content' => array('title' => __('Content', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('content' => array('title' => __('Content Text', 'gdlr_translate'), 'type' => 'tinymce'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'divider' => array('title' => __('Divider', 'gdlr_translate'), 'type' => 'item', 'options' => array('type' => array('title' => __('Divider', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('solid' => __('Solid', 'gdlr_translate'), 'double' => __('Double', 'gdlr_translate'), 'dotted' => __('Dotted', 'gdlr_translate'), 'double-dotted' => __('Double Dotted', 'gdlr_translate'), 'thick' => __('Thick', 'gdlr_translate'))), 'size' => array('title' => __('Divider Width', 'gdlr_translate'), 'type' => 'text', 'description' => __('Specify the divider size. Ex. 50%, 200px', 'gdlr_translate')), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-divider-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'feature-media' => array('title' => __('Feature Media', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('type' => array('title' => __('Media Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('image' => __('Image', 'gdlr_translate'), 'video' => __('Video', 'gdlr_translate'))), 'video-url' => array('title' => __('Video URL', 'gdlr_translate'), 'type' => 'text', 'wrapper-class' => 'type-wrapper video-wrapper'), 'image' => array('title' => __('Service Image', 'gdlr_translate'), 'type' => 'upload', 'button' => __('upload', 'gdlr_translate'), 'wrapper-class' => 'type-wrapper image-wrapper'), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'wrapper-class' => 'type-wrapper image-wrapper')), gdlr_page_builder_title_option(), array('align' => array('title' => __('Alignment', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('left' => __('Left', 'gdlr_translate'), 'center' => __('Center', 'gdlr_translate')), 'default' => 'left'), 'content' => array('title' => __('Content Text', 'gdlr_translate'), 'type' => 'tinymce'), 'button-text' => array('title' => __('Learn More Button Text', 'gdlr_translate'), 'type' => 'text', 'default' => __('Learn More', 'gdlr_translate')), 'button-link' => array('title' => __('Learn More Button Link', 'gdlr_translate'), 'type' => 'text'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'hotel-availability' => array(), 'icon-with-list' => array('title' => __('List With Icon', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('icon-with-list' => array('type' => 'icon-with-list', 'default-title' => __('Icon With List', 'gdlr_translate'))), gdlr_page_builder_title_option(), array('align' => array('title' => __('Text Align', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('left' => __('Left Aligned', 'gdlr_translate'), 'right' => __('Right Aligned', 'gdlr_translate'))), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'notification' => array('title' => __('Notification', 'gdlr_translate'), 'type' => 'item', 'options' => array('icon' => array('title' => __('Icon Class', 'gdlr_translate'), 'type' => 'text'), 'type' => array('title' => __('Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('color-background' => __('Color Background', 'gdlr_translate'), 'color-border' => __('Color Border', 'gdlr_translate'))), 'content' => array('title' => __('Content', 'gdlr_translate'), 'type' => 'textarea'), 'color' => array('title' => __('Text Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#000000'), 'background' => array('title' => __('Background Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#99d15e', 'wrapper-class' => 'type-wrapper color-background-wrapper'), 'border' => array('title' => __('Border Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#99d15e', 'wrapper-class' => 'type-wrapper color-border-wrapper'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'page' => array('title' => __('Page', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('category' => array('title' => __('Category', 'gdlr_translate'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('page_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_translate')), 'page-style' => array('title' => __('Item Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('classic' => __('Classic Style', 'gdlr_translate'), 'modern' => __('Modern Style', 'gdlr_translate'), 'hotel' => __('Hotel Style', 'gdlr_translate'))), 'item-size' => array('title' => __('Item Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('1/4' => '1/4', '1/3' => '1/3', '1/2' => '1/2', '1/1' => '1/1'), 'default' => '1/3'), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr_translate'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of page you want to pull out.', 'gdlr_translate')), 'page-layout' => array('title' => __('Page Layout Order', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('fitRows' => __('FitRows ( Order items by row )', 'gdlr_translate'), 'masonry' => __('Masonry ( Order items by spaces )', 'gdlr_translate')), 'description' => __('You can see an example of these two layout here', 'gdlr_translate') . '<br><br> http://isotope.metafizzy.co/demos/layout-modes.html'), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'description' => __('Only effects to <strong>standard and gallery post format</strong>', 'gdlr_translate')), 'pagination' => array('title' => __('Enable Pagination', 'gdlr_translate'), 'type' => 'checkbox'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-blog-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'personnel' => array('title' => __('Personnel', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('personnel' => array('type' => 'authorinfo', 'default-title' => __('Personnel', 'gdlr_translate'))), gdlr_page_builder_title_option(), array('personnel-columns' => array('title' => __('Personnel Columns', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5'), 'default' => '3'), 'personnel-type' => array('title' => __('Personnel Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('static' => __('Static Personnel', 'gdlr_translate'), 'carousel' => __('Carousel Personnel', 'gdlr_translate'))), 'personnel-style' => array('title' => __('Personnel Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('box-style' => __('Box Style', 'gdlr_translate'), 'plain-style' => __('Plain Style', 'gdlr_translate'), 'round-style' => __('Round Style', 'gdlr_translate'))), 'thumbnail-size' => array('title' => __('Author Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list(), 'wrapper-class' => 'personnel-style-wrapper plain-style-wrapper round-style-wrapper'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'pie-chart' => array('title' => __('Pie Chart', 'gdlr_translate'), 'type' => 'item', 'options' =>
|
请发表评论