Changeset 2158145
- Timestamp:
- 09/18/2019 12:01:52 AM (6 years ago)
- Location:
- wpsitesynccontent
- Files:
-
- 52 added
- 22 edited
-
tags/1.5.2 (added)
-
tags/1.5.2/.htaccess (added)
-
tags/1.5.2/assets (added)
-
tags/1.5.2/assets/css (added)
-
tags/1.5.2/assets/css/sync-admin.css (added)
-
tags/1.5.2/assets/imgs (added)
-
tags/1.5.2/assets/imgs/ajax-loader.gif (added)
-
tags/1.5.2/assets/imgs/wpsitesync-logo-blue.png (added)
-
tags/1.5.2/assets/imgs/wpsitesync-logo.svg (added)
-
tags/1.5.2/assets/js (added)
-
tags/1.5.2/assets/js/settings.js (added)
-
tags/1.5.2/assets/js/sync.js (added)
-
tags/1.5.2/classes (added)
-
tags/1.5.2/classes/admin.php (added)
-
tags/1.5.2/classes/admindashboard.php (added)
-
tags/1.5.2/classes/ajax.php (added)
-
tags/1.5.2/classes/apicontroller.php (added)
-
tags/1.5.2/classes/apiheaders.php (added)
-
tags/1.5.2/classes/apimodel.php (added)
-
tags/1.5.2/classes/apirequest.php (added)
-
tags/1.5.2/classes/apiresponse.php (added)
-
tags/1.5.2/classes/attachmodel.php (added)
-
tags/1.5.2/classes/auth.php (added)
-
tags/1.5.2/classes/debug.php (added)
-
tags/1.5.2/classes/extensionmodel.php (added)
-
tags/1.5.2/classes/extensionsettings.php (added)
-
tags/1.5.2/classes/input.php (added)
-
tags/1.5.2/classes/licensesettings.php (added)
-
tags/1.5.2/classes/licensing.php (added)
-
tags/1.5.2/classes/logmodel.php (added)
-
tags/1.5.2/classes/mediamodel.php (added)
-
tags/1.5.2/classes/model.php (added)
-
tags/1.5.2/classes/options.php (added)
-
tags/1.5.2/classes/postmodel.php (added)
-
tags/1.5.2/classes/serialize.php (added)
-
tags/1.5.2/classes/settings.php (added)
-
tags/1.5.2/classes/sourcesmodel.php (added)
-
tags/1.5.2/classes/usage.php (added)
-
tags/1.5.2/classes/view.php (added)
-
tags/1.5.2/index.php (added)
-
tags/1.5.2/install (added)
-
tags/1.5.2/install/activate.php (added)
-
tags/1.5.2/install/deactivate.php (added)
-
tags/1.5.2/install/pluginupdater.php (added)
-
tags/1.5.2/languages (added)
-
tags/1.5.2/languages/placeholder.txt (added)
-
tags/1.5.2/readme.txt (added)
-
tags/1.5.2/views (added)
-
tags/1.5.2/views/content_details.php (added)
-
tags/1.5.2/views/syncextensions.php (added)
-
tags/1.5.2/wpsitesynccontent.php (added)
-
trunk/.htaccess (modified) (1 diff)
-
trunk/assets/css/sync-admin.css (modified) (2 diffs)
-
trunk/assets/js/settings.js (modified) (7 diffs)
-
trunk/assets/js/sync.js (modified) (10 diffs)
-
trunk/classes/admin.php (modified) (11 diffs)
-
trunk/classes/admindashboard.php (modified) (2 diffs)
-
trunk/classes/ajax.php (modified) (1 diff)
-
trunk/classes/apicontroller.php (modified) (21 diffs)
-
trunk/classes/apirequest.php (modified) (23 diffs)
-
trunk/classes/apiresponse.php (modified) (2 diffs)
-
trunk/classes/attachmodel.php (modified) (2 diffs)
-
trunk/classes/auth.php (modified) (1 diff)
-
trunk/classes/debug.php (modified) (2 diffs)
-
trunk/classes/gutenbergentry.php (added)
-
trunk/classes/licensesettings.php (modified) (3 diffs)
-
trunk/classes/licensing.php (modified) (2 diffs)
-
trunk/classes/options.php (modified) (2 diffs)
-
trunk/classes/settings.php (modified) (9 diffs)
-
trunk/classes/sourcesmodel.php (modified) (1 diff)
-
trunk/install/activate.php (modified) (1 diff)
-
trunk/install/pluginupdater.php (modified) (20 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wpsitesynccontent.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsitesynccontent/trunk/.htaccess
r1573030 r2158145 1 <Files *.php> 2 Order Deny,Allow 3 deny from all 4 </Files> 1 # Apache 2.2 2 <IfModule !mod_authz_core.c> 3 Satisfy Any 5 4 6 <Files ~*.txt> 7 Order Deny,Allow 8 deny from all 9 </Files> 5 <Files *.php> 6 Require all denied 7 </Files> 10 8 11 <files ".(xml|css|jpe?g|png|gif|js|ttf|wof|eof)$"> 12 Order Allow,Deny 13 Allow from all 14 </files> 9 <Files ~*.txt> 10 Order Deny,Allow 11 deny from all 12 </Files> 13 14 <files ".(xml|css|jpe?g|png|gif|js|ttf|wof|eof)$"> 15 Order Allow,Deny 16 Allow from all 17 </files> 18 </IfModule> 19 20 21 # Apache 2.4 22 <IfModule mod_authz_core.c> 23 Require all granted 24 25 <Files *.php> 26 Require all denied 27 </Files> 28 29 <Files ~*.txt> 30 Require all denied 31 </Files> 32 33 <files ".(xml|css|jpe?g|png|gif|js|ttf|wof|eof)$"> 34 Require all granted 35 </files> 36 </IfModule> -
wpsitesynccontent/trunk/assets/css/sync-admin.css
r2094175 r2158145 113 113 vertical-align: text-top; 114 114 } 115 #spectrom_sync button#remove-association { 116 text-align: center; 117 } 118 #spectrom_sync button#remove-association .sync-button-icon { 119 text-align: center; 120 padding-right: 0; 121 padding-top: 4px; 122 margin-left: 0; 123 } 115 124 #spectrom_sync #sync-message-dismiss .dashicons { 116 125 font-size: 85%; … … 141 150 .spectrom-sync-settings .sync-settings-logo { 142 151 float: left; 152 } 153 .spectrom-sync-settings .cta-message { 154 border-left: 3px solid #e542f4; 155 margin-left: 3px; 156 padding-left: 8px; 143 157 } 144 158 .spectrom-sync-settings table.form-table { -
wpsitesynccontent/trunk/assets/js/settings.js
r2094175 r2158145 1 1 /* 2 * @copyright Copyright (C) 201 4-2019 SpectrOMtech.com. - All Rights Reserved.3 * @author SpectrOMtech.com <SpectrOMtech.com>4 * @url https://wpsitesync.com/ license2 * @copyright Copyright (C) 2015-2019 WPSiteSync.com. - All Rights Reserved. 3 * @author WPSiteSync.com <hello@WPSiteSync.com> 4 * @url https://wpsitesync.com/ 5 5 * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, 6 6 * manuals, cascading style sheets, and included JavaScript *are NOT GPL*, and are released under the … … 9 9 */ 10 10 11 /** 12 * Javascript handlers for WPSiteSync's settings page 13 * @returns {SyncSettings} instance 14 */ 11 15 function SyncSettings() 12 16 { … … 41 45 // }); 42 46 43 jQuery('.sync-license-input', '.spectrom-sync-settings').on('keyup', function() {44 jQuery('button.sync-license', '.spectrom-sync-settings').attr('disabled', 'disabled');45 });47 // jQuery('.sync-license-input', '.spectrom-sync-settings').on('keyup', function() { 48 // jQuery('button.sync-license', '.spectrom-sync-settings').attr('disabled', 'disabled'); 49 // }); 46 50 }; 47 51 … … 58 62 jQuery('#sync-license-msg-' + name).html(jQuery('#sync-deactivating-msg').html()); 59 63 jQuery('#sync-license-msg-' + name).show(); 64 var lic_key = jQuery('#spectrom-form-' + name).val(); 60 65 61 66 var data = { 62 67 action: 'spectrom_sync', 63 68 operation: op, 64 extension: name 69 extension: name, 70 key: lic_key 65 71 }; 66 72 … … 82 88 }; 83 89 90 /** 91 * Button callback for activating license key 92 * @param {object} el Button element generating the click 93 * @param {string} name Name of add-on being activated 94 */ 84 95 SyncSettings.prototype.activate = function(el, name) 85 96 { … … 88 99 }; 89 100 101 /** 102 * Button callback for deactivating license key 103 * @param {object} el Button element generating the click 104 * @param {string} name Name of add-on being deactivated 105 */ 90 106 SyncSettings.prototype.deactivate = function(el, name) 91 107 { … … 95 111 96 112 /** 113 * Button callback for onblur event for license key field 114 * @param {object} el The input field containing the license key 115 */ 116 SyncSettings.prototype.license_change = function(el) 117 { 118 //console.log('.license_change()'); 119 var id = jQuery(el).attr('id'); 120 var ext_name = id.replace('spectrom-form-sync_', ''); 121 //console.log('id=' + id + ' name=' + ext_name); 122 123 var lic_key = jQuery('#spectrom-form-sync_' + ext_name).val(); 124 //console.log('key=' + lic_key) 125 if (lic_key.length !== 32) 126 return; 127 128 // enable activate/deactivate buttons 129 jQuery('#sync-license-act-sync_' + ext_name).removeAttr('disabled'); 130 jQuery('#sync-license-deact-sync_' + ext_name).removeAttr('disabled'); 131 }; 132 133 /** 97 134 * Verifies the target settings 135 * @param {object} e The event generating the submit 98 136 */ 99 137 SyncSettings.prototype.on_submit = function(e) -
wpsitesynccontent/trunk/assets/js/sync.js
r2094175 r2158145 1 1 /* 2 * @copyright Copyright (C) 201 4-2019 SpectrOMtech.com. - All Rights Reserved.3 * @author SpectrOMtech.com <SpectrOMtech.com>4 * @url https://wpsitesync.com/ license2 * @copyright Copyright (C) 2015-2019 WPSiteSync.com. - All Rights Reserved. 3 * @author WPSiteSync.com <hello@WPSiteSync.com> 4 * @url https://wpsitesync.com/ 5 5 * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, 6 6 * manuals, cascading style sheets, and included JavaScript *are NOT GPL*, and are released under the … … 19 19 this.$content = null; 20 20 this.disable = false;