Exemplo n.º 1
0
function om_wpb_init()
{
    vc_remove_element('vc_widget_sidebar');
    vc_remove_element('vc_basic_grid');
    vc_remove_element('vc_media_grid');
    vc_remove_element('vc_masonry_grid');
    vc_remove_element('vc_masonry_media_grid');
    /**
     * Row
     */
    vc_remove_param("vc_row", "css");
    vc_remove_param("vc_row", "parallax");
    vc_remove_param("vc_row", "parallax_image");
    $param = WPBMap::getParam('vc_row', 'full_width');
    $param['description'] = __('Please, note, that if you use "Stretch row" option you must hide the sidebar on the page to make use of this option.', 'om_theme');
    WPBMap::mutateParam('vc_row', $param);
    /*
    vc_add_param('vc_row', array(
    	'type' => 'dropdown',
    	'heading' => __('Row Layout', 'om_theme'),
    	'param_name' => 'row_layout',
    	'value' => array(
    		__('Standard', 'om_theme') => 'standard',
    		__('Background - full width, content - standard width', 'om_theme') => 'expand_standard_paddings',
    		__('Background - full width, content - full width with small paddings', 'om_theme') => 'expand_tiny_paddings',
    		__('Background - full width, content - full width with no paddings', 'om_theme') => 'expand_no_paddings',
    	),
    	'description' => __( 'Please, note, that if you use "Expand to full width" option you must hide the sidebar on the page to make use of this option.', 'om_theme' ),
    ));
    */
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Font color', 'om_theme'), 'param_name' => 'font_color', 'description' => __('Select custom font color or leave empty to use default.', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Row Background', 'om_theme'), 'param_name' => 'bg_type', 'value' => array(__('Solid Color', 'om_theme') => 'color', __('Gradient Color', 'om_theme') => 'gradient', __('Image', 'om_theme') => 'image', __('Video', 'om_theme') => 'video'), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Background color', 'om_theme'), 'param_name' => 'bg_color', 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('color', 'gradient'))));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Background color 2', 'om_theme'), 'param_name' => 'bg_color2', 'description' => __('Second color of the gradient.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('gradient'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Gradient type', 'om_theme'), 'param_name' => 'gradient_type', 'value' => array(__('Vertical', 'om_theme') . ' ↓' => 'vertical', __('Horisontal', 'om_theme') . ' →' => 'horisontal', __('Diagonal', 'om_theme') . ' ↗' => 'diagonal1', __('Diagonal', 'om_theme') . ' ↘' => 'diagonal2', __('Radial', 'om_theme') . ' o' => 'radial'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('gradient'))));
    vc_add_param('vc_row', array('type' => 'attach_image', 'heading' => __('Background image', 'om_theme'), 'param_name' => 'bg_image', 'description' => __('Select background image for the row.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('image'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Background image position', 'om_theme'), 'param_name' => 'bg_image_pos', 'value' => array_flip(om_get_bg_img_pos_options()), 'dependency' => array('element' => 'bg_image', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Background image attachment', 'om_theme'), 'param_name' => 'bg_image_att', 'value' => array(__('Scroll', 'om_theme') => 'scroll', __('Fixed', 'om_theme') => 'fixed', __('Parallax, up direction', 'om_theme') => 'parallax', __('Parallax, down direction', 'om_theme') => 'parallax_down'), 'dependency' => array('element' => 'bg_image', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('Background Video File', 'om_theme'), 'param_name' => 'bg_video_src', 'description' => __('Select background video for the row.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('video'))));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('MP4 Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_mp4', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('M4V Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_m4v', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('WebM Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_webm', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('OGV Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_ogv', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('WMV Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_wmv', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('FLV Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_flv', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Fallback background color', 'om_theme'), 'param_name' => 'bg_color_fallback', 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('video'))));
    vc_add_param('vc_row', array('type' => 'attach_image', 'heading' => __('Fallback background image', 'om_theme'), 'param_name' => 'bg_image_fallback', 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('video'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Fancy bottom edge', 'om_theme'), 'param_name' => 'fancy_edge', 'value' => array(__('No', 'om_theme') => '', __('Diagonal', 'om_theme') . ' /' => 'diagonal_left', __('Diagonal', 'om_theme') . ' \\' => 'diagonal_right', __('Corner', 'om_theme') . ' \\/' => 'corner_down', __('Corner', 'om_theme') . ' /\\' => 'corner_up'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('color'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Edge size', 'om_theme'), 'param_name' => 'fancy_edge_size', 'value' => array(__('Small', 'om_theme') => 'sm', __('Medium', 'om_theme') => 'md', __('Large', 'om_theme') => 'lg', __('X-Large', 'om_theme') => 'xlg'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'fancy_edge', 'not_empty' => true)));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Edge transient color', 'om_theme'), 'param_name' => 'fancy_edge_t_color', 'description' => __('Set this color if you want to apply transition to custom color (for instance background color of next section). Leave empty to disable transition.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'fancy_edge', 'not_empty' => true)));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Top padding', 'om_theme'), 'param_name' => 'padding_top', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Bottom padding', 'om_theme'), 'param_name' => 'padding_bottom', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Top margin', 'om_theme'), 'param_name' => 'margin_top', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Bottom margin', 'om_theme'), 'param_name' => 'margin_bottom', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textarea', 'heading' => __('Custom CSS Style', 'om_theme'), 'param_name' => 'custom_css', 'description' => __('You can add custom CSS style for the row.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    /**
     * Video
     */
    vc_add_param('vc_video', array('type' => 'dropdown', 'value' => array('2:1' => '2', '16:9' => '1.777778', 'Golden ratio (1.61)' => '1.61', '3:2' => '1.5', '4:3' => '1.333333', '1:1' => '1', '3:4' => '0.75', '2:3' => '0.666667', '9:16' => '0.5625', '1:2' => '0.5'), 'std' => '1.61', 'heading' => __('Width/Height Ratio', 'om_theme'), 'param_name' => 'ratio'));
    vc_add_param('vc_video', array('type' => 'textfield', 'heading' => __('Maximum width (pixels)', 'om_theme'), 'param_name' => 'maxwidth', 'description' => __('By default video will fit all available width, you can specify maximum width', 'js_composer')));
    /**
     * Gallery
     */
    $param = WPBMap::getParam('vc_gallery', 'type');
    unset($param['value']['Flex slider fade']);
    unset($param['value']['Flex slider slide']);
    $param['value'] = array_merge(array(__('OM slider', 'om_theme') => 'om', __('Sliced', 'om_theme') => 'sliced', __('Masonry', 'om_theme') => 'masonry'), $param['value']);
    WPBMap::mutateParam('vc_gallery', $param);
    vc_remove_param("vc_gallery", "img_size");
    vc_remove_param("vc_gallery", "el_class");
    vc_add_param('vc_gallery', array('type' => 'dropdown', 'heading' => __('Columns number', 'om_theme'), 'param_name' => 'columns', 'value' => array('1', '2', '3', '4', '5', '6', '7', '8', '9'), 'dependency' => array('element' => 'type', 'value' => array('masonry', 'image_grid'))));
    vc_add_param('vc_gallery', array('type' => 'dropdown', 'heading' => __('Images width/height ratio', 'om_theme'), 'param_name' => 'ratio', 'value' => array('2:1' => '2:1', '16:9' => '16:9', '3:2' => '3:2', '4:3' => '4:3', '1:1' => '1:1', '3:4' => '3:4', '2:3' => '2:3', '9:16' => '9:16', '1:2' => '1:2'), 'dependency' => array('element' => 'type', 'value' => array('image_grid'))));
    vc_add_param('vc_gallery', array('type' => 'checkbox', 'heading' => __('Display captions', 'om_theme'), 'param_name' => 'captions', 'value' => array(__('Yes, please', 'om_theme') => 'yes'), 'dependency' => array('element' => 'type', 'value' => array('om', 'sliced', 'masonry', 'image_grid'))));
    vc_add_param('vc_gallery', array('type' => 'checkbox', 'heading' => __('Use hi-res images', 'om_theme'), 'description' => __('Check this option of you use gallery in a row without padding and the dimendions of images is not enough. Source images also must be high resolution in this case.', 'om_theme'), 'param_name' => 'hires', 'value' => array(__('Yes, please', 'om_theme') => 'yes'), 'dependency' => array('element' => 'type', 'value' => array('sliced', 'masonry', 'image_grid'))));
    vc_add_param('vc_gallery', array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer')));
    /**
     * VC Column
     */
    $tmp = array('type' => 'dropdown', 'heading' => __('Delimiter', 'om_theme'), 'description' => __('Delimiter at right hand side, between columns.', 'om_theme'), 'param_name' => 'delimiter', 'value' => array(__('No', 'om_theme') => '', __('Vertical line', 'om_theme') => 'vline', __('Horisontal line', 'om_theme') => 'hline', __('Dot', 'om_theme') => 'dot', __('Arrow', 'om_theme') => 'rarr'));
    vc_add_param('vc_column', $tmp);
    vc_add_param('vc_column_inner', $tmp);
    /**
     * Animation
     */
    $css_animation = array('type' => 'dropdown', 'heading' => __('CSS Animation', 'js_composer'), 'param_name' => 'css_animation', 'admin_label' => true, 'value' => array(__('No', 'js_composer') => '', __('Top to bottom', 'js_composer') => 'top-to-bottom', __('Bottom to top', 'js_composer') => 'bottom-to-top', __('Left to right', 'js_composer') => 'left-to-right', __('Right to left', 'js_composer') => 'right-to-left', __('Appear from center', 'js_composer') => 'appear', __('Bounce', 'om_theme') => 'bounce', __('Zoom In', 'om_theme') => 'zoom-in', __('Zoom In Down', 'om_theme') => 'zoom-in-down', __('Zoom In Up', 'om_theme') => 'zoom-in-up', __('Zoom Out', 'om_theme') => 'zoom-out', __('Spin', 'om_theme') => 'spin', __('Spin around Left Top', 'om_theme') => 'spin-lt', __('Spin around Right Top', 'om_theme') => 'spin-rt', __('Flip', 'om_theme') => 'flip', __('Flip X', 'om_theme') => 'flip-x', __('Flip Y', 'om_theme') => 'flip-y'), 'description' => __('Select type of animation if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.', 'js_composer'));
    $css_animation_delay = array('type' => 'textfield', 'heading' => __('Delay before animation starts (milliseconds)', 'js_composer'), 'param_name' => 'css_animation_delay', 'dependency' => array('element' => 'css_animation', 'not_empty' => true));
    vc_add_param('vc_column', $css_animation);
    vc_add_param('vc_column', $css_animation_delay);
    vc_add_param('vc_column_inner', $css_animation);
    vc_add_param('vc_column_inner', $css_animation_delay);
    vc_add_param('vc_row', $css_animation);
    vc_add_param('vc_row', $css_animation_delay);
    vc_add_param('vc_row_inner', $css_animation);
    vc_add_param('vc_row_inner', $css_animation_delay);
    WPBMap::mutateParam('vc_btn', $css_animation);
    WPBMap::mutateParam('vc_column_text', $css_animation);
    WPBMap::mutateParam('vc_cta', $css_animation);
    WPBMap::mutateParam('vc_message', array_merge($css_animation, array('admin_label' => false)));
    WPBMap::mutateParam('vc_single_image', $css_animation);
    WPBMap::mutateParam('vc_toggle', $css_animation);
    /**
     * Toggle
     */
    vc_remove_param('vc_toggle', 'style');
    vc_remove_param('vc_toggle', 'color');
    vc_remove_param('vc_toggle', 'size');
    /**
     * om_icon_separator
     */
    $tmp = om_wpb_icon_params();
    $tmp = array_merge($tmp, array(array('type' => 'dropdown', 'heading' => __('Icon position', 'om_theme'), 'param_name' => 'title_align', 'value' => array(__('Align center', 'js_composer') => 'separator_align_center', __('Align left', 'js_composer') => 'separator_align_left', __('Align right', 'js_composer') => "separator_align_right"), 'description' => __('Select title location.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => 'grey', 'description' => __('Separator color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom Color', 'js_composer'), 'param_name' => 'accent_color', 'description' => __('Custom separator color for your element.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => array('custom'))), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('separator styles'), 'description' => __('Separator style.', 'js_composer')), array('type' => 'dropdown', 'value' => getVcShared('separator border widths'), 'description' => __('Border width in pixels.', 'js_composer'), 'heading' => __('Border width', 'om_theme'), 'param_name' => 'border_width'), array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('separator widths'), 'description' => __('Separator element width in percents.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer'))));
    vc_map_update('om_icon_separator', array('params' => $tmp));
    /**
     * Message box
     */
    $param = WPBMap::getParam('vc_message', 'color');
    $tmp = array();
    foreach ($param['options'] as $v) {
        if (!in_array($v['value'], array('alert-info', 'alert-warning', 'alert-success', 'alert-danger'))) {
            $tmp[] = $v;
        }
    }
    $param['options'] = $tmp;
    WPBMap::mutateParam('vc_message', $param);
    $param = WPBMap::getParam('vc_message', 'icon_type');
    $param['value'] = array_merge(array_diff($param['value'], array('pixelicons')));
    WPBMap::mutateParam('vc_message', $param);
    $param = WPBMap::getParam('vc_message', 'message_box_color');
    $param['value'] = array_merge(array_diff($param['value'], array('alert-info', 'alert-warning', 'alert-success', 'alert-danger')));
    WPBMap::mutateParam('vc_message', $param);
    vc_remove_param('vc_message', 'style');
    /**
     * Single image
     */
    $param = WPBMap::getParam('vc_single_image', 'style');
    unset($param['value']['3D Shadow']);
    WPBMap::mutateParam('vc_single_image', $param);
    $param = WPBMap::getParam('vc_single_image', 'img_size');
    $param['description'] = __('Enter image size. Example: "thumbnail", "medium", "large", "full" or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "full" size.', 'om_theme');
    WPBMap::mutateParam('vc_single_image', $param);
    /**
     * Button
     */
    $params = new OMWPBScParams('vc_btn');
    $params->remove('custom_background');
    $params->remove('custom_text');
    $params->remove('shape');
    $param = $params->get('style');
    $param['value'] = array(__('Classic', 'om_theme') => 'flat', __('Outlined', 'om_theme') => 'outline');
    $params->update($param);
    $param = $params->get('color');
    $param['value'] = array_merge(om_wpb_get_std_colors(), array(__('Custom', 'om_theme') => 'custom'));
    $param['edit_field_class'] = 'vc_col-sm-6 vc_column vc_block_clear';
    $params->update($param);
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'description' => __('Select custom color for button.', 'om_theme'), 'dependency' => array('element' => 'color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'color');
    $params->add(array('type' => 'dropdown', 'heading' => __('Hover color', 'js_composer'), 'param_name' => 'hover_color', 'description' => __('Select color for button by hover.', 'om_theme'), 'value' => array(__('Auto', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'custom_color');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom hover color', 'js_composer'), 'param_name' => 'hover_custom_color', 'dependency' => array('element' => 'hover_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'hover_color');
    $params->add(array('type' => 'dropdown', 'heading' => __('Text color', 'js_composer'), 'param_name' => 'text_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'hover_custom_color');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom text color', 'js_composer'), 'param_name' => 'text_custom_color', 'dependency' => array('element' => 'text_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'text_color');
    $params->add(array('type' => 'dropdown', 'heading' => __('Hover text color', 'js_composer'), 'param_name' => 'hover_text_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'text_custom_color');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom hover text color', 'js_composer'), 'param_name' => 'hover_text_custom_color', 'dependency' => array('element' => 'hover_text_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'hover_text_color');
    $param = $params->get('size');
    $param['value']['XLarge'] = 'xlg';
    $params->update($param);
    $params->add(array('type' => 'dropdown', 'heading' => __('Icon color', 'js_composer'), 'param_name' => 'icon_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'dependency' => array('element' => 'add_icon', 'value' => 'true'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'i_align');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom icon color', 'js_composer'), 'param_name' => 'icon_custom_color', 'dependency' => array('element' => 'icon_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'icon_color');
    $param = $params->get('i_type');
    $param['value'] = om_wpb_remove_pixel_icons($param['value']);
    $params->update($param);
    $params->add(array('type' => 'om_get_code', 'heading' => __('Get code', 'om_theme'), 'param_name' => 'code', 'description' => __('If you wish to use button shortcode somewhere out of Visual Composer or insert it into text inline, you can generate the code which you can use separately.', 'js_composer')));
    $params->save();
    /**
     * CTA Button
     */
    $params = new OMWPBScParams('vc_cta');
    $params->remove('use_custom_fonts_h2');
    $params->removeIntegratedShortcode('vc_custom_heading', 'h2_');
    $params->remove('use_custom_fonts_h4');
    $params->removeIntegratedShortcode('vc_custom_heading', 'h4_');
    $params->remove('shape');
    $params->remove('color');
    $param = $params->get('style');
    $param['value'] = array(__('Classic', 'om_theme') => 'classic', __('Outline', 'om_theme') => 'outline');
    $params->update($param);
    $param = $params->get('custom_background');
    unset($param['dependency']);
    $params->update($param);
    $param = $params->get('custom_text');
    unset($param['dependency']);
    $params->update($param);
    $param = $params->get('add_button');
    foreach ($param['value'] as $k => $v) {
        if ($v == 'top') {
            unset($param['value'][$k]);
            break;
        }
    }
    $params->update($param);
    $params->remove('add_icon');
    $params->remove('i_on_border');
    $params->removeIntegratedShortcode('vc_icon', 'i_');
    $params->save();
    /**
     * Progress Bars
     */
    vc_remove_param('vc_progress_bar', 'el_class');
    vc_add_param('vc_progress_bar', array('type' => 'dropdown', 'heading' => __('Titles color', 'js_composer'), 'param_name' => 'titles_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom')));
    vc_add_param('vc_progress_bar', array('type' => 'colorpicker', 'heading' => __('Titles custom color', 'js_composer'), 'param_name' => 'titles_custom_color', 'dependency' => array('element' => 'titles_color', 'value' => array('custom'))));
    vc_add_param('vc_progress_bar', array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer')));
    /**
     * Pie charts
     */
    vc_remove_param('vc_pie', 'el_class');
    vc_remove_param('vc_pie', 'label_value');
    vc_remove_param('vc_pie', 'units');
    vc_remove_param('vc_pie', 'color');
    vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Pie label inside circle', 'om_theme'), 'param_name' => 'label_type', 'value' => array(__('Number', 'om_theme') => 'number', __('Display widget title', 'om_theme') => 'title', __('Icon', 'om_theme') => 'icon')));
    vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Pie label value', 'js_composer'), 'param_name' => 'label_value', 'description' => __('Input integer value for label. If empty "Pie value" will be used.', 'js_composer'), 'value' => '', 'dependency' => array('element' => 'label_type', 'value' => array('number'))));
    vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Units', 'js_composer'), 'param_name' => 'units', 'description' => __('Enter measurement units (if needed) Eg. %, px, points, etc. Graph value and unit will be appended to the graph title.', 'js_composer'), 'dependency' => array('element' => 'label_type', 'value' => array('number'))));
    $tmp = om_wpb_icon_params(false, array('element' => 'label_type', 'value' => array('icon')));
    foreach ($tmp as $v) {
        vc_add_param('vc_pie', $v);
    }
    vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Bar color', 'js_composer'), 'param_name' => 'color', 'value' => array(__('Grey', 'js_composer') => 'wpb_button', __('Blue', 'js_composer') => 'btn-primary', __('Turquoise', 'js_composer') => 'btn-info', __('Green', 'js_composer') => 'btn-success', __('Orange', 'js_composer') => 'btn-warning', __('Red', 'js_composer') => 'btn-danger', __('Black', 'js_composer') => "btn-inverse", __('Custom', 'om_theme') => 'custom'), 'description' => __('Select pie chart color.', 'js_composer'), 'admin_label' => true, 'param_holder_class' => 'vc_colored-dropdown'));
    vc_add_param('vc_pie', array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'dependency' => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Width', 'js_composer'), 'param_name' => 'width', 'description' => __('Leave this field blank for auto width or specify maximum width', 'om_theme')));
    vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer')));
    /**
     * GMaps
     */
    vc_remove_param('vc_gmaps', 'link');
    vc_remove_param('vc_gmaps', 'size');
    vc_remove_param('vc_gmaps', 'el_class');
    vc_add_param('vc_gmaps', array('type' => 'textarea_safe', 'heading' => __('Map embed iframe', 'js_composer'), 'param_name' => 'link', 'description' => sprintf(__('Visit %s or %s to create your map. 1) Find location 2) Click "Share" and make sure map is public on the web 3) Copy iframe code and paste it here.', 'js_composer'), '<a href="https://maps.google.com/" target="_blank">Google maps</a>', '<a href="https://mapsengine.google.com/" target="_blank">Google Maps Engine</a>')));
    vc_add_param('vc_gmaps', array('type' => 'textfield', 'heading' => __('Map height', 'js_composer'), 'param_name' => 'size', 'admin_label' => true, 'description' => __('Enter map height in pixels. Example: 200 or leave it empty to make map responsive.', 'js_composer')));
    vc_add_param('vc_gmaps', array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer')));
    /**
     * Adding "Theme Color" option to some shortcodes.
     */
    $theme_color = array(__('Theme Hightlight Color', 'om_theme') => 'om-theme-color');
    $param = WPBMap::getParam('vc_separator', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_separator', $param);
    $param = WPBMap::getParam('vc_text_separator', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_text_separator', $param);
    $param = WPBMap::getParam('om_icon_separator', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('om_icon_separator', $param);
    $param = WPBMap::getParam('vc_single_image', 'border_color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_single_image', $param);
    $param = WPBMap::getParam('vc_btn', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_btn', $param);
    $param = WPBMap::getParam('vc_progress_bar', 'bgcolor');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_progress_bar', $param);
    $param = WPBMap::getParam('vc_pie', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_pie', $param);
    $param = WPBMap::getParam('vc_message', 'message_box_color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_message', $param);
    $param = WPBMap::getParam('vc_icon', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_icon', $param);
    $param = WPBMap::getParam('vc_icon', 'background_color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_icon', $param);
    /**
     * Update some integrated shortcodes
     */
    $params = new OMWPBScParams('vc_cta');
    $params->updateIntegratedShortcode('vc_btn', 'btn_', __('Button', 'js_composer'), false, array('element' => 'add_button', 'not_empty' => true));
    $params->remove('btn_code');
    $params->save();
}
Exemplo n.º 2
0
function om_add_common_meta_boxes(&$arr, $boxes, $prefix)
{
    $meta_boxes = array('pagetitle' => array('id' => 'pagetitle', 'name' => __('Page Title', 'om_theme'), 'fields' => array(array("name" => __('Page Title Layout', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "page_title", "type" => "select", "std" => '', 'options' => array('' => __('Default (as in Theme Options)', 'om_theme'), 'standard' => __('Standard', 'om_theme'), 'hide' => __('Hide', 'om_theme'), 'color' => __('Custom background color', 'om_theme'), 'image' => __('Custom background image', 'om_theme'), 'parallax' => __('Predefined parallax effect', 'om_theme')), 'code' => '<script>
							jQuery(function($){
								$("#' . OM_THEME_SHORT_PREFIX . 'page_title").change(function(){
									$("#' . OM_THEME_SHORT_PREFIX . 'title_align").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_margins").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_size").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_color").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_text_color").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_img").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_img_pos").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_img_att").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'title_parallax").parents("tr").hide();
									
									if($(this).val() == "standard") {
										$("#' . OM_THEME_SHORT_PREFIX . 'title_align").parents("tr").show();
									} else if($(this).val() == "color") {
										$("#' . OM_THEME_SHORT_PREFIX . 'title_align").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_margins").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_size").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_color").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_text_color").parents("tr").show();
									} else if($(this).val() == "image") {
										$("#' . OM_THEME_SHORT_PREFIX . 'title_align").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_color").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_img").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_img_pos").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_img_att").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_margins").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_size").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_text_color").parents("tr").show();
									} else if($(this).val() == "parallax") {
										$("#' . OM_THEME_SHORT_PREFIX . 'title_align").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_bg_color").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_margins").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_size").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_text_color").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'title_parallax").parents("tr").show();
									}
								}).change();
							});
						</script>'), array("name" => __('Title align', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "title_align", "type" => "select", "std" => '', 'options' => array('' => __('Left', 'om_theme'), 'center' => __('Center', 'om_theme'), 'center_bottom' => __('Center, bottom', 'om_theme'))), array("name" => __('Title margins', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "title_margins", "type" => "select", "std" => '', 'options' => array('' => __('Small', 'om_theme'), 'medium' => __('Medium', 'om_theme'), 'large' => __('Large', 'om_theme'), 'xlarge' => __('X-Large', 'om_theme'), 'xxlarge' => __('XX-Large', 'om_theme'))), array("name" => __('Title size', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "title_size", "type" => "select", "std" => '', 'options' => array('' => __('Standard', 'om_theme'), 'large' => __('Large', 'om_theme'), 'xlarge' => __('X-Large', 'om_theme'), 'xxlarge' => __('XX-Large', 'om_theme'))), array("name" => __('Title background color', 'om_theme'), "desc" => __('To automatically apply theme Hightlight color from Theme Options type "theme" or click "default"'), "id" => OM_THEME_SHORT_PREFIX . "title_bg_color", "type" => "color", "std" => 'theme'), array("name" => __('Title text color', 'om_theme'), "desc" => __('To automatically apply theme Hightlight color from Theme Options type "theme"'), "id" => OM_THEME_SHORT_PREFIX . "title_text_color", "type" => "color", "std" => '#FFFFFF'), array("name" => __('Title background image', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "title_bg_img", "type" => "text_browse", "std" => '', "library" => 'image'), array("name" => __('Title background image position', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "title_bg_img_pos", "type" => "select", "std" => '', 'options' => om_get_bg_img_pos_options()), array("name" => __('Title background image attachment', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "title_bg_img_att", "type" => "select", "std" => 'scroll', 'options' => array('scroll' => __('Scroll', 'om_theme'), 'fixed' => __('Fixed', 'om_theme'))), array("name" => __('Parallax effect', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "title_parallax", "type" => "select", "std" => '', 'options' => array('' => __('Lines', 'om_theme'), 'geometry' => __('Geometry', 'om_theme'), 'circles' => __('Circles', 'om_theme'))))), 'slider' => array('id' => 'slider', 'name' => __('Slider', 'om_theme'), 'fields' => array(array('name' => __('Choose the slider', 'om_theme'), 'desc' => '', 'id' => OM_THEME_SHORT_PREFIX . 'slider_id', 'type' => 'slider', 'std' => ''), array("name" => __('Slider layout', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "slider_layout", "type" => "select", "std" => 'full', 'options' => array('full' => __('Full width slider', 'om_theme'), 'boxed' => __('Boxed width slider', 'om_theme'), 'before_header' => __('Before Header', 'om_theme'))))), 'header' => array('id' => 'header', 'name' => __('Header', 'om_theme'), 'fields' => array(array("name" => __('Header background', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . 'header_bg', "type" => "select", "std" => 'default', 'options' => array('default' => __('Default', 'om_theme'), 'color' => __('Custom color', 'om_theme'), 'image' => __('Custom image', 'om_theme'), 'transparent' => __('Transparent (slider or page title background will be used)', 'om_theme')), 'code' => '<script>
							jQuery(function($){
								$("#' . OM_THEME_SHORT_PREFIX . 'header_bg").change(function(){
									var val=$(this).val();

									$("#' . OM_THEME_SHORT_PREFIX . 'header_bg_image").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'header_bg_image_pos").parents("tr").hide();
									$("#' . OM_THEME_SHORT_PREFIX . 'header_bg_color").parents("tr").hide();
									
									if(val == "image") {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_bg_image").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_bg_image_pos").parents("tr").show();
									} else if(val == "color") {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_bg_color").parents("tr").show();
									}
									
									if(val == "image" || val == "transparent" || val == "color") {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_menu_color").change().parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image").change().parents("tr").show();
									} else {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_menu_color").parents("tr").hide();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_menu_color_color").parents("tr").hide();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image").parents("tr").hide();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image_src").parents("tr").hide();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image_src_2x").parents("tr").hide();
									}
								}).change();
							});
						</script>'), array("name" => __('Background color', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "header_bg_color", "type" => "color", "std" => ''), array("name" => __('Background image', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "header_bg_image", "type" => "text_browse", "std" => '', "library" => 'image'), array("name" => __('Background image position', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "header_bg_image_pos", "type" => "select", "std" => 'repeat', 'options' => array('repeat' => __('Repeat', 'om_theme'), 'cover' => __('Cover', 'om_theme'))), array("name" => __('Set custom menu color', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "header_custom_menu_color", "type" => "select", "std" => '', 'options' => array('' => __('No', 'om_theme'), '1' => __('Yes', 'om_theme')), 'code' => '<script>
							jQuery(function($){
								$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_menu_color").change(function(){
									if($(this).val() == "1") {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_menu_color_color").parents("tr").show();
									} else {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_menu_color_color").parents("tr").hide();
									}
								}).change();
							});
						</script>'), array("name" => __('Custom menu color', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "header_custom_menu_color_color", "type" => "color", "std" => ''), array("name" => __('Set custom logo image', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "header_custom_logo_image", "type" => "select", "std" => '', 'options' => array('' => __('No', 'om_theme'), '1' => __('Yes', 'om_theme')), 'code' => '<script>
							jQuery(function($){
								$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image").change(function(){
									if($(this).val() == "1") {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image_src").parents("tr").show();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image_src_2x").parents("tr").show();
									} else {
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image_src").parents("tr").hide();
										$("#' . OM_THEME_SHORT_PREFIX . 'header_custom_logo_image_src_2x").parents("tr").hide();
									}
								}).change();
							});
						</script>'), array("name" => __('Custom logo image', 'om_theme'), "desc" => '', "id" => OM_THEME_SHORT_PREFIX . "header_custom_logo_image_src", "type" => "text_browse", "library" => 'image', "std" => ''), array("name" => __('Custom logo image for retina displays', 'om_theme'), "desc" => __('Double sized image for retina displays for better quality', 'om_theme'), "id" => OM_THEME_SHORT_PREFIX . "header_custom_logo_image_src_2x", "type" => "text_browse", "library" => 'image', "std" => ''))), 'sidebar' => array('id' => 'sidebar', 'name' => __('Sidebar', 'om_theme'), 'fields' => array(array("name" => __('Sidebar', 'om_theme'), "desc" => __('You can create any number of sidebars under "Appearance > Sidebars".', 'om_theme'), "id" => OM_THEME_SHORT_PREFIX . "sidebar_show", "type" => "select", "std" => '', 'options' => array('' => __('Display Sidebar', 'om_theme'), 'hide' => __('Hide Sidebar', 'om_theme'))), array('name' => __('Choose the sidebar', 'om_theme'), 'desc' => '', 'id' => OM_THEME_SHORT_PREFIX . 'sidebar', 'type' => 'sidebar', 'std' => ''), array("name" => __('Sidebar Position', 'om_theme'), "desc" => __('Sidebar position for current page.', 'om_theme'), "id" => OM_THEME_SHORT_PREFIX . "sidebar_custom_pos", "type" => "select", "std" => '', 'options' => array('' => __('Default (As in "Theme Options")', 'om_theme'), 'left' => __('Left Side', 'om_theme'), 'right' => __('Right Side', 'om_theme'))))));
    foreach ($boxes as $id) {
        if (isset($meta_boxes[$id])) {
            if ($id == 'slider') {
                if (ommb_check_slider_exists()) {
                    $arr[$id] = $meta_boxes[$id];
                    $arr[$id]['id'] = $prefix . $arr[$id]['id'];
                }
            } else {
                $arr[$id] = $meta_boxes[$id];
                $arr[$id]['id'] = $prefix . $arr[$id]['id'];
            }
        }
    }
}
Exemplo n.º 3
0
add_action('vc_before_init', 'om_wpb_add_shortcodes');
function om_wpb_add_shortcodes()
{
    /**
     * Separator with icon
     */
    vc_map(array('name' => __('Separator with Icon', 'om_theme'), 'base' => 'om_icon_separator', 'description' => __('Horisontal separator line with icon', 'om_theme'), 'icon' => 'icon-wpb-ui-separator-label', 'category' => __('Content', 'js_composer'), 'params' => array()));
    if (class_exists('WPBakeryShortCode')) {
        class WPBakeryShortCode_om_icon_separator extends WPBakeryShortCode
        {
        }
    }
    /**
     * Box
     */
    vc_map(array('name' => __('Box', 'om_theme'), 'base' => 'om_box', 'description' => __('Set border, icon, background', 'om_theme'), 'icon' => 'om-wpb-icon-box', 'category' => __('Content', 'js_composer'), 'params' => array_merge(array(array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'om_theme'), 'param_name' => 'content', 'value' => __('<p>I am text block. Click edit button to change this text.</p>', 'om_theme')), array('type' => 'textfield', 'heading' => __('Border Width', 'om_theme'), 'description' => __('Border width in pixels', 'om_theme'), 'param_name' => 'border_width', 'value' => ''), array('type' => 'dropdown', 'heading' => __('Border Style', 'om_theme'), 'param_name' => 'border_style', 'value' => array(__('Solid', 'om_theme') => 'solid', __('Dotted', 'om_theme') => 'dotted'), 'dependency' => array('element' => 'border_width', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Border Color', 'om_theme'), 'param_name' => 'border_color', 'value' => array_merge(array(__('Theme Hightlight Color', 'om_theme') => 'om-theme-color'), om_wpb_get_std_colors(), array(__('Custom', 'om_theme') => 'custom')), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'border_width', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Border Custom Color', 'om_theme'), 'param_name' => 'border_custom_color', 'value' => '', 'dependency' => array('element' => 'border_color', 'value' => array('custom'))), array('type' => 'dropdown', 'heading' => __('Background Color', 'om_theme'), 'param_name' => 'bg_color', 'value' => array_merge(array(__('None', 'om_theme') => '', __('Theme Hightlight Color', 'om_theme') => 'om-theme-color'), om_wpb_get_std_colors(), array(__('Custom', 'om_theme') => 'custom')), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Background Custom Color', 'om_theme'), 'param_name' => 'bg_custom_color', 'value' => '', 'dependency' => array('element' => 'bg_color', 'value' => array('custom'))), array('type' => 'attach_image', 'heading' => __('Background Image', 'om_theme'), 'param_name' => 'bg_image', 'value' => ''), array('type' => 'dropdown', 'heading' => __('Background Image Position', 'om_theme'), 'param_name' => 'bg_image_pos', 'value' => array_flip(om_get_bg_img_pos_options()), 'dependency' => array('element' => 'bg_image', 'not_empty' => true))), om_wpb_icon_params(true), array(array('type' => 'dropdown', 'heading' => __('Icon Style', 'om_theme'), 'param_name' => 'icon_style', 'value' => array(__('Border', 'om_theme') => 'border', __('Background', 'om_shortcodes') => 'bg'), 'dependency' => array('element' => 'icon_type', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Icon Shape', 'om_theme'), 'param_name' => 'icon_shape', 'value' => array(__('Circle', 'om_theme') => 'circle', __('Square', 'om_shortcodes') => 'square'), 'dependency' => array('element' => 'icon_type', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Text Custom Color', 'om_theme'), 'param_name' => 'text_color', 'value' => ''), array('type' => 'textfield', 'heading' => __('Certain Box Height', 'om_theme'), 'description' => __('Specify box height in pixels if you need certain height, otherwise the height will be set automatically', 'om_theme'), 'param_name' => 'height', 'value' => ''), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer'))))));
    if (class_exists('WPBakeryShortCode')) {
        class WPBakeryShortCode_om_box extends WPBakeryShortCode
        {
        }
    }
    /**
     * Counter
     */
    vc_map(array('name' => __('Counter', 'om_theme'), 'base' => 'om_counter', 'description' => __('Animated counter', 'om_theme'), 'icon' => 'om-wpb-icon-counter', 'category' => __('Content', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Number', 'om_theme'), 'description' => __('Value will be animated', 'om_theme'), 'param_name' => 'number', 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Number Prefix', 'om_theme'), 'description' => __('e.g. "$" or "up to "', 'om_theme'), 'param_name' => 'prefix', 'edit_field_class' => 'vc_col-sm-6 vc_column'), array('type' => 'textfield', 'heading' => __('Number Suffix', 'om_theme'), 'description' => __('e.g. "%"', 'om_theme'), 'param_name' => 'suffix', 'edit_field_class' => 'vc_col-sm-6 vc_column'), array('type' => 'textfield', 'heading' => __('Title', 'om_theme'), 'param_name' => 'title', 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Size', 'om_theme'), 'param_name' => 'size', 'value' => array('Small' => 'small', 'Medium' => 'medium', 'Large' => 'large', 'XLarge' => 'xlarge')), array('type' => 'dropdown', 'heading' => __('Color', 'om_theme'), 'param_name' => 'color', 'value' => array_merge(array(__('Theme Hightlight Color', 'om_theme') => 'om-theme-color'), om_wpb_get_std_colors(), array(__('Custom', 'om_theme') => 'custom')), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom Color', 'om_theme'), 'param_name' => 'custom_color', 'value' => '', 'dependency' => array('element' => 'color', 'value' => array('custom'))), array('type' => 'textfield', 'heading' => __('Animation duration', 'om_theme'), 'description' => __('value in milliseconds or 0 - to disable animation', 'om_theme'), 'param_name' => 'duration', 'value' => 2000), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer')))));
    if (class_exists('WPBakeryShortCode')) {
        class WPBakeryShortCode_om_counter extends WPBakeryShortCode
        {
        }
    }
    /**
Exemplo n.º 4
0
    function om_get_options_template($id_as_key = false)
    {
        // Set the Options Array
        $options = array();
        $options[] = array("name" => __('General settings', 'om_theme'), "type" => "heading");
        /*
        $options[] = array( "name" => "",
        					"message" => __('You can import demo content in a one click:','om_theme').' <a href="'.admin_url('tools.php?page=om_import_tool').'" class="button button-primary" style="text-shadow:none">'.__('Demo Content Import Tool &rarr;','om_theme').'</a>',
        					"type" => "intro");
        */
        $options[] = array("name" => __('Site favicon', 'om_theme'), "desc" => __('Upload an *.ico file or 16px x 16px Png/Gif image that will for your website\'s favicon.', 'om_theme'), "id" => OM_THEME_PREFIX . "favicon", "std" => "", "type" => "upload");
        $options[] = array("name" => __('Header tagline', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "header_tagline", "std" => "", "type" => "textarea", "rows" => 5);
        $options[] = array("name" => __('Sub-footer text line', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "subfooter_text", "std" => "", "type" => "textarea", "rows" => 5);
        /*										
        $options[] = array( 'name' => __('Exclude featured image from post/portfolio item page galleries', 'om_theme'),
                            'desc' => __('Check if you want to exclude image, which was chosen as featured image for post/portfolio item, from the post/portfolio item gallery on the single page', 'om_theme'),
                            'id' =>  OM_THEME_PREFIX . 'exclude_featured_image',
                            'std' => '',
                            'type' => 'checkbox');
        */
        $options[] = array('name' => __('Use lazy load for images', 'om_theme'), 'desc' => __('Check if you want to load images on scroll to the view area', 'om_theme'), 'id' => OM_THEME_PREFIX . 'lazyload', 'std' => 'true', 'type' => 'checkbox');
        /*
        $options[] = array( 'name' => __('Replace default WordPress Gallery with the Theme&#39;s custom gallery', 'om_theme'),
                            'desc' => __('Check if you want the theme to replace standard WordPress gallery', 'om_theme'),
                            'id' =>  OM_THEME_PREFIX . 'do_replace_gallery',
                            'std' => '',
                            'type' => 'checkbox');
        */
        $options[] = array('name' => __('Display search box in the header', 'om_theme'), 'desc' => __('Check if you want to display search button in the header', 'om_theme'), 'id' => OM_THEME_PREFIX . 'show_header_search', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Disable animation on touch devices', 'om_theme'), 'desc' => __('Check if you want to disable some animation effects to improve perfomance on mobile devices', 'om_theme'), 'id' => OM_THEME_PREFIX . 'no_animation_on_touch', 'std' => 'true', 'type' => 'checkbox');
        $options[] = array('name' => __('Enable animation on page transitions', 'om_theme'), 'desc' => __('Check if you want to enable animation on click, when user is moving to another page.<br/>NOTE: doesn\'t work in Safari browser.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'enable_page_out_animation', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Disable smooth scroll', 'om_theme'), 'desc' => __('Theme includes SmoothScroll library, you can check this option of you want to disable it', 'om_theme'), 'id' => OM_THEME_PREFIX . 'disable_smoothscroll', 'std' => '', 'type' => 'checkbox');
        /////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Logo', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('Site logo type', 'om_theme'), 'desc' => __('Choose what do you want to use as site logo: image or plain text.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'site_logo_type', 'std' => 'text', 'options' => array('text' => __('Plain text', 'om_theme'), 'image' => __('Image', 'om_theme'), 'none' => __('No logo', 'om_theme')), 'type' => 'radio');
        $options[] = array("name" => __('Site logo text', 'om_theme'), "desc" => __('Specify logo text, if "Plain text" Logo used.', 'om_theme'), "id" => OM_THEME_PREFIX . "site_logo_text", "std" => "Amax", "type" => "text");
        $options[] = array("name" => __('Site logo image', 'om_theme'), "desc" => __('Choose a logo for your theme, or specify the image address of your online logo (http://example.com/logo.png).', 'om_theme'), "id" => OM_THEME_PREFIX . "site_logo_image", "std" => "", "type" => "upload");
        $options[] = array("name" => __('Site logo image for retina displays (optional)', 'om_theme'), "desc" => __('Choose double sized image for retina displays for better quality', 'om_theme'), "id" => OM_THEME_PREFIX . "site_logo_image_2x", "std" => "", "type" => "upload");
        /////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Layout', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('Activate responsive mode for mobile devices', 'om_theme'), 'desc' => __('Check if you want your site to be fitted by width on mobile devices', 'om_theme'), 'id' => OM_THEME_PREFIX . 'responsive', 'std' => 'true', 'type' => 'checkbox');
        $options[] = array('name' => __('Overall layout', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'overall_layout', 'std' => 'wide', 'options' => array('wide' => __('Wide', 'om_theme'), 'boxed' => __('Boxed', 'om_theme')), 'type' => 'select2');
        $options[] = array("name" => __('Header layout', 'om_theme'), "desc" => __('Select header layout.', 'om_theme'), "id" => OM_THEME_PREFIX . "header_layout", "std" => "1", "type" => "images", "options" => array('1' => TEMPLATE_DIR_URI . '/admin/images/header-1.png', '3' => TEMPLATE_DIR_URI . '/admin/images/header-3.png', '2' => TEMPLATE_DIR_URI . '/admin/images/header-2.png'));
        $options[] = array('name' => __('Footer layout', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'footer_layout', 'std' => '1v4-1v4-1v4-1v4', 'options' => array('1v4-1v4-1v4-1v4' => __('4 Columns 1/4 + 1/4 + 1/4 + 1/4', 'om_theme'), '2v4-1v4-1v4' => __('3 Columns 2/4 + 1/4 + 1/4', 'om_theme'), '1v4-1v4-2v4' => __('3 Columns 1/4 + 1/4 + 2/4', 'om_theme'), '1v3-1v3-1v3' => __('3 Columns 1/3 + 1/3 + 1/3', 'om_theme'), '2v3-1v3' => __('2 Columns 2/3 + 1/3', 'om_theme'), '1v3-2v3' => __('2 Columns 1/3 + 2/3', 'om_theme'), '1v2-1v2' => __('2 Columns 1/2 + 1/2', 'om_theme'), '1v1' => __('1 Column', 'om_theme')), 'type' => 'select2');
        $options[] = array('name' => __('Uncovering footer', 'om_theme'), 'desc' => __('Check to enable "uncovering footer" effect', 'om_theme'), 'id' => OM_THEME_PREFIX . 'uncovering_footer', 'std' => '', 'type' => 'checkbox');
        /////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Menu', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('Menu position', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'menu_position', 'std' => 'top', 'options' => array('top' => __('At the top, not fixed', 'om_theme'), 'top_fixed' => __('Fixed on top', 'om_theme')), 'type' => 'select2');
        $options[] = array('name' => __('Display drop down symbol for menu items with sublevels', 'om_theme'), 'desc' => __('Check if you want to display drop down symbol in primary menu for items which has sublevels', 'om_theme'), 'id' => OM_THEME_PREFIX . 'show_dropdown_symbol', 'std' => 'true', 'type' => 'checkbox');
        $options[] = array('name' => __('Apply bold font style to root menu elements of primary menu', 'om_theme'), 'desc' => __('Check if you want to apply bold font style to root menu elements of primary menu', 'om_theme'), 'id' => OM_THEME_PREFIX . 'menu_bold', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Highlight active menu item', 'om_theme'), 'desc' => __('Check if you want to highlight active menu item of primary menu', 'om_theme'), 'id' => OM_THEME_PREFIX . 'menu_highlight_active', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Uppercase', 'om_theme'), 'desc' => __('Check to apply uppercase for menu items', 'om_theme'), 'id' => OM_THEME_PREFIX . 'menu_uppercase', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Enable MegaMenu addon', 'om_theme'), 'desc' => __('Check if you want to enable MegaMenu feature or uncheck if you don\'t need it or you want to use some other plugin for this purpose', 'om_theme'), 'id' => OM_THEME_PREFIX . 'menu_megamenu_active', 'std' => 'true', 'type' => 'checkbox');
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Styling', 'om_theme'), "type" => "heading");
        $options[] = array('name' => '', 'desc' => __('Apply custom styling by inline code (check this option if you have problems with styling because of styling file rewrite permissions)', 'om_theme'), 'id' => OM_THEME_PREFIX . 'use_inline_css', 'std' => '', 'type' => 'checkbox');
        $options[] = array("name" => "", "message" => __('Style Presets:', 'om_theme'), "type" => "subheader");
        $options[] = array('name' => '', 'desc' => __('Choose one of the preseted styles or create your own one', 'om_theme'), 'id' => OM_THEME_PREFIX . 'styling_presets', 'std' => unserialize('a:10:{s:5:"Basic";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#f75148";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:10:"Light Blue";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#0277bd";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:5:"Brown";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#5d4037";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:6:"Indigo";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#283593";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:5:"Green";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#2e7d32";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:11:"Light Green";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#558b2f";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:6:"Orange";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#ef6c00";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:4:"Grey";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#424242";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:4:"Lime";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#827717";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}s:11:"Deep Purple";a:25:{s:24:"om_amax_background_color";s:7:"#4c4c4c";s:22:"om_amax_background_img";s:4:"none";s:29:"om_amax_background_img_custom";s:0:"";s:22:"om_amax_background_pos";s:6:"repeat";s:25:"om_amax_background_attach";s:5:"fixed";s:31:"om_amax_background_dots_overlay";N;s:26:"om_amax_background_dimming";s:1:"0";s:32:"om_amax_background_dimming_color";s:5:"black";s:24:"om_amax_hightlight_color";s:7:"#4527a0";s:35:"om_amax_pre_header_background_color";s:7:"#ffffff";s:21:"om_amax_tagline_color";s:7:"#a3a3a3";s:33:"om_amax_social_icons_color_header";s:4:"dark";s:31:"om_amax_header_background_color";s:7:"#ffffff";s:24:"om_amax_menu_items_color";s:7:"#4d4d4d";s:30:"om_amax_menu_items_color_hover";s:7:"#000000";s:28:"om_amax_menu_sub_items_color";s:7:"#4d4d4d";s:34:"om_amax_menu_sub_items_color_hover";s:7:"#000000";s:37:"om_amax_background_main_content_color";s:7:"#ffffff";s:23:"om_amax_main_text_color";s:7:"#353535";s:23:"om_amax_side_text_color";s:7:"#b2b2b2";s:31:"om_amax_background_footer_color";s:7:"#000000";s:27:"om_amax_footer_titles_color";s:7:"#e5e5e5";s:30:"om_amax_footer_main_text_color";s:7:"#a0a0a0";s:30:"om_amax_footer_side_text_color";s:7:"#7c7c7c";s:33:"om_amax_social_icons_color_footer";s:5:"light";}}'), 'options' => array(OM_THEME_PREFIX . 'background_color', OM_THEME_PREFIX . 'background_img', OM_THEME_PREFIX . 'background_img_custom', OM_THEME_PREFIX . 'background_pos', OM_THEME_PREFIX . 'background_attach', OM_THEME_PREFIX . 'background_dots_overlay', OM_THEME_PREFIX . 'background_dimming', OM_THEME_PREFIX . 'background_dimming_color', OM_THEME_PREFIX . 'hightlight_color', OM_THEME_PREFIX . 'pre_header_background_color', OM_THEME_PREFIX . 'tagline_color', OM_THEME_PREFIX . 'social_icons_color_header', OM_THEME_PREFIX . 'header_background_color', OM_THEME_PREFIX . 'menu_items_color', OM_THEME_PREFIX . 'menu_items_color_hover', OM_THEME_PREFIX . 'menu_sub_items_color', OM_THEME_PREFIX . 'menu_sub_items_color_hover', OM_THEME_PREFIX . 'background_main_content_color', OM_THEME_PREFIX . 'main_text_color', OM_THEME_PREFIX . 'side_text_color', OM_THEME_PREFIX . 'background_footer_color', OM_THEME_PREFIX . 'footer_titles_color', OM_THEME_PREFIX . 'footer_main_text_color', OM_THEME_PREFIX . 'footer_side_text_color', OM_THEME_PREFIX . 'social_icons_color_footer'), 'type' => 'styling_presets');
        $options[] = array("name" => "", "message" => __('Overall Background (in case "Boxed" layout is enabled):', 'om_theme'), "type" => "subheader");
        $options[] = array("name" => __('Background color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "background_color", "std" => "#4c4c4c", "type" => "color");
        $options[] = array('name' => __('Background pattern', 'om_theme'), 'desc' => __('Choose one of the built-in background', 'om_theme'), 'id' => OM_THEME_PREFIX . 'background_img', 'std' => 'none', 'options' => array('none' => 'none', 'bg-1.png' => 'Pattern #1', 'bg-2.jpg' => 'Pattern #2', 'bg-3.png' => 'Pattern #3', 'bg-4.png' => 'Pattern #4', 'bg-5.png' => 'Pattern #5', 'bg-6.png' => 'Pattern #6', 'bg-7.png' => 'Pattern #7', 'bg-8.png' => 'Pattern #8', 'bg-9.png' => 'Pattern #9', 'bg-10.png' => 'Pattern #10', 'bg-11.png' => 'Pattern #11', 'bg-12.png' => 'Pattern #12', 'bg-13.png' => 'Pattern #13', 'bg-14.png' => 'Pattern #14', 'bg-15.png' => 'Pattern #15', 'bg-16.png' => 'Pattern #16', 'bg-17.png' => 'Pattern #17', 'bg-18.png' => 'Pattern #18', 'bg-19.png' => 'Pattern #19', 'bg-20.png' => 'Pattern #20', 'bg-21.png' => 'Pattern #21', 'bg-22.png' => 'Pattern #22', 'bg-23.png' => 'Pattern #23', 'bg-24.png' => 'Pattern #24', 'bg-25.png' => 'Pattern #25', 'bg-26.png' => 'Pattern #26', 'bg-27.png' => 'Pattern #27', 'bg-28.png' => 'Pattern #28', 'bg-29.png' => 'Pattern #29', 'bg-30.png' => 'Pattern #30'), 'type' => 'select2');
        $mess = '<a href="#" onclick="jQuery(\'#om_patterns_preview\').slideToggle();return false"><b>' . __('Background pattern preview', 'om_theme') . ' (+)</b></a><div id="om_patterns_preview" style="display:none">';
        for ($i = 1; $i <= 30; $i++) {
            $mess .= '<div style="width:70px;height:70px;background:url(' . TEMPLATE_DIR_URI . '/img/bg/bg-' . $i . '.png);display:inline-block;margin:0 10px 10px 0;padding:5px;">Pattern #' . $i . '</div>';
        }
        $mess .= '</div>';
        $options[] = array("name" => "", "message" => $mess, "type" => "intro");
        $options[] = array('name' => __('Custom Background image', 'om_theme'), 'desc' => __('Upload your background, or leave this field empty to choose one of the above dropdown', 'om_theme'), 'id' => OM_THEME_PREFIX . 'background_img_custom', 'std' => '', 'type' => 'upload');
        $options[] = array('name' => __('Custom Background position', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'background_pos', 'std' => 'repeat', 'options' => om_get_bg_img_pos_options(), 'type' => 'select2');
        $options[] = array('name' => __('Background attachment', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'background_attach', 'std' => 'fixed', 'options' => array('fixed' => 'Fixed', 'scroll' => 'Scroll'), 'type' => 'select2');
        $options[] = array('name' => __('Enable additional dots overlay layer', 'om_theme'), 'desc' => __('Useful for full screen background images', 'om_theme'), 'id' => OM_THEME_PREFIX . 'background_dots_overlay', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Background image dimmer (percent)', 'om_theme'), 'desc' => __('Value between 0 and 100 to dim background image. 0 - no dim, 100 - maximum dim', 'om_theme'), 'id' => OM_THEME_PREFIX . 'background_dimming', 'std' => '0', 'type' => 'text');
        $options[] = array('name' => __('Background image dimmer color', 'om_theme'), 'desc' => __('Choose the dimming color', 'om_theme'), 'id' => OM_THEME_PREFIX . 'background_dimming_color', 'std' => 'black', 'options' => array('black' => 'Black', 'white' => 'White'), 'type' => 'select2');
        $options[] = array("name" => "", "message" => __('Common:', 'om_theme'), "type" => "subheader");
        $options[] = array("name" => __('Hightlight color', 'om_theme'), "desc" => 'For highlighted blocks, text, links, controls', "id" => OM_THEME_PREFIX . "hightlight_color", "std" => "#f75148", "type" => "color");
        $options[] = array("name" => "", "message" => __('Header:', 'om_theme'), "type" => "subheader");
        $options[] = array("name" => __('Pre-Header background color', 'om_theme'), "desc" => __('Tiny block which holds tagline and socials icons if enabled', 'om_theme'), "id" => OM_THEME_PREFIX . "pre_header_background_color", "std" => "#ffffff", "type" => "color");
        $options[] = array("name" => __('Tagline color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "tagline_color", "std" => "#a3a3a3", "type" => "color");
        $options[] = array('name' => __('Social Icons color in the header', 'om_theme'), 'desc' => __('With light overall background use dark icons and vice versa.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'social_icons_color_header', 'std' => 'dark', 'options' => array('dark' => __('Dark', 'om_theme'), 'light' => __('Light', 'om_theme')), 'type' => 'select2');
        $options[] = array("name" => __('Header background color', 'om_theme'), "desc" => __('Block which holds logo and menu', 'om_theme'), "id" => OM_THEME_PREFIX . "header_background_color", "std" => "#ffffff", "type" => "color");
        $options[] = array("name" => "", "message" => __('Header menu:', 'om_theme'), "type" => "subheader");
        $options[] = array("name" => __('Menu items color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "menu_items_color", "std" => "#4d4d4d", "type" => "color");
        $options[] = array("name" => __('Menu items color by hover', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "menu_items_color_hover", "std" => "#000000", "type" => "color");
        $options[] = array("name" => __('Sub-Menu items color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "menu_sub_items_color", "std" => "#4d4d4d", "type" => "color");
        $options[] = array("name" => __('Sub-Menu items color by hover', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "menu_sub_items_color_hover", "std" => "#000000", "type" => "color");
        $options[] = array("name" => "", "message" => __('Main Content:', 'om_theme'), "type" => "subheader");
        $options[] = array("name" => __('Main content background color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "background_main_content_color", "std" => "#ffffff", "type" => "color");
        $options[] = array("name" => __('Main text color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "main_text_color", "std" => "#666666", "type" => "color");
        $options[] = array("name" => __('Side text color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "side_text_color", "std" => "#9c9c9c", "type" => "color");
        /*		                    
        		$options[] = array( "name" => __('Side text color (less inportant information)', 'om_theme'),
        		                    "desc" => '',
        		                    "id" => OM_THEME_PREFIX."side_text_color2",
        		                    "std" => "#dedede",
        		                    "type" => "color");
        */
        /*
        		$options[] = array( 'name' => __('Main content panes background transparency', 'om_theme'),
        		                    'desc' => __('Value between 0 and 100. 0 - opaque, 100 - transparent', 'om_theme'),
        		                    'id' =>  OM_THEME_PREFIX . 'background_main_content_opacity',
        		                    'std' => '0',
        		                    'type' => 'text');
        */
        /*		                    
        		$options[] = array( "name" => '',
        		                    "desc" => __('Check this option if you chose dark background for content panes (needed for adjusting few blocks)', 'om_theme'),
        		                    "id" => OM_THEME_PREFIX."content_panes_dark_bg",
        		                    "std" => "",
        		                    "type" => "checkbox");
        */
        /*
        		$options[] = array( "name" => __('Sidebar panes background color', 'om_theme'),
        		                    "desc" => '',
        		                    "id" => OM_THEME_PREFIX."background_sidebar_color",
        		                    "std" => "#ffffff",
        		                    "type" => "color");
        */
        $options[] = array("name" => "", "message" => __('Footer:', 'om_theme'), "type" => "subheader");
        $options[] = array("name" => __('Footer background color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "background_footer_color", "std" => "#4c4c4c", "type" => "color");
        $options[] = array("name" => __('Footer titles color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "footer_titles_color", "std" => "#e5e5e5", "type" => "color");
        $options[] = array("name" => __('Footer text color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "footer_main_text_color", "std" => "#a0a0a0", "type" => "color");
        $options[] = array("name" => __('Footer side text color', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "footer_side_text_color", "std" => "#7c7c7c", "type" => "color");
        /*		                    
        		$options[] = array( "name" => __('Footer hightlight color', 'om_theme'),
        		                    "desc" => 'For highlighted text, links, controls',
        		                    "id" => OM_THEME_PREFIX."footer_hightlight_color",
        		                    "std" => "#2bb08f",
        		                    "type" => "color");
        */
        $options[] = array('name' => __('Social Icons color in the footer', 'om_theme'), 'desc' => __('With light footer background use dark icons and vice versa.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'social_icons_color_footer', 'std' => 'light', 'options' => array('dark' => __('Dark', 'om_theme'), 'light' => __('Light', 'om_theme')), 'type' => 'select2');
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Fonts', 'om_theme'), "type" => "heading");
        /*							
        		$options[] = array( "name" => __('Uppercase', 'om_theme'),
        		                    "desc" => __('Use uppercase for titles and some blocks', 'om_theme'),
        		                    "id" => OM_THEME_PREFIX."titles_uppercase",
        		                    "std" => "true",
        		                    "type" => "checkbox");
        */
        $options[] = array('name' => __('Base font', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'base_font', 'std' => array('type' => 'standard', 'standard' => array('family' => 'Arial')), 'options' => array('Arial' => 'Arial', 'Times New Roman' => 'Times New Roman', 'Verdana' => 'Verdana', 'Tahoma' => 'Tahoma', 'Courier' => 'Courier', 'Courier New' => 'Courier New', 'Georgia' => 'Georgia', 'Impact' => 'Impact', 'Lucida Console' => 'Lucida Console', 'Trebuchet MS' => 'Trebuchet MS'), 'type' => 'font');
        $options[] = array('name' => __('Highlight font', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'sec_font', 'std' => array('type' => 'google', 'google' => array('family' => 'Open Sans')), 'options' => array('Arial' => 'Arial', 'Times New Roman' => 'Times New Roman', 'Verdana' => 'Verdana', 'Tahoma' => 'Tahoma', 'Courier' => 'Courier', 'Courier New' => 'Courier New', 'Georgia' => 'Georgia', 'Impact' => 'Impact', 'Lucida Console' => 'Lucida Console', 'Trebuchet MS' => 'Trebuchet MS'), 'type' => 'font');
        $options[] = array('name' => __('Primary menu font', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'menu_font', 'std' => array('type' => 'google', 'google' => array('family' => 'Open Sans')), 'options' => array('Arial' => 'Arial', 'Times New Roman' => 'Times New Roman', 'Verdana' => 'Verdana', 'Tahoma' => 'Tahoma', 'Courier' => 'Courier', 'Courier New' => 'Courier New', 'Georgia' => 'Georgia', 'Impact' => 'Impact', 'Lucida Console' => 'Lucida Console', 'Trebuchet MS' => 'Trebuchet MS'), 'type' => 'font');
        $tmp = array();
        for ($i = 80; $i <= 160; $i++) {
            $tmp[$i] = $i . '%';
        }
        $options[] = array('name' => __('Font scaling', 'om_theme'), 'desc' => __('You can scale all font sizes in the theme by this selector', 'om_theme'), 'id' => OM_THEME_PREFIX . 'font_scale', 'std' => '100', 'options' => $tmp, 'type' => 'select2');
        unset($tmp);
        $tmp = array();
        for ($i = 1; $i < 3.01; $i += 0.05) {
            $tmp[] = sprintf('%01.2f', $i);
        }
        $options[] = array('name' => __('Text Line Height', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'line_height', 'std' => '1.60', 'options' => $tmp, 'type' => 'select');
        unset($tmp);
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Comments', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('Hide comments block on pages', 'om_theme'), 'desc' => __('Check if you want to hide comments block on single pages. To hide comments on post pages and portfolio - see sections "Post options" and "Portfolio options"', 'om_theme'), 'id' => OM_THEME_PREFIX . 'hide_comments_page', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Hide comments block on the post pages', 'om_theme'), 'desc' => __('Check if you want to hide comments block on the post pages.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'hide_comments_post', 'std' => '', 'type' => 'checkbox');
        if (isset($GLOBALS['omPortfolioPlugin'])) {
            $options[] = array('name' => __('Hide comments block on the portfolio pages', 'om_theme'), 'desc' => __('Check if you want to hide comments block on the portfolio pages.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'hide_comments_portfolio', 'std' => '', 'type' => 'checkbox');
        }
        $options[] = array("name" => "", "message" => __('Facebook comments', 'om_theme'), "type" => "subheader");
        $options[] = array('name' => __('Moderator Facebook user ID', 'om_theme'), 'desc' => __('The easiest way to moderate comments - insert Facebook user ID who can moderate comments. To add multiple moderators, separate the uids by comma without spaces.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'fb_comments_admin_id', 'std' => '', 'type' => 'text');
        $options[] = array('name' => __('Your Facebook application ID', 'om_theme'), 'desc' => __('Second way to moderate comments - insert Facebook application ID. You will be able to moderate comments with Facebook Comment Moderation Tool <a href="http://developers.facebook.com/tools/comments" target="_blank">http://developers.facebook.com/tools/comments</a>', 'om_theme'), 'id' => OM_THEME_PREFIX . 'fb_comments_app_id', 'std' => '', 'type' => 'text');
        $options[] = array('name' => __('Number of posts to display by default', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'fb_comments_count', 'std' => '2', 'type' => 'text');
        $options[] = array('name' => __('Facebook comments color scheme', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'fb_comments_color', 'std' => '', 'options' => array('' => 'Light', 'dark' => 'Dark'), 'type' => 'select2');
        $options[] = array('name' => __('Show Facebook comments on pages', 'om_theme'), 'desc' => __('Check to show Facebook comments block on single pages', 'om_theme'), 'id' => OM_THEME_PREFIX . 'fb_comments_page', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Show Facebook comments on post pages', 'om_theme'), 'desc' => __('Check to show Facebook comments block on single post pages', 'om_theme'), 'id' => OM_THEME_PREFIX . 'fb_comments_post', 'std' => '', 'type' => 'checkbox');
        if (isset($GLOBALS['omPortfolioPlugin'])) {
            $options[] = array('name' => __('Show Facebook comments on portfolio pages', 'om_theme'), 'desc' => __('Check to show Facebook comments block on single portfolio pages', 'om_theme'), 'id' => OM_THEME_PREFIX . 'fb_comments_portfolio', 'std' => '', 'type' => 'checkbox');
        }
        $options[] = array('name' => __('Position of Facebook comments', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'fb_comments_position', 'std' => '', 'options' => array('' => 'Before Wordrpess Comments', 'after' => 'After Wordpress Comments'), 'type' => 'select2');
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Page titles', 'om_theme'), "type" => "heading");
        $options[] = array("name" => "", "message" => __('You can set default page titles layout here. Also it\'s possible to set custom page title layout for a specific page when edit it.', 'om_theme'), "type" => "intro");
        $options[] = array("name" => __('Page Title Layout', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_page_title", "type" => "select2", "std" => 'standard', 'options' => array('standard' => __('Standard', 'om_theme'), 'hide' => __('Hide', 'om_theme'), 'color' => __('Custom background color', 'om_theme'), 'image' => __('Custom background image', 'om_theme'), 'parallax' => __('Predefined parallax effect', 'om_theme')), 'code' => '<script>
						jQuery(function($){
							$("#' . OM_THEME_PREFIX . 'default_page_title").change(function(){
								$("#' . OM_THEME_PREFIX . 'default_title_align").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_margins").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_size").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_bg_color").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_text_color").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_bg_img").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_bg_img_pos").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_bg_img_att").parents(".om-options-section").hide();
								$("#' . OM_THEME_PREFIX . 'default_title_parallax").parents(".om-options-section").hide();
								
								if($(this).val() == "standard") {
									$("#' . OM_THEME_PREFIX . 'default_title_align").parents(".om-options-section").show();
								} else if($(this).val() == "color") {
									$("#' . OM_THEME_PREFIX . 'default_title_align").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_margins").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_size").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_bg_color").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_text_color").parents(".om-options-section").show();
								} else if($(this).val() == "image") {
									$("#' . OM_THEME_PREFIX . 'default_title_align").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_bg_color").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_bg_img").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_bg_img_pos").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_bg_img_att").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_margins").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_size").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_text_color").parents(".om-options-section").show();
								} else if($(this).val() == "parallax") {
									$("#' . OM_THEME_PREFIX . 'default_title_align").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_bg_color").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_margins").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_size").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_text_color").parents(".om-options-section").show();
									$("#' . OM_THEME_PREFIX . 'default_title_parallax").parents(".om-options-section").show();
								}
							}).change();
						});
					</script>');
        $options[] = array("name" => __('Title align', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_title_align", "type" => "select2", "std" => '', 'options' => array('' => __('Left', 'om_theme'), 'center' => __('Center', 'om_theme'), 'center_bottom' => __('Center, bottom', 'om_theme')));
        $options[] = array("name" => __('Title margins', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_title_margins", "type" => "select2", "std" => '', 'options' => array('' => __('Small', 'om_theme'), 'medium' => __('Medium', 'om_theme'), 'large' => __('Large', 'om_theme'), 'xlarge' => __('X-Large', 'om_theme'), 'xxlarge' => __('XX-Large', 'om_theme')));
        $options[] = array("name" => __('Title size', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_title_size", "type" => "select2", "std" => '', 'options' => array('' => __('Standard', 'om_theme'), 'large' => __('Large', 'om_theme'), 'xlarge' => __('X-Large', 'om_theme'), 'xxlarge' => __('XX-Large', 'om_theme')));
        $options[] = array("name" => __('Title background color', 'om_theme'), "desc" => __('To automatically apply theme Hightlight color from Theme Options type "theme" or click "default"'), "id" => OM_THEME_PREFIX . "default_title_bg_color", "type" => "color", "std" => 'theme');
        $options[] = array("name" => __('Title text color', 'om_theme'), "desc" => __('To automatically apply theme Hightlight color from Theme Options type "theme"'), "id" => OM_THEME_PREFIX . "default_title_text_color", "type" => "color", "std" => '#FFFFFF');
        $options[] = array("name" => __('Title background image', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_title_bg_img", "type" => "upload", "std" => '', "library" => 'image');
        $options[] = array("name" => __('Title background image position', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_title_bg_img_pos", "type" => "select2", "std" => '', 'options' => om_get_bg_img_pos_options());
        $options[] = array("name" => __('Title background image attachment', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_title_bg_img_att", "type" => "select2", "std" => 'scroll', 'options' => array('scroll' => __('Scroll', 'om_theme'), 'fixed' => __('Fixed', 'om_theme')));
        $options[] = array("name" => __('Parallax effect', 'om_theme'), "desc" => '', "id" => OM_THEME_PREFIX . "default_title_parallax", "type" => "select2", "std" => '', 'options' => array('' => __('Lines', 'om_theme'), 'geometry' => __('Geometry', 'om_theme'), 'circles' => __('Circles', 'om_theme')));
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Blog options', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('Excerpt mode', 'om_theme'), 'desc' => __('&lt;!--more--&gt; tag can be inserted with "Insert More Tag" button at the toolbar pane. Custom excerpt field can be enabled under "Screen options - Excerpt" when you edit the post', 'om_theme'), 'id' => OM_THEME_PREFIX . 'blog_excerpt_mode', 'std' => 'more', 'options' => array('more' => __('Excerpt separated by &lt;!--more--&gt; tag or set by custom excerpt field', 'om_theme'), 'auto' => __('Excerpt generated automatically if not set by custom excerpt field', 'om_theme')), 'type' => 'select2');
        $options[] = array('name' => __('Auto excerpt length', 'om_theme'), 'desc' => __('Specify the length of excerpt in number of words, if the automatically generated excerpt chosen above', 'om_theme'), 'id' => OM_THEME_PREFIX . 'blog_excerpt_length', 'std' => '30', 'type' => 'text');
        $options[] = array('name' => __('Hide post author', 'om_theme'), 'desc' => __('Check, if you want to hide post author name', 'om_theme'), 'id' => OM_THEME_PREFIX . 'post_hide_author', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Hide post categories', 'om_theme'), 'desc' => __('Check, if you want to hide post categories', 'om_theme'), 'id' => OM_THEME_PREFIX . 'post_hide_categories', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Hide post tags', 'om_theme'), 'desc' => __('Check, if you want to hide post tags', 'om_theme'), 'id' => OM_THEME_PREFIX . 'post_hide_tags', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Hide post date', 'om_theme'), 'desc' => __('Check, if you want to hide post date', 'om_theme'), 'id' => OM_THEME_PREFIX . 'post_hide_date', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Hide comments counter', 'om_theme'), 'desc' => __('Check, if you want to hide post comments counter', 'om_theme'), 'id' => OM_THEME_PREFIX . 'post_hide_comments', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Show featured image on the post page', 'om_theme'), 'desc' => __('Check to show the featured image at the beginning of the post on the single post page', 'om_theme'), 'id' => OM_THEME_PREFIX . 'post_single_show_thumb', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Previous/next navigation links', 'om_theme'), 'desc' => __('Show previous/next links on post pages', 'om_theme'), 'id' => OM_THEME_PREFIX . 'show_prev_next_post', 'std' => '', 'type' => 'checkbox');
        $options[] = array('name' => __('Pagination mode', 'om_theme'), 'desc' => __('Choose the pagination mode for blog (number of posts per page can be set under "Settings - Reading")', 'om_theme'), 'id' => OM_THEME_PREFIX . 'blog_pagination', 'std' => '', 'options' => array('' => __('Older/Newer links', 'om_theme'), 'pages' => __('Links to pages (1, 2, 3, ...)', 'om_theme')), 'type' => 'select2');
        $options[] = array("name" => "", "message" => __('Archive/Category Options', 'om_theme'), "type" => "subheader");
        $options[] = array('name' => __('Pull sidebar/slider settings for Archive/Category pages from page:', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'archive_category_page_settings', 'std' => '', 'type' => 'select-page');
        $options[] = array("name" => "", "message" => __('Frontpage displays latest posts', 'om_theme'), "type" => "subheader");
        $options[] = array('name' => __('Pull sidebar/slider settings for Frontpage from page:', 'om_theme'), 'desc' => __('Use this option if Frontpage displays latest posts', 'om_theme'), 'id' => OM_THEME_PREFIX . 'front_page_settings', 'std' => '', 'type' => 'select-page');
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Lightbox', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('PrettyPhoto Lightbox', 'om_theme'), 'desc' => __('Check to show navigation chain', 'om_theme'), 'id' => OM_THEME_PREFIX . 'prettyphoto_lightbox', 'std' => 'enabled', 'options' => array('enabled' => __('Use Lightbox for images and galleries', 'om_theme'), 'disabled' => __('Disable Lightbox', 'om_theme'), 'disabled_no_action' => __('Disable Lightbox and disable click on image in galleries', 'om_theme')), 'type' => 'select2');
        $options[] = array('name' => '', 'desc' => __('Show title', 'om_theme'), 'id' => OM_THEME_PREFIX . 'prettyphoto_show_title', 'std' => 'true', 'type' => 'checkbox');
        $options[] = array('name' => '', 'desc' => __('Show social buttons', 'om_theme'), 'id' => OM_THEME_PREFIX . 'prettyphoto_social_tools', 'std' => 'false', 'type' => 'checkbox');
        $options[] = array('name' => '', 'desc' => __('Overlay gallery on the fullscreen image on mouse over', 'om_theme'), 'id' => OM_THEME_PREFIX . 'prettyphoto_overlay_gallery', 'std' => 'false', 'type' => 'checkbox');
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Breadcrumbs', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('Show breadcrumbs', 'om_theme'), 'desc' => __('Check to show navigation chain', 'om_theme'), 'id' => OM_THEME_PREFIX . 'show_breadcrumbs', 'std' => 'true', 'type' => 'checkbox');
        $options[] = array('name' => __('Breadcrumbs caption', 'om_theme'), 'desc' => '', 'id' => OM_THEME_PREFIX . 'breadcrumbs_caption', 'std' => '', 'type' => 'text');
        $options[] = array('name' => __('Current page title', 'om_theme'), 'desc' => __('Check to include current page title to breadcrumbs', 'om_theme'), 'id' => OM_THEME_PREFIX . 'breadcrumbs_show_current', 'std' => '', 'type' => 'checkbox');
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Sidebars', 'om_theme'), "type" => "heading");
        $options[] = array("name" => __('Sidebar position', 'om_theme'), "desc" => __('Select sidebar alignment.', 'om_theme'), "id" => OM_THEME_PREFIX . "sidebar_position", "std" => "right", "type" => "images", "options" => array('right' => TEMPLATE_DIR_URI . '/admin/images/2cr.png', 'left' => TEMPLATE_DIR_URI . '/admin/images/2cl.png'));
        /*						
        		$options[] = array( "name" => "",
        							"message" => __('You can set the number of available alternative sidebars, set them up at the "Appearance > Widgets" section and choose for every page one of them at the page settings.','om_theme'),
        							"type" => "intro");
        							
        		$options[] = array( "name" => __('Number of alternative sidebars','om_theme'),
        					"desc" => '',
        					"id" => OM_THEME_PREFIX."sidebars_num",
        					"std" => "3",
        					"type" => "text");
        */
        $options[] = array("name" => __('Sidebar sliding', 'om_theme'), "desc" => __('Check to enable sidebar sliding up and down when it\'s height less than page content height.', 'om_theme'), "id" => OM_THEME_PREFIX . "sidebar_sliding", "std" => "true", "type" => "checkbox");
        $options[] = array("name" => __('Sidebar delay before sliding', 'om_theme'), "desc" => __('Value in milliseconds', 'om_theme'), "id" => OM_THEME_PREFIX . "sidebar_sliding_delay", "std" => "1200", "type" => "text");
        $options[] = array("name" => '', "message" => '<b>' . sprintf(__('You can create new sidebars on <a href="%s">Appearance &gt; Sidebars</a> page', 'om_theme'), admin_url('themes.php?page=om_sidebars')) . '</b>', "type" => "note");
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Social icons', 'om_theme'), "type" => "heading");
        $options[] = array("name" => __('Social icons in the header', 'om_theme'), "desc" => __('Check to display social icons in the header.', 'om_theme'), "id" => OM_THEME_PREFIX . 'social_icons_header', "std" => "true", "type" => "checkbox");
        $options[] = array("name" => __('Social icons in the footer', 'om_theme'), "desc" => __('Check to display social icons in the footer.', 'om_theme'), "id" => OM_THEME_PREFIX . 'social_icons_footer', "std" => "true", "type" => "checkbox");
        $options[] = array("name" => '', "message" => __('Specify necessary links and icons will be shown in the header. Note, that link should begins with http://', 'om_theme'), "type" => "intro");
        $options[] = array("name" => '', "message" => '<b>' . sprintf(__('You can set order of icons for the front page <a href="%s">here</a>', 'om_theme'), admin_url('options.php?page=social_icons_sort')) . '</b>', "type" => "note");
        $icons = om_social_icons_list();
        foreach ($icons as $k => $v) {
            $options[] = array('name' => $v . ' ' . __('link', 'om_theme'), 'id' => OM_THEME_PREFIX . 'social_' . $k, 'std' => '', 'type' => 'text');
        }
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Sliders', 'om_theme'), "type" => "heading");
        $options[] = array("name" => "", "message" => __('LayerSlider', 'om_theme'), "type" => "subheader");
        if (isset($GLOBALS['lsPluginVersion']) || defined('LS_PLUGIN_VERSION')) {
            $options[] = array("name" => "", "message" => sprintf(__('LayerSlider can be deactivated via <a href="%s">plugins manager tool</a>.', 'om_theme'), admin_url('plugins.php')), "type" => "note");
        } else {
            $options[] = array("name" => "", "message" => sprintf(__('LayerSlider can be installed and activated via <a href="%s">theme plugins manager tool</a>.', 'om_theme'), admin_url('themes.php?page=install-required-plugins')), "type" => "note");
        }
        $options[] = array("name" => "", "message" => __('Revolution slider', 'om_theme'), "type" => "subheader");
        if (class_exists('RevSlider')) {
            $options[] = array("name" => "", "message" => sprintf(__('Revolution slider can be deactivated via <a href="%s">plugins manager tool</a>.', 'om_theme'), admin_url('plugins.php')), "type" => "note");
        } else {
            $options[] = array("name" => "", "message" => sprintf(__('Revolution slider can be installed and activated via <a href="%s">theme plugins manager tool</a>.', 'om_theme'), admin_url('themes.php?page=install-required-plugins')), "type" => "note");
        }
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Visual Composer', 'om_theme'), "type" => "heading");
        if (om_wpb_activated()) {
            $options[] = array("name" => "", "message" => sprintf(__('Visual Composer can be deactivated via <a href="%s">plugins manager tool</a>.', 'om_theme'), admin_url('plugins.php')), "type" => "note");
            $options[] = array('name' => 'Deactivate Visual Composer Theme`s Addons', 'desc' => __('Check this option if you want to deactivate all addons and modifications, provided by the Theme. It can be handy, if you want to use some other addon for Visual Composer, but it cause a conflict.', 'om_theme'), 'id' => OM_THEME_PREFIX . 'disable_wpb_addons', 'std' => '', 'type' => 'checkbox');
        } else {
            $options[] = array("name" => "", "message" => sprintf(__('Visual Composer can be installed and activated via <a href="%s">theme plugins manager tool</a>.', 'om_theme'), admin_url('themes.php?page=install-required-plugins')), "type" => "note");
        }
        ////////////////////////////////////////////////////////////
        /*
        $options[] = array( "name" => __('Theme updates','om_theme'),
                            "type" => "heading");
        
        $options[] = array( "name" => "",
        						"message" => __('If you want to receive notifications about new Theme versions in WordPress Dashboard, please, specify your ThemeForest(Envato) username and API key below.','om_theme'),
        						"type" => "note");		                    
        						
        $options[] = array( 'name' => __('Your ThemeForest(Envato) username', 'om_theme'),
                            'desc' => '',
                            'id' =>  OM_THEME_PREFIX . 'envato_username',
                            'std' => '',
                            'type' => 'text');
                            
        $options[] = array( 'name' => __('Your ThemeForest(Envato) API key', 'om_theme'),
                            'desc' => '',
                            'id' =>  OM_THEME_PREFIX . 'envato_api',
                            'std' => '',
                            'type' => 'text');
        */
        ////////////////////////////////////////////////////////////
        $options[] = array("name" => __('Extra code blocks, counters', 'om_theme'), "type" => "heading");
        $options[] = array('name' => __('Code block for custom CSS', 'om_theme'), 'desc' => __('Here you can add custom CSS code', 'om_theme'), 'id' => OM_THEME_PREFIX . 'code_custom_css', 'std' => '', 'rows' => '20', 'type' => 'textarea');
        $options[] = array('name' => __('Google Analytics Tracking ID', 'om_theme'), 'desc' => __('Specify your Tracking ID to enable Google Analytics.<br/>NOTE: you don\'t need to insert whole tracking code, only Tracking ID (UA-XXXXXXXX)', 'om_theme'), 'id' => OM_THEME_PREFIX . 'google_tracking_id', 'std' => '', 'type' => 'text');
        /*		                    
        		$options[] = array( 'name' => __('Code block before &lt;/head&gt;', 'om_theme'),
        		                    'desc' => __('Here you can add Google.Analytics code', 'om_theme'),
        		                    'id' =>  OM_THEME_PREFIX . 'code_before_head',
        		                    'std' => '',
        		                    'type' => 'textarea');
        		                    
        		$options[] = array( 'name' => __('Code block before &lt;/body&gt;', 'om_theme'),
        		                    'desc' => '',
        		                    'id' =>  OM_THEME_PREFIX . 'code_before_body',
        		                    'std' => '',
        		                    'type' => 'textarea');
        		                    
        		$options[] = array( 'name' => __('Code block after page header (&lt;/H1&gt;)', 'om_theme'),
        		                    'desc' => '',
        		                    'id' =>  OM_THEME_PREFIX . 'code_after_page_h1',
        		                    'std' => '',
        		                    'type' => 'textarea');
        
        		$options[] = array( 'name' => __('Code block after page content', 'om_theme'),
        		                    'desc' => '',
        		                    'id' =>  OM_THEME_PREFIX . 'code_after_page_content',
        		                    'std' => '',
        		                    'type' => 'textarea');
        		                    
        		$options[] = array( 'name' => __('Code block after post header (&lt;/H1&gt;) on the single page', 'om_theme'),
        		                    'desc' => '',
        		                    'id' =>  OM_THEME_PREFIX . 'code_after_post_h1',
        		                    'std' => '',
        		                    'type' => 'textarea');
        
        		$options[] = array( 'name' => __('Code block after post content on the single page', 'om_theme'),
        		                    'desc' => '',
        		                    'id' =>  OM_THEME_PREFIX . 'code_after_post_content',
        		                    'std' => '',
        		                    'type' => 'textarea');
        
        		if(isset($GLOBALS['omPortfolioPlugin'])) {		                    
        			$options[] = array( 'name' => __('Code block after portfolio header (&lt;/H1&gt;) on the single page', 'om_theme'),
        			                    'desc' => '',
        			                    'id' =>  OM_THEME_PREFIX . 'code_after_portfolio_h1',
        			                    'std' => '',
        			                    'type' => 'textarea');
        	
        			$options[] = array( 'name' => __('Code block after portfolio content on the single page', 'om_theme'),
        			                    'desc' => '',
        			                    'id' =>  OM_THEME_PREFIX . 'code_after_portfolio_content',
        			                    'std' => '',
        			                    'type' => 'textarea');
        
        			$options[] = array( 'name' => __('Code block after portfolio description on the single page', 'om_theme'),
        			                    'desc' => '',
        			                    'id' =>  OM_THEME_PREFIX . 'code_after_portfolio_description',
        			                    'std' => '',
        			                    'type' => 'textarea');
        
        		}
        */
        if (defined('ICL_SITEPRESS_VERSION')) {
            $options[] = array("name" => __('WPML', 'om_theme'), "type" => "heading");
            $options[] = array('name' => '', 'desc' => __('Display WPML language selector in the header', 'om_theme'), 'id' => OM_THEME_PREFIX . 'show_wpml_language_selector', 'std' => '', 'type' => 'checkbox');
        }
        /* IF WPML PLUGIN INSTALLED */
        /*
        global $sitepress;
        if(defined('ICL_SITEPRESS_VERSION') && isset($sitepress) && $sitepress->get_default_language()) {
        	$active_languages = $sitepress->get_active_languages();
        	if(!empty($active_languages)) {
        		$options_new=array();
        		foreach($options as $k=>$v) {
        			if($v['type'] == 'form_fields') {
        				$v['mode']='toggle';
        				$v_=$v;
        				$v_['name'].=' ('.@$active_languages[$sitepress->get_default_language()]['display_name'].')';
        				$options_new[]=$v_;
        
        				foreach($active_languages as $lang=>$lang_arr) {
        					if($lang != $sitepress->get_default_language()) {
        						$v_=$v;
        						$v_['id'].='_'.$lang;
        						$v_['name'].=' ('.$lang_arr['display_name'].')';
        						$options_new[]=$v_;
        					}
        				}
        			} else {
        				$options_new[]=$v;
        			}
        		}
        		$options=$options_new;
        	}
        }
        */
        /* /IF WPML PLUGIN INSTALLED */
        if ($id_as_key) {
            $options_ = array();
            foreach ($options as $v) {
                if (isset($v['id'])) {
                    $options_[$v['id']] = $v;
                }
            }
            $options = $options_;
        }
        return $options;
    }