| 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 Chained Contents
* [rt_chained_contents]
* [rt_chained_content][/rt_chained_content]
* [rt_chained_content][/rt_chained_content]
* [rt_chained_content][/rt_chained_content]
* [/rt_chained_contents]
*
*/
if ( class_exists( 'WPBakeryShortCodesContainer' ) ) {
class WPBakeryShortCode_rt_chained_contents extends WPBakeryShortCodesContainer { }
}
if ( class_exists( 'WPBakeryShortCode' ) ) {
class WPBakeryShortCode_rt_chained_content extends WPBakeryShortCode { }
}
vc_map(
array(
'base' => 'rt_chained_contents',
'name' => __( 'Chained Contents','rt_theme' ),
'icon' => 'rt_theme link',
'category' => array(__( 'Content','rt_theme' ), __( 'Theme Addons','rt_theme' )),
'description' => __( 'Chained content holder','rt_theme' ),
'as_parent' => array( 'only' => 'rt_chained_content' ),
'js_view' => 'VcColumnView',
'is_container' => true,
"show_settings_on_create" => false,
'default_content' => '
[rt_chained_content icon_name="icon-rocket" title="' . __( 'Content 1','rt_theme' ) . '"]'.__('<p>I am text block. Click edit button to change this text.</p>','rt_theme').'[/rt_chained_content]
[rt_chained_content icon_name="icon-home" title="' . __( 'Content 2','rt_theme' ) . '"]'.__('<p>I am text block. Click edit button to change this text.</p>','rt_theme').'[/rt_chained_content]
',
'params' => array(
array(
'param_name' => 'style',
'heading' => __('Style','rt_theme' ),
'type' => 'dropdown',
'description' => __('Select a style','rt_theme' ),
'value' => array(
__("Small Icons",'rt_theme') => "1",
__("Small Numbers",'rt_theme') => "2",
__("Big Icons",'rt_theme') => "3",
__("Big Numbers",'rt_theme') => "4"
),
'save_always' => true
),
array(
'param_name' => 'start_from',
'heading' => __( 'Start Number','rt_theme' ),
'description' => __( 'Set a start number for the list. e.g. set 1 to have 1,2,3,.. list','rt_theme' ),
'type' => 'rt_number',
'value' => 1,
"dependency" => array(
"element" => "style",
"value" => array("2","4")
),
'save_always' => true
),
array(
'param_name' => 'align',
'heading' => __('Number/Icon Align','rt_theme' ),
'type' => 'dropdown',
'value' => array(
__("Left",'rt_theme') => "left",
__("Right",'rt_theme') => "right",
),
'save_always' => true
),
array(
'param_name' => 'font',
'heading' => _x( 'Font Family', 'Admin Panel','rt_theme' ),
'type' => 'dropdown',
"value" => array(
_x("Default", 'Admin Panel','rt_theme') => "",
_x("Heading Font", 'Admin Panel','rt_theme') => "heading-font",
_x("Body Font", 'Admin Panel','rt_theme') => "body-font",
_x("Secondary Font", 'Admin Panel','rt_theme') => "secondary-font",
_x("Menu Font", 'Admin Panel','rt_theme') => "menu-font"
),
'save_always' => true
),
array(
'param_name' => 'font_size',
'heading' => _x('Custom Font Size (px)', 'Admin Panel','rt_theme' ),
'type' => 'rt_number'
),
array(
'param_name' => 'thick_border',
"value" => array(
_x("Thick Borders", 'Admin Panel','rt_theme') => "true"
),
'type' => 'checkbox',
'save_always' => 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_chained_content',
'name' => __( 'Chained Content','rt_theme' ),
'icon' => 'rt_theme list_line sub',
'category' => __( 'Contents','rt_theme' ),
'description' => __( 'Adds a new content block to the chained content group','rt_theme' ),
'as_child' => array( 'only' => 'rt_chained_contents' ),
'content_element' => true,
'is_container' => true,
'params' => array(
array(
'param_name' => 'icon_name',
'heading' => __('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' => 'title',
'heading' => __( 'Title','rt_theme' ),
'description' => '',
'type' => 'textfield',
'holder' => 'h4',
'save_always' => true
),
array(
'param_name' => 'content',
'heading' => __( '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',
'save_always' => 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'
),
)
)
);
?>