芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/plugins/trx_utils/shortcodes/trx_optional/dropcaps.php
"1", // Common params "id" => "", "class" => "", "css" => "", "animation" => "", "width" => "", "height" => "", "top" => "", "bottom" => "", "left" => "", "right" => "" ), $atts))); $class .= ($class ? ' ' : '') . lorem_ipsum_books_media_store_get_css_position_as_classes($top, $right, $bottom, $left); $css .= lorem_ipsum_books_media_store_get_css_dimensions_from_values($width, $height); $style = min(2, max(1, $style)); $content = do_shortcode(str_replace(array('[vc_column_text]', '[/vc_column_text]'), array('', ''), $content)); $output = lorem_ipsum_books_media_store_substr($content, 0, 1) == '<' ? $content : '
' . '
' . trim(lorem_ipsum_books_media_store_substr($content, 0, 1)) . '
' . trim(lorem_ipsum_books_media_store_substr($content, 1)) . '
'; return apply_filters('lorem_ipsum_books_media_store_shortcode_output', $output, 'trx_dropcaps', $atts, $content); } add_shortcode('trx_dropcaps', 'lorem_ipsum_books_media_store_sc_dropcaps'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'lorem_ipsum_books_media_store_sc_dropcaps_reg_shortcodes' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list', 'lorem_ipsum_books_media_store_sc_dropcaps_reg_shortcodes'); function lorem_ipsum_books_media_store_sc_dropcaps_reg_shortcodes() { lorem_ipsum_books_media_store_sc_map("trx_dropcaps", array( "title" => esc_html__("Dropcaps", 'trx_utils'), "desc" => wp_kses_data( __("Make first letter as dropcaps", 'trx_utils') ), "decorate" => false, "container" => true, "params" => array( "style" => array( "title" => esc_html__("Style", 'trx_utils'), "desc" => wp_kses_data( __("Dropcaps style", 'trx_utils') ), "value" => "1", "type" => "checklist", "options" => lorem_ipsum_books_media_store_get_list_styles(1, 2) ), "_content_" => array( "title" => esc_html__("Paragraph content", 'trx_utils'), "desc" => wp_kses_data( __("Paragraph with dropcaps content", 'trx_utils') ), "divider" => true, "rows" => 4, "value" => "", "type" => "textarea" ), "width" => lorem_ipsum_books_media_store_shortcodes_width(), "height" => lorem_ipsum_books_media_store_shortcodes_height(), "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'), "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_dropcaps_reg_shortcodes_vc' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list_vc', 'lorem_ipsum_books_media_store_sc_dropcaps_reg_shortcodes_vc'); function lorem_ipsum_books_media_store_sc_dropcaps_reg_shortcodes_vc() { vc_map( array( "base" => "trx_dropcaps", "name" => esc_html__("Dropcaps", 'trx_utils'), "description" => wp_kses_data( __("Make first letter of the text as dropcaps", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_dropcaps', "class" => "trx_sc_container trx_sc_dropcaps", "content_element" => true, "is_container" => true, "show_settings_on_create" => true, "params" => array( array( "param_name" => "style", "heading" => esc_html__("Style", 'trx_utils'), "description" => wp_kses_data( __("Dropcaps style", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => array_flip(lorem_ipsum_books_media_store_get_list_styles(1, 2)), "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_vc_width(), lorem_ipsum_books_media_store_vc_height(), 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_Dropcaps extends Lorem_Ipsum_Books_Media_Store_VC_ShortCodeContainer {} } } ?>