/**
 * Enqueuing required assets
 *
 * @since    1.1
 * @version  1.2.2
 */
function wma_ve_assets()
{
    // Helper variables
    global $pagenow;
    $codes = is_callable('wma_shortcodes') ? wma_shortcodes()->get_definitions() : array('generator' => null);
    $admin_pages = apply_filters('wmhook_wmamp_' . 'generator_admin_pages', array('post.php', 'post-new.php'));
    // Requirements check
    if (empty($codes['generator']) || is_admin() && !in_array($pagenow, $admin_pages) || !is_admin() && (!class_exists('FLBuilderModel') || !FLBuilderModel::is_builder_active())) {
        return;
    }
    $post_type = get_post_type();
    $supported_post_types = array('beaver-builder' => get_option('_fl_builder_post_types') ? (array) get_option('_fl_builder_post_types') : array('page'), 'visual-composer' => get_option('wpb_js_content_types') ? (array) get_option('wpb_js_content_types') : array('page'));
    /**
     * Enqueue
     */
    /**
     * Shortcode generator: standard
     */
    // Styles
    wp_enqueue_style('wm-shortcodes-generator', WMAMP_ASSETS_URL . 'css/shortcodes-generator.css', array(), WMAMP_VERSION, 'screen');
    if (is_rtl()) {
        wp_enqueue_style('wm-shortcodes-generator-rtl', WMAMP_ASSETS_URL . 'css/rtl-shortcodes-generator.css', array(), WMAMP_VERSION, 'screen');
    }
    // Scripts: inline
    wp_localize_script('jquery', 'wmShortcodesArray', array_values(wma_ksort((array) $codes['generator'])));
    /**
     * Shortcode generator: short
     *
     * Supported in page builders.
     */
    if (!empty($codes['generator_short']) && (!is_admin() && in_array($post_type, $supported_post_types['beaver-builder']) || wma_is_active_vc() && in_array($post_type, $supported_post_types['visual-composer']))) {
        // Scripts: inline
        wp_localize_script('jquery', 'wmShortcodesArrayShort', array_values(wma_ksort((array) $codes['generator_short'])));
    }
}
Beispiel #2
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' => ''))));
 /**
  * Render admin form to upload font ZIP file
  *
  * @since    1.0
  * @version  1.3.3
  *
  * @access   public
  */
 public function admin_form()
 {
     // Helper variables
     $fonticons = get_option('wmamp-icons');
     if (isset($fonticons['icons_select'])) {
         $fonticons = wma_ksort($fonticons['icons_select']);
         $output = '<div class="wm-meta-wrap wmamp-icons-classes-list-container">';
         $output .= '<div class="box yellow">';
         $output .= '<h2>' . __('List of the recently used icons with their CSS classes:', 'webman-amplifier') . '</h2>';
         $output .= '<ol class="wmamp-icons-classes-list">';
         foreach ($fonticons as $icon => $name) {
             $output .= '<li>';
             $output .= '<i class="' . $icon . '"></i>';
             $output .= '<label><span>' . esc_html__('CSS class:', 'webman-amplifier') . '</span><input type="text" value="' . $icon . '" readonly="readonly" onfocus="this.select();" /></label>';
             $output .= '<label><span>' . esc_html__('Instant HTML:', 'webman-amplifier') . '</span><input type="text" value="' . esc_attr('<i class="' . $icon . '"></i>') . '" readonly="readonly" onfocus="this.select();" /></label>';
             $output .= '</li>';
         }
         $output .= '</ol>';
         $output .= '</div>';
         $output .= '</div>';
         $fonticons = $output;
     } else {
         $fonticons = '';
     }
     // Form fields setup
     $fields = array(array('id' => 'wmamp-font-zip', 'label' => __('Fontello ZIP package file', 'webman-amplifier'), 'button' => __('Set the file', 'webman-amplifier'), 'placeholder' => __('Fontello ZIP package file URL', 'webman-amplifier'), 'description' => sprintf(__('Upload a new icon font ZIP package generated with <a%s>Fontello.com</a>.<br />Use the default button on right to empty the input field and set the default icon font file.<br /><strong>IMPORTANT: Please do not use custom font name when creating your Fontello.com selection. Leave the field blank or use "fontello" as font name. Otherwise the font icons will not be generated.</strong>', 'webman-amplifier'), ' href="http://fontello.com/" target="_blank"'), 'default' => ''));
     // Form fields values setup
     $icon_font = get_option('wmamp-icon-font');
     $zip_file = get_option($fields[0]['id']);
     if (!is_array($zip_file) || !isset($zip_file['url']) || !trim($zip_file['url']) || !isset($zip_file['id']) || !trim($zip_file['id']) || false === stripos($zip_file['url'], '.zip')) {
         $zip_file = array('url' => '', 'id' => '');
     }
     $options = array($fields[0]['id'] => $zip_file, 'wmamp-icon-font' => trim($icon_font) ? esc_url($icon_font) : '');
     // Processing
     $output = '<div class="wrap wm-admin-wrap">';
     // Title
     $output .= '<h1>' . __('Icon Font Setup', 'webman-amplifier') . '</h1>';
     // Status messages
     $message = isset($_GET['message']) ? absint($_GET['message']) : 0;
     if (is_multisite() && false === stripos(get_site_option('upload_filetypes'), 'zip')) {
         $message = sprintf(__('<strong>You are currently on a WordPress multisite installation and ZIP file upload is disabled.</strong><br/>Go to your <a%s>Network settings page</a> and add the "zip" file extension to the list of allowed <em>"Upload file types"</em>.', 'webman-amplifier'), ' href="' . network_admin_url('settings.php') . '"');
     } elseif (1 === $message) {
         $message = __('The ZIP file was processed successfully and new icon font was set up.', 'webman-amplifier');
     } elseif (2 === $message) {
         $message = __('<strong>Error during processing of your ZIP file.</strong>', 'webman-amplifier');
     } elseif (3 === $message) {
         $message = __("<strong>Using this feature is reserved for administrators. You don't have the necessary permissions.</strong>", 'webman-amplifier');
     } elseif (4 === $message) {
         $message = __("Default icon font file was restored.", 'webman-amplifier');
     } else {
         $message = '';
     }
     // Display message box if any message sent
     if ($message) {
         $output .= '<div id="message" class="updated"><p>' . $message . '</p></div>';
     }
     // Render form
     $output .= '<form class="wm-meta-wrap" method="post" action="' . admin_url('themes.php?page=icon-font') . '">';
     $output .= '<table class="form-table">';
     // Caption
     $output .= '<caption>';
     $output .= __('Icon Font File Setup', 'webman-amplifier');
     $output .= '</caption>';
     // Save button
     $output .= '<tfoot>';
     $output .= '<tr class="padding-20"><td colspan="2">';
     // Nonce
     $output .= wp_nonce_field('icon_font', '_wpnonce', true, false);
     // Button
     $output .= '<input type="submit" name="save-icon-font" id="save-icon-font" class="button button-primary button-large" value="' . __('Save changes', 'webman-amplifier') . '" />';
     $output .= '<input type="hidden" name="action" value="wmamp-uploading-icon-font" />';
     $output .= '</td></tr>';
     $output .= '</tfoot>';
     $output .= '<tbody>';
     // Font CSS file link
     if ($options['wmamp-icon-font']) {
         $output .= '<tr class="option padding-20"><td colspan="2">';
         $output .= '<div class="box blue">' . sprintf(__('To display the icon font, please, use this CSS file: %s', 'webman-amplifier'), '<br /><code><a href="' . $options['wmamp-icon-font'] . '" target="_blank">' . $options['wmamp-icon-font'] . '</a></code>') . '</div>';
         $output .= '</td></tr>';
     }
     // Upload field
     $output .= '<tr class="option zip-wrap option-' . $fields[0]['id'] . '" data-option="' . $fields[0]['id'] . '"><th>';
     // Label
     $output .= '<label for="' . $fields[0]['id'] . '" data-id="' . $fields[0]['id'] . '">' . $fields[0]['label'] . '</label>';
     $output .= '</th><td>';
     // Input field
     $output .= '<input type="text" name="' . $fields[0]['id'] . '[url]" id="' . $fields[0]['id'] . '" value="' . $options[$fields[0]['id']]['url'] . '" class="fieldtype-zip" placeholder="' . $fields[0]['placeholder'] . '" readonly="readonly" />';
     $output .= '<input type="hidden" name="' . $fields[0]['id'] . '[id]" value="' . $options[$fields[0]['id']]['id'] . '" />';
     // Upload button
     $output .= '<a href="#" class="button button-set-zip" data-id="' . $fields[0]['id'] . '">' . $fields[0]['button'] . '</a>';
     // Description
     $output .= '<p class="description">' . $fields[0]['description'] . '</p>';
     // Default value button
     $output .= '<a data-option="' . $fields[0]['id'] . '[url]" class="button-default-value" title="' . __('Use default', 'webman-amplifier') . '"><span>' . $fields[0]['default'] . '</span></a>';
     $output .= '</td></tr>';
     $output .= '</tbody>';
     $output .= '</table>';
     $output .= '</form>';
     // Available icon classes
     $output .= '<style>';
     $output .= '.wmamp-icons-classes-list-container h2 { margin: 0 0 1.62em; font-size: 1.62em; font-weight: 300; }';
     $output .= '.wmamp-icons-classes-list { display: flex; flex-wrap: wrap; margin: 20px 0; list-style: none; counter-reset: wmamp-icons-classes-list; }';
     $output .= '.wmamp-icons-classes-list li { position: relative; display: inline-block; flex-grow: 1; padding: 10px; margin: -1px -1px 0 0; text-align: center; border: 1px dashed rgba(0,0,0, .1); vertical-align: top; overflow: hidden; counter-increment: wmamp-icons-classes-list; }';
     $output .= '.wmamp-icons-classes-list li::before { content: counter(wmamp-icons-classes-list); position: absolute; left: 0; top: 0; font-size: 20px; font-weight: 300; color: rgba(0,0,0, .33); }';
     $output .= '.wmamp-icons-classes-list:hover li { opacity: .33; }';
     $output .= '.wmamp-icons-classes-list li:hover { border-color: #111; opacity: 1; z-index: 9999; }';
     $output .= '.wmamp-icons-classes-list i { display: block; width: 54px; height: 54px; margin: 0 auto; line-height: 54px; font-size: 32px; color: #111; border-radius: 100px; }';
     $output .= '.wmamp-icons-classes-list label { margin-top: 10px; text-align: center; }';
     $output .= '.wmamp-icons-classes-list label span { display: none; font-size: .81em; }';
     $output .= '.wmamp-icons-classes-list label + label { display: none; }';
     $output .= '.wmamp-icons-classes-list li:hover label + label { display: block; }';
     $output .= '.wmamp-icons-classes-list li:hover label span { display: block; }';
     $output .= '.wmamp-icons-classes-list input { display: inline-block; width: auto; max-width: none; padding: 2px; text-align: inherit; font-size: 10px; font-weight: 700; }';
     $output .= '</style>';
     $output .= $fonticons;
     $output .= '</div>';
     // Output
     echo apply_filters('wmhook_icons_' . 'admin_form' . '_output', $output);
 }