WPGlobus – Multilingual Everything! - Version 2.4.9

Version Description

  • (Vendor/All In One SEO Pack) Interface improvements on post edit page.
Download this release

Release Info

Developer tivnet
Plugin Icon 128x128 WPGlobus – Multilingual Everything!
Version 2.4.9
Comparing to
See all releases

Code changes from version 2.4.8 to 2.4.9

includes/js/wpglobus-vendor-aioseop.js CHANGED
@@ -37,6 +37,7 @@
37
  if ( api.addRules ) {
38
  api.addCssRules();
39
  }
 
40
  api.attachListeners();
41
  },
42
  addCssRules: function() {
@@ -75,16 +76,35 @@
75
  }
76
  }
77
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  attachListeners: function() {
79
  $('.wpglobus_countable').on('keyup', function(event) {
80
  var $t = $(this);
81
  api.countChars($t, $t.data('field-count'));
82
  });
83
 
 
 
 
 
 
84
  $('body').on('click', '.wpglobus-post-body-tabs-list li', function(event){
85
  var $t = $(this);
86
  if ( $t.hasClass('wpglobus-post-tab') ) {
87
  $('#wpglobus-aioseop-tabs').tabs('option','active', $t.data('order'));
 
88
  }
89
  });
90
 
37
  if ( api.addRules ) {
38
  api.addCssRules();
39
  }
40
+ api.tabDecoration(true);
41
  api.attachListeners();
42
  },
43
  addCssRules: function() {
76
  }
77
  }
78
  },
