Example #1
0
								</div>
							', 'default_content' => '
								[' . $this->prefix_shortcode . 'item title="' . __('Tab 1', 'webman-amplifier') . '"][/' . $this->prefix_shortcode . 'item]
								[' . $this->prefix_shortcode . 'item title="' . __('Tab 2', 'webman-amplifier') . '"][/' . $this->prefix_shortcode . 'item]
							', 'js_view' => 'VcCustomAccordionView', 'params' => array(10 => array('heading' => __('Active tab', 'webman-amplifier'), 'description' => __('Enter the order number of the tab which should be open by default', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'active', 'value' => 1, 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Layout', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'layout', 'value' => array(__('Tabs on top', 'webman-amplifier') => 'top', __('Tabs on left', 'webman-amplifier') => 'left', __('Tabs on right', 'webman-amplifier') => 'right'), 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Enable tour mode?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'tour', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'item' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Item (Accordion or Tab Section)', 'webman-amplifier'), 'code' => '[PREFIX_item title="' . __('Title', 'webman-amplifier') . '" tags="" icon="" heading_tag=""]{{content}}[/PREFIX_item]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Item (Accordion / Tab)', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'item', 'class' => 'wm-shortcode-vc-item wm-sections-mode-section wpb_vc_accordion_tab', 'allowed_container_element' => 'vc_row', 'is_container' => true, 'content_element' => false, 'category' => __('Content', 'webman-amplifier'), 'js_view' => 'VcCustomAccordionTabView', 'params' => array(10 => array('heading' => __('Title', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'title', 'value' => '', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Icon', 'webman-amplifier'), 'type' => 'wm_radio', 'param_name' => 'icon', 'value' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Tags', 'webman-amplifier'), 'description' => __('Enter comma separated tags. These will be used to filter through items.', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'tags', 'value' => '', 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('Heading HTML tag', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'heading_tag', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'audio' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Audio', 'webman-amplifier'), 'code' => '[PREFIX_audio src="" autoplay="0/1" loop="0/1" class="" /]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Audio', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'audio', 'class' => 'wm-shortcode-vc-audio', 'category' => __('Media', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Audio source', 'webman-amplifier'), 'description' => __('Set the audio URL', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'src', 'value' => '', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Autoplay the audio?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'autoplay', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 'on'), 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Loop the audio?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'loop', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 'on'), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'button' => array('since' => '1.0', 'preprocess' => true, 'generator' => array('name' => __('Button', 'webman-amplifier'), 'code' => '[PREFIX_button url="#" color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" icon="" class=""]{{content}}[/PREFIX_button]', 'short' => true), 'bb_plugin' => array('name' => __('Button', 'webman-amplifier'), 'output' => '[PREFIX_button{{url}}{{target}}{{color}}{{size}}{{icon}}{{class}}]{{content}}[/PREFIX_button]', 'params' => array('url', 'target', 'color', 'size', 'icon', 'class', 'content'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('content' => array('type' => 'text', 'label' => __('Button text', 'webman-amplifier'), 'default' => __('Button Text', 'webman-amplifier'), 'preview' => array('type' => 'none')), 'url' => array('type' => 'text', 'label' => __('Button link URL', 'webman-amplifier'), 'default' => '#', 'preview' => array('type' => 'none')), 'target' => array('type' => 'select', 'label' => __('Target', 'webman-amplifier'), 'help' => __('Button link target', 'webman-amplifier'), 'options' => array('' => __('Open in same window', 'webman-amplifier'), '_blank' => __('Open in new window / tab', 'webman-amplifier')), 'preview' => array('type' => 'none')), 'color' => array('type' => 'select', 'label' => __('Color', 'webman-amplifier'), 'options' => self::$codes_globals['colors'], 'preview' => array('type' => 'none')), 'size' => array('type' => 'select', 'label' => __('Size', 'webman-amplifier'), 'options' => self::$codes_globals['sizes']['options'], 'preview' => array('type' => 'none')))))), 'icon' => array('title' => __('Icon', 'webman-amplifier'), 'description' => '', 'sections' => array('icon' => array('title' => __('Icon', 'webman-amplifier'), 'fields' => array('icon' => array('type' => 'wm_radio', 'label' => '', 'options' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'preview' => array('type' => 'none')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Button', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'button', 'class' => 'wm-shortcode-vc-button', 'icon' => 'icon-wpb-ui-button', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Button text', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'content', 'value' => __('Button Text', 'webman-amplifier'), 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Button URL', 'webman-amplifier'), 'description' => __('Set the button link URL', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'url', 'value' => '#', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Target', 'webman-amplifier'), 'description' => __('Button link target', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'target', 'value' => array(__('Open in same window', 'webman-amplifier') => '', __('Open in new window / tab', 'webman-amplifier') => '_blank'), 'holder' => 'hidden', 'class' => '', 'dependency' => array('element' => 'url', 'not_empty' => true)), 40 => array('heading' => __('Color', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'color', 'value' => $empty + array_flip(self::$codes_globals['colors']), 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('Size', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'size', 'value' => $empty + array_flip(self::$codes_globals['sizes']['options']), 'holder' => 'hidden', 'class' => ''), 60 => array('heading' => __('Icon', 'webman-amplifier'), 'type' => 'wm_radio', 'param_name' => 'icon', 'value' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'holder' => 'hidden', 'class' => ''), 70 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => ''), 80 => array('heading' => __('Optional HTML ID', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'id', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'call_to_action' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Call to Action', 'webman-amplifier'), 'code' => '[PREFIX_call_to_action caption="" button_text="" button_url="#" button_color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" button_size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" button_icon="" class=""]{{content}}[/PREFIX_call_to_action]', 'short' => false), 'bb_plugin' => array('name' => __('Call to Action', 'webman-amplifier'), 'output' => '[PREFIX_call_to_action{{caption}}{{heading_tag}}{{button_text}}{{button_url}}{{target}}{{button_color}}{{button_size}}{{button_icon}}{{class}}]{{content}}[/PREFIX_call_to_action]', 'params' => array('caption', 'heading_tag', 'button_text', 'button_url', 'target', 'button_color', 'button_size', 'button_icon', 'class', 'content'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('caption' => array('type' => 'text', 'label' => __('Caption', 'webman-amplifier'), 'default' => '', 'preview' => array('type' => 'none')), 'heading_tag' => array('type' => 'select', 'label' => __('Caption HTML tag', 'webman-amplifier'), 'description' => sprintf(esc_html__('Default value: %s', 'webman-amplifier'), 'H2'), 'options' => $heading_tags, 'preview' => array('type' => 'none')))), 'content' => array('title' => __('Content', 'webman-amplifier'), 'fields' => array('content' => array('type' => 'editor', 'label' => '', 'preview' => array('type' => 'none')))))), 'button' => array('title' => __('Button', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('button_text' => array('type' => 'text', 'label' => __('Button text', 'webman-amplifier'), 'default' => '', 'preview' => array('type' => 'none')), 'button_url' => array('type' => 'text', 'label' => __('Button link URL', 'webman-amplifier'), 'default' => '', 'preview' => array('type' => 'none')), 'target' => array('type' => 'select', 'label' => __('Target', 'webman-amplifier'), 'help' => __('Button link target', 'webman-amplifier'), 'options' => array('' => __('Open in same window', 'webman-amplifier'), '_blank' => __('Open in new window / tab', 'webman-amplifier')), 'preview' => array('type' => 'none')), 'button_color' => array('type' => 'select', 'label' => __('Button color', 'webman-amplifier'), 'options' => self::$codes_globals['colors'], 'preview' => array('type' => 'none')), 'button_size' => array('type' => 'select', 'label' => __('Button size', 'webman-amplifier'), 'options' => self::$codes_globals['sizes']['options'], 'preview' => array('type' => 'none')))), 'icon' => array('title' => __('Button icon', 'webman-amplifier'), 'fields' => array('button_icon' => array('type' => 'wm_radio', 'label' => '', 'options' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'preview' => array('type' => 'none')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Call to Action', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'call_to_action', 'class' => 'wm-shortcode-vc-call_to_action', 'icon' => 'icon-wpb-call-to-action', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Caption', 'webman-amplifier'), 'description' => '', 'type' => 'textfield', 'param_name' => 'caption', 'value' => '', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Content text', 'webman-amplifier'), 'description' => '', 'type' => 'textarea_html', 'param_name' => 'content', 'value' => '', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Button text', 'webman-amplifier'), 'description' => '', 'type' => 'textfield', 'param_name' => 'button_text', 'value' => '', 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('Button link URL', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'button_url', 'value' => '', 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('Button link target', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'target', 'value' => array(__('Open in same window', 'webman-amplifier') => '', __('Open in new window / tab', 'webman-amplifier') => '_blank'), 'holder' => 'hidden', 'class' => ''), 60 => array('heading' => __('Button color', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'button_color', 'value' => $empty + array_flip(self::$codes_globals['colors']), 'holder' => 'hidden', 'class' => ''), 70 => array('heading' => __('Button size', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'button_size', 'value' => $empty + array_flip(self::$codes_globals['sizes']['options']), 'holder' => 'hidden', 'class' => ''), 80 => array('heading' => __('Button icon', 'webman-amplifier'), 'description' => __('Choose one of available icons', 'webman-amplifier'), 'type' => 'wm_radio', 'param_name' => 'button_icon', 'value' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'holder' => 'hidden', 'class' => ''), 90 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'column' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Column', 'webman-amplifier'), 'code' => wma_is_active_vc() ? '[vc_column width="1/1,1/2,1/3,2/3,1/4,3/4,1/6,5/6" bg_attachment="" bg_color="" bg_image="" bg_position="" bg_repeat="" bg_size="" class="" font_color="" id="" padding=""]{{content}}[/vc_column]' : '[PREFIX_column width="' . implode(',', self::$codes_globals['column_widths']) . '" last="0/1" bg_attachment="" bg_color="" bg_image="" bg_position="" bg_repeat="" bg_size="" class="" font_color="" id="" padding=""]{{content}}[/PREFIX_column]', 'short' => false)), 'countdown_timer' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Countdown Timer', 'webman-amplifier'), 'code' => '[PREFIX_countdown_timer time="' . date(get_option('date_format'), strtotime('now')) . '" size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" class="" /]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Countdown Timer', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'countdown_timer', 'class' => 'wm-shortcode-vc-countdown_timer', 'icon' => 'vc_icon-vc-gitem-post-date', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Time', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'time', 'value' => date(get_option('date_format'), strtotime('now')), 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Size', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'size', 'value' => $empty + array_flip(self::$codes_globals['sizes']['options']), 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'content_module' => array('since' => '1.0', 'post_type_required' => 'wm_modules', 'preprocess' => false, 'generator' => array('name' => __('Content Module', 'webman-amplifier'), 'code' => '[PREFIX_content_module module="module-slug" align="left/right" columns="4" count="-1" order="new/old/name/random" tag="" image_size="" filter="0/1" scroll="0" pagination="0/1" no_margin="0/1" layout="" class=""]{{content}}[/PREFIX_content_module]', 'short' => false), 'bb_plugin' => array('name' => __('Content Module', 'webman-amplifier'), 'output' => '[PREFIX_content_module{{module}}{{align}}{{columns}}{{count}}{{order}}{{tag}}{{image_size}}{{filter}}{{scroll}}{{pagination}}{{no_margin}}{{heading_tag}}{{layout}}{{class}}]{{content}}[/PREFIX_content_module]', 'params' => array('module', 'align', 'columns', 'count', 'order', 'tag', 'image_size', 'filter', 'scroll', 'pagination', 'no_margin', 'heading_tag', 'layout', 'class', 'content'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('single' => array('title' => __('Single module display', 'webman-amplifier'), 'fields' => array('module' => array('type' => 'select', 'label' => __('Single module', 'webman-amplifier'), 'help' => __('Leave empty to display multiple modules', 'webman-amplifier'), 'options' => $wm_modules_slugs, 'preview' => array('type' => 'refresh')))), 'multiple' => array('title' => __('Multiple modules display', 'webman-amplifier'), 'fields' => array('count' => array('type' => 'text', 'label' => __('Count', 'webman-amplifier'), 'help' => __('Number of items to display (use "-1" to display all)', 'webman-amplifier'), 'default' => 3, 'preview' => array('type' => 'refresh')), 'columns' => array('type' => 'select', 'label' => __('Columns', 'webman-amplifier'), 'default' => 3, 'options' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'preview' => array('type' => 'refresh')), 'order' => array('type' => 'select', 'label' => __('Order', 'webman-amplifier'), 'options' => array('new' => __('Newest first', 'webman-amplifier'), 'old' => __('Oldest first', 'webman-amplifier'), 'name' => __('By name', 'webman-amplifier'), 'random' => __('Randomly', 'webman-amplifier')), 'preview' => array('type' => 'refresh')), 'filter' => array('type' => 'select', 'label' => __('Filtering', 'webman-amplifier'), 'help' => __('Display the modules filter from module tags?', 'webman-amplifier'), 'options' => array('' => __('No', 'webman-amplifier'), 1 => __('Yes', 'webman-amplifier')), 'preview' => array('type' => 'refresh')), 'scroll' => array('type' => 'text', 'label' => __('Scrolling', 'webman-amplifier'), 'help' => __('Set 1-999 for manual scrolling, set 1000+ for automatic scrolling. The value for automatic scrolling represents the time of a scroll in miliseconds. Leave empty to disable scrolling.', 'webman-amplifier'), 'preview' => array('type' => 'refresh')), 'tag' => array('type' => 'select', 'label' => __('Tagged as', 'webman-amplifier'), 'help' => __('Display specifically tagged items only', 'webman-amplifier'), 'options' => $wm_modules_tags, 'preview' => array('type' => 'refresh')), 'pagination' => array('type' => 'select', 'label' => __('Display pagination?', 'webman-amplifier'), 'options' => array('' => __('No', 'webman-amplifier'), 1 => __('Yes', 'webman-amplifier')), 'preview' => array('type' => 'refresh')))))), 'description' => array('title' => __('Description', 'webman-amplifier'), 'description' => '', 'sections' => array('description' => array('title' => '', 'fields' => array('align' => array('type' => 'select', 'label' => __('Description alignment', 'webman-amplifier'), 'options' => array('left' => __('Left', 'webman-amplifier'), 'right' => __('Right', 'webman-amplifier')), 'preview' => array('type' => 'refresh')))), 'content' => array('title' => __('Content', 'webman-amplifier'), 'fields' => array('content' => array('type' => 'editor', 'label' => '', 'preview' => array('type' => 'refresh')))))), 'others' => array('title' => __('Others', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('no_margin' => array('type' => 'select', 'label' => __('Remove gap between items?', 'webman-amplifier'), 'options' => array('' => __('No', 'webman-amplifier'), 1 => __('Yes', 'webman-amplifier')), 'preview' => array('type' => 'refresh')), 'image_size' => array('type' => 'select', 'label' => __('Image size', 'webman-amplifier'), 'options' => wma_asort(array_merge(array('' => ''), wma_get_image_sizes())), 'preview' => array('type' => 'refresh')), 'heading_tag' => array('type' => 'select', 'label' => __('Heading HTML tag', 'webman-amplifier'), 'description' => sprintf(esc_html__('Default value: %s', 'webman-amplifier'), 'H2'), 'options' => $heading_tags, 'preview' => array('type' => 'none')), 'layout' => array('type' => 'text', 'label' => __('Custom layout', 'webman-amplifier'), 'description' => '<br />' . sprintf(__('Set the custom layout of the output. Order the predefined items (%s) separated with comma (no spaces).', 'webman-amplifier'), '<code>content,image,morelink,tag,title</code>'), 'preview' => array('type' => 'refresh')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Content Module', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'content_module', 'class' => 'wm-shortcode-vc-content_module', 'icon' => 'icon-wpb-toggle-small-expand', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Single module', 'webman-amplifier'), 'description' => __('Leave empty to display multiple modules', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'module', 'value' => array_flip($wm_modules_slugs), 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Count', 'webman-amplifier'), 'description' => __('Number of items to display (use "-1" to display all)', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'count', 'value' => 3, 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 30 => array('heading' => __('Columns', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'columns', 'value' => array('' => '', 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 40 => array('heading' => __('Order', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'order', 'value' => array(__('Newest first', 'webman-amplifier') => 'new', __('Oldest first', 'webman-amplifier') => 'old', __('By name', 'webman-amplifier') => 'name', __('Randomly', 'webman-amplifier') => 'random'), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 50 => array('heading' => __('Filter', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'filter', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 60 => array('heading' => __('Scrolling', 'webman-amplifier'), 'description' => __('Set 1-999 for manual scrolling, set 1000+ for automatic scrolling. The value for automatic scrolling represents the time of a scroll in miliseconds. Leave empty to disable scrolling.', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'scroll', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 70 => array('heading' => __('Tag', 'webman-amplifier'), 'description' => __('Display specifically tagged items only', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'tag', 'value' => array_flip($wm_modules_tags), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 80 => array('heading' => __('Display pagination?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'pagination', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 90 => array('heading' => __('Description text (HTML)', 'webman-amplifier'), 'description' => '', 'type' => 'textarea', 'param_name' => 'content', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 100 => array('heading' => __('Description alignment', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'align', 'value' => array(__('Left', 'webman-amplifier') => 'left', __('Right', 'webman-amplifier') => 'right'), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 110 => array('heading' => __('Remove gap between items?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'no_margin', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 120 => array('heading' => __('Image size', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'image_size', 'value' => wma_asort($empty + array_flip(wma_get_image_sizes())), 'holder' => 'hidden', 'class' => '', 'group' => __('Layout', 'webman-amplifier')), 130 => array('heading' => __('Custom layout', 'webman-amplifier'), 'description' => sprintf(__('Set the custom layout of the output. Order the predefined items (%s) separated with comma (no spaces).', 'webman-amplifier'), '<code>content,image,morelink,tag,title</code>'), 'type' => 'textfield', 'param_name' => 'layout', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Layout', 'webman-amplifier')), 140 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'divider' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Divider / Gap', 'webman-amplifier'), 'code' => '[PREFIX_divider appearance="' . implode('/', array_keys(wma_ksort(self::$codes_globals['divider_appearance']))) . '" space_before="" space_after="" class="" /]', 'short' => true), 'bb_plugin' => array('name' => __('Divider / Gap', 'webman-amplifier'), 'output' => '[PREFIX_divider{{appearance}}{{class}} /]', 'params' => array('appearance', 'class'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('appearance' => array('type' => 'select', 'label' => __('Appearance', 'webman-amplifier'), 'options' => self::$codes_globals['divider_appearance'], 'preview' => array('type' => 'refresh')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Divider / Gap', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'divider', 'class' => 'wm-shortcode-vc-divider', 'icon' => 'icon-wpb-ui-separator', 'show_settings_on_create' => false, 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Appearance', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'appearance', 'value' => array_flip(self::$codes_globals['divider_appearance']), 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Space before divider', 'webman-amplifier'), 'description' => __('Insert a number (of pixels)', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'space_before', 'value' => '', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Space after divider', 'webman-amplifier'), 'description' => __('Insert a number (of pixels)', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'space_after', 'value' => '', 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('CSS styles', 'webman-amplifier'), 'description' => __('Any custom CSS style inserted into style HTML attribute', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'style', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'dropcap' => array('since' => '1.0', 'preprocess' => true, 'generator' => array('name' => __('Dropcap', 'webman-amplifier'), 'code' => '[PREFIX_dropcap color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" shape="' . implode('/', array_keys(wma_ksort(self::$codes_globals['dropcap_shapes']))) . '" class=""]{{content}}[/PREFIX_dropcap]', 'short' => true)), 'icon' => array('since' => '1.0', 'preprocess' => true, 'generator' => array('name' => __('Icon / Social Icon', 'webman-amplifier'), 'code' => '[PREFIX_icon class="icon-class" social="' . implode('/', $wm_social_icons_array) . '" url="" size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" /]', 'short' => true), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Icon / Social Icon', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'icon', 'class' => 'wm-shortcode-vc-icon', 'icon' => 'icon-wpb-vc_icon', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Icon', 'webman-amplifier'), 'type' => 'wm_radio', 'param_name' => 'icon', 'value' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Size', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'size', 'value' => $empty + array_flip(self::$codes_globals['sizes']['options']), 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Social icon?', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'social', 'value' => $wm_social_icons_array, 'holder' => 'hidden', 'class' => '', 'group' => __('Social icon', 'webman-amplifier')), 40 => array('heading' => __('Social icon link URL', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'url', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Social icon', 'webman-amplifier')), 50 => array('heading' => __('Target', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'target', 'value' => array(__('Open in same window', 'webman-amplifier') => '', __('Open in new window / tab', 'webman-amplifier') => '_blank'), 'holder' => 'hidden', 'class' => '', 'group' => __('Social icon', 'webman-amplifier')), 60 => array('heading' => __('Social icon title', 'webman-amplifier'), 'description' => __('Will be displayed when mouse hovers over the icon', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'title', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Social icon', 'webman-amplifier')), 70 => array('heading' => __('Social icon relation', 'webman-amplifier'), 'description' => __('The HTML "rel" attribute', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'rel', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Social icon', 'webman-amplifier')), 80 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => ''), 90 => array('heading' => __('CSS styles', 'webman-amplifier'), 'description' => __('Any custom CSS style inserted into style HTML attribute', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'style', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'list' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Icon List', 'webman-amplifier'), 'code' => '[PREFIX_list bullet="icon-class" class=""]<ul><li>{{content}}</li><li>' . __('List item', 'webman-amplifier') . '</li></ul>[/PREFIX_list]', 'short' => true), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Icon List', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'list', 'class' => 'wm-shortcode-vc-list', 'icon' => 'icon-wpb-vc_icon', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('List items (insert unordered list only)', 'webman-amplifier'), 'description' => '', 'type' => 'textarea_html', 'param_name' => 'content', 'value' => '<ul><li>TEXT</li><li>TEXT</li></ul>', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Bullet icon', 'webman-amplifier'), 'type' => 'wm_radio', 'param_name' => 'bullet', 'value' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'holder' => 'div', 'class' => ''), 30 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'last_update' => array('since' => '1.0', 'preprocess' => true, 'generator' => array('name' => __('Last Update Time', 'webman-amplifier'), 'code' => '[PREFIX_last_update post_type="' . implode('/', array_merge(array('post', 'page'), get_post_types(array('_builtin' => false)))) . '" format="" class="" /]', 'short' => true)), 'marker' => array('since' => '1.0', 'preprocess' => true, 'generator' => array('name' => __('Marker', 'webman-amplifier'), 'code' => '[PREFIX_marker color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" class=""]{{content}}[/PREFIX_marker]', 'short' => true)), 'message' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Message', 'webman-amplifier'), 'code' => '[PREFIX_message title="" color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" icon="" class=""]{{content}}[/PREFIX_message]'), 'bb_plugin' => array('name' => __('Message', 'webman-amplifier'), 'output' => '[PREFIX_message{{title}}{{heading_tag}}{{color}}{{size}}{{icon}}{{class}}]{{content}}[/PREFIX_message]', 'params' => array('title', 'heading_tag', 'color', 'size', 'icon', 'class', 'content'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('title' => array('type' => 'text', 'label' => __('Caption', 'webman-amplifier'), 'default' => '', 'preview' => array('type' => 'refresh')), 'heading_tag' => array('type' => 'select', 'label' => __('Caption HTML tag', 'webman-amplifier'), 'description' => sprintf(esc_html__('Default value: %s', 'webman-amplifier'), 'H3'), 'options' => $heading_tags, 'preview' => array('type' => 'none')))), 'content' => array('title' => __('Content', 'webman-amplifier'), 'fields' => array('content' => array('type' => 'editor', 'label' => '', 'preview' => array('type' => 'refresh')))))), 'icon' => array('title' => __('Icon', 'webman-amplifier'), 'description' => '', 'sections' => array('icon' => array('title' => __('Icon', 'webman-amplifier'), 'fields' => array('icon' => array('type' => 'wm_radio', 'label' => '', 'options' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'preview' => array('type' => 'none')))))), 'others' => array('title' => __('Others', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('color' => array('type' => 'select', 'label' => __('Color', 'webman-amplifier'), 'options' => self::$codes_globals['colors'], 'preview' => array('type' => 'refresh')), 'size' => array('type' => 'select', 'label' => __('Size', 'webman-amplifier'), 'options' => self::$codes_globals['sizes']['options'], 'preview' => array('type' => 'refresh')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Message', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'message', 'class' => 'wm-shortcode-vc-message', 'icon' => 'icon-wpb-information-white', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Caption', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'title', 'value' => '', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Content', 'webman-amplifier'), 'description' => '', 'type' => 'textarea_html', 'param_name' => 'content', 'value' => '', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Color', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'color', 'value' => $empty + array_flip(self::$codes_globals['colors']), 'holder' => 'div', 'class' => ''), 40 => array('heading' => __('Size', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'size', 'value' => $empty + array_flip(self::$codes_globals['sizes']['options']), 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('Icon', 'webman-amplifier'), 'type' => 'wm_radio', 'param_name' => 'icon', 'value' => self::$codes_globals['font_icons'], 'custom' => '<i class="{{value}}" title="{{value}}" style="display: inline-block; width: 20px; height: 20px; line-height: 1em; font-size: 20px; vertical-align: top; color: #444;"></i>', 'filter' => true, 'hide_radio' => true, 'inline' => true, 'holder' => 'hidden', 'class' => ''), 60 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'meta' => array('since' => '1.0.9', 'preprocess' => false, 'generator' => array()), 'posts' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Posts / Custom Posts', 'webman-amplifier'), 'code' => '[PREFIX_posts post_type="' . implode('/', array_keys(wma_ksort(self::$codes_globals['post_types']))) . '" align="left/right" columns="4" count="-1" image_size="" order="new/old/name/random" taxonomy="taxonomy_name:taxonomy_slug" filter="taxonomy_name" scroll="0" pagination="0/1" related="0/1" no_margin="0/1" layout="" class=""]{{content}}[/PREFIX_posts]', 'short' => false), 'bb_plugin' => array('name' => __('Posts / Custom Posts', 'webman-amplifier'), 'output' => '[PREFIX_posts{{post_type}}{{align}}{{columns}}{{count}}{{order}}{{taxonomy}}{{image_size}}{{filter}}{{scroll}}{{pagination}}{{related}}{{no_margin}}{{heading_tag}}{{class}}]{{content}}[/PREFIX_posts]', 'params' => array('post_type', 'align', 'columns', 'count', 'order', 'taxonomy', 'image_size', 'filter', 'scroll', 'pagination', 'related', 'no_margin', 'heading_tag', 'class', 'content'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('post_type' => array('type' => 'select', 'label' => __('Post type', 'webman-amplifier'), 'help' => __('This shortcode can display several post types. Choose the one you want to display.', 'webman-amplifier'), 'options' => self::$codes_globals['post_types'], 'preview' => array('type' => 'refresh')), 'count' => array('type' => 'text', 'label' => __('Count', 'webman-amplifier'), 'help' => __('Number of items to display (use "-1" to display all)', 'webman-amplifier'), 'default' => 3, 'preview' => array('type' => 'refresh')), 'columns' => array('type' => 'select', 'label' => __('Columns', 'webman-amplifier'), 'default' => 3, 'options' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'preview' => array('type' => 'refresh')), 'order' => array('type' => 'select', 'label' => __('Order', 'webman-amplifier'), 'options' => array('new' => __('Newest first', 'webman-amplifier'), 'old' => __('Oldest first', 'webman-amplifier'), 'name' => __('By name', 'webman-amplifier'), 'random' => __('Randomly', 'webman-amplifier')), 'preview' => array('type' => 'refresh')))))), 'description' => array('title' => __('Description', 'webman-amplifier'), 'description' => '', 'sections' => array('description' => array('title' => '', 'fields' => array('align' => array('type' => 'select', 'label' => __('Description alignment', 'webman-amplifier'), 'options' => array('left' => __('Left', 'webman-amplifier'), 'right' => __('Right', 'webman-amplifier')), 'preview' => array('type' => 'refresh')))), 'content' => array('title' => __('Content', 'webman-amplifier'), 'fields' => array('content' => array('type' => 'editor', 'label' => '', 'preview' => array('type' => 'refresh')))))), 'others' => array('title' => __('Others', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('no_margin' => array('type' => 'select', 'label' => __('Remove gap between items?', 'webman-amplifier'), 'options' => array('' => __('No', 'webman-amplifier'), 1 => __('Yes', 'webman-amplifier')), 'preview' => array('type' => 'refresh')), 'taxonomy' => array('type' => 'text', 'label' => __('From taxonomy', 'webman-amplifier'), 'description' => '<br />' . __('Example: "taxonomy_name" or more specific "taxonomy_name:taxonomy-slug".', 'webman-amplifier') . '<br />' . __('Available taxonomy names:', 'webman-amplifier') . ' <code>' . implode(', ', $wm_taxonomies) . '</code>', 'preview' => array('type' => 'refresh')), 'filter' => array('type' => 'text', 'label' => __('Filter by', 'webman-amplifier'), 'description' => '<br />' . __('Example: "taxonomy_name" or more specific "taxonomy_name:taxonomy-slug".', 'webman-amplifier') . '<br />' . __('Available taxonomy names:', 'webman-amplifier') . ' <code>' . implode(', ', $wm_taxonomies) . '</code>', 'preview' => array('type' => 'refresh')), 'filter_layout' => array('type' => 'text', 'label' => __('Filter layout', 'webman-amplifier'), 'description' => sprintf(__('Use one of <a%s>Isotope</a> layouts.', 'webman-amplifier'), ' href="http://isotope.metafizzy.co/layout-modes.html" target="_blank"') . ' ' . __('Default is set to <code>fitRows</code>.', 'webman-amplifier'), 'preview' => array('type' => 'refresh')), 'scroll' => array('type' => 'text', 'label' => __('Scrolling', 'webman-amplifier'), 'help' => __('Set 1-999 for manual scrolling, set 1000+ for automatic scrolling. The value for automatic scrolling represents the time of a scroll in miliseconds. Leave empty to disable scrolling.', 'webman-amplifier'), 'preview' => array('type' => 'refresh')), 'related' => array('type' => 'select', 'label' => __('Related by', 'webman-amplifier'), 'help' => __('Use only on single post/custom post pages. Displays items related to recently displayed item through a specific taxonomy. Set a taxonomy name only.', 'webman-amplifier'), 'options' => wma_asort(array_merge(array('' => ''), $wm_taxonomies)), 'preview' => array('type' => 'none')), 'pagination' => array('type' => 'select', 'label' => __('Display pagination?', 'webman-amplifier'), 'options' => array('' => __('No', 'webman-amplifier'), 1 => __('Yes', 'webman-amplifier')), 'preview' => array('type' => 'refresh')), 'image_size' => array('type' => 'select', 'label' => __('Image size', 'webman-amplifier'), 'options' => wma_asort(array_merge(array('' => ''), wma_get_image_sizes())), 'preview' => array('type' => 'refresh')), 'heading_tag' => array('type' => 'select', 'label' => __('Heading HTML tag', 'webman-amplifier'), 'description' => sprintf(esc_html__('Default value: %s', 'webman-amplifier'), 'H2'), 'options' => $heading_tags, 'preview' => array('type' => 'none')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Posts / Custom Posts', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'posts', 'class' => 'wm-shortcode-vc-posts', 'icon' => 'icon-wpb-vc_carousel', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Post type', 'webman-amplifier'), 'description' => __('This shortcode can display several post types. Choose the one you want to display.', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'post_type', 'value' => $empty + array_flip(self::$codes_globals['post_types']), 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Count', 'webman-amplifier'), 'description' => __('Number of items to display (use "-1" to display all)', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'count', 'value' => 3, 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Columns', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'columns', 'value' => array('' => '', 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('Order', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'order', 'value' => array(__('Newest first', 'webman-amplifier') => 'new', __('Oldest first', 'webman-amplifier') => 'old', __('By name', 'webman-amplifier') => 'name', __('Randomly', 'webman-amplifier') => 'random'), 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('Taxonomy', 'webman-amplifier'), 'description' => __('Displays items only from a specific taxonomy. Set a taxonomy name and taxonomy slug separated with colon.', 'webman-amplifier') . '<br />' . __('For example: "category:category-slug".', 'webman-amplifier') . '<br />' . __('Available taxonomy names:', 'webman-amplifier') . ' <code>' . implode('</code>, <code>', $wm_taxonomies) . '</code>', 'type' => 'textfield', 'param_name' => 'taxonomy', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Taxonomy', 'webman-amplifier')), 60 => array('heading' => __('Relation', 'webman-amplifier'), 'description' => __('Use only on single post/custom post pages. Displays items related to recently displayed item through a specific taxonomy. Set a taxonomy name only.', 'webman-amplifier') . ' ' . __('For example: "category".', 'webman-amplifier') . '<br />' . __('Available taxonomy names:', 'webman-amplifier') . ' <code>' . implode('</code>, <code>', $wm_taxonomies) . '</code>', 'type' => 'textfield', 'param_name' => 'related', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Taxonomy', 'webman-amplifier')), 70 => array('heading' => __('Filter', 'webman-amplifier'), 'description' => __('If set, the items will be filtered. Set a taxonomy name (and optional parent taxonomy slug separated with colon - filter will be created from sub-taxonomies) which will be used to filter the items.', 'webman-amplifier') . '<br />' . __('For example: "category" or "category:parent-category-slug".', 'webman-amplifier') . '<br />' . __('Available taxonomy names:', 'webman-amplifier') . ' <code>' . implode('</code>, <code>', $wm_taxonomies) . '</code>', 'type' => 'textfield', 'param_name' => 'filter', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Filter / Scroll', 'webman-amplifier')), 80 => array('heading' => __('Filter layout', 'webman-amplifier'), 'description' => sprintf(__('Use one of <a%s>Isotope</a> layouts.', 'webman-amplifier'), ' href="http://isotope.metafizzy.co/layout-modes.html" target="_blank"') . ' ' . __('Default is set to <code>fitRows</code>.', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'filter_layout', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Filter / Scroll', 'webman-amplifier')), 90 => array('heading' => __('Scrolling', 'webman-amplifier'), 'description' => __('Set 1-999 for manual scrolling, set 1000+ for automatic scrolling. The value for automatic scrolling represents the time of a scroll in miliseconds. Leave empty to disable scrolling.', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'scroll', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Filter / Scroll', 'webman-amplifier')), 100 => array('heading' => __('Display pagination?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'pagination', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => ''), 110 => array('heading' => __('Description text', 'webman-amplifier'), 'description' => '', 'type' => 'textarea_html', 'param_name' => 'content', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Description', 'webman-amplifier')), 120 => array('heading' => __('Description alignment', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'align', 'value' => array(__('Left', 'webman-amplifier') => 'left', __('Right', 'webman-amplifier') => 'right'), 'holder' => 'hidden', 'class' => '', 'group' => __('Description', 'webman-amplifier')), 130 => array('heading' => __('Remove gap between items?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'no_margin', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => '', 'group' => __('Layout', 'webman-amplifier')), 140 => array('heading' => __('Image size', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'image_size', 'value' => wma_asort($empty + array_flip(wma_get_image_sizes())), 'holder' => 'hidden', 'class' => '', 'group' => __('Layout', 'webman-amplifier')), 150 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'pre' => array('since' => '1.0', 'preprocess' => true, 'generator' => array('name' => __('Preformatted Text', 'webman-amplifier'), 'code' => '[PREFIX_pre]{{content}}[/PREFIX_pre]', 'short' => true)), 'pricing_table' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Pricing Table', 'webman-amplifier'), 'code' => '[PREFIX_pricing_table no_margin="0/1" class=""]<br />[PREFIX_price caption="' . __('Price 1', 'webman-amplifier') . '" color="" color_text="" cost="" heading_tag="" appearance="NONE/featured/legend" class=""]{{content}}[/PREFIX_price]<br />[PREFIX_price caption="' . __('Price 2', 'webman-amplifier') . '" color="" color_text="" cost="" heading_tag="" appearance="NONE/featured/legend" class=""]' . __('Price 2 content goes here', 'webman-amplifier') . '[/PREFIX_price]<br />[/PREFIX_pricing_table]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Pricing Table', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'pricing_table', 'class' => 'wm-shortcode-vc-pricing_table wm-sections-mode', 'show_settings_on_create' => false, 'is_container' => true, 'category' => __('Content', 'webman-amplifier'), 'custom_markup' => '
								<h4 class="wm-sections-mode-title wpb_element_title"><i class="vc_general vc_element-icon" data-is-container="true"></i> ' . __('Pricing table', 'webman-amplifier') . '</h4>
								<div class="wpb_accordion_holder wpb_holder clearfix vc_container_for_children">
									%content%
								</div>
								<div class="tab_controls">
									<button data-item="' . $this->prefix_shortcode . 'price" data-item-title="' . __('Price', 'webman-amplifier') . '" class="add_tab" title="' . __('Pricing table: Add new price', 'webman-amplifier') . '">' . __('Pricing table: Add new price', 'webman-amplifier') . '</button>
								</div>
							', 'default_content' => '
								[' . $this->prefix_shortcode . 'price caption="' . __('Price 1', 'webman-amplifier') . '"]' . __('<ul><li>Price feature</li><li>Another price feature</li></ul>', 'webman-amplifier') . '[' . $this->prefix_shortcode . 'button url="#" color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" icon="" class=""]' . __('Button text', 'webman-amplifier') . '[/' . $this->prefix_shortcode . 'button][/' . $this->prefix_shortcode . 'price]
								[' . $this->prefix_shortcode . 'price caption="' . __('Price 2', 'webman-amplifier') . '"]' . __('<ul><li>Price feature</li><li>Another price feature</li></ul>', 'webman-amplifier') . '[' . $this->prefix_shortcode . 'button url="#" color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" icon="" class=""]' . __('Button text', 'webman-amplifier') . '[/' . $this->prefix_shortcode . 'button][/' . $this->prefix_shortcode . 'price]
							', 'js_view' => 'VcCustomPricingTableView', 'params' => array(10 => array('heading' => __('Remove margins between price columns?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'no_margin', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'price' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Price', 'webman-amplifier'), 'code' => '[PREFIX_price caption="' . __('Title', 'webman-amplifier') . '" cost="99$" color="" color_text="" appearance="default/featured/legend" class=""]{{content}}[/PREFIX_price]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Price', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'price', 'class' => 'wm-shortcode-vc-price', 'content_element' => false, 'category' => __('Content', 'webman-amplifier'), 'params' => array(array('heading' => __('Caption', 'webman-amplifier'), 'description' => '', 'type' => 'textfield', 'param_name' => 'caption', 'value' => '', 'holder' => 'div', 'class' => ''), array('heading' => __('Cost', 'webman-amplifier'), 'type' => 'textarea', 'param_name' => 'cost', 'value' => '', 'holder' => 'hidden', 'class' => ''), array('heading' => __('Features list', 'webman-amplifier'), 'description' => __('Insert an unordered list of features', 'webman-amplifier'), 'type' => 'textarea_html', 'param_name' => 'content', 'value' => __('<ul><li>Price feature</li><li>Another price feature</li></ul>', 'webman-amplifier') . '[' . $this->prefix_shortcode . 'button url="#" color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" size="' . implode('/', array_keys(wma_ksort(self::$codes_globals['sizes']['options']))) . '" icon="" class=""]' . __('Button text', 'webman-amplifier') . '[/' . $this->prefix_shortcode . 'button]', 'holder' => 'hidden', 'class' => ''), array('heading' => __('Column color', 'webman-amplifier'), 'description' => '', 'type' => 'colorpicker', 'param_name' => 'color', 'value' => '', 'holder' => 'hidden', 'class' => ''), array('heading' => __('Column text color', 'webman-amplifier'), 'type' => 'colorpicker', 'param_name' => 'color_text', 'value' => '', 'holder' => 'hidden', 'class' => ''), array('heading' => __('Appearance', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'appearance', 'value' => array(__('Default price column', 'webman-amplifier') => '', __('Featured price column', 'webman-amplifier') => 'featured', __('Pricing table legend', 'webman-amplifier') => 'legend'), 'holder' => 'hidden', 'class' => ''), array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'progress' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Progress Bar', 'webman-amplifier'), 'code' => '[PREFIX_progress color="' . implode('/', array_keys(wma_ksort(self::$codes_globals['colors']))) . '" progress="75" class=""]{{content}}[/PREFIX_progress]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Progress Bar', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'progress', 'class' => 'wm-shortcode-vc-progress', 'icon' => 'icon-wpb-graph', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Caption', 'webman-amplifier'), 'description' => '', 'type' => 'textarea_html', 'param_name' => 'content', 'value' => __('Progress bar caption', 'webman-amplifier'), 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Progress in %', 'webman-amplifier'), 'description' => __('Insert a number between 0 and 100', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'progress', 'value' => '75', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Color', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'color', 'value' => $empty + array_flip(self::$codes_globals['colors']), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'row' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Row', 'webman-amplifier'), 'code' => wma_is_active_vc() ? '[vc_row bg_attachment="" bg_color="" bg_image="" bg_position="" bg_repeat="" bg_size="" class="" font_color="" id="" margin="" padding="" parallax=""]{{content}}[/vc_row]' : '[PREFIX_row bg_attachment="" bg_color="" bg_image="" bg_position="" bg_repeat="" bg_size="" class="" font_color="" id="" margin="" padding="" parallax=""]{{content}}[/PREFIX_row]', 'short' => false)), 'search_form' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Search Form', 'webman-amplifier'), 'code' => '[PREFIX_search_form /]', 'short' => true)), 'separator_heading' => array('since' => '1.0', 'preprocess' => true, 'generator' => array('name' => __('Separator Heading', 'webman-amplifier'), 'code' => '[PREFIX_separator_heading align="' . implode('/', array('left', 'center', 'right')) . '" tag="' . implode('/', array('h1', 'h2', 'h3', 'h4', 'h5', 'h6')) . '" class="" id=""]{{content}}[/PREFIX_separator_heading]', 'short' => true), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Separator Heading', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'separator_heading', 'class' => 'wm-shortcode-vc-separator_heading', 'icon' => 'icon-wpb-ui-separator-label', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Heading text', 'webman-amplifier'), 'description' => '', 'type' => 'textfield', 'param_name' => 'content', 'value' => '', 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Heading size', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'tag', 'value' => array_flip($heading_tags), 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Text align', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'align', 'value' => array(__('Left', 'webman-amplifier') => 'left', __('Center', 'webman-amplifier') => 'center', __('Right', 'webman-amplifier') => 'right'), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('Optional HTML ID', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'id', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'slideshow' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Slideshow', 'webman-amplifier'), 'code' => '[PREFIX_slideshow ids="" nav="none/thumbs/pagination" size="full/' . implode('/', get_intermediate_image_sizes()) . '" speed="3000" class="" /]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Slideshow', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'slideshow', 'class' => 'wm-shortcode-vc-slideshow', 'icon' => 'icon-wpb-images-carousel', 'category' => __('Media', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Images', 'webman-amplifier'), 'description' => '', 'type' => 'attach_images', 'param_name' => 'ids', 'value' => '', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Navigation', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'nav', 'value' => array(__('Just Next/Prev button', 'webman-amplifier') => '', __('Thumbnails', 'webman-amplifier') => 'thumbs', __('Pagination', 'webman-amplifier') => 'pagination'), 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Image size', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'image_size', 'value' => wma_asort($empty + array_flip(wma_get_image_sizes())), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('Speed in miliseconds', 'webman-amplifier'), 'description' => '', 'type' => 'textfield', 'param_name' => 'speed', 'value' => apply_filters('wmhook_shortcode_' . 'slideshow_speed', 3000), 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'table' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Table', 'webman-amplifier'), 'code' => '[PREFIX_table appearance="' . implode('/', array_keys(wma_ksort(self::$codes_globals['table_appearance']))) . '" separator="," class=""]{{content}}[/PREFIX_table]', 'short' => false), 'bb_plugin' => array('name' => __('Table', 'webman-amplifier'), 'output' => '[PREFIX_table{{appearance}}{{separator}}{{class}}]{{content}}[/PREFIX_table]', 'params' => array('appearance', 'separator', 'class', 'content'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('appearance' => array('type' => 'select', 'label' => __('Appearance', 'webman-amplifier'), 'options' => self::$codes_globals['table_appearance'], 'preview' => array('type' => 'refresh')), 'separator' => array('type' => 'text', 'label' => __('CSV data separator', 'webman-amplifier'), 'default' => ',', 'preview' => array('type' => 'none')))), 'content' => array('title' => __('CSV data', 'webman-amplifier'), 'fields' => array('content' => array('type' => 'editor', 'label' => '', 'default' => "Column 1, Colum 2, Column 3\r\nValue 1, Value 2, Value 3", 'preview' => array('type' => 'none')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Table', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'table', 'class' => 'wm-shortcode-vc-table', 'icon' => 'vc_icon-vc-media-grid', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('CSV data', 'webman-amplifier'), 'type' => 'textarea_html', 'param_name' => 'content', 'value' => "Column 1, Colum 2, Column 3\r\nValue 1, Value 2, Value 3", 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('CSV data separator', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'separator', 'value' => ',', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Appearance', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'appearance', 'value' => $empty + array_flip(self::$codes_globals['table_appearance']), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'testimonials' => array('since' => '1.0', 'post_type_required' => 'wm_testimonials', 'preprocess' => false, 'generator' => array('name' => __('Testimonials', 'webman-amplifier'), 'code' => '[PREFIX_testimonials testimonial="testimonial-slug" align="left/right" columns="4" count="-1" order="new/old/name/random" category="optional-category-slug" scroll="0" pagination="0/1" no_margin="0/1" class=""]{{content}}[/PREFIX_testimonials]', 'short' => false), 'bb_plugin' => array('name' => __('Testimonials', 'webman-amplifier'), 'output' => '[PREFIX_testimonials{{testimonial}}{{align}}{{columns}}{{count}}{{order}}{{category}}{{scroll}}{{pagination}}{{no_margin}}{{heading_tag}}{{class}}]{{content}}[/PREFIX_testimonials]', 'params' => array('testimonial', 'align', 'columns', 'count', 'order', 'category', 'scroll', 'pagination', 'no_margin', 'heading_tag', 'class', 'content'), 'form' => array('general' => array('title' => __('General', 'webman-amplifier'), 'description' => '', 'sections' => array('single' => array('title' => __('Single testimonial display', 'webman-amplifier'), 'fields' => array('testimonial' => array('type' => 'select', 'label' => __('Single testimonial', 'webman-amplifier'), 'help' => __('Leave empty to display multiple testimonials', 'webman-amplifier'), 'options' => $wm_testimonials_slugs, 'preview' => array('type' => 'refresh')))), 'multiple' => array('title' => __('Multiple modules display', 'webman-amplifier'), 'fields' => array('count' => array('type' => 'text', 'label' => __('Count', 'webman-amplifier'), 'help' => __('Number of items to display (use "-1" to display all)', 'webman-amplifier'), 'default' => 3, 'preview' => array('type' => 'refresh')), 'columns' => array('type' => 'select', 'label' => __('Columns', 'webman-amplifier'), 'default' => 3, 'options' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'preview' => array('type' => 'refresh')), 'order' => array('type' => 'select', 'label' => __('Order', 'webman-amplifier'), 'options' => array('new' => __('Newest first', 'webman-amplifier'), 'old' => __('Oldest first', 'webman-amplifier'), 'name' => __('By name', 'webman-amplifier'), 'random' => __('Randomly', 'webman-amplifier')), 'preview' => array('type' => 'refresh')), 'scroll' => array('type' => 'text', 'label' => __('Scrolling', 'webman-amplifier'), 'help' => __('Set 1-999 for manual scrolling, set 1000+ for automatic scrolling. The value for automatic scrolling represents the time of a scroll in miliseconds. Leave empty to disable scrolling.', 'webman-amplifier'), 'preview' => array('type' => 'refresh')), 'category' => array('type' => 'select', 'label' => __('From category', 'webman-amplifier'), 'help' => __('Displays items only from a specific category', 'webman-amplifier'), 'options' => $wm_testimonials_categories, 'preview' => array('type' => 'refresh')), 'pagination' => array('type' => 'select', 'label' => __('Display pagination?', 'webman-amplifier'), 'options' => array('' => __('No', 'webman-amplifier'), 1 => __('Yes', 'webman-amplifier')), 'preview' => array('type' => 'refresh')))))), 'description' => array('title' => __('Description', 'webman-amplifier'), 'description' => '', 'sections' => array('description' => array('title' => '', 'fields' => array('align' => array('type' => 'select', 'label' => __('Description alignment', 'webman-amplifier'), 'options' => array('left' => __('Left', 'webman-amplifier'), 'right' => __('Right', 'webman-amplifier')), 'preview' => array('type' => 'refresh')))), 'content' => array('title' => __('Content', 'webman-amplifier'), 'fields' => array('content' => array('type' => 'editor', 'label' => '', 'preview' => array('type' => 'refresh')))))), 'others' => array('title' => __('Others', 'webman-amplifier'), 'description' => '', 'sections' => array('general' => array('title' => '', 'fields' => array('no_margin' => array('type' => 'select', 'label' => __('Remove gap between items?', 'webman-amplifier'), 'options' => array('' => __('No', 'webman-amplifier'), 1 => __('Yes', 'webman-amplifier')), 'preview' => array('type' => 'refresh')), 'heading_tag' => array('type' => 'select', 'label' => __('Heading HTML tag', 'webman-amplifier'), 'description' => sprintf(esc_html__('Default value: %s', 'webman-amplifier'), 'H2'), 'options' => $heading_tags, 'preview' => array('type' => 'none')))))))), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Testimonials', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'testimonials', 'class' => 'wm-shortcode-vc-testimonials', 'icon' => 'vc_icon-vc-gitem-post-title', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Single testimonial', 'webman-amplifier'), 'description' => __('Leave empty to display multiple testimonials', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'testimonial', 'value' => array_flip($wm_testimonials_slugs), 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Count', 'webman-amplifier'), 'description' => __('Number of items to display (use "-1" to display all)', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'count', 'value' => 3, 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 30 => array('heading' => __('Columns', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'columns', 'value' => array('' => '', 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 40 => array('heading' => __('Order', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'order', 'value' => array(__('Newest first', 'webman-amplifier') => 'new', __('Oldest first', 'webman-amplifier') => 'old', __('By name', 'webman-amplifier') => 'name', __('Randomly', 'webman-amplifier') => 'random'), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 50 => array('heading' => __('Scrolling', 'webman-amplifier'), 'description' => __('Set 1-999 for manual scrolling, set 1000+ for automatic scrolling. The value for automatic scrolling represents the time of a scroll in miliseconds. Leave empty to disable scrolling.', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'scroll', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 60 => array('heading' => __('Category', 'webman-amplifier'), 'description' => __('Displays items only from a specific category', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'category', 'value' => array_flip($wm_testimonials_categories), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 70 => array('heading' => __('Display pagination?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'pagination', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 80 => array('heading' => __('Description text (HTML)', 'webman-amplifier'), 'description' => '', 'type' => 'textarea', 'param_name' => 'content', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 90 => array('heading' => __('Description alignment', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'align', 'value' => array(__('Left', 'webman-amplifier') => 'left', __('Right', 'webman-amplifier') => 'right'), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 100 => array('heading' => __('Remove gap between items?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'no_margin', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 1), 'holder' => 'hidden', 'class' => '', 'group' => __('Multiple display', 'webman-amplifier')), 110 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'video' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Video', 'webman-amplifier'), 'code' => '[PREFIX_video src="" poster="" autoplay="0/1" loop="0/1" class="" /]', 'short' => false), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Video', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'video', 'class' => 'wm-shortcode-vc-video', 'icon' => 'icon-wpb-film-youtube', 'category' => __('Media', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Video source', 'webman-amplifier'), 'description' => __('Set the video URL', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'src', 'value' => '', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Poster', 'webman-amplifier'), 'description' => __('Optional placeholder image', 'webman-amplifier'), 'type' => 'attach_image', 'param_name' => 'poster', 'value' => '', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Autoplay the video?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'autoplay', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 'on'), 'holder' => 'hidden', 'class' => ''), 40 => array('heading' => __('Loop the video?', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'loop', 'value' => array(__('No', 'webman-amplifier') => '', __('Yes', 'webman-amplifier') => 'on'), 'holder' => 'hidden', 'class' => ''), 50 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))), 'widget_area' => array('since' => '1.0', 'preprocess' => false, 'generator' => array('name' => __('Widgets Area', 'webman-amplifier'), 'code' => '[PREFIX_widget_area area="' . implode('/', array_keys(wma_ksort(wma_widget_areas_array()))) . '" class="" max_widgets_count="0" /]', 'short' => true), 'vc_plugin' => array('name' => $this->prefix_shortcode_name . __('Widgets Area', 'webman-amplifier'), 'base' => $this->prefix_shortcode . 'widget_area', 'class' => 'wm-shortcode-vc-widget_area', 'icon' => 'icon-wpb-layout_sidebar', 'category' => __('Content', 'webman-amplifier'), 'params' => array(10 => array('heading' => __('Widgets area', 'webman-amplifier'), 'description' => '', 'type' => 'dropdown', 'param_name' => 'area', 'value' => array_flip(wma_widget_areas_array()), 'holder' => 'div', 'class' => ''), 20 => array('heading' => __('Maximum widgets count', 'webman-amplifier'), 'description' => __('Area will not be displayed when the number of widgets inserted in it is greater', 'webman-amplifier'), 'type' => 'dropdown', 'param_name' => 'max_widgets_count', 'value' => array('' => '', 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12), 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => '')))));
/**
 * Visual Composer helper shortcodes
 */
/**
 * Redefine (extend) the vc_row shortcode
 *
 * @since  1.0
 */
$shortcode_definitions['vc_row'] = array('since' => '1.0', 'vc_plugin' => array('name' => __('Row', 'webman-amplifier'), 'base' => 'vc_row', 'class' => 'wm-shortcode-vc-row', 'icon' => 'icon-wpb-row', 'category' => __('Structure', 'webman-amplifier'), 'is_container' => true, 'show_settings_on_create' => false, 'js_view' => 'VcRowView', 'params' => array(10 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => ''), 20 => array('heading' => __('Optional HTML ID', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'id', 'value' => '', 'holder' => 'hidden', 'class' => ''), 30 => array('heading' => __('Background color', 'webman-amplifier'), 'description' => '', 'type' => 'colorpicker', 'param_name' => 'bg_color', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Styling', 'webman-amplifier')), 40 => array('heading' => __('Text color', 'webman-amplifier'), 'description' => '', 'type' => 'colorpicker', 'param_name' => 'font_color', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Styling', 'webman-amplifier')), 50 => array('heading' => __('Background image', 'webman-amplifier'), 'description' => '', 'type' => 'attach_image', 'param_name' => 'bg_image', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Styling', 'webman-amplifier')), 60 => array('heading' => __('Parallax scroll speed', 'webman-amplifier'), 'description' => __('Set the inertia of parallax background moving. For example, value of <code>0.1</code> equals to tenth of normal scroll speed.', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'parallax', 'value' => '', 'holder' => 'hidden', 'class' => '', 'dependency' => array('element' => 'bg_image', 'not_empty' => true), 'group' => __('Styling', 'webman-amplifier')), 70 => array('heading' => __('Padding', 'webman-amplifier'), 'description' => sprintf(__('Set a <a%s>CSS value</a>, such as <code>60px 0 60px 0</code>', 'webman-amplifier'), ' href="http://www.w3schools.com/cssref/pr_padding.asp" target="_blank"'), 'type' => 'textfield', 'param_name' => 'padding', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Styling', 'webman-amplifier')), 80 => array('heading' => __('Margin', 'webman-amplifier'), 'description' => sprintf(__('Set a <a%s>CSS value</a>, such as <code>60px 0 60px 0</code>', 'webman-amplifier'), ' href="http://www.w3schools.com/cssref/pr_margin.asp" target="_blank"'), 'type' => 'textfield', 'param_name' => 'margin', 'value' => '', 'holder' => 'hidden', 'class' => '', 'group' => __('Styling', 'webman-amplifier')))));
/**
 * Redefine the vc_row_inner shortcode
 *
 * @since  1.0
 */
$shortcode_definitions['vc_row_inner'] = array('since' => '1.0', 'vc_plugin' => array('name' => __('Row', 'webman-amplifier'), 'base' => 'vc_row_inner', 'class' => 'wm-shortcode-vc-row-inner', 'icon' => 'icon-wpb-row', 'category' => __('Structure', 'webman-amplifier'), 'content_element' => false, 'is_container' => true, 'weight' => 1000, 'show_settings_on_create' => false, 'js_view' => 'VcRowView', 'params' => array(10 => array('heading' => __('CSS class', 'webman-amplifier'), 'description' => __('Optional CSS additional classes', 'webman-amplifier'), 'type' => 'textfield', 'param_name' => 'class', 'value' => '', 'holder' => 'hidden', 'class' => ''))));
Example #2
0
 function wm_helper_var($variable, $key = '')
 {
     //Helper variables
     $output = array();
     //Background CSS settings
     $output['bg-css'] = array('position' => array('0 0' => '<span class="position-option">' . __('Left, top', 'wm_domain') . '</span>', '50% 0' => '<span class="position-option">' . __('Center horizontally, top', 'wm_domain') . '</span>', '100% 0' => '<span class="position-option">' . __('Right, top', 'wm_domain') . '</span>', '0 50%' => '<span class="position-option">' . __('Left, center vertically', 'wm_domain') . '</span>', '50% 50%' => '<span class="position-option">' . __('Center', 'wm_domain') . '</span>', '100% 50%' => '<span class="position-option">' . __('Right, center vertically', 'wm_domain') . '</span>', '0 100%' => '<span class="position-option">' . __('Left, bottom', 'wm_domain') . '</span>', '50% 100%' => '<span class="position-option">' . __('Center horizontally, bottom', 'wm_domain') . '</span>', '100% 100%' => '<span class="position-option">' . __('Right, bottom', 'wm_domain') . '</span>'), 'repeat' => array('no-repeat' => __('Do not repeat', 'wm_domain'), 'repeat-x' => __('Repeat horizontally', 'wm_domain'), 'repeat-y' => __('Repeat vertically', 'wm_domain'), 'repeat' => __('Repeat (tile)', 'wm_domain')), 'scroll' => array('scroll' => __('Move on scrolling', 'wm_domain'), 'fixed' => __('Fixed position', 'wm_domain')), 'size' => array('' => __('Default', 'wm_domain'), 'cover' => __('Cover', 'wm_domain'), 'contain' => __('Contain', 'wm_domain')));
     //Google Fonts
     $output['google-fonts'] = array(' ' => __(' - do not use Google Font', 'wm_domain'), 'Abril Fatface' => 'Abril Fatface', 'Arvo' => 'Arvo', 'Comfortaa:400,300' => 'Comfortaa', 'Domine' => 'Domine', 'Droid Sans' => 'Droid Sans', 'Droid Serif' => 'Droid Serif', 'Duru Sans' => 'Duru Sans', 'Inconsolata' => 'Inconsolata', 'Josefin Slab:400,300' => 'Josefin Slab', 'Lato:400,300,100' => 'Lato', 'Lobster' => 'Lobster', 'Merriweather:400,300' => 'Merriweather', 'Merriweather Sans:400,300' => 'Merriweather Sans', 'Metamorphous' => 'Metamorphous', 'Michroma' => 'Michroma', 'Monoton' => 'Monoton', 'Montserrat' => 'Montserrat', 'Nixie One' => 'Nixie One', 'Noto Sans' => 'Noto Sans', 'Nunito:400,300' => 'Nunito', 'Old Standard TT' => 'Old Standard TT', 'Open Sans:400,300' => 'Open Sans', 'Open Sans Condensed:300' => 'Open Sans Condensed', 'Oswald:400,300' => 'Oswald', 'PT Sans' => 'PT Sans', 'PT Serif' => 'PT Serif', 'Quicksand:400,300' => 'Quicksand', 'Raleway:400,300,200' => 'Raleway', 'Roboto:400,300' => 'Roboto', 'Rokkitt' => 'Rokkitt', 'Source Sans Pro:400,300' => 'Source Sans Pro', 'Tenor Sans' => 'Tenor Sans', 'Ubuntu:400,300' => 'Ubuntu', 'Ubuntu Condensed' => 'Ubuntu Condensed', 'Vollkorn' => 'Vollkorn', 'Yanone Kaffeesatz:400,300' => 'Yanone Kaffeesatz');
     //Google Fonts subsets
     $output['google-fonts-subset'] = array('latin' => 'Latin', 'latin-ext' => 'Latin Extended', 'cyrillic' => 'Cyrillic', 'cyrillic-ext' => 'Cyrillic Extended', 'greek' => 'Greek', 'greek-ext' => 'Greek Extended', 'vietnamese' => 'Vietnamese');
     //Image ratio
     $output['image-ratio'] = array('ratio-11' => __('Square', 'wm_domain'), 'ratio-43' => __('Landscape 4 to 3', 'wm_domain'), 'ratio-32' => __('Landscape 3 to 2', 'wm_domain'), 'ratio-169' => __('Landscape 16 to 9', 'wm_domain'), 'ratio-21' => __('Landscape 2 to 1', 'wm_domain'), 'ratio-31' => __('Landscape 3 to 1', 'wm_domain'), 'ratio-34' => __('Portrait 3 to 4', 'wm_domain'), 'ratio-23' => __('Portrait 2 to 3', 'wm_domain'));
     //Image size
     if (function_exists('wma_get_image_sizes')) {
         $output['image-size'] = wma_get_image_sizes();
     }
     //Layouts
     $output['layouts'] = array('sidebars' => array('' => __('Default', 'wm_domain'), 'right' => __('Right sidebar', 'wm_domain'), 'left' => __('Left sidebar', 'wm_domain'), 'none' => __('No sidebar', 'wm_domain'), 'sections' => __('Fullwidth sections', 'wm_domain')), 'website' => array('' => __('Default', 'wm_domain'), 'fullwidth' => __('Fullwidth', 'wm_domain'), 'boxed' => __('Boxed', 'wm_domain')));
     //Widget areas
     $output['widget-areas'] = array('general' => array('name' => __('General Sidebar', 'wm_domain'), 'id' => 'general', 'description' => __('The default general sidebar.', 'wm_domain'), 'before_widget' => '<div class="widget %1$s %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-heading">', 'after_title' => '</h3>'), 'topbar' => array('name' => __('Topbar Widgets', 'wm_domain'), 'id' => 'topbar', 'description' => __('Widget area displayed as topbar of the website.', 'wm_domain'), 'before_widget' => '<div class="widget %1$s %2$s">', 'after_widget' => '</div>', 'before_title' => '<p class="widget-heading">', 'after_title' => '</p>'), 'topbar-extra' => array('name' => __('Topbar Extra Widgets', 'wm_domain'), 'id' => 'topbar-extra', 'description' => __('Widget area displayed as extra topbar. It rolls out from top of the website when a button is clicked.', 'wm_domain'), 'before_widget' => '<div class="widget %1$s %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-heading">', 'after_title' => '</h4>'), 'main-heading-widgets' => array('name' => __('Main Heading Widgets', 'wm_domain'), 'id' => 'main-heading-widgets', 'description' => __('Widget area displayed in the Main Heading section.', 'wm_domain'), 'before_widget' => '<div class="widget %1$s %2$s">', 'after_widget' => '</div>', 'before_title' => '<p class="widget-heading">', 'after_title' => '</p>'), 'footer-widgets' => array('name' => __('Footer Widgets', 'wm_domain'), 'id' => 'footer-widgets', 'description' => __('Masonry footer layout. Set up the columns number in theme admin panel.', 'wm_domain'), 'before_widget' => '<div class="widget %1$s %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-heading">', 'after_title' => '</h3>'), 'footer-credits' => array('name' => __('Credits Widgets', 'wm_domain'), 'id' => 'credits', 'description' => __('Credits or copyright area in the footer. Takes up to 3 widgets. When you insert 1 widget, it will be displayed fullwidth. When 2 widgets are in the area, first is displayed on left, the second on right. In case of 3 widgets in the area, first is displayed fullwidth, second and third below, on the left and on the right.', 'wm_domain'), 'before_widget' => '<div class="widget %1$s %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-heading">', 'after_title' => '</h4>'));
     /**
      * @since  Mustang Lite (removed WooCommerce specific widget areas)
      */
     if (!function_exists('wma_amplifier')) {
         unset($output['widget-areas']['topbar']);
         unset($output['widget-areas']['topbar-extra']);
         unset($output['widget-areas']['main-heading-widgets']);
         unset($output['widget-areas']['footer-credits']);
     }
     //Output
     $output = apply_filters('wmhook_wm_helper_var_output', $output);
     if (isset($output[$variable])) {
         $output = $output[$variable];
         if (isset($output[$key])) {
             $output = $output[$key];
         }
     } else {
         $output = '';
     }
     return $output;
 }