/** * An interface to browse colors. * * @since 1.4.0 */ private function color_browser($args) { $class = 'color-browser'; // Button gradients in this theme? if (in_array('tb-btn-gradient', apply_filters('body_class', array()))) { $class .= ' tb-btn-gradient'; } // Start output printf('<div class="%s">', $class); echo '<div id="section-color-browser" class="section section-select">'; echo '<h4 class="heading">' . $args['title'] . '</h4>'; echo '<div class="option">'; echo '<div class="controls">'; $colors = themeblvd_colors(); foreach ($colors as $id => $name) { $wrap_class = 'select-color-wrap tooltip-wrap'; if ($id == $args['std']) { $wrap_class .= ' selected'; } printf('<div class="%s">', $wrap_class); $color_class = sprintf('color-%1$s %1$s', $id); if (in_array($id, array('default', 'primary', 'info', 'warning', 'danger', 'success'))) { $color_class = str_replace(' ' . $id, ' btn-' . $id, $color_class); } printf('<a href="#" class="select-color" data-color="%1$s" data-tooltip-text="%2$s"><span class="%3$s">%2$s</span></a>', $id, $name, $color_class); echo '</div><!-- .select-color-wrap (end) -->'; } echo '</div><!-- .controls (end) -->'; echo '<div class="explain">' . $args['desc'] . '</div>'; echo '<div class="clear"></div>'; echo '</div><!-- .option (end) -->'; echo '</div><!-- .section (end) -->'; echo '</div><!-- .color-browser (end) -->'; }
/** * Set original core elements. These will be later merged * with API client-added elements. WP-Admin only, see constructer. * * @since 1.1.1 */ private function set_core_elements() { $this->core_elements = array(); /*--------------------------------------------*/ /* Option helpers /*--------------------------------------------*/ // Setup array for floating sidebars $sidebars = array(); if (defined('TB_SIDEBARS_PLUGIN_VERSION')) { $sidebars = themeblvd_get_select('sidebars'); if (!$sidebars) { $sidebars['null'] = __('You haven\'t created any floating widget areas yet.', 'themeblvd_builder'); } if (!defined('TB_SIDEBARS_PLUGIN_VERSION')) { $sidebars['null'] = __('You need to have the Theme Blvd Widget Areas plugin installed for this feature.', 'themeblvd_builder'); } } // Setup array for categories select $categories_select = themeblvd_get_select('categories'); // Setup array for categories group of checkboxes $categories_multicheck = $categories_select; unset($categories_multicheck['null']); /*--------------------------------------------*/ /* (1) Columns /*--------------------------------------------*/ $this->core_elements['columns'] = array(); // Information $this->core_elements['columns']['info'] = array('name' => __('Columns', 'themeblvd_builder'), 'id' => 'columns', 'query' => 'none', 'hook' => 'themeblvd_columns', 'shortcode' => false, 'desc' => __('Row of columns with custom content', 'themeblvd_builder')); // Options $this->core_elements['columns']['options'] = array('subgroup_start' => array('type' => 'subgroup_start', 'class' => 'columns'), 'setup' => array('id' => 'setup', 'name' => __('Setup Columns', 'themeblvd_builder'), 'desc' => __('Choose the number of columns along with the corresponding width configurations.', 'themeblvd_builder'), 'type' => 'columns', 'options' => 'element'), 'col_1' => array('id' => 'col_1', 'name' => __('Column #1', 'themeblvd_builder'), 'desc' => __('Configure the content for the first column.', 'themeblvd_builder'), 'type' => 'content', 'class' => 'col_1', 'options' => array('widget', 'current', 'page', 'raw')), 'col_2' => array('id' => 'col_2', 'name' => __('Column #2', 'themeblvd_builder'), 'desc' => __('Configure the content for the second column.', 'themeblvd_builder'), 'type' => 'content', 'class' => 'col_2', 'options' => array('widget', 'current', 'page', 'raw')), 'col_3' => array('id' => 'col_3', 'name' => __('Column #3', 'themeblvd_builder'), 'desc' => __('Configure the content for the third column.', 'themeblvd_builder'), 'type' => 'content', 'class' => 'col_3', 'options' => array('widget', 'current', 'page', 'raw')), 'col_4' => array('id' => 'col_4', 'name' => __('Column #4', 'themeblvd_builder'), 'desc' => __('Configure the content for the fourth column.', 'themeblvd_builder'), 'type' => 'content', 'class' => 'col_4', 'options' => array('widget', 'current', 'page', 'raw')), 'col_5' => array('id' => 'col_5', 'name' => __('Column #5', 'themeblvd_builder'), 'desc' => __('Configure the content for the fifth column.', 'themeblvd_builder'), 'type' => 'content', 'class' => 'col_5', 'options' => array('widget', 'current', 'page', 'raw')), 'subgroup_end' => array('type' => 'subgroup_end')); /*--------------------------------------------*/ /* (2) Content /*--------------------------------------------*/ $this->core_elements['content'] = array(); // Information $this->core_elements['content']['info'] = array('name' => __('Content', 'themeblvd_builder'), 'id' => 'content', 'query' => 'none', 'hook' => null, 'shortcode' => false, 'desc' => __('Content from external page or current page', 'themeblvd_builder')); // Options $this->core_elements['content']['options'] = array('subgroup_start' => array('type' => 'subgroup_start'), 'source' => array('id' => 'source', 'name' => __('Content Source', 'themeblvd_builder'), 'desc' => __('Choose where you\'d like to have content feed from. The content can either be from the current page you\'re applying this layout to or an external page.', 'themeblvd_builder'), 'type' => 'select', 'options' => array('current' => __('Content from current page', 'themeblvd_builder'), 'external' => __('Content from external page', 'themeblvd_builder'), 'raw' => __('Raw content', 'themeblvd_builder'), 'widget_area' => __('Floating Widget Area', 'themeblvd_builder')), 'class' => 'custom-content-types'), 'page_id' => array('id' => 'page_id', 'name' => __('External Page', 'themeblvd_builder'), 'desc' => __('Choose the external page you\'d like to pull content from.', 'themeblvd_builder'), 'type' => 'select', 'options' => themeblvd_get_select('pages'), 'class' => 'hide page-content'), 'raw_content' => array('id' => 'raw_content', 'name' => __('Raw Content', 'themeblvd_builder'), 'desc' => __('Enter in the content you\'d like to show. You may use basic HTML, and most shortcodes.', 'themeblvd_builder'), 'type' => 'textarea', 'class' => 'hide raw-content'), 'raw_format' => array('id' => 'raw_format', 'name' => __('Raw Content Formatting', 'themeblvd_builder'), 'desc' => __('Apply WordPress automatic formatting.', 'themeblvd_builder'), 'type' => 'checkbox', 'std' => '1', 'class' => 'hide raw-content'), 'widget_area' => array('id' => 'widget_area', 'name' => __('Floating Widget Area', 'themeblvd_builder'), 'desc' => __('Select from your floating custom widget areas. In order for a custom widget area to be "floating" you must have it configured this way in the Widget Area manager.', 'themeblvd_builder'), 'type' => 'select', 'options' => $sidebars, 'class' => 'hide widget_area-content'), 'subgroup_end' => array('type' => 'subgroup_end')); // The selection of a floating widget area is only // possible if the Widget Areas plugin is installed. if (!defined('TB_SIDEBARS_PLUGIN_VERSION')) { unset($this->core_elements['content']['options']['source']['options']['widget_area']); unset($this->core_elements['content']['options']['widget_area']); } /*--------------------------------------------*/ /* (3) Divider /*--------------------------------------------*/ $this->core_elements['divider'] = array(); // Information $this->core_elements['divider']['info'] = array('name' => __('Divider', 'themeblvd_builder'), 'id' => 'divider', 'query' => 'none', 'hook' => 'themeblvd_divider', 'shortcode' => '[divider]', 'desc' => __('Simple divider line to break up content', 'themeblvd_builder')); // Options $this->core_elements['divider']['options'] = array('type' => array('id' => 'type', 'name' => __('Divider Type', 'themeblvd_builder'), 'desc' => __('Select which style of divider you\'d like to use here.', 'themeblvd_builder'), 'type' => 'select', 'options' => array('dashed' => __('Dashed Line', 'themeblvd_builder'), 'shadow' => __('Shadow Line', 'themeblvd_builder'), 'solid' => __('Solid Line', 'themeblvd_builder')))); /*--------------------------------------------*/ /* (4) Headline /*--------------------------------------------*/ $this->core_elements['headline'] = array(); // Information $this->core_elements['headline']['info'] = array('name' => __('Headline', 'themeblvd_builder'), 'id' => 'headline', 'query' => 'none', 'hook' => 'themeblvd_headline', 'shortcode' => false, 'desc' => __('Simple <H> header title', 'themeblvd_builder')); // Options $this->core_elements['headline']['options'] = array('text' => array('id' => 'text', 'name' => __('Headline Text', 'themeblvd_builder'), 'desc' => __('Enter in the text you\'d like to use for your headline. It is better if you use plain text here and not try and use HTML tags. Additionally, if you\'d like to automatically pull the title from the current page, insert <em>%page_title%</em> here.', 'themeblvd_builder'), 'type' => 'textarea'), 'tagline' => array('id' => 'tagline', 'name' => __('Tagline', 'themeblvd_builder'), 'desc' => __('Enter any text you\'d like to display below the headline as a tagline. Feel free to leave this blank. It is better if you use plain text here and not try and use HTML tags.', 'themeblvd_builder'), 'type' => 'textarea'), 'tag' => array('id' => 'tag', 'name' => __('Headline Tag', 'themeblvd_builder'), 'desc' => __('Select the type of header tag you\'d like to wrap this headline.', 'themeblvd_builder'), 'type' => 'select', 'options' => array('h1' => __('<h1>Your Headline</h1>', 'themeblvd_builder'), 'h2' => __('<h2>Your Headline</h2>', 'themeblvd_builder'), 'h3' => __('<h3>Your Headline</h3>', 'themeblvd_builder'), 'h4' => __('<h4>Your Headline</h4>', 'themeblvd_builder'), 'h5' => __('<h5>Your Headline</h5>', 'themeblvd_builder'), 'h6' => __('<h6>Your Headline</h6>', 'themeblvd_builder'))), 'align' => array('id' => 'align', 'name' => __('Headline Alignment', 'themeblvd_builder'), 'desc' => __('Select how you\'d like the text in this title to align.', 'themeblvd_builder'), 'type' => 'select', 'options' => array('left' => __('Align Left', 'themeblvd_builder'), 'center' => __('Center', 'themeblvd_builder'), 'right' => __('Align Right', 'themeblvd_builder')))); /*--------------------------------------------*/ /* (5) Jumbotron /*--------------------------------------------*/ $this->core_elements['jumbotron'] = array(); // Information $this->core_elements['jumbotron']['info'] = array('name' => __('Jumbotron', 'themeblvd_builder'), 'id' => 'jumbotron', 'query' => 'none', 'hook' => 'themeblvd_post_grid_paginated', 'shortcode' => '[jumbotron]', 'desc' => __('Bootstrap\'s Jumbotron unit, also knows as a "Hero" unit.', 'themeblvd_builder')); // Options $this->core_elements['jumbotron']['options'] = array('jumbotron_slider_desc' => array('id' => 'jumbotron_slider_desc', 'desc' => __('This element utilizes the Jumbotron component of Twitter Bootstrap.', 'themeblvd_builder'), 'type' => 'info'), 'title' => array('id' => 'title', 'name' => __('Title', 'themeblvd_builder'), 'desc' => __('Enter the text you\'d like to show for a title.', 'themeblvd_builder'), 'type' => 'text'), 'content' => array('id' => 'content', 'name' => __('Content', 'themeblvd_builder'), 'desc' => __('Enter in the content you\'d like to show. You may use basic HTML, and most shortcodes.', 'themeblvd_builder'), 'type' => 'textarea'), 'wpautop' => array('id' => 'wpautop', 'name' => __('Content Formatting', 'themeblvd_builder'), 'desc' => __('Apply WordPress automatic formatting to above content.', 'themeblvd_builder'), 'type' => 'checkbox', 'std' => '1'), 'text_align' => array('id' => 'text_align', 'name' => __('Text Alignment', 'themeblvd_builder'), 'desc' => __('Select how you\'d like the text within the unit aligned.', 'themeblvd_builder'), 'std' => 'left', 'type' => 'select', 'options' => array('left' => __('Left', 'themeblvd_builder'), 'right' => __('Right', 'themeblvd_builder'), 'center' => __('Center', 'themeblvd_builder'))), 'subgroup_start' => array('type' => 'subgroup_start', 'class' => 'show-hide'), 'button' => array('id' => 'button', 'name' => __('Button', 'themeblvd_builder'), 'desc' => __('Show button at the bottom of unit?', 'themeblvd_builder'), 'type' => 'checkbox', 'class' => 'trigger'), 'button_text' => array('id' => 'button_text', 'name' => __('Button Text', 'themeblvd_builder'), 'desc' => __('Enter the text for the button.', 'themeblvd_builder'), 'std' => 'Get Started Today!', 'type' => 'text', 'class' => 'hide receiver'), 'button_color' => array('id' => 'button_color', 'name' => __('Button Color', 'themeblvd_builder'), 'desc' => __('Select what color you\'d like to use for this button.', 'themeblvd_builder'), 'type' => 'select', 'class' => 'hide receiver', 'options' => themeblvd_colors()), 'button_size' => array('id' => 'button_size', 'name' => __('Button Size', 'themeblvd_builder'), 'desc' => __('Select the size you\'d like used for this button.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'large', 'class' => 'hide receiver', 'options' => array('mini' => __('Mini', 'themeblvd_builder'), 'small' => __('Small', 'themeblvd_builder'), 'default' => __('Normal', 'themeblvd_builder'), 'large' => __('Large', 'themeblvd_builder'))), 'button_url' => array('id' => 'button_url', 'name' => __('Link URL', 'themeblvd_builder'), 'desc' => __('Enter the full URL where you want the button\'s link to go.', 'themeblvd_builder'), 'std' => 'http://www.your-site.com/your-landing-page', 'type' => 'text', 'class' => 'hide receiver'), 'button_target' => array('id' => 'button_target', 'name' => __('Link Target', 'themeblvd_builder'), 'desc' => __('Select how you want the button to open the webpage.', 'themeblvd_builder'), 'type' => 'select', 'class' => 'hide receiver', 'options' => array('_self' => __('Same Window', 'themeblvd_builder'), '_blank' => __('New Window', 'themeblvd_builder'), 'lightbox' => __('Lightbox Popup', 'themeblvd_builder'))), 'subgroup_end' => array('type' => 'subgroup_end')); /*--------------------------------------------*/ /* (6) Post Grid (paginated) /*--------------------------------------------*/ $this->core_elements['post_grid_paginated'] = array(); // Information $this->core_elements['post_grid_paginated']['info'] = array('name' => __('Post Grid (paginated)', 'themeblvd_builder'), 'id' => 'post_grid_paginated', 'query' => 'primary', 'hook' => 'themeblvd_post_grid_paginated', 'shortcode' => '[post_grid]', 'desc' => __('Full paginated grid of posts', 'themeblvd_builder')); // Options $this->core_elements['post_grid_paginated']['options'] = array('subgroup_start_1' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'source' => array('id' => 'source', 'name' => __('Where to pull posts from?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like to pull posts.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'category', 'options' => array('category' => __('Category', 'themeblvd_builder'), 'tag' => __('Tag', 'themeblvd_builder'), 'query' => __('Custom Query', 'themeblvd_builder')), 'class' => 'trigger'), 'categories' => array('id' => 'categories', 'name' => __('Categories', 'themeblvd_builder'), 'desc' => __('Select the categories you\'d like to pull posts from. Note that selecting "All Categories" will override any other selections.', 'themeblvd_builder'), 'std' => array('all' => 1), 'type' => 'multicheck', 'options' => $categories_multicheck, 'class' => 'hide receiver receiver-category'), 'tag' => array('id' => 'tag', 'name' => __('Tag', 'themeblvd_builder'), 'desc' => __('Enter a single tag, or a comma separated list of tags, to pull posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-tag'), 'orderby' => array('id' => 'orderby', 'name' => __('Order By', 'themeblvd_builder'), 'desc' => __('Select what attribute you\'d like the posts ordered by.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Publish Date', 'themeblvd_builder'), 'title' => __('Post Title', 'themeblvd_builder'), 'comment_count' => __('Number of Comments', 'themeblvd_builder'), 'rand' => __('Random', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'order' => array('id' => 'order', 'name' => __('Order', 'themeblvd_builder'), 'desc' => __('Select the order in which you\'d like the posts displayed based on the previous orderby parameter.<br><br><em>Note that a traditional WordPress setup would have posts ordered by <strong>Publish Date</strong> and be ordered <strong>Descending</strong>.</em>', 'themeblvd_builder'), 'type' => 'select', 'std' => 'DESC', 'options' => array('DESC' => __('Descending (highest to lowest)', 'themeblvd_builder'), 'ASC' => __('Ascending (lowest to highest)', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'query' => array('id' => 'query', 'name' => __('Custom Query String', 'themeblvd_builder'), 'desc' => __('Enter in a <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters">custom query string</a>. This will override any other query-related options.<br><br>Ex: tag=cooking<br>Ex: post_type=XYZ&numberposts=10<br><br><em>Note: The number of posts displayed is determined from the rows and columns.</em>', 'themeblvd_builder'), 'type' => 'text', 'std' => '', 'class' => 'hide receiver receiver-query'), 'subgroup_end_1' => array('type' => 'subgroup_end'), 'columns' => array('id' => 'columns', 'name' => __('Columns', 'themeblvd_builder'), 'desc' => __('Select how many posts per row you\'d like displayed.', 'themeblvd_builder'), 'type' => 'select', 'std' => '3', 'options' => array('2' => __('2 Columns', 'themeblvd_builder'), '3' => __('3 Columns', 'themeblvd_builder'), '4' => __('4 Columns', 'themeblvd_builder'), '5' => __('5 Columns', 'themeblvd_builder'))), 'rows' => array('id' => 'rows', 'name' => __('Rows per page', 'themeblvd_builder'), 'desc' => __('Enter in the number of rows <strong>per page</strong> you\'d like to show. The number you enter here will be multiplied by the amount of columns you selected in the previous option to figure out how many posts should be showed on each page. You can leave this option blank if you\'d like to show all posts from the categories you\'ve selected on a single page.', 'themeblvd_builder'), 'type' => 'text', 'std' => '3'), 'crop' => array('id' => 'crop', 'name' => __('Custom Image Crop Size (optional)', 'themeblvd_builder'), 'desc' => __('Enter in a custom image crop size. Always leave this blank unless you know what you\'re doing here. When left blank, the theme will generate this crop size for you depending on the amount of columns in your post grid.', 'themeblvd_builder'), 'type' => 'text', 'std' => '')); /*--------------------------------------------*/ /* (7) Post Grid /*--------------------------------------------*/ $this->core_elements['post_grid'] = array(); // Information $this->core_elements['post_grid']['info'] = array('name' => __('Post Grid', 'themeblvd_builder'), 'id' => 'post_grid', 'query' => 'secondary', 'hook' => 'themeblvd_post_grid', 'shortcode' => '[post_grid]', 'desc' => __('Grid of posts followed by optional link', 'themeblvd_builder')); // Options $this->core_elements['post_grid']['options'] = array('subgroup_start_1' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'source' => array('id' => 'source', 'name' => __('Where to pull posts from?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like to pull posts.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'category', 'options' => array('category' => __('Category', 'themeblvd_builder'), 'tag' => __('Tag', 'themeblvd_builder'), 'query' => __('Custom Query', 'themeblvd_builder')), 'class' => 'trigger'), 'categories' => array('id' => 'categories', 'name' => __('Categories', 'themeblvd_builder'), 'desc' => __('Select the categories you\'d like to pull posts from. Note that selecting "All Categories" will override any other selections.', 'themeblvd_builder'), 'std' => array('all' => 1), 'type' => 'multicheck', 'options' => $categories_multicheck, 'class' => 'hide receiver receiver-category'), 'tag' => array('id' => 'tag', 'name' => __('Tag', 'themeblvd_builder'), 'desc' => __('Enter a single tag, or a comma separated list of tags, to pull posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-tag'), 'orderby' => array('id' => 'orderby', 'name' => __('Order By', 'themeblvd_builder'), 'desc' => __('Select what attribute you\'d like the posts ordered by.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Publish Date', 'themeblvd_builder'), 'title' => __('Post Title', 'themeblvd_builder'), 'comment_count' => __('Number of Comments', 'themeblvd_builder'), 'rand' => __('Random', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'order' => array('id' => 'order', 'name' => __('Order', 'themeblvd_builder'), 'desc' => __('Select the order in which you\'d like the posts displayed based on the previous orderby parameter.<br><br><em>Note that a traditional WordPress setup would have posts ordered by <strong>Publish Date</strong> and be ordered <strong>Descending</strong>.</em>', 'themeblvd_builder'), 'type' => 'select', 'std' => 'DESC', 'options' => array('DESC' => __('Descending (highest to lowest)', 'themeblvd_builder'), 'ASC' => __('Ascending (lowest to highest)', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'offset' => array('id' => 'offset', 'name' => __('Offset', 'themeblvd_builder'), 'desc' => __('Enter the number of posts you\'d like to offset the query by. In most cases, you will just leave this at <em>0</em>. Utilizing this option could be useful, for example, if you wanted to have the first post in an element above this one, and then you could offset this set by <em>1</em> so the posts start after that post in the previous element. If that makes no sense, just ignore this option and leave it at <em>0</em>!', 'themeblvd_builder'), 'type' => 'text', 'std' => '0', 'class' => 'hide receiver receiver-category receiver-tag'), 'query' => array('id' => 'query', 'name' => __('Custom Query String', 'themeblvd_builder'), 'desc' => __('Enter in a <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters">custom query string</a>. This will override any other query-related options.<br><br>Ex: tag=cooking<br>Ex: post_type=XYZ<br><br><em>Note: You cannot set the number of posts because this is generated in a grid based on the rows and columns.</em>', 'themeblvd_builder'), 'type' => 'text', 'std' => '', 'class' => 'hide receiver receiver-query'), 'subgroup_end_1' => array('type' => 'subgroup_end'), 'columns' => array('id' => 'columns', 'name' => __('Columns', 'themeblvd_builder'), 'desc' => __('Select how many posts per row you\'d like displayed.', 'themeblvd_builder'), 'type' => 'select', 'std' => '3', 'options' => array('2' => __('2 Columns', 'themeblvd_builder'), '3' => __('3 Columns', 'themeblvd_builder'), '4' => __('4 Columns', 'themeblvd_builder'), '5' => __('5 Columns', 'themeblvd_builder'))), 'rows' => array('id' => 'rows', 'name' => __('Rows', 'themeblvd_builder'), 'desc' => __('Enter in the number of rows you\'d like to show. The number you enter here will be multiplied by the amount of columns you selected in the previous option to figure out how many posts should be showed. You can leave this option blank if you\'d like to show all posts from the categories you\'ve selected.', 'themeblvd_builder'), 'type' => 'text', 'std' => '3'), 'crop' => array('id' => 'crop', 'name' => __('Custom Image Crop Size (optional)', 'themeblvd_builder'), 'desc' => __('Enter in a custom image crop size. Always leave this blank unless you know what you\'re doing here. When left blank, the theme will generate this crop size for you depending on the amount of columns in your post grid.', 'themeblvd_builder'), 'type' => 'text', 'std' => ''), 'subgroup_start_2' => array('type' => 'subgroup_start', 'class' => 'show-hide'), 'link' => array('id' => 'link', 'name' => __('Link', 'themeblvd_builder'), 'desc' => __('Show link after posts to direct visitors somewhere?', 'themeblvd_builder'), 'type' => 'checkbox', 'class' => 'trigger'), 'link_text' => array('id' => 'link_text', 'name' => __('Link Text', 'themeblvd_builder'), 'desc' => __('Enter the text for the link.', 'themeblvd_builder'), 'std' => 'View All Posts', 'type' => 'text', 'class' => 'hide receiver'), 'link_url' => array('id' => 'link_url', 'name' => __('Link URL', 'themeblvd_builder'), 'desc' => __('Enter the full URL where you want this link to go to.', 'themeblvd_builder'), 'std' => 'http://www.your-site.com/your-blog-page', 'type' => 'text', 'class' => 'hide receiver'), 'link_target' => array('id' => 'link_target', 'name' => __('Link Target', 'themeblvd_builder'), 'desc' => __('Select how you want the link to open.', 'themeblvd_builder'), 'type' => 'select', 'class' => 'hide receiver', 'options' => array('_self' => __('Same Window', 'themeblvd_builder'), '_blank' => __('New Window', 'themeblvd_builder'))), 'subgroup_end_2' => array('type' => 'subgroup_end')); /*--------------------------------------------*/ /* (8) Post Grid Slider /*--------------------------------------------*/ $this->core_elements['post_grid_slider'] = array(); // Information $this->core_elements['post_grid_slider']['info'] = array('name' => __('Post Grid Slider', 'themeblvd_builder'), 'id' => 'post_grid_slider', 'query' => 'secondary', 'hook' => 'themeblvd_post_grid_slider', 'shortcode' => '[post_grid_slider]', 'desc' => __('Slider of posts in a grid', 'themeblvd_builder')); // Options $this->core_elements['post_grid_slider']['options'] = array('fx' => array('id' => 'fx', 'name' => __('Transition Effect', 'themeblvd_builder'), 'desc' => __('Select the effect you\'d like used to transition from one slide to the next.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'slide', 'options' => array('fade' => __('Fade', 'themeblvd_builder'), 'slide' => __('Slide', 'themeblvd_builder'))), 'timeout' => array('id' => 'timeout', 'name' => __('Speed', 'themeblvd_builder'), 'desc' => __('Enter the number of seconds you\'d like in between trasitions. You may use <em>0</em> to disable the slider from auto advancing.', 'themeblvd_builder'), 'type' => 'text', 'std' => '0'), 'nav_standard' => array('id' => 'nav_standard', 'name' => __('Show standard slideshow navigation?', 'themeblvd_builder'), 'desc' => __('The standard navigation are the little dots that appear below the slider.', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show navigation.', 'themeblvd_builder'), '0' => __('No, don\'t show it.', 'themeblvd_builder'))), 'nav_arrows' => array('id' => 'nav_arrows', 'name' => __('Show next/prev slideshow arrows?', 'themeblvd_builder'), 'desc' => __('These arrows allow the user to navigation from one slide to the next.', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show arrows.', 'themeblvd_builder'), '0' => __('No, don\'t show them.', 'themeblvd_builder'))), 'pause_play' => array('id' => 'pause_play', 'name' => __('Show pause/play button?', 'themeblvd_builder'), 'desc' => __('Note that if you have the speed set to 0, this option will be ignored. ', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show pause/play button.', 'themeblvd_builder'), '0' => __('No, don\'t show it.', 'themeblvd_builder'))), 'subgroup_start_1' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'source' => array('id' => 'source', 'name' => __('Where to pull posts from?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like to pull posts.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'category', 'options' => array('category' => __('Category', 'themeblvd_builder'), 'tag' => __('Tag', 'themeblvd_builder'), 'query' => __('Custom Query', 'themeblvd_builder')), 'class' => 'trigger'), 'categories' => array('id' => 'categories', 'name' => __('Categories', 'themeblvd_builder'), 'desc' => __('Select the categories you\'d like to pull posts from. Note that selecting "All Categories" will override any other selections.', 'themeblvd_builder'), 'std' => array('all' => 1), 'type' => 'multicheck', 'options' => $categories_multicheck, 'class' => 'hide receiver receiver-category'), 'tag' => array('id' => 'tag', 'name' => __('Tag', 'themeblvd_builder'), 'desc' => __('Enter a single tag, or a comma separated list of tags, to pull posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-tag'), 'numberposts' => array('id' => 'numberposts', 'name' => __('Total Number of Posts', 'themeblvd_builder'), 'desc' => __('Enter the maximum number of posts you\'d like to show from the categories selected. You can use <em>-1</em> to show all posts from the selected categories.', 'themeblvd_builder'), 'type' => 'text', 'std' => '-1', 'class' => 'hide receiver receiver-category receiver-tag'), 'orderby' => array('id' => 'orderby', 'name' => __('Order By', 'themeblvd_builder'), 'desc' => __('Select what attribute you\'d like the posts ordered by.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Publish Date', 'themeblvd_builder'), 'title' => __('Post Title', 'themeblvd_builder'), 'comment_count' => __('Number of Comments', 'themeblvd_builder'), 'rand' => __('Random', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'order' => array('id' => 'order', 'name' => __('Order', 'themeblvd_builder'), 'desc' => __('Select the order in which you\'d like the posts displayed based on the previous orderby parameter.<br><br><em>Note that a traditional WordPress setup would have posts ordered by <strong>Publish Date</strong> and be ordered <strong>Descending</strong>.</em>', 'themeblvd_builder'), 'type' => 'select', 'std' => 'DESC', 'options' => array('DESC' => __('Descending (highest to lowest)', 'themeblvd_builder'), 'ASC' => __('Ascending (lowest to highest)', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'offset' => array('id' => 'offset', 'name' => __('Offset', 'themeblvd_builder'), 'desc' => __('Enter the number of posts you\'d like to offset the query by. In most cases, you will just leave this at <em>0</em>. Utilizing this option could be useful, for example, if you wanted to have the first post in an element above this one, and then you could offset this set by <em>1</em> so the posts start after that post in the previous element. If that makes no sense, just ignore this option and leave it at <em>0</em>!', 'themeblvd_builder'), 'type' => 'text', 'std' => '0', 'class' => 'hide receiver receiver-category receiver-tag'), 'query' => array('id' => 'query', 'name' => __('Custom Query String', 'themeblvd_builder'), 'desc' => __('Enter in a <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters">custom query string</a>. This will override any other query-related options.<br><br>Ex: tag=cooking<br>Ex: post_type=XYZ', 'themeblvd_builder'), 'type' => 'text', 'std' => '', 'class' => 'hide receiver receiver-query'), 'subgroup_end_1' => array('type' => 'subgroup_end'), 'columns' => array('id' => 'columns', 'name' => __('Columns', 'themeblvd_builder'), 'desc' => __('Select how many posts per row you\'d like displayed.', 'themeblvd_builder'), 'type' => 'select', 'std' => '3', 'options' => array('2' => __('2 Columns', 'themeblvd_builder'), '3' => __('3 Columns', 'themeblvd_builder'), '4' => __('4 Columns', 'themeblvd_builder'), '5' => __('5 Columns', 'themeblvd_builder'))), 'rows' => array('id' => 'rows', 'name' => __('Rows per slide', 'themeblvd_builder'), 'desc' => __('Enter in the number of rows <strong>per slide</strong> you\'d like to show. The number you enter here will be multiplied by the amount of columns you selected in the previous option to figure out how many posts should be showed on each slide.', 'themeblvd_builder'), 'type' => 'text', 'std' => '3'), 'crop' => array('id' => 'crop', 'name' => __('Custom Image Crop Size (optional)', 'themeblvd_builder'), 'desc' => __('Enter in a custom image crop size. Always leave this blank unless you know what you\'re doing here. When left blank, the theme will generate this crop size for you depending on the amount of columns in your post grid.', 'themeblvd_builder'), 'type' => 'text', 'std' => '')); /*--------------------------------------------*/ /* (9) Post List (paginated) /*--------------------------------------------*/ $this->core_elements['post_list_paginated'] = array(); // Information $this->core_elements['post_list_paginated']['info'] = array('name' => __('Post List (paginated)', 'themeblvd_builder'), 'id' => 'post_list_paginated', 'query' => 'primary', 'hook' => 'themeblvd_post_list_paginated', 'shortcode' => '[post_list]', 'desc' => __('Full paginated list of posts', 'themeblvd_builder')); // Options $this->core_elements['post_list_paginated']['options'] = array('subgroup_start_1' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'source' => array('id' => 'source', 'name' => __('Where to pull posts from?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like to pull posts.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'category', 'options' => array('category' => __('Category', 'themeblvd_builder'), 'tag' => __('Tag', 'themeblvd_builder'), 'query' => __('Custom Query', 'themeblvd_builder')), 'class' => 'trigger'), 'categories' => array('id' => 'categories', 'name' => __('Categories', 'themeblvd_builder'), 'desc' => __('Select the categories you\'d like to pull posts from. Note that selecting "All Categories" will override any other selections.', 'themeblvd_builder'), 'std' => array('all' => 1), 'type' => 'multicheck', 'options' => $categories_multicheck, 'class' => 'hide receiver receiver-category'), 'tag' => array('id' => 'tag', 'name' => __('Tag', 'themeblvd_builder'), 'desc' => __('Enter a single tag, or a comma separated list of tags, to pull posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-tag'), 'posts_per_page' => array('id' => 'posts_per_page', 'name' => __('Posts per page', 'themeblvd_builder'), 'desc' => __('Enter in the number of posts <strong>per page</strong> you\'d like to show. You can enter <em>-1</em> if you\'d like to show all posts from the categories you\'ve selected on a single page.', 'themeblvd_builder'), 'type' => 'text', 'std' => '6', 'class' => 'hide receiver receiver-category receiver-tag'), 'orderby' => array('id' => 'orderby', 'name' => __('Order By', 'themeblvd_builder'), 'desc' => __('Select what attribute you\'d like the posts ordered by.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Publish Date', 'themeblvd_builder'), 'title' => __('Post Title', 'themeblvd_builder'), 'comment_count' => __('Number of Comments', 'themeblvd_builder'), 'rand' => __('Random', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'order' => array('id' => 'order', 'name' => __('Order', 'themeblvd_builder'), 'desc' => __('Select the order in which you\'d like the posts displayed based on the previous orderby parameter.<br><br><em>Note that a traditional WordPress setup would have posts ordered by <strong>Publish Date</strong> and be ordered <strong>Descending</strong>.</em>', 'themeblvd_builder'), 'type' => 'select', 'std' => 'DESC', 'options' => array('DESC' => __('Descending (highest to lowest)', 'themeblvd_builder'), 'ASC' => __('Ascending (lowest to highest)', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'query' => array('id' => 'query', 'name' => __('Custom Query String', 'themeblvd_builder'), 'desc' => __('Enter in a <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters">custom query string</a>. This will override any other query-related options.<br><br>Ex: tag=cooking<br>Ex: post_type=XYZ&posts_per_page=10', 'themeblvd_builder'), 'type' => 'text', 'std' => '', 'class' => 'hide receiver receiver-query'), 'subgroup_end_1' => array('type' => 'subgroup_end'), 'thumbs' => array('id' => 'thumbs', 'name' => __('Featured Images', 'themeblvd_builder'), 'desc' => __('Select the size of the post list\'s thumbnails or whether you\'d like to hide them all together when posts are listed.', 'themeblvd_builder'), 'std' => 'default', 'type' => 'select', 'options' => array('default' => __('Use default primary posts display setting.', 'themeblvd_builder'), 'small' => __('Show small thumbnails.', 'themeblvd_builder'), 'full' => __('Show full-width thumbnails.', 'themeblvd_builder'), 'hide' => __('Hide thumbnails.', 'themeblvd_builder'))), 'content' => array('id' => 'content', 'name' => __('Show excerpts of full content?', 'themeblvd_builder'), 'desc' => __('Choose whether you want to show full content or post excerpts only.', 'themeblvd_builder'), 'std' => 'default', 'type' => 'select', 'options' => array('default' => __('Use default primary posts display setting.', 'themeblvd_builder'), 'content' => __('Show full content.', 'themeblvd_builder'), 'excerpt' => __('Show excerpt only.', 'themeblvd_builder')))); /*--------------------------------------------*/ /* (10) Post List /*--------------------------------------------*/ $this->core_elements['post_list'] = array(); // Information $this->core_elements['post_list']['info'] = array('name' => __('Post List', 'themeblvd_builder'), 'id' => 'post_list', 'query' => 'secondary', 'hook' => 'themeblvd_post_list', 'shortcode' => '[post_list]', 'desc' => __('List of posts followed by optional link', 'themeblvd_builder')); // Options $this->core_elements['post_list']['options'] = array('subgroup_start_1' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'source' => array('id' => 'source', 'name' => __('Where to pull posts from?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like to pull posts.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'category', 'options' => array('category' => __('Category', 'themeblvd_builder'), 'tag' => __('Tag', 'themeblvd_builder'), 'query' => __('Custom Query', 'themeblvd_builder')), 'class' => 'trigger'), 'categories' => array('id' => 'categories', 'name' => __('Categories', 'themeblvd_builder'), 'desc' => __('Select the categories you\'d like to pull posts from. Note that selecting "All Categories" will override any other selections.', 'themeblvd_builder'), 'std' => array('all' => 1), 'type' => 'multicheck', 'options' => $categories_multicheck, 'class' => 'hide receiver receiver-category'), 'tag' => array('id' => 'tag', 'name' => __('Tag', 'themeblvd_builder'), 'desc' => __('Enter a single tag, or a comma separated list of tags, to pull posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-tag'), 'numberposts' => array('id' => 'numberposts', 'name' => __('Number of Posts', 'themeblvd_builder'), 'desc' => __('Enter in the <strong>total number</strong> of posts you\'d like to show. You can enter <em>-1</em> if you\'d like to show all posts from the categories you\'ve selected.', 'themeblvd_builder'), 'type' => 'text', 'std' => '6', 'class' => 'hide receiver receiver-category receiver-tag'), 'orderby' => array('id' => 'orderby', 'name' => __('Order By', 'themeblvd_builder'), 'desc' => __('Select what attribute you\'d like the posts ordered by.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Publish Date', 'themeblvd_builder'), 'title' => __('Post Title', 'themeblvd_builder'), 'comment_count' => __('Number of Comments', 'themeblvd_builder'), 'rand' => __('Random', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'order' => array('id' => 'order', 'name' => __('Order', 'themeblvd_builder'), 'desc' => __('Select the order in which you\'d like the posts displayed based on the previous orderby parameter.<br><br><em>Note that a traditional WordPress setup would have posts ordered by <strong>Publish Date</strong> and be ordered <strong>Descending</strong>.</em>', 'themeblvd_builder'), 'type' => 'select', 'std' => 'DESC', 'options' => array('DESC' => __('Descending (highest to lowest)', 'themeblvd_builder'), 'ASC' => __('Ascending (lowest to highest)', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'offset' => array('id' => 'offset', 'name' => __('Offset', 'themeblvd_builder'), 'desc' => __('Enter the number of posts you\'d like to offset the query by. In most cases, you will just leave this at <em>0</em>. Utilizing this option could be useful, for example, if you wanted to have the first post in an element above this one, and then you could offset this set by <em>1</em> so the posts start after that post in the previous element. If that makes no sense, just ignore this option and leave it at <em>0</em>!', 'themeblvd_builder'), 'type' => 'text', 'std' => '0', 'class' => 'hide receiver receiver-category receiver-tag'), 'query' => array('id' => 'query', 'name' => __('Custom Query String', 'themeblvd_builder'), 'desc' => __('Enter in a <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters">custom query string</a>. This will override any other query-related options.<br><br>Ex: tag=cooking<br>Ex: post_type=XYZ&numberposts=10', 'themeblvd_builder'), 'type' => 'text', 'std' => '', 'class' => 'hide receiver receiver-query'), 'subgroup_end_1' => array('type' => 'subgroup_end'), 'thumbs' => array('id' => 'thumbs', 'name' => __('Featured Images', 'themeblvd_builder'), 'desc' => __('Select the size of the post list\'s thumbnails or whether you\'d like to hide them all together when posts are listed.', 'themeblvd_builder'), 'std' => 'default', 'type' => 'select', 'options' => array('default' => __('Use default primary posts display setting.', 'themeblvd_builder'), 'small' => __('Show small thumbnails.', 'themeblvd_builder'), 'full' => __('Show full-width thumbnails.', 'themeblvd_builder'), 'hide' => __('Hide thumbnails.', 'themeblvd_builder'))), 'content' => array('id' => 'content', 'name' => __('Show excerpts of full content?', 'themeblvd_builder'), 'desc' => __('Choose whether you want to show full content or post excerpts only.', 'themeblvd_builder'), 'std' => 'default', 'type' => 'select', 'options' => array('default' => __('Use default primary posts display setting.', 'themeblvd_builder'), 'content' => __('Show full content.', 'themeblvd_builder'), 'excerpt' => __('Show excerpt only.', 'themeblvd_builder'))), 'subgroup_start_2' => array('type' => 'subgroup_start', 'class' => 'show-hide'), 'link' => array('id' => 'link', 'name' => __('Link', 'themeblvd_builder'), 'desc' => __('Show link after posts to direct visitors somewhere?', 'themeblvd_builder'), 'type' => 'checkbox', 'class' => 'trigger'), 'link_text' => array('id' => 'link_text', 'name' => __('Link Text', 'themeblvd_builder'), 'desc' => __('Enter the text for the link.', 'themeblvd_builder'), 'std' => 'View All Posts', 'type' => 'text', 'class' => 'hide receiver'), 'link_url' => array('id' => 'link_url', 'name' => __('Link URL', 'themeblvd_builder'), 'desc' => __('Enter the full URL where you want this link to go to.', 'themeblvd_builder'), 'std' => 'http://www.your-site.com/your-blog-page', 'type' => 'text', 'class' => 'hide receiver'), 'link_target' => array('id' => 'link_target', 'name' => __('Link Target', 'themeblvd_builder'), 'desc' => __('Select how you want the link to open.', 'themeblvd_builder'), 'std' => '_self', 'type' => 'select', 'class' => 'hide receiver', 'options' => array('_self' => __('Same Window', 'themeblvd_builder'), '_blank' => __('New Window', 'themeblvd_builder'))), 'subgroup_end_2' => array('type' => 'subgroup_end')); /*--------------------------------------------*/ /* (11) Post List Slider /*--------------------------------------------*/ $this->core_elements['post_list_slider'] = array(); // Information $this->core_elements['post_list_slider']['info'] = array('name' => __('Post List Slider', 'themeblvd_builder'), 'id' => 'post_list_slider', 'query' => 'secondary', 'hook' => 'themeblvd_post_list_slider', 'shortcode' => '[post_list_slider]', 'desc' => __('Slider of posts listed out', 'themeblvd_builder')); // Options $this->core_elements['post_list_slider']['options'] = array('fx' => array('id' => 'fx', 'name' => __('Transition Effect', 'themeblvd_builder'), 'desc' => __('Select the effect you\'d like used to transition from one slide to the next.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'slide', 'options' => array('fade' => 'Fade', 'slide' => 'Slide')), 'timeout' => array('id' => 'timeout', 'name' => __('Speed', 'themeblvd_builder'), 'desc' => __('Enter the number of seconds you\'d like in between trasitions. You may use <em>0</em> to disable the slider from auto advancing.', 'themeblvd_builder'), 'type' => 'text', 'std' => '0'), 'nav_standard' => array('id' => 'nav_standard', 'name' => __('Show standard slideshow navigation?', 'themeblvd_builder'), 'desc' => __('The standard navigation are the little dots that appear below the slider.', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show navigation.', 'themeblvd_builder'), '0' => __('No, don\'t show it.', 'themeblvd_builder'))), 'nav_arrows' => array('id' => 'nav_arrows', 'name' => __('Show next/prev slideshow arrows?', 'themeblvd_builder'), 'desc' => __('These arrows allow the user to navigation from one slide to the next.', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show arrows.', 'themeblvd_builder'), '0' => __('No, don\'t show them.', 'themeblvd_builder'))), 'pause_play' => array('id' => 'pause_play', 'name' => __('Show pause/play button?', 'themeblvd_builder'), 'desc' => __('Note that if you have the speed set to 0, this option will be ignored. ', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show pause/play button.', 'themeblvd_builder'), '0' => __('No, don\'t show it.', 'themeblvd_builder'))), 'subgroup_start_1' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'source' => array('id' => 'source', 'name' => __('Where to pull posts from?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like to pull posts.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'category', 'options' => array('category' => __('Category', 'themeblvd_builder'), 'tag' => __('Tag', 'themeblvd_builder'), 'query' => __('Custom Query', 'themeblvd_builder')), 'class' => 'trigger'), 'categories' => array('id' => 'categories', 'name' => __('Categories', 'themeblvd_builder'), 'desc' => __('Select the categories you\'d like to pull posts from. Note that selecting "All Categories" will override any other selections.', 'themeblvd_builder'), 'std' => array('all' => 1), 'type' => 'multicheck', 'options' => $categories_multicheck, 'class' => 'hide receiver receiver-category'), 'tag' => array('id' => 'tag', 'name' => __('Tag', 'themeblvd_builder'), 'desc' => __('Enter a single tag, or a comma separated list of tags, to pull posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-tag'), 'numberposts' => array('id' => 'numberposts', 'name' => __('Total Number of Posts', 'themeblvd_builder'), 'desc' => __('Enter the maximum number of posts you\'d like to show from the categories selected. You can use <em>-1</em> to show all posts from the selected categories.', 'themeblvd_builder'), 'type' => 'text', 'std' => '-1', 'class' => 'hide receiver receiver-category receiver-tag'), 'orderby' => array('id' => 'orderby', 'name' => __('Order By', 'themeblvd_builder'), 'desc' => __('Select what attribute you\'d like the posts ordered by.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Publish Date', 'themeblvd_builder'), 'title' => __('Post Title', 'themeblvd_builder'), 'comment_count' => __('Number of Comments', 'themeblvd_builder'), 'rand' => __('Random', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'order' => array('id' => 'order', 'name' => __('Order', 'themeblvd_builder'), 'desc' => __('Select the order in which you\'d like the posts displayed based on the previous orderby parameter.<br><br><em>Note that a traditional WordPress setup would have posts ordered by <strong>Publish Date</strong> and be ordered <strong>Descending</strong>.</em>', 'themeblvd_builder'), 'type' => 'select', 'std' => 'DESC', 'options' => array('DESC' => __('Descending (highest to lowest)', 'themeblvd_builder'), 'ASC' => __('Ascending (lowest to highest)', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'offset' => array('id' => 'offset', 'name' => __('Offset', 'themeblvd_builder'), 'desc' => __('Enter the number of posts you\'d like to offset the query by. In most cases, you will just leave this at <em>0</em>. Utilizing this option could be useful, for example, if you wanted to have the first post in an element above this one, and then you could offset this set by <em>1</em> so the posts start after that post in the previous element. If that makes no sense, just ignore this option and leave it at <em>0</em>!', 'themeblvd_builder'), 'type' => 'text', 'std' => '0', 'class' => 'hide receiver receiver-category receiver-tag'), 'query' => array('id' => 'query', 'name' => __('Custom Query String', 'themeblvd_builder'), 'desc' => __('Enter in a <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters">custom query string</a>. This will override any other query-related options.<br><br>Ex: tag=cooking<br>Ex: post_type=XYZ&numberposts=10', 'themeblvd_builder'), 'type' => 'text', 'std' => '', 'class' => 'hide receiver receiver-query'), 'subgroup_end_1' => array('type' => 'subgroup_end'), 'thumbs' => array('id' => 'thumbs', 'name' => __('Featured Images', 'themeblvd_builder'), 'desc' => __('Select the size of the post list\'s thumbnails or whether you\'d like to hide them all together when posts are listed.', 'themeblvd_builder'), 'std' => 'default', 'type' => 'select', 'options' => array('default' => __('Use default primary posts display setting.', 'themeblvd_builder'), 'small' => __('Show small thumbnails.', 'themeblvd_builder'), 'full' => __('Show full-width thumbnails.', 'themeblvd_builder'), 'hide' => __('Hide thumbnails.', 'themeblvd_builder'))), 'content' => array('id' => 'content', 'name' => __('Show excerpts of full content?', 'themeblvd_builder'), 'desc' => __('Choose whether you want to show full content or post excerpts only.', 'themeblvd_builder'), 'std' => 'default', 'type' => 'select', 'options' => array('default' => __('Use default primary posts display setting.', 'themeblvd_builder'), 'content' => __('Show full content.', 'themeblvd_builder'), 'excerpt' => __('Show excerpt only.', 'themeblvd_builder'))), 'posts_per_slide' => array('id' => 'posts_per_slide', 'name' => __('Posts per slide', 'themeblvd_builder'), 'desc' => __('Enter in the number of posts <strong>per slide</strong> you\'d like to show.', 'themeblvd_builder'), 'type' => 'text', 'std' => '3')); /*--------------------------------------------*/ /* (12) Post Slider /*--------------------------------------------*/ if (defined('TB_SLIDERS_PLUGIN_VERSION')) { $this->core_elements['post_slider'] = array(); // Information $this->core_elements['post_slider']['info'] = array('name' => __('Post Slider', 'themeblvd_builder'), 'id' => 'post_slider', 'query' => 'secondary', 'hook' => 'themeblvd_post_slider', 'shortcode' => '[post_slider]', 'desc' => __('Slider generated from group of posts', 'themeblvd_builder')); // Options $this->core_elements['post_slider']['options'] = array('post_slider_desc' => array('id' => 'post_slider_desc', 'desc' => __('The "Post Slider" element works with the <a href="http://wordpress.org/extend/plugins/theme-blvd-sliders" target="_blank">Theme Blvd Sliders</a> plugin you\'ve installed. It works a little differently than the framework\'s default "Post List Slider" and "Post Grid Slider" elements. The point of this element is to mimic custom sliders setup under the Slider Manager, but provide you a way to automatically set them up by feeding the slides directly from posts.', 'themeblvd_builder'), 'type' => 'info'), 'subgroup_start' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'fx' => array('id' => 'fx', 'name' => __('Transition Effect', 'themeblvd_builder'), 'desc' => __('Select the effect you\'d like used to transition from one slide to the next.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'slide', 'options' => array('fade' => __('Fade', 'themeblvd_builder'), 'slide' => __('Slide', 'themeblvd_builder')), 'class' => 'trigger'), 'smoothheight' => array('id' => 'smoothheight', 'name' => __('Smooth Height', 'themeblvd_builder'), 'desc' => __('When using the "Slide" transition, this will allow the height of each slide to adjust automatically if slides are not equal in height.', 'themeblvd_builder'), 'std' => 'true', 'type' => 'select', 'options' => array('true' => 'Yes, enable smoothHeight.', 'false' => 'No, display as height of tallest slide.'), 'class' => 'hide receiver receiver-slide'), 'subgroup_end' => array('type' => 'subgroup_end'), 'timeout' => array('id' => 'timeout', 'name' => __('Speed', 'themeblvd_builder'), 'desc' => __('Enter the number of seconds you\'d like in between trasitions. You may use <em>0</em> to disable the slider from auto advancing.', 'themeblvd_builder'), 'type' => 'text', 'std' => '3'), 'nav_standard' => array('id' => 'nav_standard', 'name' => __('Show standard slideshow navigation?', 'themeblvd_builder'), 'desc' => __('The standard navigation are the little dots that appear below the slider.', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show navigation.', 'themeblvd_builder'), '0' => __('No, don\'t show it.', 'themeblvd_builder'))), 'nav_arrows' => array('id' => 'nav_arrows', 'name' => __('Show next/prev slideshow arrows?', 'themeblvd_builder'), 'desc' => __('These arrows allow the user to navigation from one slide to the next.', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show arrows.', 'themeblvd_builder'), '0' => __('No, don\'t show them.', 'themeblvd_builder'))), 'pause_play' => array('id' => 'pause_play', 'name' => __('Show pause/play button?', 'themeblvd_builder'), 'desc' => __('Note that if you have the speed set to 0, this option will be ignored.', 'themeblvd_builder'), 'std' => '1', 'type' => 'select', 'options' => array('1' => __('Yes, show pause/play button.', 'themeblvd_builder'), '0' => __('No, don\'t show it.', 'themeblvd_builder'))), 'pause_on_hover' => array('id' => 'pause_on_hover', 'name' => __('Enable pause on hover?', 'themeblvd_builder'), 'desc' => __('Select if you\'d like to implement the pause on hover feature.', 'themeblvd_builder'), 'std' => 'disable', 'type' => 'select', 'options' => array('pause_on' => __('Pause on hover only.', 'themeblvd_builder'), 'pause_on_off' => __('Pause on hover and resume when hovering off.', 'themeblvd_builder'), 'disable' => __('No, disable this all together.', 'themeblvd_builder'))), 'subgroup_start_2' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'image' => array('id' => 'image', 'name' => __('Image Display', 'themeblvd_builder'), 'desc' => __('Select how you\'d like the "featured image" from the post to be displayed in the slider.', 'themeblvd_builder'), 'std' => 'full', 'type' => 'select', 'options' => array('full' => __('Full Size', 'themeblvd_builder'), 'align-left' => __('Aligned Left', 'themeblvd_builder'), 'align-right' => __('Aligned Right', 'themeblvd_builder')), 'class' => 'trigger'), 'image_size' => array('id' => 'image_size', 'name' => __('Image Crop Size', 'themeblvd_builder'), 'desc' => __('When your image is set to display "Full Size" you can enter a crustom crop size here.', 'themeblvd_builder'), 'std' => 'slider-large', 'type' => 'text', 'class' => 'hide receiver receiver-full'), 'subgroup_end_2' => array('type' => 'subgroup_end'), 'image_link' => array('id' => 'image_link', 'name' => __('Image Link', 'themeblvd_builder'), 'desc' => __('Select how you\'d like the image link to work for each post.', 'themeblvd_builder'), 'std' => 'permalink', 'type' => 'select', 'options' => array('option' => __('Use each post\'s current featured image link setting.', 'themeblvd_builder'), 'permalink' => __('Link each image to its post.', 'themeblvd_builder'), 'lightbox' => __('Link each image to enlarged featured image in lightbox.', 'themeblvd_builder'), 'none' => __('Images do not link anywhere.', 'themeblvd_builder'))), 'button' => array('id' => 'button', 'name' => __('Button Text Leading to Post', 'themeblvd_builder'), 'desc' => __('Enter in the text you\'d like for the button placed after the excerpt leading to the post. Leave blank to not include a button at all.<br><br>Ex: Read More', 'themeblvd_builder'), 'pholder' => __('Leave blank for no button...', 'themeblvd_builder'), 'std' => '', 'type' => 'text'), 'subgroup_start_3' => array('type' => 'subgroup_start', 'class' => 'show-hide-toggle'), 'source' => array('id' => 'source', 'name' => __('Where to pull posts from?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like to pull posts to generate this slider.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'tag', 'options' => array('category' => __('Category', 'themeblvd_builder'), 'tag' => __('Tag', 'themeblvd_builder'), 'query' => __('Custom Query', 'themeblvd_builder')), 'class' => 'trigger'), 'category' => array('id' => 'category', 'name' => __('Category', 'themeblvd_builder'), 'desc' => __('Enter a category slug to pull most recent posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-category'), 'tag' => array('id' => 'tag', 'name' => __('Tag', 'themeblvd_builder'), 'desc' => __('Enter a tag to pull most recent posts from.', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-tag'), 'numberposts' => array('id' => 'numberposts', 'name' => __('Total Number of Posts', 'themeblvd_builder'), 'desc' => __('Enter the maximum number of posts you\'d like to pull. You can use <em>-1</em> to show all posts from the selected criteria.', 'themeblvd_builder'), 'type' => 'text', 'std' => '5', 'class' => 'hide receiver receiver-category receiver-tag'), 'orderby' => array('id' => 'orderby', 'name' => __('Order By', 'themeblvd_builder'), 'desc' => __('Select what attribute you\'d like the posts ordered by.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Publish Date', 'themeblvd_builder'), 'title' => __('Post Title', 'themeblvd_builder'), 'comment_count' => __('Number of Comments', 'themeblvd_builder'), 'rand' => __('Random', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'order' => array('id' => 'order', 'name' => __('Order', 'themeblvd_builder'), 'desc' => __('Select the order in which you\'d like the posts displayed based on the previous orderby parameter.<br><br><em>Note that a traditional WordPress setup would have posts ordered by <strong>Publish Date</strong> and be ordered <strong>Descending</strong>.</em>', 'themeblvd_builder'), 'type' => 'select', 'std' => 'DESC', 'options' => array('DESC' => __('Descending (highest to lowest)', 'themeblvd_builder'), 'ASC' => __('Ascending (lowest to highest)', 'themeblvd_builder')), 'class' => 'hide receiver receiver-category receiver-tag'), 'query' => array('id' => 'query', 'name' => __('Custom Query', 'themeblvd_builder'), 'desc' => __('Enter in a <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters">custom query string</a>.<br><br>Ex: tag=cooking<br>Ex: post_type=XYZ&numberposts=10', 'themeblvd_builder'), 'type' => 'text', 'class' => 'hide receiver receiver-query'), 'subgroup_end_3' => array('type' => 'subgroup_end'), 'mobile_fallback' => array('id' => 'mobile_fallback', 'name' => __('How to display on mobile devices?', 'themeblvd_builder'), 'desc' => __('Select how you\'d like this slider to be displayed on mobile devices. Sometimes full, animated sliders can cause problems on mobile devices, and so you may find it\'s better to setup a fallback option.', 'themeblvd_builder'), 'type' => 'radio', 'std' => 'full_list', 'options' => array('full_list' => __('List out slides for a more user-friendly mobile experience.', 'themeblvd_builder'), 'first_slide' => __('Show first slide only for a more simple mobile experience.', 'themeblvd_builder'), 'display' => __('Attempt to show full animated slider on mobile devices.', 'themeblvd_builder')))); } /*--------------------------------------------*/ /* (13) Slider /*--------------------------------------------*/ if (defined('TB_SLIDERS_PLUGIN_VERSION')) { $this->core_elements['slider'] = array(); // Information $this->core_elements['slider']['info'] = array('name' => __('Slider', 'themeblvd_builder'), 'id' => 'slider', 'query' => 'secondary', 'hook' => 'themeblvd_slider', 'shortcode' => '[slider]', 'desc' => __('User-built slideshow', 'themeblvd_builder')); // Options $this->core_elements['slider']['options'] = array('slider_desc' => array('id' => 'slider_desc', 'desc' => __('The "Slider" element works with the <a href="http://wordpress.org/extend/plugins/theme-blvd-sliders" target="_blank">Theme Blvd Sliders</a> plugin you\'ve installed. You can use it to pull any sliders you\'ve created from the Slider Manager.', 'themeblvd_builder'), 'type' => 'info'), 'slider_id' => array('id' => 'slider_id', 'name' => __('Choose Slider', 'themeblvd_builder'), 'desc' => __('Choose from the sliders you\'ve created. You can edit these sliders at any time under the \'Sliders\' tab above.', 'themeblvd_builder'), 'type' => 'select', 'options' => themeblvd_get_select('sliders'))); } /*--------------------------------------------*/ /* (14) Slogan /*--------------------------------------------*/ $this->core_elements['slogan'] = array(); // Information $this->core_elements['slogan']['info'] = array('name' => __('Slogan', 'themeblvd_builder'), 'id' => 'slogan', 'query' => 'none', 'hook' => 'themeblvd_slogan', 'shortcode' => '[slogan]', 'desc' => __('Slogan with optional button', 'themeblvd_builder')); // Options $this->core_elements['slogan']['options'] = array('slogan' => array('id' => 'slogan', 'name' => __('Setup Slogan', 'themeblvd_builder'), 'desc' => __('Enter the text you\'d like to show.', 'themeblvd_builder'), 'type' => 'textarea'), 'text_size' => array('id' => 'text_size', 'name' => __('Slogan Text Size', 'themeblvd_builder'), 'desc' => __('Select how large you\'d like the text in the slogan to be.', 'themeblvd_builder'), 'std' => 'large', 'type' => 'select', 'options' => array('small' => __('Small', 'themeblvd_builder'), 'default' => __('Normal', 'themeblvd_builder'), 'medium' => __('Medium', 'themeblvd_builder'), 'large' => __('Large', 'themeblvd_builder'))), 'subgroup_start' => array('type' => 'subgroup_start', 'class' => 'show-hide'), 'button' => array('id' => 'button', 'name' => __('Button', 'themeblvd_builder'), 'desc' => __('Show call-to-action button next to slogan?', 'themeblvd_builder'), 'type' => 'checkbox', 'class' => 'trigger'), 'button_text' => array('id' => 'button_text', 'name' => __('Button Text', 'themeblvd_builder'), 'desc' => __('Enter the text for the button.', 'themeblvd_builder'), 'std' => 'Get Started Today!', 'type' => 'text', 'class' => 'hide receiver'), 'button_color' => array('id' => 'button_color', 'name' => __('Button Color', 'themeblvd_builder'), 'desc' => __('Select what color you\'d like to use for this button.', 'themeblvd_builder'), 'type' => 'select', 'class' => 'hide receiver', 'options' => themeblvd_colors()), 'button_size' => array('id' => 'button_size', 'name' => __('Button Size', 'themeblvd_builder'), 'desc' => __('Select the size you\'d like used for this button.', 'themeblvd_builder'), 'type' => 'select', 'std' => 'large', 'class' => 'hide receiver', 'options' => array('mini' => __('Mini', 'themeblvd_builder'), 'small' => __('Small', 'themeblvd_builder'), 'default' => __('Normal', 'themeblvd_builder'), 'large' => __('Large', 'themeblvd_builder'))), 'button_url' => array('id' => 'button_url', 'name' => __('Link URL', 'themeblvd_builder'), 'desc' => __('Enter the full URL where you want the button\'s link to go.', 'themeblvd_builder'), 'std' => 'http://www.your-site.com/your-landing-page', 'type' => 'text', 'class' => 'hide receiver'), 'button_target' => array('id' => 'button_target', 'name' => __('Link Target', 'themeblvd_builder'), 'desc' => __('Select how you want the button to open the webpage.', 'themeblvd_builder'), 'type' => 'select', 'class' => 'hide receiver', 'options' => array('_self' => __('Same Window', 'themeblvd_builder'), '_blank' => __('New Window', 'themeblvd_builder'), 'lightbox' => __('Lightbox Popup', 'themeblvd_builder'))), 'subgroup_end' => array('type' => 'subgroup_end')); /*--------------------------------------------*/ /* (15) Tabs /*--------------------------------------------*/ $this->core_elements['tabs'] = array(); // Information $this->core_elements['tabs']['info'] = array('name' => __('Tabs', 'themeblvd_builder'), 'id' => 'tabs', 'query' => 'none', 'hook' => 'themeblvd_tabs', 'shortcode' => '[tabs]', 'desc' => __('Set of tabbed content', 'themeblvd_builder')); // Options $this->core_elements['tabs']['options'] = array('subgroup_start' => array('type' => 'subgroup_start', 'class' => 'tabs'), 'setup' => array('id' => 'setup', 'name' => __('Setup Tabs', 'themeblvd_builder'), 'desc' => __('Choose the number of tabs along with inputting a name for each one. These names are what will appear on the actual tab buttons across the top of the tab set.', 'themeblvd_builder'), 'type' => 'tabs'), 'height' => array('id' => 'height', 'name' => __('Fixed Height', 'themeblvd_builder'), 'desc' => __('Apply automatic fixed height across all tabs.<br><br>This just takes the height of the tallest tab\'s content and applies that across all tabs. This can help with "page jumping" in the case that not all tabs have equal amount of content. It can also help in the case when you\'re getting unwanted scrollbars on the inner content areas of tabs.', 'themeblvd_builder'), 'std' => 1, 'type' => 'checkbox'), 'tab_1' => array('id' => 'tab_1', 'name' => __('Tab #1 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the first tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_2' => array('id' => 'tab_2', 'name' => __('Tab #2 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the second tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_3' => array('id' => 'tab_3', 'name' => __('Tab #3 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the third tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_4' => array('id' => 'tab_4', 'name' => __('Tab #4 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the fourth tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_5' => array('id' => 'tab_5', 'name' => __('Tab #5 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the fifth tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_6' => array('id' => 'tab_6', 'name' => __('Tab #6 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the sixth tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_7' => array('id' => 'tab_7', 'name' => __('Tab #7 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the seventh tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_8' => array('id' => 'tab_8', 'name' => __('Tab #8 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the eighth tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_9' => array('id' => 'tab_9', 'name' => __('Tab #9 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the ninth tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_10' => array('id' => 'tab_10', 'name' => __('Tab #10 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the tenth tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_11' => array('id' => 'tab_11', 'name' => __('Tab #11 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the eleventh tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'tab_12' => array('id' => 'tab_12', 'name' => __('Tab #12 Content', 'themeblvd_builder'), 'desc' => __('Configure the content for the twelfth tab.', 'themeblvd_builder'), 'type' => 'content', 'options' => array('page', 'raw', 'widget')), 'subgroup_end' => array('type' => 'subgroup_end')); /*--------------------------------------------*/ /* Global element options /*--------------------------------------------*/ $screen_options = Theme_Blvd_Layout_Builder_Screen::get_instance(); $screen_settings = $screen_options->get_value(); foreach ($this->core_elements as $id => $element) { // Responsive Visibility $this->core_elements[$id]['options']['visibility'] = array('id' => 'visibility', 'name' => __('Responsive Visibility', 'themeblvd_builder'), 'desc' => __('Select any resolutions you\'d like to <em>hide</em> this element on. This is optional, but can be utilized to deliver different content to different devices.', 'themeblvd_builder'), 'type' => 'multicheck', 'class' => 'section-visibility', 'options' => array('hide_on_standard' => __('Hide on Standard Resolutions', 'themeblvd_builder'), 'hide_on_tablet' => __('Hide on Tablets', 'themeblvd_builder'), 'hide_on_mobile' => __('Hide on Mobile Devices', 'themeblvd_builder'))); if (empty($screen_settings['visibility'])) { $this->core_elements[$id]['options']['visibility']['class'] .= ' hide'; } // CSS Classes $this->core_elements[$id]['options']['classes'] = array('id' => 'classes', 'name' => __('CSS Classes', 'themeblvd_builder'), 'desc' => __('Enter any CSS classes you\'d like attached to the element.<br><br><em>Hint: Use class "element-unstyled" to remove your theme\'s styling around this element.</em>', 'themeblvd_builder'), 'type' => 'text', 'class' => 'section-classes'); if (empty($screen_settings['classes'])) { $this->core_elements[$id]['options']['classes']['class'] .= ' hide'; } } /*--------------------------------------------*/ /* Extend /*--------------------------------------------*/ $this->core_elements = apply_filters('themeblvd_core_elements', $this->core_elements); }