Changeset 3254140
- Timestamp:
- 03/11/2025 02:40:15 PM (12 months ago)
- Location:
- easy-code-highlighter
- Files:
-
- 2 edited
-
tags/1.00/easy-code-highlighter.php (modified) (3 diffs)
-
trunk/easy-code-highlighter.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-code-highlighter/tags/1.00/easy-code-highlighter.php
r3253859 r3254140 34 34 // Se cargan los archivos localmente. 35 35 // The files are loaded locally. 36 wp_enqueue_script( 37 'prism', 38 plugin_dir_url(__FILE__) . 'js/prism.min.js', 39 array(), 40 filemtime(plugin_dir_path(__FILE__) . 'js/prism.min.js'), 41 true 42 ); 43 36 44 wp_enqueue_style( 37 45 'prism-tomorrow', … … 41 49 ); 42 50 43 wp_enqueue_script( 44 'prism', 45 plugin_dir_url(__FILE__) . 'js/prism.min.js', 46 array(), 47 filemtime(plugin_dir_path(__FILE__) . 'js/prism.min.js'), 48 true 49 ); 51 50 52 51 53 wp_register_script( … … 111 113 112 114 function easy_hi_reormadrid_code_highlighter_copy_shortcode( $atts, $content = null ) { 115 $content = shortcode_unautop( $content ); 116 $content = str_replace( array( '<p>', '</p>', '<br>', '<br/>', '<br />' ), '', $content ); 117 $content = trim( $content ); 118 $content = htmlentities($content); 113 119 $atts = shortcode_atts( array( 114 120 'language' => '', -
easy-code-highlighter/trunk/easy-code-highlighter.php
r3253847 r3254140 34 34 // Se cargan los archivos localmente. 35 35 // The files are loaded locally. 36 wp_enqueue_script( 37 'prism', 38 plugin_dir_url(__FILE__) . 'js/prism.min.js', 39 array(), 40 filemtime(plugin_dir_path(__FILE__) . 'js/prism.min.js'), 41 true 42 ); 43 36 44 wp_enqueue_style( 37 45 'prism-tomorrow', … … 41 49 ); 42 50 43 wp_enqueue_script( 44 'prism', 45 plugin_dir_url(__FILE__) . 'js/prism.min.js', 46 array(), 47 filemtime(plugin_dir_path(__FILE__) . 'js/prism.min.js'), 48 true 49 ); 51 50 52 51 53 wp_register_script( … … 111 113 112 114 function easy_hi_reormadrid_code_highlighter_copy_shortcode( $atts, $content = null ) { 115 $content = shortcode_unautop( $content ); 116 $content = str_replace( array( '<p>', '</p>', '<br>', '<br/>', '<br />' ), '', $content ); 117 $content = trim( $content ); 118 $content = htmlentities($content); 113 119 $atts = shortcode_atts( array( 114 120 'language' => '',
Note: See TracChangeset
for help on using the changeset viewer.