芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/plugins/trx_utils/shortcodes/trx_optional/number.php
"", "align" => "", // Common params "id" => "", "class" => "", "animation" => "", "css" => "", "top" => "", "bottom" => "", "left" => "", "right" => "" ), $atts))); $class .= ($class ? ' ' : '') . lorem_ipsum_books_media_store_get_css_position_as_classes($top, $right, $bottom, $left); $output = '
'; for ($i=0; $i < lorem_ipsum_books_media_store_strlen($value); $i++) { $output .= '
' . trim(lorem_ipsum_books_media_store_substr($value, $i, 1)) . '
'; } $output .= '
'; return apply_filters('lorem_ipsum_books_media_store_shortcode_output', $output, 'trx_number', $atts, $content); } add_shortcode('trx_number', 'lorem_ipsum_books_media_store_sc_number'); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'lorem_ipsum_books_media_store_sc_number_reg_shortcodes' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list', 'lorem_ipsum_books_media_store_sc_number_reg_shortcodes'); function lorem_ipsum_books_media_store_sc_number_reg_shortcodes() { lorem_ipsum_books_media_store_sc_map("trx_number", array( "title" => esc_html__("Number", 'trx_utils'), "desc" => wp_kses_data( __("Insert number or any word as set separate characters", 'trx_utils') ), "decorate" => false, "container" => false, "params" => array( "value" => array( "title" => esc_html__("Value", 'trx_utils'), "desc" => wp_kses_data( __("Number or any word", 'trx_utils') ), "value" => "", "type" => "text" ), "align" => array( "title" => esc_html__("Align", 'trx_utils'), "desc" => wp_kses_data( __("Select block alignment", 'trx_utils') ), "value" => "none", "type" => "checklist", "dir" => "horizontal", "options" => lorem_ipsum_books_media_store_get_sc_param('align') ), "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_number_reg_shortcodes_vc' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list_vc', 'lorem_ipsum_books_media_store_sc_number_reg_shortcodes_vc'); function lorem_ipsum_books_media_store_sc_number_reg_shortcodes_vc() { vc_map( array( "base" => "trx_number", "name" => esc_html__("Number", 'trx_utils'), "description" => wp_kses_data( __("Insert number or any word as set of separated characters", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), "class" => "trx_sc_single trx_sc_number", 'icon' => 'icon_trx_number', "content_element" => true, "is_container" => false, "show_settings_on_create" => true, "params" => array( array( "param_name" => "value", "heading" => esc_html__("Value", 'trx_utils'), "description" => wp_kses_data( __("Number or any word to separate", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "align", "heading" => esc_html__("Alignment", 'trx_utils'), "description" => wp_kses_data( __("Select block alignment", 'trx_utils') ), "class" => "", "value" => array_flip(lorem_ipsum_books_media_store_get_sc_param('align')), "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'), lorem_ipsum_books_media_store_get_vc_param('margin_left'), lorem_ipsum_books_media_store_get_vc_param('margin_right') ) ) ); class WPBakeryShortCode_Trx_Number extends Lorem_Ipsum_Books_Media_Store_VC_ShortCodeSingle {} } } ?>