| 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 Image Gallery
* [rt_image_gallery]
* [rt_gal_item][/rt_gal_item]
* [rt_gal_item][/rt_gal_item]
* [rt_gal_item][/rt_gal_item]
* [/rt_image_gallery]
*
*/
if ( class_exists( 'WPBakeryShortCodesContainer' ) ) {
class WPBakeryShortCode_rt_image_gallery extends WPBakeryShortCodesContainer { }
}
if ( class_exists( 'WPBakeryShortCode' ) ) {
class WPBakeryShortCode_rt_gal_item extends WPBakeryShortCode { }
}
vc_map(
array(
'base' => 'rt_image_gallery',
'name' => __( 'Image Gallery Grid','rt_theme' ),
'icon' => 'rt_theme img_gallery_grid',
'category' => array(__( 'Content','rt_theme' ), __( 'Theme Addons','rt_theme' )),
'description' => __( 'Image gallery holder','rt_theme' ),
'as_parent' => array( 'only' => 'rt_gal_item' ),
'js_view' => 'VcColumnView',
'content_element' => true,
"show_settings_on_create" => false,
'params' => array(
array(
'param_name' => 'list_layout',
'heading' => __( 'Layout','rt_theme' ),
"description" => __("Column layout for the list",'rt_theme'),
'type' => 'dropdown',
"value" => array(
"1/6" => "1/6",
"1/4" => "1/4",
"1/3" => "1/3",
"1/2" => "1/2",
"1/1" => "1/1"
),
'save_always' => true
),
array(
'param_name' => 'crop',
'heading' => __('Crop','rt_theme' ),
'type' => 'checkbox',
"value" => array(
__("Crop Images",'rt_theme') => "true",
),
'save_always' => true
),
array(
'param_name' => 'tooltips',
'heading' => __('Tooltips','rt_theme' ),
'type' => 'checkbox',
"value" => array(
__("Enable Tooltips",'rt_theme') => "true",
),
'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_gal_item',
'name' => __( 'Image','rt_theme' ),
'icon' => 'code',
'category' => __( 'Contents','rt_theme' ),
'description' => __( 'Adds a new content block to the chained content group','rt_theme' ),
'as_child' => array( 'only' => 'rt_image_gallery' ),
'content_element' => true,
'params' => array(
array(
'param_name' => 'image_id',
'heading' => __('Image','rt_theme' ),
'description' => __('Select an image','rt_theme' ),
'type' => 'attach_image',
'holder' => 'img',
'value' => '',
),
array(
'param_name' => 'title',
'heading' => __( 'Title','rt_theme' ),
'description' => '',
'type' => 'textfield',
'holder' => 'h4',
),
array(
'param_name' => 'content',
'heading' => __( 'Caption','rt_theme' ),
'description' => '',
'type' => 'textarea_html',
'holder' => 'div',
'value' => __( '<p>Optional caption text</p>','rt_theme' ),
'holder' => 'div',
'save_always' => true
),
//link
array(
'param_name' => 'action',
'heading' => __('Action','rt_theme' ),
'type' => 'dropdown',
'value' => array(
__("Open orginal image in a lightbox",'rt_theme') => "lightbox",
__("Link the thumbnail to the custom link",'rt_theme') => "custom_link",
__("No link",'rt_theme') => "no_link",
),
'save_always' => true
),
//link
array(
'param_name' => 'custom_link',
'heading' => __('Custom Link','rt_theme' ),
'type' => 'textfield',
'value' => '',
"dependency" => array(
"element" => "action",
"value" => array("custom_link")
),
),
array(
'param_name' => 'link_target',
'heading' => __('Link Target','rt_theme' ),
'type' => 'dropdown',
"value" => array(
__("Same Tab",'rt_theme') => "_self",
__("New Tab",'rt_theme') => "_blank",
),
"dependency" => array(
"element" => "action",
"value" => array("custom_link")
),
'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'
),
)
)
);
?>