<?php /* * * Column * [Column] * */ vc_map_update('vc_column', array('icon' => 'content-band', 'category' => array(__('Structure', 'rt_theme_admin'), __('Theme Addons', 'rt_theme_admin')))); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_color_set', 'heading' => __('Column Color Scheme', 'rt_theme_admin'), 'description' => __('Select a color scheme for the column.', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Global", "rt_theme_admin") => "global-style", __("Color Set 1", "rt_theme_admin") => "default-style", __("Color Set 2", "rt_theme_admin") => "alt-style-1", __("Color Set 3", "rt_theme_admin") => "alt-style-2", __("Color Set 4", "rt_theme_admin") => "light-style"))); //remove vc_column params rt_vc_remove_param('vc_column', array('bg_color', 'font_color', 'padding', 'margin_bottom', 'bg_image', 'bg_image_repeat', 'el_class', 'css')); rt_vc_remove_param('vc_column_inner', array('bg_color', 'font_color', 'padding', 'margin_bottom', 'bg_image', 'bg_image_repeat', 'el_class', 'css')); //column general options rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'id', 'heading' => __('ID', 'rt_theme_admin'), 'description' => __('Unique ID', 'rt_theme_admin'), 'type' => 'textfield', 'value' => '')); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'class', 'heading' => __('Class', 'rt_theme_admin'), 'description' => __('CSS Class Name', 'rt_theme_admin'), 'type' => 'textfield')); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_padding_top', 'heading' => __('Padding Top', 'rt_theme_admin'), 'description' => __('Set padding top value (px)', 'rt_theme_admin'), 'type' => 'rt_number')); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_padding_bottom', 'heading' => __('Padding Bottom', 'rt_theme_admin'), 'description' => __('Set padding bottom value (px)', 'rt_theme_admin'), 'type' => 'rt_number')); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_padding_left', 'heading' => __('Padding Left', 'rt_theme_admin'), 'description' => __('Set padding left value (px)', 'rt_theme_admin'), 'type' => 'rt_number')); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_padding_right', 'heading' => __('Padding Right', 'rt_theme_admin'), 'description' => __('Set padding right value (px)', 'rt_theme_admin'), 'type' => 'rt_number')); //column background options rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_bg_image', 'heading' => __('Background Image', 'rt_theme_admin'), 'description' => __('Select a background image', 'rt_theme_admin'), 'type' => 'attach_image', 'group' => __('Background Options', 'rt_theme_admin'), 'value' => '')); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_bg_color', 'heading' => __('Background Color', 'rt_theme_admin'), 'description' => __('Select a background color for the content row', 'rt_theme_admin'), 'type' => 'colorpicker', 'group' => __('Background Options', 'rt_theme_admin'))); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_bg_image_repeat', 'heading' => __('Background Repeat', 'rt_theme_admin'), 'description' => __('Select and set repeat mode direction for the background image.', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Tile", "rt_theme_admin") => "repeat", __("Tile Horizontally", "rt_theme_admin") => "repeat-x", __("Tile Vertically", "rt_theme_admin") => "repeat-y", __("No Repeat", "rt_theme_admin") => "no-repeat"), 'group' => __('Background Options', 'rt_theme_admin'), 'save_always' => true)); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_bg_size', 'heading' => __('Background Image Size', 'rt_theme_admin'), 'description' => __('Select and set size / coverage behaviour for the background image.', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Auto", "rt_theme_admin") => "auto auto", __("Cover", "rt_theme_admin") => "cover", __("Contain", "rt_theme_admin") => "contain", __("100%", "rt_theme_admin") => "100% auto", __("50%", "rt_theme_admin") => "50% auto", __("25%", "rt_theme_admin") => "25% auto"), 'group' => __('Background Options', 'rt_theme_admin'), 'save_always' => true)); rt_vc_add_param(array('vc_column', 'vc_column_inner'), array('param_name' => 'rt_bg_attachment', 'heading' => __('Background Attachment', 'rt_theme_admin'), 'description' => __('Select and set fixed or scroll mode for the background image.', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Scroll", "rt_theme_admin") => "scroll", __("Fixed", "rt_theme_admin") => "fixed"), 'group' => __('Background Options', 'rt_theme_admin'), 'save_always' => true));
<?php /* * * Seperator * */ vc_map_update('vc_separator', array('category' => array(__('Content', 'rt_theme_admin'), __('Theme Addons', 'rt_theme_admin')))); //remove vc_row params rt_vc_remove_param('vc_separator', array('color', 'el_width', 'el_class', 'style', 'accent_color', 'border_width', 'align')); vc_add_param('vc_separator', array('param_name' => 'style', 'heading' => __('Style', 'rt_theme_admin'), 'description' => __('Select a style', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Style One - Three Circle", "rt_theme_admin") => "style-1", __("Style Two - Small Left Aligned Line", "rt_theme_admin") => "style-2", __("Style Three - With Down Arrow", "rt_theme_admin") => "style-3", __("Style Four - Classic One Line", "rt_theme_admin") => "style-4", __("Style Five - Double Line", "rt_theme_admin") => "style-5", __("Style Six - Small Center Aligned Line", "rt_theme_admin") => "style-6"), 'save_always' => true)); vc_add_param('vc_separator', array('param_name' => 'margin_top', 'heading' => __('Margin Top', 'rt_theme_admin'), 'description' => __('Set margin top value (px) Default is 40px', 'rt_theme_admin'), 'type' => 'rt_number')); vc_add_param('vc_separator', array('param_name' => 'margin_bottom', 'heading' => __('Margin Bottom', 'rt_theme_admin'), 'description' => __('Set margin bottom value (px) Default is 40px', 'rt_theme_admin'), 'type' => 'rt_number')); vc_add_param('vc_separator', array('param_name' => 'id', 'heading' => __('ID', 'rt_theme_admin'), 'description' => __('Unique ID', 'rt_theme_admin'), 'type' => 'textfield', 'value' => '')); vc_add_param('vc_separator', array('param_name' => 'class', 'heading' => __('Class', 'rt_theme_admin'), 'description' => __('CSS Class Name', 'rt_theme_admin'), 'type' => 'textfield'));
<?php rt_vc_remove_param('vc_accordion', array('title', 'interval', 'el_class', 'collapsible', 'active_tab', 'disable_keyboard')); vc_map_update('vc_accordion', array('default_content' => ' [vc_accordion_tab title="' . __('Content 1', 'rt_theme_admin') . '"][vc_column_text]' . __('I am text block. Click edit button to change this text.', 'rt_theme_admin') . '[/vc_column_text][/vc_accordion_tab] [vc_accordion_tab title="' . __('Content 2', 'rt_theme_admin') . '"][vc_column_text]' . __('I am text block. Click edit button to change this text.', 'rt_theme_admin') . '[/vc_column_text][/vc_accordion_tab] ', 'category' => array(__('Content', 'rt_theme_admin'), __('Theme Addons', 'rt_theme_admin')))); vc_add_param('vc_accordion', array('param_name' => 'style', 'heading' => __('Accordion Style', 'rt_theme_admin'), 'type' => 'dropdown', 'description' => __('Select an accordion content style', 'rt_theme_admin'), "value" => array(__("Numbered", "rt_theme_admin") => "numbered", __("With Icons", "rt_theme_admin") => "icons", __("Captions Only", "rt_theme_admin") => "only_captions"), 'save_always' => true)); vc_add_param('vc_accordion', array('param_name' => 'first_one_open', 'heading' => __('First content', 'rt_theme_admin'), 'description' => __('Keep the first section opened when the page loaded.', 'rt_theme_admin'), 'type' => 'checkbox', "value" => array(__("First one open", "rt_theme_admin") => "true"), 'save_always' => true)); vc_add_param('vc_accordion', array('param_name' => 'id', 'heading' => __('ID', 'rt_theme_admin'), 'description' => __('Unique ID', 'rt_theme_admin'), 'type' => 'textfield', 'value' => '')); vc_add_param('vc_accordion', array('param_name' => 'class', 'heading' => __('Class', 'rt_theme_admin'), 'description' => __('CSS Class Name', 'rt_theme_admin'), 'type' => 'textfield')); rt_vc_remove_param('vc_accordion_tab', array('title')); vc_add_param('vc_accordion_tab', array('param_name' => 'title', 'heading' => __('Title', 'rt_theme_admin'), 'description' => __('Accordion Title', 'rt_theme_admin'), 'type' => 'textfield', 'value' => __('Accordion Title', 'rt_theme_admin'), 'save_always' => true)); vc_add_param('vc_accordion_tab', array('param_name' => 'icon_name', 'heading' => __('Accordion Icon', 'rt_theme_admin'), 'description' => __('Click inside the field to select an icon or type the icon name', 'rt_theme_admin'), 'type' => 'textfield', 'class' => 'icon_selector')); vc_add_param('vc_accordion_tab', array('param_name' => 'id', 'heading' => __('ID', 'rt_theme_admin'), 'description' => __('Unique ID', 'rt_theme_admin'), 'type' => 'textfield', 'value' => '')); vc_add_param('vc_accordion_tab', array('param_name' => 'class', 'heading' => __('Class', 'rt_theme_admin'), 'description' => __('CSS Class Name', 'rt_theme_admin'), 'type' => 'textfield')); /* * * RT Accordions * [rt_accordion] * [rt_accordion_content][/rt_accordion_content] * [rt_accordion_content][/rt_accordion_content] * [rt_accordion_content][/rt_accordion_content] * [/rt_accordion] * */ if (class_exists('WPBakeryShortCodesContainer')) { class WPBakeryShortCode_rt_accordion extends WPBakeryShortCodesContainer { } }
<?php vc_map_update('vc_tabs', array('category' => array(__('Content', 'rt_theme_admin'), __('Theme Addons', 'rt_theme_admin')))); rt_vc_remove_param('vc_tabs', array('title', 'interval', 'el_class')); vc_add_param('vc_tabs', array('param_name' => 'tabs_style', 'heading' => __('Tab Style', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Horizontal Tabs", "rt_theme_admin") => "style-1", __("Left Vertical Tabs", "rt_theme_admin") => "style-2", __("Right Vertical Tabs", "rt_theme_admin") => "style-3"), 'save_always' => true)); vc_add_param('vc_tabs', array('param_name' => 'id', 'heading' => __('ID', 'rt_theme_admin'), 'description' => __('Unique ID', 'rt_theme_admin'), 'type' => 'textfield', 'value' => '')); vc_add_param('vc_tabs', array('param_name' => 'class', 'heading' => __('Class', 'rt_theme_admin'), 'description' => __('CSS Class Name', 'rt_theme_admin'), 'type' => 'textfield')); rt_vc_remove_param('vc_tab', array('title', 'tab_id')); vc_add_param('vc_tab', array('param_name' => 'title', 'heading' => __('Title', 'rt_theme_admin'), 'description' => __('Tab Title', 'rt_theme_admin'), 'type' => 'textfield', 'value' => __('Tab Title', 'rt_theme_admin'), 'save_always' => true)); vc_add_param('vc_tab', array('param_name' => 'icon_name', 'heading' => __('Tab Icon', 'rt_theme_admin'), 'description' => __('Click inside the field to select an icon or type the icon name', 'rt_theme_admin'), 'type' => 'textfield', 'class' => 'icon_selector')); vc_add_param('vc_tab', array('param_name' => 'id', 'heading' => __('ID', 'rt_theme_admin'), 'description' => __('Unique ID', 'rt_theme_admin'), 'type' => 'textfield', 'value' => '')); vc_add_param('vc_tab', array('param_name' => 'class', 'heading' => __('Class', 'rt_theme_admin'), 'description' => __('CSS Class Name', 'rt_theme_admin'), 'type' => 'textfield')); /* * * RT Tabs * [rt_tabs] * [rt_tab][/rt_tab] * [rt_tab][/rt_tab] * [rt_tab][/rt_tab] * [/rt_tabs] * */ if (class_exists('WPBakeryShortCodesContainer')) { class WPBakeryShortCode_rt_tabs extends WPBakeryShortCodesContainer { } } if (class_exists('WPBakeryShortCode')) { class WPBakeryShortCode_rt_tab extends WPBakeryShortCode { }
<?php /* * * Rows * */ vc_map_update('vc_row', array('category' => array(__('Structure', 'rt_theme_admin'), __('Theme Addons', 'rt_theme_admin')))); //remove vc_row params rt_vc_remove_param('vc_row', array('video_bg', 'video_bg_url', 'video_bg_parallax', 'full_width', 'bg_color', 'font_color', 'padding', 'margin_bottom', 'bg_image', 'bg_image_repeat', 'el_class', 'css', 'parallax', 'parallax_image', 'el_id', 'gap')); //general options vc_add_param('vc_row', array('param_name' => 'rt_row_background_width', 'heading' => __('Row Background Width', 'rt_theme_admin'), 'description' => __('Select a pre-defined width for the row background', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Default Width", "rt_theme_admin") => "default", __("Full Width", "rt_theme_admin") => "fullwidth"), 'save_always' => true)); vc_add_param('vc_row', array('param_name' => 'rt_row_content_width', 'heading' => __('Row Content Width', 'rt_theme_admin'), 'description' => __('Select a pre-defined width for the row content', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Default Width", "rt_theme_admin") => "default", __("Full Width", "rt_theme_admin") => "fullwidth"), "dependency" => array("element" => "rt_row_background_width", "value" => array("fullwidth")), 'save_always' => true)); vc_add_param('vc_row', array('param_name' => 'rt_row_style', 'heading' => __('Row Style', 'rt_theme_admin'), 'description' => __('Select a color scheme for the row.', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Color Set 1", "rt_theme_admin") => "default-style", __("Color Set 2", "rt_theme_admin") => "alt-style-1", __("Color Set 3", "rt_theme_admin") => "alt-style-2", __("Color Set 4", "rt_theme_admin") => "light-style"), 'save_always' => true)); vc_add_param('vc_row_inner', array('param_name' => 'rt_row_style', 'heading' => __('Row Style', 'rt_theme_admin'), 'description' => __('Select a color scheme for the row.', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Global", "rt_theme_admin") => "global-style", __("Color Set 1", "rt_theme_admin") => "default-style", __("Color Set 2", "rt_theme_admin") => "alt-style-1", __("Color Set 3", "rt_theme_admin") => "alt-style-2", __("Color Set 4", "rt_theme_admin") => "light-style"), 'save_always' => true)); vc_add_param('vc_row', array('param_name' => 'rt_row_borders', 'heading' => __('Row Borders', 'rt_theme_admin'), 'type' => 'checkbox', "value" => array(__("Top Border", "rt_theme_admin") => "top", __("Bottom Border", "rt_theme_admin") => "bottom"), 'save_always' => true)); vc_add_param('vc_row', array('param_name' => 'rt_overlap', 'heading' => __('Overlap', 'rt_theme_admin'), 'type' => 'checkbox', "value" => array(__("Overlap to the previous row", "rt_theme_admin") => "true"))); vc_add_param('vc_row', array('param_name' => 'rt_grid', 'heading' => __('Grid View', 'rt_theme_admin'), 'type' => 'checkbox', "value" => array(__("Display the columns as a grid with borders.", "rt_theme_admin") => "true"))); vc_add_param('vc_row', array('param_name' => 'rt_row_height', 'heading' => __('Minimum Row Height', 'rt_theme_admin'), 'description' => __('You can set a minimum height for the row', 'rt_theme_admin'), 'type' => 'rt_number')); vc_add_param('vc_row', array('param_name' => 'rt_row_paddings', 'heading' => __('Paddings', 'rt_theme_admin'), 'description' => __('Remove/add paddings (gaps) around the row.', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Add Paddings", "rt_theme_admin") => "true", __("No Paddings", "rt_theme_admin") => "false"), 'group' => __('Paddings', 'rt_theme_admin'), 'save_always' => true)); vc_add_param('vc_row', array('param_name' => 'rt_padding_top', 'heading' => __('Padding Top', 'rt_theme_admin'), 'description' => __('Set padding top value (px) Default is 20px', 'rt_theme_admin'), 'type' => 'rt_number', 'group' => __('Paddings', 'rt_theme_admin'), "dependency" => array("element" => "rt_row_paddings", "value" => array("true")))); vc_add_param('vc_row', array('param_name' => 'rt_padding_bottom', 'heading' => __('Padding Bottom', 'rt_theme_admin'), 'description' => __('Set padding bottom value (px) Default is 20px', 'rt_theme_admin'), 'type' => 'rt_number', 'group' => __('Paddings', 'rt_theme_admin'), "dependency" => array("element" => "rt_row_paddings", "value" => array("true")))); vc_add_param('vc_row', array('param_name' => 'rt_padding_left', 'heading' => __('Padding Left', 'rt_theme_admin'), 'description' => __('Set padding left value (px) Default is 10px', 'rt_theme_admin'), 'type' => 'rt_number', 'group' => __('Paddings', 'rt_theme_admin'), "dependency" => array("element" => "rt_row_paddings", "value" => array("true")))); vc_add_param('vc_row', array('param_name' => 'rt_padding_right', 'heading' => __('Padding Right', 'rt_theme_admin'), 'description' => __('Set padding right value (px) Default is 10px', 'rt_theme_admin'), 'type' => 'rt_number', 'group' => __('Paddings', 'rt_theme_admin'), "dependency" => array("element" => "rt_row_paddings", "value" => array("true")))); vc_add_param('vc_row', array('param_name' => 'id', 'heading' => __('ID', 'rt_theme_admin'), 'description' => __('Unique ID', 'rt_theme_admin'), 'type' => 'textfield', 'value' => '')); vc_add_param('vc_row', array('param_name' => 'class', 'heading' => __('Class', 'rt_theme_admin'), 'description' => __('CSS Class Name', 'rt_theme_admin'), 'type' => 'textfield')); //background options vc_add_param('vc_row', array('param_name' => 'rt_bg_image', 'heading' => __('Background Image', 'rt_theme_admin'), 'description' => __('Select a background image', 'rt_theme_admin'), 'type' => 'attach_image', 'group' => __('Background Options', 'rt_theme_admin'), 'value' => '')); vc_add_param('vc_row', array('param_name' => 'rt_bg_effect', 'heading' => __('Background Effect', 'rt_theme_admin'), 'description' => __('Select the background effect', 'rt_theme_admin'), 'type' => 'dropdown', "value" => array(__("Classic", "rt_theme_admin") => "classic", __("Parallax Image", "rt_theme_admin") => "parallax"), 'group' => __('Background Options', 'rt_theme_admin'), 'save_always' => true)); vc_add_param('vc_row', array('param_name' => 'rt_bg_color', 'heading' => __('Background Color', 'rt_theme_admin'), 'description' => __('Select a background color for the content row', 'rt_theme_admin'), 'type' => 'colorpicker', 'group' => __('Background Options', 'rt_theme_admin'))); vc_add_param('vc_row', array('param_name' => 'rt_bg_overlay_color', 'heading' => __('Background Overlay Color', 'rt_theme_admin'), 'description' => __('Select a overlay color for the background. It is useful when you have a background image or background video. Select a transparent color.', 'rt_theme_admin'), 'type' => 'colorpicker', 'group' => __('Background Options', 'rt_theme_admin')));