Changeset 2982085
- Timestamp:
- 10/21/2023 07:01:53 PM (17 months ago)
- Location:
- fcp-first-screen-css/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
fcp-first-screen-css/trunk/assets/codemirror/init.js
r2973720 r2982085 17 17 inputStyle: 'contenteditable', 18 18 lineWrapping: true, 19 extraKeys: {"Ctrl-F": "findPersistent", "Ctrl-I": "jumpToLine"}, 19 20 }); 20 21 -
fcp-first-screen-css/trunk/assets/style.css
r2973591 r2982085 13 13 width:100%; 14 14 } 15 [id^=first-screen-css] p {15 [id^=first-screen-css] p, [id^=first-screen-css] ul { 16 16 margin:30px 0 10px; 17 17 } 18 18 [id^=first-screen-css] p + p { 19 19 margin-top:10px; 20 } 21 22 [id^=first-screen-css] ul.hints, 23 [id^=first-screen-css] ul.hints ul { 24 list-style: none; 25 padding: 0; 26 } 27 [id^=first-screen-css] ul.hints ul { 28 margin: 0 0 15px 20px; 29 } 30 [id^=first-screen-css] ul.hints li { 31 list-style: none; 32 margin: 5px 0 0 0; 33 padding: 0; 20 34 } 21 35 -
fcp-first-screen-css/trunk/first-screen.php
r2973720 r2982085 3 3 Plugin Name: First Screen CSS & Settings 4 4 Description: This is a professional tool to manipulate enqueued styles and scripts on your website and add custom CSS to first screen and not first screen optionally. Use it to improve your Core Web Vitals score or just add custom styling. 5 Version: 1.6. 15 Version: 1.6.2 6 6 Requires at least: 5.8 7 7 Tested up to: 6.3 … … 16 16 defined( 'ABSPATH' ) || exit; 17 17 18 define( 'FCPFSC_DEV', false );18 define( 'FCPFSC_DEV', true ); 19 19 define( 'FCPFSC_VER', get_file_data( __FILE__, [ 'ver' => 'Version' ] )[ 'ver' ] . ( FCPFSC_DEV ? time() : '' ) ); 20 20 … … 65 65 } 66 66 67 68 // ++add the option to switch to inline 69 // ++add the option to defer loading 70 // ++autopick the names by url or the instruction how to 71 // ++add the @bigger height@ button and save new height in local storage or user settings? 67 // ++first field placeholder make more obvious 72 68 // ++switch selects to checkboxes or multiples 73 69 // ++maybe limit the id-exclude to the fitting post types 74 70 // ++don't show rest meta box if the storing dir is absent or is not writable or/and the permission error 75 71 // ++get the list of css to unload with jQuery.html() && regexp, or ?query in url to print loaded scripts 76 // ++list of styles to defer like with deregister? -
fcp-first-screen-css/trunk/inc/admin/main.php
r2973720 r2982085 16 16 add_action( 'init', function() { 17 17 $shorter = [ 18 'name' => 'First Screen CSS settings',18 'name' => 'First Screen CSS & Settings', 19 19 'plural' => 'First Screen CSS', 20 20 'public' => false, -
fcp-first-screen-css/trunk/inc/admin/meta-decor.php
r2973591 r2982085 54 54 wp_enqueue_script( $cm.'-formatting', FCPFSC_URL . 'assets/codemirror/util/formatting.js', [$cm], '2.38+' ); 55 55 56 // comfortable search 57 wp_enqueue_style( $cm.'-addon-dialog', FCPFSC_URL . 'assets/codemirror/addon/dialog/dialog.css', [], FCPFSC_CM_VER ); 58 wp_enqueue_style( $cm.'-addon-matchsonscrollbar', FCPFSC_URL . 'assets/codemirror/addon/search/matchesonscrollbar.css', [], FCPFSC_CM_VER ); 59 60 wp_enqueue_script( $cm.'-addon-dialog', FCPFSC_URL . 'assets/codemirror/addon/dialog/dialog.js', [$cm], FCPFSC_CM_VER ); 61 wp_enqueue_script( $cm.'-addon-searchcursor', FCPFSC_URL . 'assets/codemirror/addon/search/searchcursor.js', [$cm], FCPFSC_CM_VER ); 62 wp_enqueue_script( $cm.'-addon-search', FCPFSC_URL . 'assets/codemirror/addon/search/search.js', [$cm], FCPFSC_CM_VER ); 63 wp_enqueue_script( $cm.'-addon-annotatescrollbar', FCPFSC_URL . 'assets/codemirror/addon/scroll/annotatescrollbar.js', [$cm], FCPFSC_CM_VER ); 64 wp_enqueue_script( $cm.'-addon-matchesonscrollbar', FCPFSC_URL . 'assets/codemirror/addon/search/matchesonscrollbar.js', [$cm], FCPFSC_CM_VER ); 65 wp_enqueue_script( $cm.'-addon-jump-to-line', FCPFSC_URL . 'assets/codemirror/addon/search/jump-to-line.js', [$cm], FCPFSC_CM_VER ); 66 67 56 68 // codemirror init 57 69 wp_enqueue_script( $cm.'-init', FCPFSC_URL . '/assets/codemirror/init.js', [$cm], FCPFSC_VER ); -
fcp-first-screen-css/trunk/inc/admin/meta-print.php
r2973591 r2982085 210 210 console.log( 'The list of linked Scripts:'+"\n" + jss.join( ', ' ) );</pre></code> 211 211 212 <p><strong>HotKeys for the Editor</strong></p> 213 <ul class="hints"> 214 <li><code>Ctrl + F</code> - search 215 <ul> 216 <li><code>Enter</code> - search next</li> 217 <li><code>Shift + Enter</code> - search previous</li> 218 </ul> 219 </li> 220 <li><code>Shift + Ctrl + F</code> - search and replace interface</li> 221 <li><code>Ctrl + I</code> - jump to line by number</li> 222 <li><strong><code>Esc</code></strong> - cancel current command to start a new one</li> 223 </ul> 212 224 <?php 213 225 } -
fcp-first-screen-css/trunk/readme.txt
r2973720 r2982085 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.6. 17 Stable tag: 1.6.2 8 8 Author: Vadim Volkov, Firmcatalyst 9 9 Author URI: https://firmcatalyst.com
Note: See TracChangeset
for help on using the changeset viewer.