本文整理汇总了PHP中gdlr_get_term_list函数的典型用法代码示例。如果您正苦于以下问题:PHP gdlr_get_term_list函数的具体用法?PHP gdlr_get_term_list怎么用?PHP gdlr_get_term_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gdlr_get_term_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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
}
示例7: gdlr_register_fixture_result_item
function gdlr_register_fixture_result_item($page_builder = array())
{
global $gdlr_spaces;
$page_builder['content-item']['options']['upcoming-match'] = array('title' => __('Upcoming Match', 'gdlr-soccer'), 'type' => 'item', 'options' => array('category' => array('title' => __('Category', 'gdlr-soccer'), 'type' => 'multi-combobox', 'options' => gdlr_get_term_list('result_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')), 'image-id' => array('title' => __('Background Image', 'gdlr_translate'), 'type' => 'upload', 'button' => __('Upload', 'gdlr_translate')), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr-soccer'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr-soccer'))));
$page_builder['content-item']['options']['fixture-result'] = array('title' => __('Fixtures & Results', '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('result_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')), 'style' => array('title' => __('Item Style', 'gdlr-soccer'), 'type' => 'combobox', 'options' => array('full' => __('Full', 'gdlr-soccer'), 'summary' => __('Summary', 'gdlr-soccer')), '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')), 'button-text' => array('title' => __('View All Fixtures Text', 'gdlr-soccer'), 'type' => 'text', 'default' => __('View All Fixtures', 'gdlr-soccer'), 'wrapper-class' => 'style-wrapper summary-wrapper'), 'button-link' => array('title' => __('View All Fixtures Link', 'gdlr-soccer'), 'type' => 'text', 'wrapper-class' => 'style-wrapper summary-wrapper'), 'num-fetch' => array('title' => __('Num Fetch', 'gdlr-soccer'), 'type' => 'text', 'default' => '8', 'description' => __('Specify the number of records you want to pull out.', 'gdlr-soccer')), 'filter' => array('title' => __('Enable Category Filter', 'gdlr-soccer'), 'type' => 'checkbox', 'default' => 'disable', 'description' => __('*** You have to select only 1 ( or none ) category when enable this option', '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;
}
示例8: 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'] : 3;
$full_table_text = isset($instance['full_table_text']) ? $instance['full_table_text'] : __('View All Fixtures', 'gdlr_translate');
$full_table_link = isset($instance['full_table_link']) ? $instance['full_table_link'] : '';
?>
<!-- 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('result_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>
<!-- Full Table Text -->
//.........这里部分代码省略.........
示例9: 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;
}
示例10: gdlr_print_cause_search_item
function gdlr_print_cause_search_item($settings)
{
$item_id = empty($settings['page-item-id']) ? '' : ' id="' . $settings['page-item-id'] . '" ';
global $gdlr_spaces, $gdlr_excerpt_read_more;
$margin = !empty($settings['margin-bottom']) && $settings['margin-bottom'] != $gdlr_spaces['bottom-item'] ? 'margin-bottom: ' . $settings['margin-bottom'] . ';' : '';
$margin_style = !empty($margin) ? ' style="' . $margin . '" ' : '';
$ret = '<div class="gdlr-cause-search-wrapper gdlr-item" ' . $item_id . $margin_style . ' >';
if (!empty($settings['title'])) {
$ret .= '<h3 class="cause-search-title">' . $settings['title'] . '</h3>';
}
if (!empty($settings['caption'])) {
$ret .= '<div class="cause-search-caption">' . $settings['caption'] . '</div>';
}
// input
$ret .= '<div class="gdlr-cause-input-wrapper">';
$ret .= '<form method="get" id="search-cause" action="' . home_url() . '">';
$ret .= '<input type="text" name="s" id="search-cause-s" autocomplete="off" data-default="' . __('Keywords', 'gdlr-cause') . '" />';
$ret .= '<div class="gdlr-combobox">';
$ret .= '<select name="cause_category" >';
$ret .= '<option value="" >' . __('Category', 'gdlr-cause') . '</option>';
$cause_category = gdlr_get_term_list('cause_category');
foreach ($cause_category as $key => $value) {
$ret .= '<option value="' . $key . '" >' . $value . '</option>';
}
$ret .= '</select>';
$ret .= '</div>';
$ret .= '<input type="hidden" name="post_type" value="cause" />';
$ret .= '<input type="submit" id="search-cause-submit" value="' . __('Search', 'gdlr-cause') . '" />';
$ret .= '<div class="clear"></div>';
$ret .= '</form>';
$ret .= '</div>';
// cause input wrapper
$ret .= '</div>';
// gdlr-item
return $ret;
}
示例11: gdlr_register_league_table_item
function gdlr_register_league_table_item($page_builder = array())
{
global $gdlr_spaces;
$page_builder['content-item']['options']['league-table'] = array('title' => __('League Table', '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('league_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')), 'style' => array('title' => __('Table Style', 'gdlr-soccer'), 'type' => 'combobox', 'options' => array('full' => __('Full', 'gdlr-soccer'), 'summary' => __('Summary', 'gdlr-soccer')), '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')), 'num-display' => array('title' => __('Display Number', 'gdlr-soccer'), 'type' => 'text', 'default' => 8, 'wrapper-class' => 'style-wrapper summary-wrapper'), 'button-text' => array('title' => __('View Full Table Text', 'gdlr-soccer'), 'type' => 'text', 'default' => __('View Full Table', 'gdlr-soccer'), 'wrapper-class' => 'style-wrapper summary-wrapper'), 'button-link' => array('title' => __('View Full Table Link', 'gdlr-soccer'), 'type' => 'text', 'wrapper-class' => 'style-wrapper summary-wrapper'), '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;
}
示例12: gdlr_print_player_item
function gdlr_print_player_item($settings)
{
$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-item'] ? 'margin-bottom: ' . $settings['margin-bottom'] . ';' : '';
$margin_style = !empty($margin) ? ' style="' . $margin . '" ' : '';
// query posts section
$args = array('post_type' => 'player', '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;
$selected_category = $settings['category'];
if ($settings['player-layout'] == 'carousel') {
$settings['carousel'] = true;
}
echo '<div class="player-item-wrapper" ' . $item_id . $margin_style . ' data-ajax="' . AJAX_URL . '" >';
echo gdlr_get_item_title($settings);
// create the player filter
if ($settings['player-filter'] == 'enable') {
// ajax infomation
echo '<div class="gdlr-ajax-info" data-num-fetch="' . $args['posts_per_page'] . '" ';
echo 'data-orderby="' . $args['orderby'] . '" data-order="' . $args['order'] . '" data-pagination="' . $settings['pagination'] . '" ';
echo 'data-thumbnail-size="' . $settings['thumbnail-size'] . '" data-player-style="' . $settings['player-style'] . '" ';
echo 'data-player-size="' . $settings['player-size'] . '" data-player-layout="' . $settings['player-layout'] . '" ';
echo 'data-ajax="' . admin_url('admin-ajax.php') . '" data-category="' . $settings['category'] . '" ></div>';
// category filter
if (empty($settings['category'])) {
$parent = array('gdlr-all' => __('All', 'gdlr-soccer'));
$settings['category-id'] = '';
} else {
$term = get_term_by('slug', $settings['category'], 'player_category');
$parent = array($settings['category'] => $term->name);
$settings['category-id'] = $term->term_id;
}
//$filters = $parent + gdlr_get_term_list('player_category', $settings['category-id']);
$filters = gdlr_get_term_list('player_category', $settings['category-id']);
$filter_category = empty($_GET['player-filter']) ? '' : $_GET['player-filter'];
echo '<div class="player-item-filter">';
foreach ($filters as $filter_id => $filter) {
$filter_id = $filter_id == 'gdlr-all' ? '' : $filter_id;
echo '<span class="gdlr-saperator">|</span>';
if (empty($filter_category)) {
$filter_category = 'gdlr-player-selected';
$selected_category = $filter_id;
echo '<a class="gdlr-title-font active" href="#" ';
} else {
if ($filter_category != 'gdlr-player-selected' && $filter_category == $filter_id) {
$selected_category = $filter_id;
echo '<a class="gdlr-title-font active" href="#" ';
} else {
echo '<a class="gdlr-title-font" href="#" ';
}
}
echo 'data-category="' . $filter_id . '" >' . $filter . '</a>';
}
echo '</div>';
}
if (!empty($selected_category)) {
$args['tax_query'] = array(array('terms' => explode(',', $selected_category), 'taxonomy' => 'player_category', 'field' => 'slug'));
}
$query = new WP_Query($args);
echo '<div class="player-item-holder">';
if ($settings['player-style'] == 'classic') {
gdlr_print_classic_player($query, $settings['player-size'], $settings['thumbnail-size'], $settings['player-layout']);
} else {
if ($settings['player-style'] == 'modern') {
gdlr_print_modern_player($query, $settings['player-size'], $settings['thumbnail-size'], $settings['player-layout']);
}
}
echo '<div class="clear"></div>';
echo '</div>';
// create pagination
if ($settings['player-filter'] == 'enable' && $settings['pagination'] == 'enable') {
echo gdlr_get_ajax_pagination($query->max_num_pages, $args['paged']);
} else {
if ($settings['pagination'] == 'enable') {
echo gdlr_get_pagination($query->max_num_pages, $args['paged']);
}
}
echo '</div>';
// player item wrapper
}
示例13: 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;
}
示例14: gdlr_register_ticket_item
function gdlr_register_ticket_item($page_builder = array())
{
global $gdlr_spaces;
$page_builder['content-item']['options']['ticket'] = array('title' => __('Ticket', '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('ticket_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')), 'ticket-size' => array('title' => __('Ticket Item Size', 'gdlr-conference'), 'type' => 'combobox', 'options' => array('4' => '1/4', '3' => '1/3', '2' => '1/2', '1' => '1/1'), 'default' => '3'), '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'))), '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;
}
示例15: 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;
}