| Server IP : 216.250.13.251 / Your IP : 216.73.217.37 Web Server : nginx/1.24.0 System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : root ( 0) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/gunay/wp-content/plugins/rt19-extentions/inc/editor/ |
Upload File : |
<?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' ) . '"][vc_column_text]'.__('I am text block. Click edit button to change this text.','rt_theme').'[/vc_column_text][/vc_accordion_tab]
[vc_accordion_tab title="' . __( 'Content 2','rt_theme' ) . '"][vc_column_text]'.__('I am text block. Click edit button to change this text.','rt_theme').'[/vc_column_text][/vc_accordion_tab]
',
'category' => array(__( 'Content' ,'rt_theme' ), __( 'Theme Addons','rt_theme' )),
));
vc_add_param( 'vc_accordion', array(
'param_name' => 'style',
'heading' => __('Accordion Style','rt_theme' ),
'type' => 'dropdown',
'description' => __('Select an accordion content style','rt_theme' ),
"value" => array(
__("Numbered",'rt_theme') => "numbered",
__("With Icons",'rt_theme') => "icons",
__("Captions Only",'rt_theme') => "only_captions"
),
'save_always' => true
));
vc_add_param( 'vc_accordion', array(
'param_name' => 'first_one_open',
'heading' => __('First content','rt_theme' ),
'description' => __('Keep the first section opened when the page loaded.','rt_theme' ),
'type' => 'checkbox',
"value" => array(
__("First one open",'rt_theme') => "true",
),
'save_always' => true
));
vc_add_param( 'vc_accordion', array(
'param_name' => 'id',
'heading' => __('ID','rt_theme' ),
'description' => __('Unique ID','rt_theme' ),
'type' => 'textfield',
'value' => ''
));
vc_add_param( 'vc_accordion', array(
'param_name' => 'class',
'heading' => __('Class','rt_theme' ),
'description' => __('CSS Class Name','rt_theme' ),
'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' ),
'description' => __('Accordion Title','rt_theme' ),
'type' => 'textfield',
'value' => __( 'Accordion Title','rt_theme' ),
'save_always' => true
));
vc_add_param( 'vc_accordion_tab', array(
'param_name' => 'icon_name',
'heading' => __('Accordion Icon','rt_theme' ),
'description' => __('Click inside the field to select an icon or type the icon name','rt_theme' ),
'type' => 'textfield',
'class' => 'icon_selector',
));
vc_add_param( 'vc_accordion_tab', array(
'param_name' => 'id',
'heading' => __('ID','rt_theme' ),
'description' => __('Unique ID','rt_theme' ),
'type' => 'textfield',
'value' => ''
));
vc_add_param( 'vc_accordion_tab', array(
'param_name' => 'class',
'heading' => __('Class','rt_theme' ),
'description' => __('CSS Class Name','rt_theme' ),
'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 { }
}
if ( class_exists( 'WPBakeryShortCode' ) ) {
class WPBakeryShortCode_rt_accordion_content extends WPBakeryShortCode { }
}
vc_map(
array(
'base' => 'rt_accordion',
'name' => __( 'Accordions','rt_theme' ),
'icon' => 'rt_theme accordion',
'category' => array(__( 'Content','rt_theme' ), __( 'Theme Addons','rt_theme' )),
'description' => __( 'Accordion content holder','rt_theme' ),
'as_parent' => array( 'only' => 'rt_accordion_content' ),
'js_view' => 'VcColumnView',
'content_element' => true,
'is_container' => true,
"show_settings_on_create" => false,
'default_content' => '
[rt_accordion_content title="' . __( 'Content 1','rt_theme' ) . '"]'.__('I am text block. Click edit button to change this text.','rt_theme').'[/rt_accordion_content]
[rt_accordion_content title="' . __( 'Content 2','rt_theme' ) . '"]'.__('I am text block. Click edit button to change this text.','rt_theme').'[/rt_accordion_content]
',
'params' => array(
array(
'param_name' => 'style',
'heading' => __('Accordion Style','rt_theme' ),
'type' => 'dropdown',
'description' => __('Select an accordion content style','rt_theme' ),
"value" => array(
__("Numbered",'rt_theme') => "numbered",
__("With Icons",'rt_theme') => "icons",
__("Captions Only",'rt_theme') => "only_captions"
),
),
array(
'param_name' => 'first_one_open',
'heading' => __('First content','rt_theme' ),
'description' => __('Keep the first section opened when the page loaded.','rt_theme' ),
'type' => 'checkbox',
"value" => array(
__("First one open",'rt_theme') => "true",
),
),
array(
'param_name' => 'id',
'heading' => __('ID','rt_theme' ),
'description' => __('Unique ID','rt_theme' ),
'type' => 'textfield',
'value' => ''
),
array(
'param_name' => 'class',
'heading' => __('Class','rt_theme' ),
'description' => __('CSS Class Name','rt_theme' ),
'type' => 'textfield'
),
)
)
);
vc_map(
array(
'base' => 'rt_accordion_content',
'name' => __( 'Accordion Content','rt_theme' ),
'icon' => 'rt_theme accordion-content',
'category' => __( 'Contents','rt_theme' ),
'description' => __( 'Adds a new section to a accordion content.','rt_theme' ),
'as_child' => array( 'only' => 'rt_accordion' ),
'content_element' => true,
'params' => array(
array(
'param_name' => 'title',
'heading' => __('Title','rt_theme' ),
'description' => __('Accordion Title','rt_theme' ),
'type' => 'textfield',
'value' => __( 'Accordion Title','rt_theme' ),
),
array(
'param_name' => 'content',
'heading' => __( 'Accordion Content','rt_theme' ),
'description' => '',
'type' => 'textarea_html',
'holder' => 'div',
'value' => __( 'I am text block. Click edit button to change this text.','rt_theme' ),
'holder' => 'div',
),
array(
'param_name' => 'icon_name',
'heading' => __('Accordion Icon','rt_theme' ),
'description' => __('Click inside the field to select an icon or type the icon name','rt_theme' ),
'type' => 'textfield',
'class' => 'icon_selector',
),
array(
'param_name' => 'id',
'heading' => __('ID','rt_theme' ),
'description' => __('Unique ID','rt_theme' ),
'type' => 'textfield',
'value' => ''
),
array(
'param_name' => 'class',
'heading' => __('Class','rt_theme' ),
'description' => __('CSS Class Name','rt_theme' ),
'type' => 'textfield'
),
)
)
);
?>