芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/plugins/trx_utils/shortcodes/trx_basic/anchor.php
"", "description" => '', "icon" => '', "url" => "", "separator" => "no", // Common params "id" => "" ), $atts))); $output = $id ? '
' : ''; return apply_filters('lorem_ipsum_books_media_store_shortcode_output', $output, 'trx_anchor', $atts, $content); } add_shortcode("trx_anchor", "lorem_ipsum_books_media_store_sc_anchor"); } /* Register shortcode in the internal SC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'lorem_ipsum_books_media_store_sc_anchor_reg_shortcodes' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list', 'lorem_ipsum_books_media_store_sc_anchor_reg_shortcodes'); function lorem_ipsum_books_media_store_sc_anchor_reg_shortcodes() { lorem_ipsum_books_media_store_sc_map("trx_anchor", array( "title" => esc_html__("Anchor", 'trx_utils'), "desc" => wp_kses_data( __("Insert anchor for the TOC (table of content)", 'trx_utils') ), "decorate" => false, "container" => false, "params" => array( "icon" => array( "title" => esc_html__("Anchor's icon", 'trx_utils'), "desc" => wp_kses_data( __('Select icon for the anchor from Fontello icons set', 'trx_utils') ), "value" => "", "type" => "icons", "options" => lorem_ipsum_books_media_store_get_sc_param('icons') ), "title" => array( "title" => esc_html__("Short title", 'trx_utils'), "desc" => wp_kses_data( __("Short title of the anchor (for the table of content)", 'trx_utils') ), "value" => "", "type" => "text" ), "description" => array( "title" => esc_html__("Long description", 'trx_utils'), "desc" => wp_kses_data( __("Description for the popup (then hover on the icon). You can use:
'{{' and '}}' - to make the text italic,
'((' and '))' - to make the text bold,
'||' - to insert line break", 'trx_utils') ), "value" => "", "type" => "text" ), "url" => array( "title" => esc_html__("External URL", 'trx_utils'), "desc" => wp_kses_data( __("External URL for this TOC item", 'trx_utils') ), "value" => "", "type" => "text" ), "separator" => array( "title" => esc_html__("Add separator", 'trx_utils'), "desc" => wp_kses_data( __("Add separator under item in the TOC", 'trx_utils') ), "value" => "no", "type" => "switch", "options" => lorem_ipsum_books_media_store_get_sc_param('yes_no') ), "id" => lorem_ipsum_books_media_store_get_sc_param('id') ) )); } } /* Register shortcode in the VC Builder -------------------------------------------------------------------- */ if ( !function_exists( 'lorem_ipsum_books_media_store_sc_anchor_reg_shortcodes_vc' ) ) { //add_action('lorem_ipsum_books_media_store_action_shortcodes_list_vc', 'lorem_ipsum_books_media_store_sc_anchor_reg_shortcodes_vc'); function lorem_ipsum_books_media_store_sc_anchor_reg_shortcodes_vc() { vc_map( array( "base" => "trx_anchor", "name" => esc_html__("Anchor", 'trx_utils'), "description" => wp_kses_data( __("Insert anchor for the TOC (table of content)", 'trx_utils') ), "category" => esc_html__('Content', 'trx_utils'), 'icon' => 'icon_trx_anchor', "class" => "trx_sc_single trx_sc_anchor", "content_element" => true, "is_container" => false, "show_settings_on_create" => true, "params" => array( array( "param_name" => "icon", "heading" => esc_html__("Anchor's icon", 'trx_utils'), "description" => wp_kses_data( __("Select icon for the anchor from Fontello icons set", 'trx_utils') ), "class" => "", "value" => lorem_ipsum_books_media_store_get_sc_param('icons'), "type" => "dropdown" ), array( "param_name" => "title", "heading" => esc_html__("Short title", 'trx_utils'), "description" => wp_kses_data( __("Short title of the anchor (for the table of content)", 'trx_utils') ), "admin_label" => true, "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "description", "heading" => esc_html__("Long description", 'trx_utils'), "description" => wp_kses_data( __("Description for the popup (then hover on the icon). You can use:
'{{' and '}}' - to make the text italic,
'((' and '))' - to make the text bold,
'||' - to insert line break", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "url", "heading" => esc_html__("External URL", 'trx_utils'), "description" => wp_kses_data( __("External URL for this TOC item", 'trx_utils') ), "class" => "", "value" => "", "type" => "textfield" ), array( "param_name" => "separator", "heading" => esc_html__("Add separator", 'trx_utils'), "description" => wp_kses_data( __("Add separator under item in the TOC", 'trx_utils') ), "class" => "", "value" => array("Add separator" => "yes" ), "type" => "checkbox" ), lorem_ipsum_books_media_store_get_vc_param('id') ), ) ); class WPBakeryShortCode_Trx_Anchor extends Lorem_Ipsum_Books_Media_Store_VC_ShortCodeSingle {} } } ?>