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;
}
 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;
 }
 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;
 }
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;
}
 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;
 }
        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 
        }
 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' => array('progress' => array('title' => __('Progress (Percent)', 'gdlr_translate'), 'type' => 'text', 'default' => '50', 'description' => __('Accept integer value between 0 - 100', 'gdlr_translate')), 'color' => array('title' => __('Progress Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#f5be3b'), 'bg-color' => array('title' => __('Progress Track Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#f2f2f2'), 'icon' => array('title' => __('Icon Class', 'gdlr_translate'), 'type' => 'text'), 'title' => array('title' => __('Title', 'gdlr_translate'), 'type' => 'text'), 'learn-more-link' => array('title' => __('Learn More Link', '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')))), 'portfolio' => array(), 'price-table' => array('title' => __('Price Table', 'gdlr_translate'), 'type' => 'item', 'options' => array('price-table' => array('type' => 'price-table', 'default-title' => __('Price Table', 'gdlr_translate')), 'columns' => array('title' => __('Columns', 'gdlr_translate'), 'type' => 'combobox', 'options' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'default' => 3), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'room' => array(), 'service-with-image' => array('title' => __('Service With Image', 'gdlr_translate'), 'type' => 'item', 'options' => array('image' => array('title' => __('Service Image', 'gdlr_translate'), 'type' => 'upload', 'button' => __('upload', 'gdlr_translate')), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'align' => array('title' => __('Item Alignment', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('left' => __('Left Aligned', 'gdlr_translate'), 'right' => __('Right Aligned', 'gdlr_translate'))), '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')))), 'stunning-text' => array('title' => __('Stunning Text', 'gdlr_translate'), 'type' => 'item', 'options' => array('title' => array('title' => __('Stunning Text title', 'gdlr_translate'), 'type' => 'text'), 'caption' => array('title' => __('Stunning Text Caption', 'gdlr_translate'), 'type' => 'textarea'), 'button-text' => array('title' => __('Stunning Button Text', 'gdlr_translate'), 'type' => 'text', 'default' => __('Buy Now', 'gdlr_translate')), 'button-link' => array('title' => __('Stunning Button Link', 'gdlr_translate'), 'type' => 'text'), 'style' => array('title' => __('Stunning Text Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('normal' => __('Normal', 'gdlr_translate'), 'normal with-padding with-border' => __('Normal With Background', 'gdlr_translate'), 'center' => __('Center', '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')))), 'skill-bar' => array('title' => __('Skill Bar', 'gdlr_translate'), 'type' => 'item', 'options' => array('content' => array('title' => __('Title', 'gdlr_translate'), 'type' => 'text'), 'percent' => array('title' => __('Percent', 'gdlr_translate'), 'type' => 'text', 'default' => '0', 'description' => __('Fill only number here', 'gdlr_translate')), 'size' => array('title' => __('Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('small' => __('Small', 'gdlr_translate'), 'medium' => __('Medium', 'gdlr_translate'), 'large' => __('Large', 'gdlr_translate'))), 'icon' => array('title' => __('Icon Class', 'gdlr_translate'), 'type' => 'text', 'wrapper-class' => 'size-wrapper medium-wrapper large-wrapper'), 'text-color' => array('title' => __('Text Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#ffffff'), 'background-color' => array('title' => __('Background Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#e9e9e9'), 'progress-color' => array('title' => __('Progress Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#f5be3b'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'skill-item' => array('title' => __('Skill Item', 'gdlr_translate'), 'type' => 'item', 'options' => array('style' => array('title' => __('Item Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('normal' => __('Normal', 'gdlr_translate'), 'colored' => __('Color Background', 'gdlr_translate'))), 'background' => array('title' => __('Background Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#39dde3', 'wrapper-class' => 'style-wrapper colored-wrapper'), 'text-color' => array('title' => __('Text Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#ffffff', 'wrapper-class' => 'style-wrapper colored-wrapper'), 'title' => array('title' => __('Title', 'gdlr_translate'), 'type' => 'text'), 'caption' => array('title' => __('Caption', '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')))), 'styled-box' => array('title' => __('Styled Box', 'gdlr_translate'), 'type' => 'item', 'options' => array('type' => array('title' => __('Background Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('color' => __('Color Background', 'gdlr_translate'), 'image' => __('Image Background', 'gdlr_translate'))), 'flip-corner' => array('title' => __('Flip Corner', 'gdlr_translate'), 'type' => 'checkbox', 'wrapper-class' => 'type-wrapper color-wrapper'), 'background-color' => array('title' => __('Background Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#9ada55', 'wrapper-class' => 'type-wrapper color-wrapper'), 'corner-color' => array('title' => __('Corner Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#3d6817', 'wrapper-class' => 'type-wrapper color-wrapper'), 'content-color' => array('title' => __('Content Color', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#dddddd'), 'background-image' => array('title' => __('Image URL', 'gdlr_translate'), 'type' => 'upload', 'button' => __('Upload', 'gdlr_translate'), 'wrapper-class' => 'type-wrapper image-wrapper'), 'content' => array('title' => __('Content', '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')))), 'testimonial' => array('title' => __('Testimonial', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('testimonial' => array('type' => 'authorinfo', 'enable-social' => 'false', 'default-title' => __('Testimonial', 'gdlr_translate'))), gdlr_page_builder_title_option(), array('testimonial-columns' => array('title' => __('Testimonial Columns', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5'), 'default' => '3'), 'testimonial-type' => array('title' => __('Testimonial Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('static' => __('Static Testimonial', 'gdlr_translate'), 'carousel' => __('Carousel Testimonial', 'gdlr_translate'))), 'testimonial-style' => array('title' => __('Testimonial Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('box-style' => __('Box Style', 'gdlr_translate'), 'round-style' => __('Round Style', 'gdlr_translate'), 'plain-style' => __('Plain Style', 'gdlr_translate'), 'large plain-style' => __('Large Plain Style', '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'))))), 'tab' => array('title' => __('Tab', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('tab' => array('type' => 'tab', 'default-title' => __('Tab', 'gdlr_translate')), 'initial-state' => array('title' => __('Initial Tab', 'gdlr_translate'), 'type' => 'text', 'default' => 1, 'description' => __('1 will open the first tab, 2 for second tab and so on.', 'gdlr_translate')), 'style' => array('title' => __('Tab Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('horizontal' => __('Horizontal Tab', 'gdlr_translate'), 'vertical' => __('Vertical Tab', 'gdlr_translate'), 'vertical right' => __('Vertical Right Tab', 'gdlr_translate')))), gdlr_page_builder_title_option(), array('margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'title' => array('title' => __('Title', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(true), array('margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'toggle-box' => array('title' => __('Toggle Box', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('toggle-box' => array('type' => 'toggle-box', 'default-title' => __('Toggle Box', 'gdlr_translate'))), gdlr_page_builder_title_option(), array('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'))))))), 'media-item' => array('title' => __('Media Item', 'gdlr_translate'), 'blank_option' => __('- Select Media Item -', 'gdlr_translate'), 'options' => array('banner' => array('title' => __('Banner', 'gdlr_translate'), 'type' => 'item', 'options' => array('slider' => array('overlay' => 'false', 'caption' => 'false', 'type' => 'slider'), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'banner-columns' => array('title' => __('Banner Image Columns', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'), 'default' => '4'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'gallery' => array('title' => __('Gallery', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(array('slider' => array('overlay' => 'false', 'caption' => 'false', 'type' => 'slider')), gdlr_page_builder_title_option(), array('thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'gallery-style' => array('title' => __('Gallery Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('grid' => __('Grid Gallery', 'gdlr_translate'), 'thumbnail' => __('Thumbnail Gallery', 'gdlr_translate'))), 'with-featured' => array('title' => __('With Featured', 'gdlr_translate'), 'type' => 'checkbox', 'wrapper-class' => 'gallery-style-wrapper grid-wrapper'), 'gallery-columns' => array('title' => __('Gallery Image Columns', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'), 'default' => '4'), 'num-fetch' => array('title' => __('Num Fetch (Per Page)', 'gdlr_translate'), 'type' => 'text', 'description' => __('Leave this field blank to fetch all image without pagination.', 'gdlr_translate'), 'wrapper-class' => 'gallery-style-wrapper grid-wrapper'), 'show-caption' => array('title' => __('Show Caption', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('yes' => 'Yes', 'no' => 'No')), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))), 'image-frame' => array('title' => __('Image / Frame', 'gdlr_translate'), 'type' => 'item', 'options' => array('image-id' => array('title' => __('Upload Image', 'gdlr_translate'), 'type' => 'upload', 'button' => __('Upload', 'gdlr_translate')), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'link-type' => array('title' => __('Image Link', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('none' => __('None', 'gdlr_translate'), 'url' => __('Link to Url', 'gdlr_translate'), 'current' => __('Lightbox to Current Image', 'gdlr_translate'), 'image' => __('Lightbox to Image', 'gdlr_translate'), 'video' => __('Lightbox to Video', 'gdlr_translate'))), 'url' => array('title' => __('URL', 'gdlr_translate'), 'type' => 'text', 'wrapper-class' => 'link-type-wrapper image-wrapper video-wrapper url-wrapper'), 'frame-type' => array('title' => __('Frame Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('none' => __('none', 'gdlr_translate'), 'border' => __('Border', 'gdlr_translate'), 'solid' => __('Solid', 'gdlr_translate'), 'rounded' => __('Round', 'gdlr_translate'), 'circle' => __('Circle', 'gdlr_translate'))), 'frame-background' => array('title' => __('Frame Background', 'gdlr_translate'), 'type' => 'colorpicker', 'default' => '#dddddd', 'wrapper-class' => 'frame-type-wrapper solid-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')))), 'layer-slider' => array('title' => __('Layer Slider', 'gdlr_translate'), 'type' => 'item', 'options' => array('id' => array('title' => __('Slider Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_layerslider_list(), 'description' => __('Please update layerslider to latest version to make this item work properly too', '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')))), 'master-slider' => array('title' => __('Master Slider', 'gdlr_translate'), 'type' => 'item', 'options' => array('id' => array('title' => __('Slider Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_masterslider_list(), 'description' => __('Please update layerslider to latest version to make this item work properly too', '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')))), 'post-slider' => array('title' => __('Post Slider', 'gdlr_translate'), 'type' => 'item', 'options' => 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')), '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')), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'style' => array('title' => __('Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('no-excerpt' => __('No Excerpt', 'gdlr_translate'), 'with-excerpt' => __('With Excerpt', 'gdlr_translate'))), 'caption-style' => array('title' => __('Caption Style', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('post-bottom post-slider' => __('Bottom Caption', 'gdlr_translate'), 'post-right post-slider' => __('Right Caption', 'gdlr_translate'), 'post-left post-slider' => __('Left Caption', 'gdlr_translate')), 'wrapper-class' => 'style-wrapper with-excerpt-wrapper'), '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'))), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'slider' => array('title' => __('Slider', 'gdlr_translate'), 'type' => 'item', 'options' => array('slider' => array('overlay' => 'false', 'caption' => 'true', 'type' => 'slider'), 'slider-type' => array('title' => __('Slider Type', 'gdlr_translate'), 'type' => 'combobox', 'options' => array('flexslider' => __('Flex slider', 'gdlr_translate'), 'nivoslider' => __('Nivo Slider', 'gdlr_translate'))), 'thumbnail-size' => array('title' => __('Thumbnail Size', 'gdlr_translate'), 'type' => 'combobox', 'options' => gdlr_get_thumbnail_list()), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate')))), 'video' => array('title' => __('Video', 'gdlr_translate'), 'type' => 'item', 'options' => array_merge(gdlr_page_builder_title_option(), array('url' => array('title' => __('Video Url', 'gdlr_translate'), 'type' => 'text', 'descirption' => __('Youtube / Vimeo / Self Hosted Video Is allowed Here', 'gdlr_translate')), 'content-title' => array('title' => __('Title Text', 'gdlr_translate'), 'type' => 'text'), 'content' => array('title' => __('Content Text', 'gdlr_translate'), 'type' => 'textarea'), 'margin-bottom' => array('title' => __('Margin Bottom', 'gdlr_translate'), 'type' => 'text', 'default' => $gdlr_spaces['bottom-item'], 'description' => __('Spaces after ending of this item', 'gdlr_translate'))))))))));
 }
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;
}
        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 -->
			<p>
				<label for="<?php 
            echo $this->get_field_id('full_table_text');
            ?>
"><?php 
            _e('Full Table Text :', 'gdlr_translate');
            ?>
</label> 
				<input class="widefat" id="<?php 
            echo $this->get_field_id('full_table_text');
            ?>
" name="<?php 
            echo $this->get_field_name('full_table_text');
            ?>
" type="text" value="<?php 
            echo $full_table_text;
            ?>
" />
			</p>	

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

		<?php 
        }
 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;
 }
 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;
 }
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;
}
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
}
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;
}
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;
}
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;
}