芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/plugins/trx_utils/shortcodes/trx_optional/popup.php
"", "class" => "", "css" => "", "top" => "", "bottom" => "", "left" => "", "right" => "" ), $atts))); $class .= ($class ? ' ' : '') . lorem_ipsum_books_media_store_get_css_position_as_classes($top, $right, $bottom, $left); lorem_ipsum_books_media_store_enqueue_popup('magnific'); $output = '
' . do_shortcode($content) . '
'; return apply_filters('lorem_ipsum_books_media_store_shortcode_output', $output, 'trx_popup', $atts, $content); } add_shortcode('trx_popup', 'lorem_ipsum_books_media_store_sc_popup'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'lorem_ipsum_books_media_store_sc_popup_reg_shortcodes' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list', 'lorem_ipsum_books_media_store_sc_popup_reg_shortcodes'); function lorem_ipsum_books_media_store_sc_popup_reg_shortcodes() { lorem_ipsum_books_media_store_sc_map("trx_popup", array( "title" => esc_html__("Popup window", 'trx_utils'), "desc" => wp_kses_data( __("Container for any html-block with desired class and style for popup window", 'trx_utils') ), "decorate" => true, "container" => true, "params" => array( "_content_" => array( "title" => esc_html__("Container content", 'trx_utils'), "desc" => wp_kses_data( __("Content for section container", 'trx_utils') ), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea" ), "top" => lorem_ipsum_books_media_store_get_sc_param('top'), "bottom" => lorem_ipsum_books_media_store_get_sc_param('bottom'), "left" => lorem_ipsum_books_media_store_get_sc_param('left'), "right" => lorem_ipsum_books_media_store_get_sc_param('right'), "id" => lorem_ipsum_books_media_store_get_sc_param('id'), "class" => lorem_ipsum_books_media_store_get_sc_param('class'), "css" => lorem_ipsum_books_media_store_get_sc_param('css') ) )); } } /* Register shortcode in the VC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'lorem_ipsum_books_media_store_sc_popup_reg_shortcodes_vc' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list_vc', 'lorem_ipsum_books_media_store_sc_popup_reg_shortcodes_vc'); function lorem_ipsum_books_media_store_sc_popup_reg_shortcodes_vc() { vc_map( array( "base" => "trx_popup", "name" => esc_html__("Popup window", 'trx_utils'), "description" => wp_kses_data( __("Container for any html-block with desired class and style for popup window", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_popup', "class" => "trx_sc_collection trx_sc_popup", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "params" => array( lorem_ipsum_books_media_store_get_vc_param('id'), lorem_ipsum_books_media_store_get_vc_param('class'), lorem_ipsum_books_media_store_get_vc_param('css'), lorem_ipsum_books_media_store_get_vc_param('margin_top'), lorem_ipsum_books_media_store_get_vc_param('margin_bottom'), lorem_ipsum_books_media_store_get_vc_param('margin_left'), lorem_ipsum_books_media_store_get_vc_param('margin_right') ) ) ); class WPBakeryShortCode_Trx_Popup extends Lorem_Ipsum_Books_Media_Store_VC_ShortCodeCollection {} } } ?>