Changeset 2887122
- Timestamp:
- 03/26/2023 02:35:59 PM (3 years ago)
- Location:
- seo-copywriting
- Files:
-
- 106 added
- 3 edited
-
assets/2.3.4 (added)
-
assets/2.3.4/.gitignore (added)
-
assets/2.3.4/LICENSE (added)
-
assets/2.3.4/LICENSE.txt (added)
-
assets/2.3.4/README.md (added)
-
assets/2.3.4/README.txt (added)
-
assets/2.3.4/admin (added)
-
assets/2.3.4/admin/class-seocopy-admin.php (added)
-
assets/2.3.4/admin/css (added)
-
assets/2.3.4/admin/css/bootstrap.min.css (added)
-
assets/2.3.4/admin/css/seocopy-admin.css (added)
-
assets/2.3.4/admin/img (added)
-
assets/2.3.4/admin/img/icon.png (added)
-
assets/2.3.4/admin/img/loader.svg (added)
-
assets/2.3.4/admin/includes (added)
-
assets/2.3.4/admin/includes/class-seocopy-api.php (added)
-
assets/2.3.4/admin/includes/class-seocopy-apiexception.php (added)
-
assets/2.3.4/admin/index.php (added)
-
assets/2.3.4/admin/js (added)
-
assets/2.3.4/admin/js/bootstrap.min.js (added)
-
assets/2.3.4/admin/js/seocopy-admin.js (added)
-
assets/2.3.4/admin/js/seocopy-findAndReplaceDOMText.js (added)
-
assets/2.3.4/admin/js/seocopy-tinyMce.js (added)
-
assets/2.3.4/admin/partials (added)
-
assets/2.3.4/admin/partials/seocopy-admin-custom-box.php (added)
-
assets/2.3.4/admin/partials/seocopy-admin-display.php (added)
-
assets/2.3.4/admin/partials/seocopy-admin-querysuggestion-box.php (added)
-
assets/2.3.4/admin/partials/seocopy-admin-settings.php (added)
-
assets/2.3.4/includes (added)
-
assets/2.3.4/includes/class-seocopy-activator.php (added)
-
assets/2.3.4/includes/class-seocopy-deactivator.php (added)
-
assets/2.3.4/includes/class-seocopy-i18n.php (added)
-
assets/2.3.4/includes/class-seocopy-loader.php (added)
-
assets/2.3.4/includes/class-seocopy.php (added)
-
assets/2.3.4/includes/index.php (added)
-
assets/2.3.4/index.php (added)
-
assets/2.3.4/languages (added)
-
assets/2.3.4/languages/seocopy-it_IT.mo (added)
-
assets/2.3.4/languages/seocopy-it_IT.po (added)
-
assets/2.3.4/languages/seocopy.pot (added)
-
assets/2.3.4/public (added)
-
assets/2.3.4/public/class-seocopy-public.php (added)
-
assets/2.3.4/public/css (added)
-
assets/2.3.4/public/css/bootstrap.min.css (added)
-
assets/2.3.4/public/css/seocopy-public.css (added)
-
assets/2.3.4/public/index.php (added)
-
assets/2.3.4/public/js (added)
-
assets/2.3.4/public/js/bootstrap.min.js (added)
-
assets/2.3.4/public/js/seocopy-public.js (added)
-
assets/2.3.4/public/partials (added)
-
assets/2.3.4/public/partials/seocopy-public-display.php (added)
-
assets/2.3.4/seocopy.php (added)
-
assets/2.3.4/uninstall.php (added)
-
tags/2.3.4 (added)
-
tags/2.3.4/.gitignore (added)
-
tags/2.3.4/LICENSE (added)
-
tags/2.3.4/LICENSE.txt (added)
-
tags/2.3.4/README.md (added)
-
tags/2.3.4/README.txt (added)
-
tags/2.3.4/admin (added)
-
tags/2.3.4/admin/class-seocopy-admin.php (added)
-
tags/2.3.4/admin/css (added)
-
tags/2.3.4/admin/css/bootstrap.min.css (added)
-
tags/2.3.4/admin/css/seocopy-admin.css (added)
-
tags/2.3.4/admin/img (added)
-
tags/2.3.4/admin/img/icon.png (added)
-
tags/2.3.4/admin/img/loader.svg (added)
-
tags/2.3.4/admin/includes (added)
-
tags/2.3.4/admin/includes/class-seocopy-api.php (added)
-
tags/2.3.4/admin/includes/class-seocopy-apiexception.php (added)
-
tags/2.3.4/admin/index.php (added)
-
tags/2.3.4/admin/js (added)
-
tags/2.3.4/admin/js/bootstrap.min.js (added)
-
tags/2.3.4/admin/js/seocopy-admin.js (added)
-
tags/2.3.4/admin/js/seocopy-findAndReplaceDOMText.js (added)
-
tags/2.3.4/admin/js/seocopy-tinyMce.js (added)
-
tags/2.3.4/admin/partials (added)
-
tags/2.3.4/admin/partials/seocopy-admin-custom-box.php (added)
-
tags/2.3.4/admin/partials/seocopy-admin-display.php (added)
-
tags/2.3.4/admin/partials/seocopy-admin-querysuggestion-box.php (added)
-
tags/2.3.4/admin/partials/seocopy-admin-settings.php (added)
-
tags/2.3.4/includes (added)
-
tags/2.3.4/includes/class-seocopy-activator.php (added)
-
tags/2.3.4/includes/class-seocopy-deactivator.php (added)
-
tags/2.3.4/includes/class-seocopy-i18n.php (added)
-
tags/2.3.4/includes/class-seocopy-loader.php (added)
-
tags/2.3.4/includes/class-seocopy.php (added)
-
tags/2.3.4/includes/index.php (added)
-
tags/2.3.4/index.php (added)
-
tags/2.3.4/languages (added)
-
tags/2.3.4/languages/seocopy-it_IT.mo (added)
-
tags/2.3.4/languages/seocopy-it_IT.po (added)
-
tags/2.3.4/languages/seocopy.pot (added)
-
tags/2.3.4/public (added)
-
tags/2.3.4/public/class-seocopy-public.php (added)
-
tags/2.3.4/public/css (added)
-
tags/2.3.4/public/css/bootstrap.min.css (added)
-
tags/2.3.4/public/css/seocopy-public.css (added)
-
tags/2.3.4/public/index.php (added)
-
tags/2.3.4/public/js (added)
-
tags/2.3.4/public/js/bootstrap.min.js (added)
-
tags/2.3.4/public/js/seocopy-public.js (added)
-
tags/2.3.4/public/partials (added)
-
tags/2.3.4/public/partials/seocopy-public-display.php (added)
-
tags/2.3.4/seocopy.php (added)
-
tags/2.3.4/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/js/seocopy-admin.js (modified) (19 diffs)
-
trunk/seocopy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-copywriting/trunk/README.txt
r2869424 r2887122 5 5 Requires at least: 4.7 6 6 Tested up to: 6.1.1 7 Stable tag: 2.3. 27 Stable tag: 2.3.4 8 8 Requires PHP: 7.1 9 9 License: GPLv2 or later … … 40 40 == Changelog == 41 41 42 = 2.3.4 = 43 Faster response for Query Suggestion 44 45 = 2.3.3 = 46 Faster response for Seo Copy 47 42 48 = 2.3.2 = 43 49 Minor bugfixes -
seo-copywriting/trunk/admin/js/seocopy-admin.js
r2869424 r2887122 50 50 }, 800); 51 51 } else { 52 callback(response.token); 52 callback( response ); // NEW 53 //callback( response.token ); // OLD 53 54 } 54 55 } … … 114 115 }, 115 116 printFoundKeywords:function(keywords){ 117 console.log( 'printFoundKeywords' ); 116 118 var that = this; 117 119 $('#seocopy-keyword-searching-div').hide(); … … 178 180 }, 179 181 printFoundQuerySuggestionKeywords: function( keywords ){ 182 console.log( 'printFoundQuerySuggestionKeywords' ); 180 183 var that = this; 181 184 $('#seocopy-query-suggestion-searching-div').hide(); … … 226 229 }, 227 230 resetSearch:function(){ 231 console.log( 'resetSearch' ); 228 232 this.data.currentSearchKeywords = null; 229 233 clearTimeout(this.data.debouncingTimeout); … … 235 239 $('#seocopy-keyword-search-div').show(); 236 240 }, 237 checkSearchSubmission: function () { 241 // New api, checkSearchSubmission is useless 242 /*checkSearchSubmission: function () { 243 console.log( 'checkSearchSubmission' ); 238 244 var that = this; 239 245 this.api.retrieveResource(this.data.currentSearchUuid, function (data) { … … 277 283 278 284 }); 279 }, 285 },*/ 280 286 checkQuerySuggestionSubmission: function(){ 287 console.log( 'checkQuerySuggestionSubmission' ); 281 288 var that = this; 282 289 this.api.retrieveResource(this.data.currentQuerySuggestionUuid, function (data) { … … 311 318 }, 312 319 changeLoadingSuggestions:function(first){ 320 console.log( 'changeLoadingSuggestions' ); 313 321 var that = this; 314 322 var n_elements = $('#seocopy-keyword-searching-random-texts-div > span').length; … … 328 336 }, 329 337 submitSearch: function () { 338 console.log( 'submitSearch' ); 330 339 var that = this; 331 340 const api_key = $('#seocopy-keyword-submit').data('api-key'); … … 346 355 'LSIKeywords.advice':true, 347 356 'api-key': api_key 348 }, 349 function (token) { 350 // Suggestions 351 that.data.currentSearchUuid = token; 352 setTimeout(that.checkSearchSubmission.bind(that), 2000); 357 },function ( data ) { 358 //that.data.currentSearchUuid = token; 359 //setTimeout(that.checkSearchSubmission.bind(that), 2000); 360 // Filter nulls to prevent errors 361 that.data.currentSearchKeywords = data.LSIKeywords.filter(function(x){ 362 return x !== null; 363 }); 364 // Add density manually 365 that.data.currentSearchKeywords = that.data.currentSearchKeywords.map(function(x){ 366 x.dens = Math.ceil(x.count * 0.42); 367 return x; 368 }); 369 370 that.printFoundKeywords(that.data.currentSearchKeywords); 353 371 }, function (e) { 354 372 $('#seocopy-keyword-search-div').show(); … … 374 392 }, 375 393 changeLoadingQuerySuggestion:function(first){ 394 console.log( 'changeLoadingQuerySuggestion' ); 376 395 var that = this; 377 396 var n_elements = $('#seocopy-query-suggestion-searching-random-texts-div > span').length; … … 390 409 }, 391 410 submitQuerySuggestion: function(){ 411 console.log( 'submitQuerySuggestion' ); 392 412 var that = this; 393 413 const api_key = $('#seocopy-query-suggestion-submit').data('api-key'); … … 407 427 that.changeLoadingQuerySuggestion(true); 408 428 409 this.api.createResourceRequest(' querySuggestion', language, keyword, {429 this.api.createResourceRequest('Suggestqueries', language, keyword, { 410 430 'querySuggestion.renew':true, 411 431 'api-key': api_key 412 432 }, 413 function ( token) {433 function ( data ) { 414 434 // Suggestions 415 that.data.currentQuerySuggestionUuid =token;416 that.checkQuerySuggestionSubmission();435 //that.data.currentQuerySuggestionUuid = response.token; 436 //that.checkQuerySuggestionSubmission(); 417 437 //setTimeout(that.checkQuerySuggestionSubmission().bind(that), 2000); 438 439 for( const key in data.querySuggestion ) { 440 // Filter nulls to prevent errors 441 const querySuggestion = data.querySuggestion[ key ]; 442 // TODO - Da capire questa cosa 443 that.data.currentQuerySuggestionKeywords[ key ] = querySuggestion.filter(function(x){ 444 return x !== null; 445 }); 446 // Add density manually 447 that.data.currentQuerySuggestionKeywords[ key ] = that.data.currentQuerySuggestionKeywords[ key ].map(function(x){ 448 x.dens = Math.ceil(x.count * 0.42); 449 return x; 450 }); 451 } 452 that.printFoundQuerySuggestionKeywords(that.data.currentQuerySuggestionKeywords); 453 418 454 }, function (e) { 419 455 $('#seocopy-query-suggestion-div').show(); … … 439 475 }, 440 476 resetQuerySuggestion: function(){ 477 console.log( 'resetQuerySuggestion' ); 441 478 this.data.currentQuerySuggestionKeywords = []; 442 479 clearTimeout(this.data.debouncingTimeout); … … 449 486 }, 450 487 onLoad: function () { 488 console.log( 'onLoad' ); 451 489 var that = this; 452 490 $('#seocopy-keyword-submit').click(function (e) { … … 736 774 }, 737 775 computeResultsCounters: function(){ 776 console.log( 'computeResultsCounters' ); 738 777 $('.seocopy-keyword-resultgroup-tagwrap').each(function(){ 739 778 $('.seocopy-keyword-resultgroup-counter',this).text( … … 743 782 }, 744 783 computeQuerySuggestionResultsCounters: function(){ 784 console.log( 'computeQuerySuggestionResultsCounters' ); 745 785 $('.seocopy-query-suggestion-resultgroup-tagwrap').each(function(){ 746 786 $('.seocopy-query-suggestion-resultgroup-counter',this).text( … … 753 793 */ 754 794 fillDensityNoResults: function(){ 795 console.log( 'fillDensityNoResults' ); 755 796 this.data.currentSearchKeywords.forEach(function(keyword){ 756 797 if(keyword._tagnames && 'P' in keyword._tagnames){ … … 764 805 }, 765 806 fillDensityNoQuerySuggestionResults: function(){ 807 console.log( 'fillDensityNoQuerySuggestionResults' ); 766 808 this.data.currentQuerySuggestionKeywords.forEach(function(keyword){ 767 809 if(keyword._tagnames && 'P' in keyword._tagnames){ … … 775 817 }, 776 818 analyzeTextDebounce: function () { 777 console.log('analyz ing');819 console.log('analyzeTextDebounce'); 778 820 var that = this; 779 821 var element = this.data.debouncingAnalyzeData[0]; -
seo-copywriting/trunk/seocopy.php
r2869424 r2887122 11 11 * Plugin URI: https://wpseoplugins.org/seo-copywriting/ 12 12 * Description: Keyword research made easy! 13 * Version: 2.3. 213 * Version: 2.3.4 14 14 * Author: WP SEO Plugins 15 15 * Author URI: https://www.wpseoplugins.org … … 30 30 * Rename this for your plugin and update it as you release new versions. 31 31 */ 32 define( 'seocopy_VERSION', '2.3. 2' );32 define( 'seocopy_VERSION', '2.3.4' ); 33 33 define( 'seocopy_DOMAIN', 'seocopy' ); 34 34 define( 'SEOCOPY_SERVER_NAME', $_SERVER['SERVER_NAME']);
Note: See TracChangeset
for help on using the changeset viewer.