Changeset 2936625
- Timestamp:
- 07/10/2023 03:42:33 PM (3 years ago)
- Location:
- admin-ide-dark-mode
- Files:
-
- 11 edited
- 6 copied
-
tags/1.3 (copied) (copied from admin-ide-dark-mode/trunk)
-
tags/1.3/admin-ide-dark-mode.php (copied) (copied from admin-ide-dark-mode/trunk/admin-ide-dark-mode.php) (2 diffs)
-
tags/1.3/includes/class-aidm-admin-form.php (modified) (2 diffs)
-
tags/1.3/js/aidmAdmin.js (modified) (3 diffs)
-
tags/1.3/js/aidmHome.js (modified) (2 diffs)
-
tags/1.3/readme.txt (copied) (copied from admin-ide-dark-mode/trunk/readme.txt) (1 diff)
-
tags/1.3/trunk (copied) (copied from admin-ide-dark-mode/trunk)
-
tags/1.3/trunk/admin-ide-dark-mode.php (copied) (copied from admin-ide-dark-mode/trunk/admin-ide-dark-mode.php) (2 diffs)
-
tags/1.3/trunk/includes/class-aidm-admin-form.php (modified) (2 diffs)
-
tags/1.3/trunk/js/aidmAdmin.js (modified) (3 diffs)
-
tags/1.3/trunk/js/aidmHome.js (modified) (2 diffs)
-
tags/1.3/trunk/readme.txt (copied) (copied from admin-ide-dark-mode/trunk/readme.txt) (2 diffs)
-
trunk/admin-ide-dark-mode.php (modified) (2 diffs)
-
trunk/includes/class-aidm-admin-form.php (modified) (2 diffs)
-
trunk/js/aidmAdmin.js (modified) (3 diffs)
-
trunk/js/aidmHome.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin-ide-dark-mode/tags/1.3/admin-ide-dark-mode.php
r2925260 r2936625 7 7 Author URI: https://thomas-chary.dev 8 8 Text Domain: aidm-admin 9 Version: 1. 29 Version: 1.3 10 10 License: GNU GPL 11 11 */ … … 18 18 define( 'AIDM_WP_ADMIN_VERSION', '1.0.0' ); 19 19 define( 'AIDM_WP_ADMIN_DIR', 'admin-ide-dark-mode' ); 20 21 if ( ! is_admin() ) { 22 return; 23 } 20 24 21 25 /** -
admin-ide-dark-mode/tags/1.3/includes/class-aidm-admin-form.php
r2879634 r2936625 61 61 'jquery', 62 62 'aidm_theme_preference', 63 $user_theme_preference63 array( 'theme_name' => $user_theme_preference ) 64 64 ); 65 65 … … 71 71 // load codeMirror editor with type == php 72 72 $cm_settings[ 'codeEditor' ] = wp_enqueue_code_editor( array( 'type' => 'text/x-php' ) ); 73 wp_localize_script( 'jquery', 'cm_settings', $cm_settings);73 wp_localize_script( 'jquery', 'cm_settings', array( $cm_settings ) ); 74 74 75 75 // enqueue all codeMirror css themes -
admin-ide-dark-mode/tags/1.3/js/aidmAdmin.js
r2893419 r2936625 3 3 4 4 if ( ! codeMirrorInstance ) { 5 return false;5 return; 6 6 } 7 7 8 co deMirrorInstance.CodeMirror.setOption( 'theme', aidm_theme_preference );8 const themeName = aidm_theme_preference['theme_name']; 9 9 10 return;10 codeMirrorInstance.CodeMirror.setOption( 'theme', themeName ); 11 11 } 12 12 … … 25 25 let additionalCSSTab = $( 'li#accordion-section-custom_css > h3' ); 26 26 let codeMirrorElement = $( '.CodeMirror' ); 27 27 28 28 if ( codeMirrorElement.length > 0 ) { 29 29 // Do something if the element is found … … 44 44 // Start observing the target node for configured mutations 45 45 observer.observe(targetNode, config); 46 47 return;48 46 }); -
admin-ide-dark-mode/tags/1.3/js/aidmHome.js
r2879634 r2936625 2 2 3 3 jQuery( document ).ready( ( $ ) => { 4 4 5 // install codeMirror in admin section 5 6 var editor = wp.codeEditor.initialize( $( '#code-mirror-editor' ), cm_settings ); … … 36 37 $( 'input#submit' ).on( 'click', ( event ) => { 37 38 // if already clicked -> abort 39 38 40 if ( document.querySelector( 'li.error-selection' ) ) { 39 41 return false; -
admin-ide-dark-mode/tags/1.3/readme.txt
r2925260 r2936625 23 23 24 24 == Changelog == 25 = 1.3 = 26 * Plugin loading optimized 27 25 28 = 1.2 = 26 29 * Plugin update fix -
admin-ide-dark-mode/tags/1.3/trunk/admin-ide-dark-mode.php
r2925260 r2936625 7 7 Author URI: https://thomas-chary.dev 8 8 Text Domain: aidm-admin 9 Version: 1. 29 Version: 1.3 10 10 License: GNU GPL 11 11 */ … … 18 18 define( 'AIDM_WP_ADMIN_VERSION', '1.0.0' ); 19 19 define( 'AIDM_WP_ADMIN_DIR', 'admin-ide-dark-mode' ); 20 21 if ( ! is_admin() ) { 22 return; 23 } 20 24 21 25 /** -
admin-ide-dark-mode/tags/1.3/trunk/includes/class-aidm-admin-form.php
r2879634 r2936625 61 61 'jquery', 62 62 'aidm_theme_preference', 63 $user_theme_preference63 array( 'theme_name' => $user_theme_preference ) 64 64 ); 65 65 … … 71 71 // load codeMirror editor with type == php 72 72 $cm_settings[ 'codeEditor' ] = wp_enqueue_code_editor( array( 'type' => 'text/x-php' ) ); 73 wp_localize_script( 'jquery', 'cm_settings', $cm_settings);73 wp_localize_script( 'jquery', 'cm_settings', array( $cm_settings ) ); 74 74 75 75 // enqueue all codeMirror css themes -
admin-ide-dark-mode/tags/1.3/trunk/js/aidmAdmin.js
r2893419 r2936625 3 3 4 4 if ( ! codeMirrorInstance ) { 5 return false;5 return; 6 6 } 7 7 8 co deMirrorInstance.CodeMirror.setOption( 'theme', aidm_theme_preference );8 const themeName = aidm_theme_preference['theme_name']; 9 9 10 return;10 codeMirrorInstance.CodeMirror.setOption( 'theme', themeName ); 11 11 } 12 12 … … 25 25 let additionalCSSTab = $( 'li#accordion-section-custom_css > h3' ); 26 26 let codeMirrorElement = $( '.CodeMirror' ); 27 27 28 28 if ( codeMirrorElement.length > 0 ) { 29 29 // Do something if the element is found … … 44 44 // Start observing the target node for configured mutations 45 45 observer.observe(targetNode, config); 46 47 return;48 46 }); -
admin-ide-dark-mode/tags/1.3/trunk/js/aidmHome.js
r2879634 r2936625 2 2 3 3 jQuery( document ).ready( ( $ ) => { 4 4 5 // install codeMirror in admin section 5 6 var editor = wp.codeEditor.initialize( $( '#code-mirror-editor' ), cm_settings ); … … 36 37 $( 'input#submit' ).on( 'click', ( event ) => { 37 38 // if already clicked -> abort 39 38 40 if ( document.querySelector( 'li.error-selection' ) ) { 39 41 return false; -
admin-ide-dark-mode/tags/1.3/trunk/readme.txt
r2925260 r2936625 6 6 Requires at least: 5.0 7 7 Tested up to: 6.1 8 Stable tag: 1. 28 Stable tag: 1.3 9 9 Requires PHP: 7.4 10 10 License: GPLv2 or later … … 23 23 24 24 == Changelog == 25 = 1.3 = 26 * Plugin loading optimized 27 25 28 = 1.2 = 26 29 * Plugin update fix -
admin-ide-dark-mode/trunk/admin-ide-dark-mode.php
r2925260 r2936625 7 7 Author URI: https://thomas-chary.dev 8 8 Text Domain: aidm-admin 9 Version: 1. 29 Version: 1.3 10 10 License: GNU GPL 11 11 */ … … 18 18 define( 'AIDM_WP_ADMIN_VERSION', '1.0.0' ); 19 19 define( 'AIDM_WP_ADMIN_DIR', 'admin-ide-dark-mode' ); 20 21 if ( ! is_admin() ) { 22 return; 23 } 20 24 21 25 /** -
admin-ide-dark-mode/trunk/includes/class-aidm-admin-form.php
r2879634 r2936625 61 61 'jquery', 62 62 'aidm_theme_preference', 63 $user_theme_preference63 array( 'theme_name' => $user_theme_preference ) 64 64 ); 65 65 … … 71 71 // load codeMirror editor with type == php 72 72 $cm_settings[ 'codeEditor' ] = wp_enqueue_code_editor( array( 'type' => 'text/x-php' ) ); 73 wp_localize_script( 'jquery', 'cm_settings', $cm_settings);73 wp_localize_script( 'jquery', 'cm_settings', array( $cm_settings ) ); 74 74 75 75 // enqueue all codeMirror css themes -
admin-ide-dark-mode/trunk/js/aidmAdmin.js
r2893419 r2936625 3 3 4 4 if ( ! codeMirrorInstance ) { 5 return false;5 return; 6 6 } 7 7 8 co deMirrorInstance.CodeMirror.setOption( 'theme', aidm_theme_preference );8 const themeName = aidm_theme_preference['theme_name']; 9 9 10 return;10 codeMirrorInstance.CodeMirror.setOption( 'theme', themeName ); 11 11 } 12 12 … … 25 25 let additionalCSSTab = $( 'li#accordion-section-custom_css > h3' ); 26 26 let codeMirrorElement = $( '.CodeMirror' ); 27 27 28 28 if ( codeMirrorElement.length > 0 ) { 29 29 // Do something if the element is found … … 44 44 // Start observing the target node for configured mutations 45 45 observer.observe(targetNode, config); 46 47 return;48 46 }); -
admin-ide-dark-mode/trunk/js/aidmHome.js
r2879634 r2936625 2 2 3 3 jQuery( document ).ready( ( $ ) => { 4 4 5 // install codeMirror in admin section 5 6 var editor = wp.codeEditor.initialize( $( '#code-mirror-editor' ), cm_settings ); … … 36 37 $( 'input#submit' ).on( 'click', ( event ) => { 37 38 // if already clicked -> abort 39 38 40 if ( document.querySelector( 'li.error-selection' ) ) { 39 41 return false; -
admin-ide-dark-mode/trunk/readme.txt
r2925260 r2936625 6 6 Requires at least: 5.0 7 7 Tested up to: 6.1 8 Stable tag: 1. 28 Stable tag: 1.3 9 9 Requires PHP: 7.4 10 10 License: GPLv2 or later … … 23 23 24 24 == Changelog == 25 = 1.3 = 26 * Plugin loading optimized 27 25 28 = 1.2 = 26 29 * Plugin update fix
Note: See TracChangeset
for help on using the changeset viewer.