Changeset 2742536
- Timestamp:
- 06/15/2022 12:25:55 AM (4 years ago)
- Location:
- wpdevdesign-oxygen-currently-editing
- Files:
-
- 6 edited
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
trunk/assets/css/style.css (modified) (1 diff)
-
trunk/assets/js/main.js (modified) (1 diff)
-
trunk/plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpdevdesign-oxygen-currently-editing/trunk/assets/css/style.css
r2183491 r2742536 1 1 .oxygen-editor-currently-editing { 2 font-size: 13px;3 text-transform: uppercase;4 letter-spacing: 1px;5 align-items: center;6 display: flex;7 padding: 0 10px;2 font-size: 12px; 3 text-transform: uppercase; 4 letter-spacing: 1px; 5 align-items: center; 6 display: flex; 7 padding: 0 10px; 8 8 } -
wpdevdesign-oxygen-currently-editing/trunk/assets/js/main.js
r2183491 r2742536 1 document.addEventListener( 'DOMContentLoaded', (event) => {2 const div = document.createElement('div');1 document.addEventListener("DOMContentLoaded", (event) => { 2 const div = document.createElement("div"); 3 3 4 div.className = 'oxygen-editor-currently-editing';4 div.className = "oxygen-editor-currently-editing"; 5 5 6 div.innerHTML = current_entry.name;6 div.innerHTML = current_entry.name; 7 7 8 document.querySelector('#oxygen-topbar').insertBefore(div, document.querySelector('.oxygen-dom-tree-button')); 9 }) 8 document 9 .querySelector("#oxygen-topbar") 10 .insertBefore(div, document.querySelector(".oxygen-undo-redo-menus")); 11 }); -
wpdevdesign-oxygen-currently-editing/trunk/plugin.php
r2244325 r2742536 4 4 Plugin URI: https://www.facebook.com/groups/1626639680763454/permalink/2531330123627734/ 5 5 Description: Adds the name of Template/Page currently being edited in the Oxygen editor. 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: Sridhar Katakam 8 8 Author URI: https://wpdevdesign.com … … 41 41 wp_enqueue_script( 'oxygen-editor-currently-editing', plugin_dir_url( __FILE__ ) . 'assets/js/main.js', [], '1.0.0', true ); 42 42 43 wp_localize_script( 'oxygen-editor-currently-editing', 'current_entry', [ 'name' => get_the_title() ] ); 43 wp_add_inline_script( 'oxygen-editor-currently-editing', 'const current_entry = ' . json_encode( array( 44 'name' => get_the_title(), 45 ) ), 'before' ); 44 46 } -
wpdevdesign-oxygen-currently-editing/trunk/readme.txt
r2244325 r2742536 5 5 Donate link: https://www.paypal.me/sridharkatakam 6 6 Requires at least: 5.1 7 Tested up to: 5.37 Tested up to: 6.0 8 8 Stable tag: trunk 9 9 Requires PHP: 5.6 … … 40 40 == Changelog == 41 41 42 = 1.0.1 - 15 Jun 2022 = 43 * Updated for Oxygen 4.0. 44 42 45 = 1.0.0 = 43 46 Initial Release.
Note: See TracChangeset
for help on using the changeset viewer.