REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 12.54 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/trx_utils/shortcodes/trx_optional/toggles.php
Text
Base64
<?php /* Theme setup section -------------------------------------------------------------------- */ if (!function_exists('planmyday_sc_toggles_theme_setup')) { add_action( 'planmyday_action_before_init_theme', 'planmyday_sc_toggles_theme_setup' ); function planmyday_sc_toggles_theme_setup() { add_action('planmyday_action_shortcodes_list', 'planmyday_sc_toggles_reg_shortcodes'); if (function_exists('planmyday_exists_visual_composer') && planmyday_exists_visual_composer()) add_action('planmyday_action_shortcodes_list_vc','planmyday_sc_toggles_reg_shortcodes_vc'); } } /* Shortcode implementation -------------------------------------------------------------------- */ if (!function_exists('planmyday_sc_toggles')) { function planmyday_sc_toggles($atts, $content=''){ if (planmyday_in_shortcode_blogger()) return ''; extract(planmyday_html_decode(shortcode_atts(array( // Individual params "counter" => "off", "icon_closed" => "icon-plus", "icon_opened" => "icon-minus", // Common params "id" => "", "class" => "", "animation" => "", "css" => "", "top" => "", "bottom" => "", "left" => "", "right" => "" ), $atts))); $class .= ($class ? ' ' : '') . planmyday_get_css_position_as_classes($top, $right, $bottom, $left); planmyday_storage_set('sc_toggle_data', array( 'counter' => 0, 'show_counter' => planmyday_param_is_on($counter), 'icon_closed' => empty($icon_closed) || planmyday_param_is_inherit($icon_closed) ? "icon-plus" : $icon_closed, 'icon_opened' => empty($icon_opened) || planmyday_param_is_inherit($icon_opened) ? "icon-minus" : $icon_opened ) ); wp_enqueue_script('jquery-effects-slide', false, array('jquery','jquery-effects-core'), null, true); $output = '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="sc_toggles' . (!empty($class) ? ' '.esc_attr($class) : '') . (planmyday_param_is_on($counter) ? ' sc_show_counter' : '') . '"' . (!planmyday_param_is_off($animation) ? ' data-animation="'.esc_attr(planmyday_get_animation_classes($animation)).'"' : '') . ($css!='' ? ' style="'.esc_attr($css).'"' : '') . '>' . do_shortcode($content) . '</div>'; return apply_filters('planmyday_shortcode_output', $output, 'trx_toggles', $atts, $content); } add_shortcode('trx_toggles', 'planmyday_sc_toggles'); } if (!function_exists('planmyday_sc_toggles_item')) { function planmyday_sc_toggles_item($atts, $content='') { if (planmyday_in_shortcode_blogger()) return ''; extract(planmyday_html_decode(shortcode_atts( array( // Individual params "title" => "", "open" => "", "icon_closed" => "", "icon_opened" => "", // Common params "id" => "", "class" => "", "css" => "" ), $atts))); planmyday_storage_inc_array('sc_toggle_data', 'counter'); if (empty($icon_closed) || planmyday_param_is_inherit($icon_closed)) $icon_closed = planmyday_storage_get_array('sc_toggles_data', 'icon_closed', '', "icon-plus"); if (empty($icon_opened) || planmyday_param_is_inherit($icon_opened)) $icon_opened = planmyday_storage_get_array('sc_toggles_data', 'icon_opened', '', "icon-minus"); $css .= planmyday_param_is_on($open) ? 'display:block;' : ''; $output = '<div' . ($id ? ' id="'.esc_attr($id).'"' : '') . ' class="sc_toggles_item'.(planmyday_param_is_on($open) ? ' sc_active' : '') . (!empty($class) ? ' '.esc_attr($class) : '') . (planmyday_storage_get_array('sc_toggle_data', 'counter') % 2 == 1 ? ' odd' : ' even') . (planmyday_storage_get_array('sc_toggle_data', 'counter') == 1 ? ' first' : '') . '">' . '<h5 class="sc_toggles_title'.(planmyday_param_is_on($open) ? ' ui-state-active' : '').'">' . (!planmyday_param_is_off($icon_closed) ? '<span class="sc_toggles_icon sc_toggles_icon_closed '.esc_attr($icon_closed).'"></span>' : '') . (!planmyday_param_is_off($icon_opened) ? '<span class="sc_toggles_icon sc_toggles_icon_opened '.esc_attr($icon_opened).'"></span>' : '') . (planmyday_storage_get_array('sc_toggle_data', 'show_counter') ? '<span class="sc_items_counter">'.(planmyday_storage_get_array('sc_toggle_data', 'counter')).'</span>' : '') . ($title) . '</h5>' . '<div class="sc_toggles_content"' . ($css!='' ? ' style="'.esc_attr($css).'"' : '') .'>' . do_shortcode($content) . '</div>' . '</div>'; return apply_filters('planmyday_shortcode_output', $output, 'trx_toggles_item', $atts, $content); } add_shortcode('trx_toggles_item', 'planmyday_sc_toggles_item'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'planmyday_sc_toggles_reg_shortcodes' ) ) { //add_action('planmyday_action_shortcodes_list', 'planmyday_sc_toggles_reg_shortcodes'); function planmyday_sc_toggles_reg_shortcodes() { planmyday_sc_map("trx_toggles", array( "title" => esc_html__("Toggles", 'trx_utils'), "desc" => wp_kses_data( __("Toggles items", 'trx_utils') ), "decorate" => true, "container" => false, "params" => array( "counter" => array( "title" => esc_html__("Counter", 'trx_utils'), "desc" => wp_kses_data( __("Display counter before each toggles title", 'trx_utils') ), "value" => "off", "type" => "switch", "options" => planmyday_get_sc_param('on_off') ), "icon_closed" => array( "title" => esc_html__("Icon while closed", 'trx_utils'), "desc" => wp_kses_data( __('Select icon for the closed toggles item from Fontello icons set', 'trx_utils') ), "value" => "", "type" => "icons", "options" => planmyday_get_sc_param('icons') ), "icon_opened" => array( "title" => esc_html__("Icon while opened", 'trx_utils'), "desc" => wp_kses_data( __('Select icon for the opened toggles item from Fontello icons set', 'trx_utils') ), "value" => "", "type" => "icons", "options" => planmyday_get_sc_param('icons') ), "top" => planmyday_get_sc_param('top'), "bottom" => planmyday_get_sc_param('bottom'), "left" => planmyday_get_sc_param('left'), "right" => planmyday_get_sc_param('right'), "id" => planmyday_get_sc_param('id'), "class" => planmyday_get_sc_param('class'), "animation" => planmyday_get_sc_param('animation'), "css" => planmyday_get_sc_param('css') ), "children" => array( "name" => "trx_toggles_item", "title" => esc_html__("Toggles item", 'trx_utils'), "desc" => wp_kses_data( __("Toggles item", 'trx_utils') ), "container" => true, "params" => array( "title" => array( "title" => esc_html__("Toggles item title", 'trx_utils'), "desc" => wp_kses_data( __("Title for current toggles item", 'trx_utils') ), "value" => "", "type" => "text" ), "open" => array( "title" => esc_html__("Open on show", 'trx_utils'), "desc" => wp_kses_data( __("Open current toggles item on show", 'trx_utils') ), "value" => "no", "type" => "switch", "options" => planmyday_get_sc_param('yes_no') ), "icon_closed" => array( "title" => esc_html__("Icon while closed", 'trx_utils'), "desc" => wp_kses_data( __('Select icon for the closed toggles item from Fontello icons set', 'trx_utils') ), "value" => "", "type" => "icons", "options" => planmyday_get_sc_param('icons') ), "icon_opened" => array( "title" => esc_html__("Icon while opened", 'trx_utils'), "desc" => wp_kses_data( __('Select icon for the opened toggles item from Fontello icons set', 'trx_utils') ), "value" => "", "type" => "icons", "options" => planmyday_get_sc_param('icons') ), "_content_" => array( "title" => esc_html__("Toggles item content", 'trx_utils'), "desc" => wp_kses_data( __("Current toggles item content", 'trx_utils') ), "rows" => 4, "value" => "", "type" => "textarea" ), "id" => planmyday_get_sc_param('id'), "class" => planmyday_get_sc_param('class'), "css" => planmyday_get_sc_param('css') ) ) )); } } /* Register shortcode in the VC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'planmyday_sc_toggles_reg_shortcodes_vc' ) ) { //add_action('planmyday_action_shortcodes_list_vc', 'planmyday_sc_toggles_reg_shortcodes_vc'); function planmyday_sc_toggles_reg_shortcodes_vc() { vc_map( array( "base" => "trx_toggles", "name" => esc_html__("Toggles", 'trx_utils'), "description" => wp_kses_data( __("Toggles items", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_toggles', "class" => "trx_sc_collection trx_sc_toggles", "content_element" => true, "is_container" => true, "show_settings_on_create" => false, "as_parent" => array('only' => 'trx_toggles_item'), "params" => array( array( "param_name" => "counter", "heading" => esc_html__("Counter", 'trx_utils'), "description" => wp_kses_data( __("Display counter before each toggles title", 'trx_utils') ), "class" => "", "value" => array("Add item numbers before each element" => "on" ), "type" => "checkbox" ), array( "param_name" => "icon_closed", "heading" => esc_html__("Icon while closed", 'trx_utils'), "description" => wp_kses_data( __("Select icon for the closed toggles item from Fontello icons set", 'trx_utils') ), "class" => "", "value" => planmyday_get_sc_param('icons'), "type" => "dropdown" ), array( "param_name" => "icon_opened", "heading" => esc_html__("Icon while opened", 'trx_utils'), "description" => wp_kses_data( __("Select icon for the opened toggles item from Fontello icons set", 'trx_utils') ), "class" => "", "value" => planmyday_get_sc_param('icons'), "type" => "dropdown" ), planmyday_get_vc_param('id'), planmyday_get_vc_param('class'), planmyday_get_vc_param('margin_top'), planmyday_get_vc_param('margin_bottom'), planmyday_get_vc_param('margin_left'), planmyday_get_vc_param('margin_right') ), 'default_content' => ' [trx_toggles_item title="' . esc_html__( 'Item 1 title', 'trx_utils') . '"][/trx_toggles_item] [trx_toggles_item title="' . esc_html__( 'Item 2 title', 'trx_utils') . '"][/trx_toggles_item] ', "custom_markup" => ' <div class="wpb_accordion_holder wpb_holder clearfix vc_container_for_children"> %content% </div> <div class="tab_controls"> <button class="add_tab" title="'.esc_attr__("Add item", 'trx_utils').'">'.esc_html__("Add item", 'trx_utils').'</button> </div> ', 'js_view' => 'VcTrxTogglesView' ) ); vc_map( array( "base" => "trx_toggles_item", "name" => esc_html__("Toggles item", 'trx_utils'), "description" => wp_kses_data( __("Single toggles item", 'trx_utils') ), "show_settings_on_create" => true, "content_element" => true, "is_container" => true, 'icon' => 'icon_trx_toggles_item', "as_child" => array('only' => 'trx_toggles'), "as_parent" => array('except' => 'trx_toggles'), "params" => array( array( "param_name" => "title", "heading" => esc_html__("Title", 'trx_utils'), "description" => wp_kses_data( __("Title for current toggles item", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "open", "heading" => esc_html__("Open on show", 'trx_utils'), "description" => wp_kses_data( __("Open current toggle item on show", 'trx_utils') ), "class" => "", "value" => array("Opened" => "yes" ), "type" => "checkbox" ), array( "param_name" => "icon_closed", "heading" => esc_html__("Icon while closed", 'trx_utils'), "description" => wp_kses_data( __("Select icon for the closed toggles item from Fontello icons set", 'trx_utils') ), "class" => "", "value" => planmyday_get_sc_param('icons'), "type" => "dropdown" ), array( "param_name" => "icon_opened", "heading" => esc_html__("Icon while opened", 'trx_utils'), "description" => wp_kses_data( __("Select icon for the opened toggles item from Fontello icons set", 'trx_utils') ), "class" => "", "value" => planmyday_get_sc_param('icons'), "type" => "dropdown" ), planmyday_get_vc_param('id'), planmyday_get_vc_param('class'), planmyday_get_vc_param('css') ), 'js_view' => 'VcTrxTogglesTabView' ) ); class WPBakeryShortCode_Trx_Toggles extends Planmyday_Vc_ShortCodeToggles {} class WPBakeryShortCode_Trx_Toggles_Item extends Planmyday_Vc_ShortCodeTogglesItem {} } } ?>
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
accordion.php
13.31 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
button.php
12.85 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dropcaps.php
5.31 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
highlight.php
6.72 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
icon.php
9.83 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
price.php
6.34 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
search.php
7.99 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tabs.php
13.11 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
toggles.php
12.54 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tooltip.php
2.57 KB
lrw-r--r--
2025-04-30 03:15:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).