Changeset 3201945
- Timestamp:
- 12/03/2024 08:51:37 PM (13 months ago)
- Location:
- snapshots
- Files:
-
- 5 added
- 4 deleted
- 3 edited
-
tags/3.0.0 (deleted)
-
trunk/README.md (added)
-
trunk/assets/script.js (modified) (4 diffs)
-
trunk/assets/style.css (modified) (1 diff)
-
trunk/cli.php (added)
-
trunk/common.php (added)
-
trunk/includes (deleted)
-
trunk/package.json (deleted)
-
trunk/plugin.php (added)
-
trunk/readme.txt (deleted)
-
trunk/snapshots.php (modified) (3 diffs)
-
trunk/upgrade.php (added)
Legend:
- Unmodified
- Added
- Removed
-
snapshots/trunk/assets/script.js
r3025636 r3201945 25 25 .on('keydown', toggleMenu); 26 26 27 if (last) { 28 $('#wp-admin-bar-snapshots > a').append( 29 '<span class="snapshot-extra-title" title="' + 30 sprintf(snapshots.currently, last) + 31 '">' + 32 last + 33 '</span>' 34 ); 35 } 27 36 28 37 function createSnapshot() { … … 35 44 'snaphot_create=' + encodeURIComponent(snapshotsname) 36 45 ); 37 this.href += '&snapshot_location=' + encodeURIComponent(document.location.pathname+document.location.search+document.location.hash);38 46 $('#wp-admin-bar-snapshots').addClass('loading create'); 47 localStorage.setItem('snapshot_current', snapshotsname); 39 48 } 40 49 … … 47 56 confirm(sprintf(snapshots.restore, $(this).data('date'))) 48 57 ) { 58 localStorage.setItem('snapshot_current', this.innerText); 49 59 $('#wp-admin-bar-snapshots').addClass('loading'); 50 60 return true; … … 101 111 102 112 function getLastName() { 103 return $('#wp-admin-bar-snapshots .snapshot-extra-title').text() || '';113 return localStorage.getItem('snapshot_current') || ''; 104 114 } 105 115 -
snapshots/trunk/assets/style.css
r3201944 r3201945 35 35 } 36 36 #wp-admin-bar-snapshots .search-snapshot input { 37 all:revert;38 37 border: 0; 39 font-size: 16px;40 38 width: 100%; 41 39 background: none; -
snapshots/trunk/snapshots.php
r3201944 r3201945 5 5 Description: Quickly Create SnapShots of your development sites and restore them with a click. 6 6 Author: EverPress 7 Author URI: https:// xaver.dev7 Author URI: https://about.me/xaver 8 8 Text Domain: snapshots 9 Version: 3.0.09 Version: 2.7.0 10 10 */ 11 11 … … 41 41 } 42 42 43 require_once __DIR__ . '/includes/common.php';43 require_once dirname( __FILE__ ) . '/common.php'; 44 44 45 45 if ( defined( 'WP_CLI' ) && WP_CLI ) : 46 46 47 error_reporting( 0 ); 48 49 require_once __DIR__ . '/includes/cli.php'; 47 require_once dirname( __FILE__ ) . '/cli.php'; 50 48 51 49 WP_CLI::add_command( 'snapshot', 'Snapshots' ); … … 53 51 else : 54 52 55 require_once __DIR__ . '/includes/plugin.php';56 require_once __DIR__ . '/includes/upgrade.php';53 require_once dirname( __FILE__ ) . '/plugin.php'; 54 require_once dirname( __FILE__ ) . '/upgrade.php'; 57 55 58 56 Snapshots_Plugin::get_instance();
Note: See TracChangeset
for help on using the changeset viewer.