芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/plugins/trx_utils/shortcodes/trx_basic/content.php
"", // Common params "id" => "", "class" => "", "css" => "", "animation" => "", "top" => "", "bottom" => "" ), $atts))); $class .= ($class ? ' ' : '') . lorem_ipsum_books_media_store_get_css_position_as_classes($top, '', $bottom); $output = '
' . do_shortcode($content) . '
'; return apply_filters('lorem_ipsum_books_media_store_shortcode_output', $output, 'trx_content', $atts, $content); } add_shortcode('trx_content', 'lorem_ipsum_books_media_store_sc_content'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'lorem_ipsum_books_media_store_sc_content_reg_shortcodes' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list', 'lorem_ipsum_books_media_store_sc_content_reg_shortcodes'); function lorem_ipsum_books_media_store_sc_content_reg_shortcodes() { lorem_ipsum_books_media_store_sc_map("trx_content", array( "title" => esc_html__("Content block", 'trx_utils'), "desc" => wp_kses_data( __("Container for main content block with desired class and style (use it only on fullscreen pages)", 'trx_utils') ), "decorate" => true, "container" => true, "params" => array( "scheme" => array( "title" => esc_html__("Color scheme", 'trx_utils'), "desc" => wp_kses_data( __("Select color scheme for this block", 'trx_utils') ), "value" => "", "type" => "checklist", "options" => lorem_ipsum_books_media_store_get_sc_param('schemes') ), "_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'), "id" => lorem_ipsum_books_media_store_get_sc_param('id'), "class" => lorem_ipsum_books_media_store_get_sc_param('class'), "animation" => lorem_ipsum_books_media_store_get_sc_param('animation'), "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_content_reg_shortcodes_vc' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list_vc', 'lorem_ipsum_books_media_store_sc_content_reg_shortcodes_vc'); function lorem_ipsum_books_media_store_sc_content_reg_shortcodes_vc() { vc_map( array( "base" => "trx_content", "name" => esc_html__("Content block", 'trx_utils'), "description" => wp_kses_data( __("Container for main content block (use it only on fullscreen pages)", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_content', "class" => "trx_sc_collection trx_sc_content", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "params" => array( array( "param_name" => "scheme", "heading" => esc_html__("Color scheme", 'trx_utils'), "description" => wp_kses_data( __("Select color scheme for this block", 'trx_utils') ), "group" => esc_html__('Colors and Images', 'trx_utils'), "class" => "", "value" => array_flip(lorem_ipsum_books_media_store_get_sc_param('schemes')), "type" => "dropdown" ), 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('animation'), 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') ) ) ); class WPBakeryShortCode_Trx_Content extends Lorem_Ipsum_Books_Media_Store_VC_ShortCodeCollection {} } } ?>