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