79
+ tabDecoration: function(init) {
80
+ if ( 'undefined' === typeof init ) {
81
+ init = false;
82
+ }
83
+ if ('boolean' === typeof init && init) {
84
+ $('.wpglobus-aioseop-tabs-list li#aioseop-link-tab-'+WPGlobusCoreData.default_language+' a').css({'border-top':'2px solid #00f'});
85
+ return;
86
+ }
87
+ if ( 'string' === typeof init ) {
88
+ $('.wpglobus-aioseop-tabs-list li a').css({'border-top':''});
89
+ $('.wpglobus-aioseop-tabs-list li#aioseop-link-tab-'+init+' a').css({'border-top':'2px solid #00f'});
90
+ }
91
+ },
92
  attachListeners: function() {
93
  $('.wpglobus_countable').on('keyup', function(event) {
94
  var $t = $(this);
95
  api.countChars($t, $t.data('field-count'));
96
  });
97
 
98
+ // tabsactivate
99
+ $('#wpglobus-aioseop-tabs').on('tabsactivate', function(event, ui){
100
+ api.tabDecoration($(ui.newTab).data('language'));
101
+ });
102
+
103
  $('body').on('click', '.wpglobus-post-body-tabs-list li', function(event){
104
  var $t = $(this);
105
  if ( $t.hasClass('wpglobus-post-tab') ) {
106
  $('#wpglobus-aioseop-tabs').tabs('option','active', $t.data('order'));
107
+ api.tabDecoration($t.data('language'));
108
  }
109
  });
110
 
includes/js/wpglobus-vendor-aioseop.min.js CHANGED
@@ -1 +1 @@
1
- !function(i){"use strict";if("undefined"!=typeof WPGlobusAioseop){var e={addRules:!1,parseBool:function(a){return!/^(false|0)$/i.test(a)&&!!a},init:function(){0!=i("#aiosp_snippet_wrapper").size()&&(e.addRules=e.parseBool(WPGlobusAioseop.add_css_rules),i("#wpglobus-aioseop-tabs").removeClass("hidden wpglobus-hidden").tabs(),i("#wpglobus-aioseop-tabs").insertBefore(i("#aiosp_snippet_wrapper")),i("#aiosp_snippet_wrapper, #aiosp_title_wrapper, #aiosp_description_wrapper, #aiosp_keywords_wrapper").addClass("hidden"),e.setCounters(),e.addRules&&e.addCssRules(),e.attachListeners())},addCssRules:function(){i(".wpglobus-aioseop-general .aioseop_wrapper.aioseop_html_type").each(function(a,o){i(o).css({"border-radius":"4px",border:"1px solid #8d96a0",padding:"10px 10px 0","max-width":"97%","margin-bottom":"15px"})})},setCounters:function(){i(".wpglobus_countable").each(function(a,o){var e=i(o),t=0,s=e.data("field-count");void 0!==e.data("extra-element")&&(t=i("#"+e.data("extra-element")).data("extra-length")),i("input[name="+s+"]").val(e.val().length+t)})},countChars:function(a,o){var e,t=0,s=(o="input[name="+o+"]",a.data("max-size"));void 0!==a.data("extra-element")&&(t=i("#"+a.data("extra-element")).data("extra-length")),e=a.val().length+t,i(o).val(e),s<e?i(o).css({color:"#fff","background-color":"#f00"}):s-6<e?i(o).css({color:"#515151","background-color":"#ff0"}):i(o).css({color:"#515151","background-color":"#eee"})},attachListeners:function(){i(".wpglobus_countable").on("keyup",function(a){var o=i(this);e.countChars(o,o.data("field-count"))}),i("body").on("click",".wpglobus-post-body-tabs-list li",function(a){var o=i(this);o.hasClass("wpglobus-post-tab")&&i("#wpglobus-aioseop-tabs").tabs("option","active",o.data("order"))}),i(".wpglobus-aioseop_title").on("keyup",function(a){var o=i(this);i("#aioseop_snippet_title_"+o.data("language")).text(o.val())}),i("body").on("change",".wpglobus-aioseop_title",function(a){var o=i(this),e="input[name=aiosp_title]";i(e).val(WPGlobusCore.getString(i(e).val(),o.val(),o.data("language")))}),i(".wpglobus-aioseop_description").on("keyup",function(a){var o=i(this);i("#aioseop_snippet_description_"+o.data("language")).text(o.val())}),i("body").on("change",".wpglobus-aioseop_description",function(a){var o=i(this),e="textarea[name=aiosp_description]";i(e).val(WPGlobusCore.getString(i(e).val(),o.val(),o.data("language")))}),i("body").on("change",".wpglobus-aioseop_keywords",function(a){var o=i(this),e="input[name=aiosp_keywords]";i(e).val(WPGlobusCore.getString(i(e).val(),o.val(),o.data("language")))})}};WPGlobusAioseop=i.extend({},WPGlobusAioseop,e),WPGlobusAioseop.init()}}(jQuery);
1
+ !function(i){"use strict";if("undefined"!=typeof WPGlobusAioseop){var e={addRules:!1,parseBool:function(a){return!/^(false|0)$/i.test(a)&&!!a},init:function(){0!=i("#aiosp_snippet_wrapper").size()&&(e.addRules=e.parseBool(WPGlobusAioseop.add_css_rules),i("#wpglobus-aioseop-tabs").removeClass("hidden wpglobus-hidden").tabs(),i("#wpglobus-aioseop-tabs").insertBefore(i("#aiosp_snippet_wrapper")),i("#aiosp_snippet_wrapper, #aiosp_title_wrapper, #aiosp_description_wrapper, #aiosp_keywords_wrapper").addClass("hidden"),e.setCounters(),e.addRules&&e.addCssRules(),e.tabDecoration(!0),e.attachListeners())},addCssRules:function(){i(".wpglobus-aioseop-general .aioseop_wrapper.aioseop_html_type").each(function(a,o){i(o).css({"border-radius":"4px",border:"1px solid #8d96a0",padding:"10px 10px 0","max-width":"97%","margin-bottom":"15px"})})},setCounters:function(){i(".wpglobus_countable").each(function(a,o){var e=i(o),t=0,s=e.data("field-count");void 0!==e.data("extra-element")&&(t=i("#"+e.data("extra-element")).data("extra-length")),i("input[name="+s+"]").val(e.val().length+t)})},countChars:function(a,o){var e,t=0,s=(o="input[name="+o+"]",a.data("max-size"));void 0!==a.data("extra-element")&&(t=i("#"+a.data("extra-element")).data("extra-length")),e=a.val().length+t,i(o).val(e),s<e?i(o).css({color:"#fff","background-color":"#f00"}):s-6<e?i(o).css({color:"#515151","background-color":"#ff0"}):i(o).css({color:"#515151","background-color":"#eee"})},tabDecoration:function(a){void 0===a&&(a=!1),"boolean"==typeof a&&a?i(".wpglobus-aioseop-tabs-list li#aioseop-link-tab-"+WPGlobusCoreData.default_language+" a").css({"border-top":"2px solid #00f"}):"string"==typeof a&&(i(".wpglobus-aioseop-tabs-list li a").css({"border-top":""}),i(".wpglobus-aioseop-tabs-list li#aioseop-link-tab-"+a+" a").css({"border-top":"2px solid #00f"}))},attachListeners:function(){i(".wpglobus_countable").on("keyup",function(a){var o=i(this);e.countChars(o,o.data("field-count"))}),i("#wpglobus-aioseop-tabs").on("tabsactivate",function(a,o){e.tabDecoration(i(o.newTab).data("language"))}),i("body").on("click",".wpglobus-post-body-tabs-list li",function(a){var o=i(this);o.hasClass("wpglobus-post-tab")&&(i("#wpglobus-aioseop-tabs").tabs("option","active",o.data("order")),e.tabDecoration(o.data("language")))}),i(".wpglobus-aioseop_title").on("keyup",function(a){var o=i(this);i("#aioseop_snippet_title_"+o.data("language")).text(o.val())}),i("body").on("change",".wpglobus-aioseop_title",function(a){var o=i(this),e="input[name=aiosp_title]";i(e).val(WPGlobusCore.getString(i(e).val(),o.val(),o.data("language")))}),i(".wpglobus-aioseop_description").on("keyup",function(a){var o=i(this);i("#aioseop_snippet_description_"+o.data("language")).text(o.val())}),i("body").on("change",".wpglobus-aioseop_description",function(a){var o=i(this),e="textarea[name=aiosp_description]";i(e).val(WPGlobusCore.getString(i(e).val(),o.val(),o.data("language")))}),i("body").on("change",".wpglobus-aioseop_keywords",function(a){var o=i(this),e="input[name=aiosp_keywords]";i(e).val(WPGlobusCore.getString(i(e).val(),o.val(),o.data("language")))})}};WPGlobusAioseop=i.extend({},WPGlobusAioseop,e),WPGlobusAioseop.init()}}(jQuery);
languages/wpglobus.pot CHANGED
@@ -1,8 +1,8 @@
1
- # Copyright (C) 2020 WPGlobus 2.4.8
2
- # This file is distributed under the same license as the WPGlobus 2.4.8 package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPGlobus 2.4.8\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
1
+ # Copyright (C) 2020 WPGlobus 2.4.9
2
+ # This file is distributed under the same license as the WPGlobus 2.4.9 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPGlobus 2.4.9\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -216,6 +216,10 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
216
 
217
  == Changelog ==
218
 
 
 
 
 
219
  = 2.4.8 =
220
 
221
  * (Core/Clean-Up Tool) Updated description.
216
 
217
  == Changelog ==
218
 
219
+ = 2.4.9 =
220
+
221
+ * (Vendor/All In One SEO Pack) Interface improvements on post edit page.
222
+
223
  = 2.4.8 =
224
 
225
  * (Core/Clean-Up Tool) Updated description.
wpglobus.php CHANGED
@@ -15,7 +15,7 @@
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
- * Version: 2.4.8
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
  exit;
43
  }
44
 
45
- define( 'WPGLOBUS_VERSION', '2.4.8' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48
 
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
+ * Version: 2.4.9
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.4.9' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48