WP Meta SEO - Version 3.4.1

Version Description

  • Add : Meta keywords field in category meta edition
  • Add : Update dashboard description and image compression layout
  • Fix : Warning when 'wpio_images' table does not exist
Download this release

Release Info

Developer JoomUnited
Plugin Icon 128x128 WP Meta SEO
Version 3.4.1
Comparing to
See all releases

Code changes from version 3.4.0 to 3.4.1

css/category_field.css CHANGED
@@ -1,4 +1,4 @@
1
- .cat-title-len , .cat-desc-len {
2
background: none repeat scroll 0% 0% #7ad03a;
3
color: #FFF;
4
border-radius: 2px;
1
+ .cat-title-len , .cat-desc-len , .cat-keywords-len {
2
background: none repeat scroll 0% 0% #7ad03a;
3
color: #FFF;
4
border-radius: 2px;
css/dashboard.css CHANGED
@@ -162,19 +162,4 @@
162
163
.dashboard .wpms_dashboard_widgets_left .percent_2{
164
font-size: 10px;
165
- }
166
-
167
- .wpms-widgets-qtip {
168
- border: 1px solid #707070 !important;
169
- color: #fff !important;
170
- background-color: #707070 !important;
171
- z-index: 10000 !important;
172
- border-radius: 2px !important;
173
- line-height: 100% !important;
174
- font-size: 12px !important;
175
- line-height: 18px !important;
176
- }
177
-
178
- .wpms-widgets-qtip .qtip-tip{
179
- opacity: 0 !important;
180
}
162
163
.dashboard .wpms_dashboard_widgets_left .percent_2{
164
font-size: 10px;
165
}
css/dashboard_widgets.css CHANGED
@@ -109,19 +109,4 @@
109
margin-top: 14px !important;
110
float: left;
111
font-size: 10px;
112
- }
113
-
114
- .wpms-widgets-qtip {
115
- border: 1px solid #707070;
116
- color: #fff;
117
- background-color: #707070;
118
- z-index: 10000;
119
- border-radius: 2px;
120
- line-height: 100%;
121
- font-size: 12px !important;
122
- line-height: 18px !important;
123
- }
124
-
125
- .wpms-widgets-qtip .qtip-tip{
126
- opacity: 0 !important;
127
}
109
margin-top: 14px !important;
110
float: left;
111
font-size: 10px;
112
}
css/my_qtip.css ADDED
@@ -0,0 +1,13 @@
1
+ .wpms-widgets-qtip,.wpms-widgets-qtip_show_arow {
2
+ border: 1px solid #707070;
3
+ color: #fff;
4
+ background-color: #707070;
5
+ z-index: 10000;
6
+ border-radius: 2px;
7
+ font-size: 12px !important;
8
+ line-height: 18px !important;
9
+ }
10
+
11
+ .wpms-widgets-qtip .qtip-tip{
12
+ opacity: 0 !important;
13
+ }
css/notification.css CHANGED
@@ -1,6 +1,5 @@
1
/* dashboard */
2
-
3
- .toplevel_page_metaseo_dashboard .wpms_dashboard_notification {
4
width: 75%;
5
margin: 0px auto;
6
padding: 0px 10px;
@@ -18,13 +17,13 @@
18
margin: 10px 0px 15px 0px;
19
}
20
21
- .toplevel_page_metaseo_dashboard .wpms_dashboard_notification .msg {
22
font-size: 14px !important;
23
margin: 10px 0px 30px 0px;
24
float: left;
25
}
26
27
- .toplevel_page_metaseo_dashboard .wpms_dashboard_widgets_content {
28
width: 100%;
29
float: left;
30
}
@@ -49,10 +48,8 @@
49
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
50
}
51
52
-
53
/* Sitemap */
54
-
55
- .wpms_notification {
56
width: 99%;
57
margin: 0px auto;
58
float: left;
@@ -72,12 +69,12 @@
72
float: left;
73
}
74
75
- .wpms_notification .msg {
76
font-size: 14px !important;
77
width: 100%;
78
}
79
80
- .wpms_notification .wpms_dashboard_widgets_content {
81
width: 100%;
82
float: left;
83
margin: 10px;
@@ -102,7 +99,7 @@
102
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
103
}
104
105
- .more-info {
106
float: left;
107
color: #fff !important;
108
font-size: 16px !important;
@@ -110,6 +107,6 @@
110
text-decoration: none;
111
}
112
113
- .more-info:hover {
114
color: #fff;
115
}
1
/* dashboard */
2
+ .toplevel_page_metaseo_dashboard .wpms_dashboard_notification{
3
width: 75%;
4
margin: 0px auto;
5
padding: 0px 10px;
17
margin: 10px 0px 15px 0px;
18
}
19
20
+ .toplevel_page_metaseo_dashboard .wpms_dashboard_notification .msg{
21
font-size: 14px !important;
22
margin: 10px 0px 30px 0px;
23
float: left;
24
}
25
26
+ .toplevel_page_metaseo_dashboard .wpms_dashboard_widgets_content{
27
width: 100%;
28
float: left;
29
}
48
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
49
}
50
51
/* Sitemap */
52
+ .wpms_notification{
53
width: 99%;
54
margin: 0px auto;
55
float: left;
69
float: left;
70
}
71
72
+ .wpms_notification .msg{
73
font-size: 14px !important;
74
width: 100%;
75
}
76
77
+ .wpms_notification .wpms_dashboard_widgets_content{
78
width: 100%;
79
float: left;
80
margin: 10px;
99
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
100
}
101
102
+ .more-info{
103
float: left;
104
color: #fff !important;
105
font-size: 16px !important;
107
text-decoration: none;
108
}
109
110
+ .more-info:hover{
111
color: #fff;
112
}
inc/class.metaseo-admin.php CHANGED
@@ -137,6 +137,17 @@ class MetaSeo_Admin {
137
<textarea name="wpms_category_metatitle" class="wpms_category_metatitle"></textarea><br />
138
<div class="cat-title-len"><?php echo WPMS_CAT_METATITLE_LENGTH; ?></div>
139
</div>
140
<div class="form-field" style="margin-top: 20px;margin-bottom: 20px;">
141
<label for="extra1" class="wpms_custom_cat_field" alt="<?php _e('This is the title of your content that may be displayed in search engine results (meta title). By default it’s the content title (page title, post title…). 69 characters max allowed.','wp-meta-seo') ?>"><?php _e('Search engine description','wp-meta-seo'); ?></label>
142
<textarea name="wpms_category_metadesc" class="wpms_category_metadesc"></textarea><br />
@@ -145,13 +156,21 @@ class MetaSeo_Admin {
145
<?php
146
}
147
148
- public function wpms_save_category_custom_meta( $term_id ) {
149
- if ( isset( $_POST['wpms_category_metatitle'] ) ) {
150
- update_term_meta( $term_id, 'wpms_category_metatitle' , $_POST['wpms_category_metatitle']);
151
}
152
153
- if ( isset( $_POST['wpms_category_metadesc'] ) ) {
154
- update_term_meta( $term_id, 'wpms_category_metadesc' , $_POST['wpms_category_metadesc']);
155
}
156
}
157
@@ -164,6 +183,7 @@ class MetaSeo_Admin {
164
$t_id = $tag->term_id;
165
$cat_metatitle = get_term_meta($t_id,'wpms_category_metatitle',true);
166
$cat_metadesc = get_term_meta($t_id,'wpms_category_metadesc',true);
167
?>
168
<tr class="form-field">
169
<th scope="row" valign="top"><label class="wpms_custom_cat_field" alt="<?php _e('This is the title of your content that may be displayed in search engine results (meta title). By default it’s the content title (page title, post title…). 69 characters max allowed.','wp-meta-seo') ?>"><?php _e('Search engine title','wp-meta-seo'); ?></label></th>
@@ -172,6 +192,19 @@ class MetaSeo_Admin {
172
<div class="cat-title-len"><?php echo $cat_metatitle ? WPMS_CAT_METATITLE_LENGTH-strlen($cat_metatitle) : WPMS_CAT_METATITLE_LENGTH; ?></div>
173
</td>
174
</tr>
175
<tr class="form-field">
176
<th scope="row" valign="top"><label for="extra1" class="wpms_custom_cat_field" alt="<?php _e('This is the title of your content that may be displayed in search engine results (meta title). By default it’s the content title (page title, post title…). 69 characters max allowed.','wp-meta-seo') ?>"><?php _e('Search engine description','wp-meta-seo'); ?></label></th>
177
<td>
@@ -188,6 +221,7 @@ class MetaSeo_Admin {
188
wp_enqueue_script('jquery-qtip', plugins_url('js/jquery.qtip.min.js', dirname(__FILE__)), array('jquery'), '2.2.1', true);
189
wp_enqueue_style('wpms-dashboard-widgets');
190
wp_enqueue_script('wpms-dashboard-widgets', plugins_url('js/dashboard_widgets.js', dirname(__FILE__)), array('jquery'), WPMSEO_VERSION);
191
$error_404 = MetaSeo_Dashboard::get_404_link();
192
require_once ( WPMETASEO_PLUGIN_DIR . 'inc/pages/dashboard_widgets.php' );
193
}
@@ -1203,6 +1237,7 @@ class MetaSeo_Admin {
1203
wp_register_script('wpms-category-field', plugins_url('js/category_field.js', dirname(__FILE__)), array('jquery'), WPMSEO_VERSION, true);
1204
wp_register_style('m-style-qtip', plugins_url('css/jquery.qtip.css', dirname(__FILE__)), array(), WPMSEO_VERSION);
1205
wp_register_script('jquery-qtip', plugins_url('js/jquery.qtip.min.js', dirname(__FILE__)), array('jquery'), '2.2.1', true);
1206
wp_register_script('wpms-broken-link', plugins_url('js/wpms-broken-link.js', dirname(__FILE__)), array('jquery'), WPMSEO_VERSION, true);
1207
1208
wp_register_style('metaseo-google-icon', '//fonts.googleapis.com/icon?family=Material+Icons');
@@ -1302,7 +1337,8 @@ class MetaSeo_Admin {
1302
'ajax_url' => admin_url('admin-ajax.php'),
1303
'settings' => $this->settings,
1304
'wpms_cat_metatitle_length' => WPMS_CAT_METATITLE_LENGTH,
1305
- 'wpms_cat_metadesc_length' => WPMS_CAT_METADESC_LENGTH
1306
));
1307
}
1308
137
<textarea name="wpms_category_metatitle" class="wpms_category_metatitle"></textarea><br />
138
<div class="cat-title-len"><?php echo WPMS_CAT_METATITLE_LENGTH; ?></div>
139
</div>
140
+
141
+ <?php
142
+ $settings = get_option('_metaseo_settings');
143
+ if (isset($settings['metaseo_showkeywords']) && $settings['metaseo_showkeywords'] == 1) :
144
+ ?>
145
+ <div class="form-field" style="margin-top: 20px;margin-bottom: 20px;">
146
+ <label class="wpms_custom_cat_field" alt="<?php _e('This is the keywords of your content that may be displayed in search engine results (meta keywords).','wp-meta-seo') ?>"><?php _e('Search engine keywords','wp-meta-seo'); ?></label>
147
+ <textarea name="wpms_category_metakeywords" class="wpms_category_metakeywords"></textarea><br />
148
+ <div class="cat-keywords-len"><?php echo WPMS_CAT_METAKEYWORDS_LENGTH; ?></div>
149
+ </div>
150
+ <?php endif; ?>
151
<div class="form-field" style="margin-top: 20px;margin-bottom: 20px;">
152
<label for="extra1" class="wpms_custom_cat_field" alt="<?php _e('This is the title of your content that may be displayed in search engine results (meta title). By default it’s the content title (page title, post title…). 69 characters max allowed.','wp-meta-seo') ?>"><?php _e('Search engine description','wp-meta-seo'); ?></label>
153
<textarea name="wpms_category_metadesc" class="wpms_category_metadesc"></textarea><br />
156
<?php
157
}
158
159
+ public function wpms_save_category_custom_meta( $term_id )
160
+ {
161
+ if (isset($_POST['wpms_category_metatitle'])) {
162
+ update_term_meta($term_id, 'wpms_category_metatitle', $_POST['wpms_category_metatitle']);
163
}
164
165
+ if (isset($_POST['wpms_category_metadesc'])) {
166
+ update_term_meta($term_id, 'wpms_category_metadesc', $_POST['wpms_category_metadesc']);
167
+ }
168
+
169
+ $settings = get_option('_metaseo_settings');
170
+ if (isset($settings['metaseo_showkeywords']) && $settings['metaseo_showkeywords'] == 1) {
171
+ if (isset($_POST['wpms_category_metakeywords'])) {
172
+ update_term_meta($term_id, 'wpms_category_metakeywords', $_POST['wpms_category_metakeywords']);
173
+ }
174
}
175
}
176
183
$t_id = $tag->term_id;
184
$cat_metatitle = get_term_meta($t_id,'wpms_category_metatitle',true);
185
$cat_metadesc = get_term_meta($t_id,'wpms_category_metadesc',true);
186
+ $cat_metakeywords = get_term_meta($t_id,'wpms_category_metakeywords',true);
187
?>
188
<tr class="form-field">
189
<th scope="row" valign="top"><label class="wpms_custom_cat_field" alt="<?php _e('This is the title of your content that may be displayed in search engine results (meta title). By default it’s the content title (page title, post title…). 69 characters max allowed.','wp-meta-seo') ?>"><?php _e('Search engine title','wp-meta-seo'); ?></label></th>
192
<div class="cat-title-len"><?php echo $cat_metatitle ? WPMS_CAT_METATITLE_LENGTH-strlen($cat_metatitle) : WPMS_CAT_METATITLE_LENGTH; ?></div>
193
</td>
194
</tr>
195
+
196
+ <?php
197
+ $settings = get_option('_metaseo_settings');
198
+ if (isset($settings['metaseo_showkeywords']) && $settings['metaseo_showkeywords'] == 1) :
199
+ ?>
200
+ <tr class="form-field">
201
+ <th scope="row" valign="top"><label for="extra1" class="wpms_custom_cat_field" alt="<?php _e('This is the keywords of your content that may be displayed in search engine results (meta keywords).','wp-meta-seo') ?>"><?php _e('Search engine keywords','wp-meta-seo'); ?></label></th>
202
+ <td>
203
+ <textarea name="wpms_category_metakeywords" class="wpms_category_metakeywords"><?php echo (!empty($cat_metakeywords)) ? $cat_metakeywords : ''; ?></textarea><br />
204
+ <div class="cat-keywords-len"><?php echo $cat_metakeywords ? WPMS_CAT_METAKEYWORDS_LENGTH-strlen($cat_metakeywords) : WPMS_CAT_METAKEYWORDS_LENGTH; ?></div>
205
+ </td>
206
+ </tr>
207
+ <?php endif; ?>
208
<tr class="form-field">
209
<th scope="row" valign="top"><label for="extra1" class="wpms_custom_cat_field" alt="<?php _e('This is the title of your content that may be displayed in search engine results (meta title). By default it’s the content title (page title, post title…). 69 characters max allowed.','wp-meta-seo') ?>"><?php _e('Search engine description','wp-meta-seo'); ?></label></th>
210
<td>
221
wp_enqueue_script('jquery-qtip', plugins_url('js/jquery.qtip.min.js', dirname(__FILE__)), array('jquery'), '2.2.1', true);
222
wp_enqueue_style('wpms-dashboard-widgets');
223
wp_enqueue_script('wpms-dashboard-widgets', plugins_url('js/dashboard_widgets.js', dirname(__FILE__)), array('jquery'), WPMSEO_VERSION);
224
+ wp_enqueue_style('wpms-myqtip');
225
$error_404 = MetaSeo_Dashboard::get_404_link();
226
require_once ( WPMETASEO_PLUGIN_DIR . 'inc/pages/dashboard_widgets.php' );
227
}
1237
wp_register_script('wpms-category-field', plugins_url('js/category_field.js', dirname(__FILE__)), array('jquery'), WPMSEO_VERSION, true);
1238
wp_register_style('m-style-qtip', plugins_url('css/jquery.qtip.css', dirname(__FILE__)), array(), WPMSEO_VERSION);
1239
wp_register_script('jquery-qtip', plugins_url('js/jquery.qtip.min.js', dirname(__FILE__)), array('jquery'), '2.2.1', true);
1240
+ wp_register_style('wpms-myqtip', plugins_url('css/my_qtip.css', dirname(__FILE__)), array(), WPMSEO_VERSION);
1241
wp_register_script('wpms-broken-link', plugins_url('js/wpms-broken-link.js', dirname(__FILE__)), array('jquery'), WPMSEO_VERSION, true);
1242
1243
wp_register_style('metaseo-google-icon', '//fonts.googleapis.com/icon?family=Material+Icons');
1337
'ajax_url' => admin_url('admin-ajax.php'),
1338
'settings' => $this->settings,
1339
'wpms_cat_metatitle_length' => WPMS_CAT_METATITLE_LENGTH,
1340
+ 'wpms_cat_metadesc_length' => WPMS_CAT_METADESC_LENGTH,
1341
+ 'wpms_cat_metakeywords_length' => WPMS_CAT_METAKEYWORDS_LENGTH
1342
));
1343
}
1344
inc/class.metaseo-dashboard.php CHANGED
@@ -482,15 +482,22 @@ class MetaSeo_Dashboard {
482
*/
483
public function wpms_getImages_optimizer() {
484
global $wpdb;
485
- $query = 'SELECT distinct file FROM ' . $wpdb->prefix . 'wpio_images';
486
- $files = $wpdb->get_results($query);
487
- $image_optimize = 0;
488
- foreach ($files as $file) {
489
- if (file_exists(str_replace('/', DIRECTORY_SEPARATOR, ABSPATH . $file->file))) {
490
- $image_optimize++;
491
}
492
}
493
- return $image_optimize;
494
}
495
496
/*
482
*/
483
public function wpms_getImages_optimizer() {
484
global $wpdb;
485
+ $sql = $wpdb->prepare("SELECT * FROM INFORMATION_SCHEMA.TABLES
486
+ WHERE table_name = %s AND TABLE_SCHEMA = %s",array($wpdb->prefix . 'wpio_images',$wpdb->dbname));
487
+ $row = $wpdb->get_results($sql);
488
+ if(!empty($row)){
489
+ $query = 'SELECT distinct file FROM ' . $wpdb->prefix . 'wpio_images';
490
+ $files = $wpdb->get_results($query);
491
+ $image_optimize = 0;
492
+ foreach ($files as $file) {
493
+ if (file_exists(str_replace('/', DIRECTORY_SEPARATOR, ABSPATH . $file->file))) {
494
+ $image_optimize++;
495
+ }
496
}
497
+ return $image_optimize;
498
+ }else{
499
+ return 0;
500
}
501
}
502
503
/*
inc/class.metaseo-image-list-table.php CHANGED
@@ -59,7 +59,7 @@ class MetaSeo_Image_List_Table extends WP_List_Table {
59
<?php if($which == 'top'): ?>
60
<div style="float:left;position: relative;">
61
<div class="wpms_process_meta" data-w="0" style="position: absolute;top: -2px;"></div>
62
- <input type="button" name="image_scan_meta" class="wpmsbtn wpmsbtn_small image_scan_meta" data-paged="1" value="<?php _e('Index images', 'wp-meta-seo') ?>">
63
</div>
64
<?php endif; ?>
65
<span class="spinner"></span>
@@ -338,7 +338,7 @@ class MetaSeo_Image_List_Table extends WP_List_Table {
338
}elseif(isset($_GET['slmeta']) && $_GET['slmeta'] == 'resizeimages'){
339
$join = "INNER JOIN (SELECT * FROM {$wpdb->prefix}postmeta WHERE meta_key = 'wpms_resizeimages' AND meta_value = 1) mt ON mt.post_id = posts.ID ";
340
}else{
341
- $join = "LEFT JOIN (SELECT * FROM {$wpdb->prefix}postmeta WHERE meta_key = '_wp_attachment_image_alt' AND meta_value = 1) mt ON mt.post_id = posts.ID ";
342
}
343
344
$query = "SELECT COUNT(ID)
@@ -1639,8 +1639,23 @@ class MetaSeo_Image_List_Table extends WP_List_Table {
1639
$imgs_diff = array_diff($old_imgs,$new_imgs);
1640
if(!empty($imgs_diff)){
1641
foreach ($imgs_diff as $id){
1642
- delete_post_meta($id,'wpms_missing_information');
1643
- delete_post_meta($id,'wpms_resizeimages');
1644
}
1645
}
1646
}
59
<?php if($which == 'top'): ?>
60
<div style="float:left;position: relative;">
61
<div class="wpms_process_meta" data-w="0" style="position: absolute;top: -2px;"></div>
62
+ <input alt="<?php _e('Index images is required to use the Images filtering system above. Beware it may take a while depending of the quantity of images you got. Check the progress bar and be patient :)','wp-meta-seo') ?>" type="button" name="image_scan_meta" class="wpmsbtn wpmsbtn_small image_scan_meta" data-paged="1" value="<?php _e('Index images', 'wp-meta-seo') ?>">
63
</div>
64
<?php endif; ?>
65
<span class="spinner"></span>
338
}elseif(isset($_GET['slmeta']) && $_GET['slmeta'] == 'resizeimages'){
339
$join = "INNER JOIN (SELECT * FROM {$wpdb->prefix}postmeta WHERE meta_key = 'wpms_resizeimages' AND meta_value = 1) mt ON mt.post_id = posts.ID ";
340
}else{
341
+ $join = "LEFT JOIN (SELECT * FROM {$wpdb->prefix}postmeta WHERE meta_key = '_wp_attachment_image_alt') mt ON mt.post_id = posts.ID ";
342
}
343
344
$query = "SELECT COUNT(ID)
1639
$imgs_diff = array_diff($old_imgs,$new_imgs);
1640
if(!empty($imgs_diff)){
1641
foreach ($imgs_diff as $id){
1642
+ $path = get_attached_file($id);
1643
+ $infos = pathinfo($path);
1644
+ $img_name = $infos['basename'];
1645
+ $imgs = array('name' => $img_name , 'img_post_id' => $id);
1646
+ $results = MetaSeo_Image_List_Table::wpms_scan_posts_meta($imgs,true,$post_ID);
1647
+
1648
+ // update or delete meta
1649
+ if($results['msg'][$id]['imNotGood']['warning']){
1650
+ update_post_meta($id,'wpms_missing_information',1);
1651
+ }else{
1652
+ delete_post_meta($id,'wpms_missing_information');
1653
+ }
1654
+ if($results['msg'][$id]['iNotGood']['warning']){
1655
+ update_post_meta($id,'wpms_resizeimages',1);
1656
+ }else{
1657
+ delete_post_meta($id,'wpms_resizeimages');
1658
+ }
1659
}
1660
}
1661
}
inc/pages/dashboard.php CHANGED
@@ -5,6 +5,7 @@ if (!class_exists('MetaSeo_Dashboard')) {
5
6
wp_enqueue_style('m-style-qtip');
7
wp_enqueue_script('jquery-qtip');
8
9
$site_name = preg_replace('/(^(http|https):\/\/[w]*\.*)/', '', get_site_url());
10
$pieces = explode("/", $site_name);
@@ -27,7 +28,7 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
27
<div class="wpms_dashboard_widgets_left">
28
<h4 class="panel-title dashboard-title"><?php _e('PERMALINKS SETTINGS','wp-meta-seo') ?></h4>
29
<h3 class="dashboard-title percent_1">50%</h3>
30
- <p class="dashboard-title percent_2"><?php _e('Optimized at:','wp-meta-seo') ?> 50%</p>
31
</div>
32
<div class="wpms_dashboard_widgets_right">
33
<div class="progress-rating">
@@ -50,7 +51,7 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
50
<div class="wpms_dashboard_widgets_left">
51
<h4 class="panel-title dashboard-title"><?php _e('META TITLE','wp-meta-seo') ?></h4>
52
<h3 class="dashboard-title percent_1">0%</h3>
53
- <p class="dashboard-title percent_2"><?php _e('Meta title filled:','wp-meta-seo') ?> 0%</p>
54
</div>
55
<div class="wpms_dashboard_widgets_right">
56
<div class="progress-rating">
@@ -73,7 +74,7 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
73
<div class="wpms_dashboard_widgets_left">
74
<h4 class="panel-title dashboard-title"><?php _e('META DESCRIPTION','wp-meta-seo') ?></h4>
75
<h3 class="dashboard-title percent_1">0%</h3>
76
- <p class="dashboard-title percent_2"><?php _e('Meta description filled:','wp-meta-seo') ?> 0%</p>
77
</div>
78
<div class="wpms_dashboard_widgets_right">
79
<div class="progress-rating">
@@ -110,7 +111,7 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
110
<div class="wpms_dashboard_widgets_left">
111
<h4 class="panel-title dashboard-title"><?php _e('HTML IMAGE RESIZING','wp-meta-seo') ?></h4>
112
<h3 class="dashboard-title percent_1">0%</h3>
113
- <p class="dashboard-title percent_2"><?php _e('Wrong resized images:','wp-meta-seo') ?> 0%</p>
114
</div>
115
<div class="wpms_dashboard_widgets_right">
116
<div class="progress-rating">
@@ -133,7 +134,7 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
133
<div class="wpms_dashboard_widgets_left">
134
<h4 class="panel-title dashboard-title"><?php _e('IMAGE TITLE/ALT','wp-meta-seo') ?></h4>
135
<h3 class="dashboard-title percent_1">0%</h3>
136
- <p class="dashboard-title percent_2"><?php _e('Image data filled (in content):','wp-meta-seo') ?> 0%</p>
137
</div>
138
<div class="wpms_dashboard_widgets_right">
139
<div class="progress-rating">
@@ -156,7 +157,7 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
156
<div class="wpms_dashboard_widgets_left">
157
<h4 class="panel-title dashboard-title"><?php _e('NEW OR UPDATED CONTENT','wp-meta-seo') ?></h4>
158
<h3 class="dashboard-title percent_1">0%</h3>
159
- <p class="dashboard-title percent_2"><?php _e('Latest month new or updated content:','wp-meta-seo') ?> 0%</p>
160
</div>
161
<div class="wpms_dashboard_widgets_right">
162
<div class="progress-rating">
@@ -179,7 +180,7 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
179
<div class="wpms_dashboard_widgets_left">
180
<h4 class="panel-title dashboard-title"><?php _e('LINK TITLES','wp-meta-seo') ?></h4>
181
<h3 class="dashboard-title percent_1">0%</h3>
182
- <p class="dashboard-title percent_2"><?php _e('Links title completed:','wp-meta-seo') ?> 0%</p>
183
</div>
184
<div class="wpms_dashboard_widgets_right">
185
<div class="progress-rating">
@@ -220,47 +221,47 @@ $plugin_imgRecycle_file = 'imagerecycle-pdf-image-compression/wp-image-recycle.p
220
<?php
221
if (!is_plugin_active($plugin_imgRecycle_file)) :
222
?>
223
-
224
- <div class="col-sm-6 metaseo_tool" alt="<?php _e('Images represent around 60% of a web page weight. An image compression reduce the image size by up to 70% while preserving the same visual quality. Small loading time is great for SEO!', 'wp-meta-seo') ?>">
225
- <div class="panel panel-success-full panel-updates">
226
- <div class="panel-body">
227
- <div class="row">
228
- <div class="col-xs-7 col-lg-8">
229
- <h4 class="panel-title text-success"><?php _e('Image compression', 'wp-meta-seo') ?></h4>
230
- <h3>0%</h3>
231
- <div class="progress">
232
- <div style="width:0%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" role="progressbar" class="progress-bar progress-bar-info">
233
- <span class="sr-only">0% Complete (success)</span>
234
</div>
235
</div>
236
- <p><?php _e('Use ImageRecycle image compression plugin to activate this feature', 'wp-meta-seo') ?>: 0%</p>
237
- </div>
238
- <div class="col-xs-5 col-lg-4 text-right">
239
- <input type="text" value="0" class="dial-info">
240
</div>
241
</div>
242
</div>
243
</div>
244
</div>
245
-
246
<?php else: ?>
247
<?php $optimizer_results = $dashboard->wpms_getImages_count(); ?>
248
- <div class="col-sm-6 metaseo_tool" alt="<?php _e('Images represent around 60% of a web page weight. An image compression reduce the image size by up to 70% while preserving the same visual quality. Small loading time is great for SEO!', 'wp-meta-seo') ?>">
249
- <div class="panel panel-success-full panel-updates">
250
- <div class="panel-body">
251
- <div class="row">
252
- <div class="col-xs-7 col-lg-8">
253
- <h4 class="panel-title text-success"><?php _e('Image compression', 'wp-meta-seo') ?></h4>
254
- <h3><?php echo $optimizer_results['percent'] . '%' ?></h3>
255
- <div class="progress">
256
- <div style="width: <?php echo $optimizer_results['percent'] . '%' ?>" aria-valuemax="100" aria-valuemin="0" aria-valuenow="<?php echo $optimizer_results['percent'] ?>" role="progressbar" class="progress-bar progress-bar-info">
257
- <span class="sr-only"><?php echo $optimizer_results['percent'] . '%' ?> Complete (success)</span>
258
</div>
259
</div>
260
- <p><?php _e('Compressed images', 'wp-meta-seo') ?>: <?php echo $optimizer_results['image_optimize'] . '/' . $optimizer_results['count_image'] ?></p>
261
- </div>
262
- <div class="col-xs-5 col-lg-4 text-right">
263
- <input type="text" value="<?php echo $optimizer_results['percent'] ?>" class="dial-info">
264
</div>
265
</div>
266
</div>
5
6
wp_enqueue_style('m-style-qtip');
7
wp_enqueue_script('jquery-qtip');
8
+ wp_enqueue_style('wpms-myqtip');
9
10
$site_name = preg_replace('/(^(http|https):\/\/[w]*\.*)/', '', get_site_url());
11
$pieces = explode("/", $site_name);
28
<div class="wpms_dashboard_widgets_left">
29
<h4 class="panel-title dashboard-title"><?php _e('PERMALINKS SETTINGS','wp-meta-seo') ?></h4>
30
<h3 class="dashboard-title percent_1">50%</h3>
31
+ <p class="dashboard-title percent_2"><?php _e('Optimized at:','wp-meta-seo') ?> <span class="percent">50%</span></p>
32
</div>
33
<div class="wpms_dashboard_widgets_right">
34
<div class="progress-rating">
51
<div class="wpms_dashboard_widgets_left">
52
<h4 class="panel-title dashboard-title"><?php _e('META TITLE','wp-meta-seo') ?></h4>
53
<h3 class="dashboard-title percent_1">0%</h3>
54
+ <p class="dashboard-title percent_2"><?php _e('Meta title filled:','wp-meta-seo') ?> <span class="percent">0/0</span></p>
55
</div>
56
<div class="wpms_dashboard_widgets_right">
57
<div class="progress-rating">
74
<div class="wpms_dashboard_widgets_left">
75
<h4 class="panel-title dashboard-title"><?php _e('META DESCRIPTION','wp-meta-seo') ?></h4>
76
<h3 class="dashboard-title percent_1">0%</h3>
77
+ <p class="dashboard-title percent_2"><?php _e('Meta description filled:','wp-meta-seo') ?> <span class="percent">0/0</span></p>
78
</div>
79
<div class="wpms_dashboard_widgets_right">
80
<div class="progress-rating">
111
<div class="wpms_dashboard_widgets_left">
112
<h4 class="panel-title dashboard-title"><?php _e('HTML IMAGE RESIZING','wp-meta-seo') ?></h4>
113
<h3 class="dashboard-title percent_1">0%</h3>
114
+ <p class="dashboard-title percent_2"><?php _e('Wrong resized images:','wp-meta-seo') ?> <span class="percent">0/0</span></p>
115
</div>
116
<div class="wpms_dashboard_widgets_right">
117
<div class="progress-rating">
134
<div class="wpms_dashboard_widgets_left">
135
<h4 class="panel-title dashboard-title"><?php _e('IMAGE TITLE/ALT','wp-meta-seo') ?></h4>
136
<h3 class="dashboard-title percent_1">0%</h3>
137
+ <p class="dashboard-title percent_2"><?php _e('Image data filled (in content):','wp-meta-seo') ?> <span class="percent">0/0</span></p>
138
</div>
139
<div class="wpms_dashboard_widgets_right">
140
<div class="progress-rating">
157
<div class="wpms_dashboard_widgets_left">
158
<h4 class="panel-title dashboard-title"><?php _e('NEW OR UPDATED CONTENT','wp-meta-seo') ?></h4>
159
<h3 class="dashboard-title percent_1">0%</h3>
160
+ <p class="dashboard-title percent_2"><?php _e('Latest month new or updated content:','wp-meta-seo') ?> <span class="percent">0</span></p>
161
</div>
162
<div class="wpms_dashboard_widgets_right">
163
<div class="progress-rating">
180
<div class="wpms_dashboard_widgets_left">
181
<h4 class="panel-title dashboard-title"><?php _e('LINK TITLES','wp-meta-seo') ?></h4>
182
<h3 class="dashboard-title percent_1">0%</h3>
183
+ <p class="dashboard-title percent_2"><?php _e('Links title completed:','wp-meta-seo') ?> <span class="percent">0/0</span></p>
184
</div>
185
<div class="wpms_dashboard_widgets_right">
186
<div class="progress-rating">
221
<?php
222
if (!is_plugin_active($plugin_imgRecycle_file)) :
223
?>
224
+ <div class="wpms_dash_widgets" alt="<?php _e('Images represent around 60% of a web page weight. An image compression reduce the image size by up to 70% while preserving the same visual quality. Small loading time is great for SEO!', 'wp-meta-seo') ?>">
225
+ <div class="row panel-statistics">
226
+ <div class="tooltipped">
227
+ <div class="panel panel-updates dashboard-card">
228
+ <div class="panel-body">
229
+ <div class="row">
230
+ <div class="wpms_dashboard_widgets_left">
231
+ <h4 class="panel-title dashboard-title"><?php _e('IMAGE COMPRESSION','wp-meta-seo') ?></h4>
232
+ <h3 class="dashboard-title percent_1">0%</h3>
233
+ <p class="dashboard-title percent_2"><?php _e('Use ImageRecycle image compression plugin to activate this feature', 'wp-meta-seo') ?>: 0/0</p>
234
+ </div>
235
+ <div class="wpms_dashboard_widgets_right">
236
+ <div class="progress-rating">
237
+ <div class="determinate percent_3" style="width: 0%"></div>
238
+ </div>
239
</div>
240
</div>
241
</div>
242
</div>
243
</div>
244
</div>
245
</div>
246
<?php else: ?>
247
<?php $optimizer_results = $dashboard->wpms_getImages_count(); ?>
248
+ <div class="wpms_dash_widgets" alt="<?php _e('Images represent around 60% of a web page weight. An image compression reduce the image size by up to 70% while preserving the same visual quality. Small loading time is great for SEO!', 'wp-meta-seo') ?>">
249
+ <div class="row panel-statistics">
250
+ <div class="tooltipped">
251
+ <div class="panel panel-updates dashboard-card">
252
+ <div class="panel-body">
253
+ <div class="row">
254
+ <div class="wpms_dashboard_widgets_left">
255
+ <h4 class="panel-title dashboard-title"><?php _e('IMAGE COMPRESSION','wp-meta-seo') ?></h4>
256
+ <h3 class="dashboard-title percent_1"><?php echo $optimizer_results['percent'] . '%' ?></h3>
257
+ <p class="dashboard-title percent_2"><?php _e('Compressed images', 'wp-meta-seo') ?>: <?php echo $optimizer_results['image_optimize'] . '/' . $optimizer_results['count_image'] ?></p>
258
+ </div>
259
+ <div class="wpms_dashboard_widgets_right">
260
+ <div class="progress-rating">
261
+ <div class="determinate percent_3" style="width: <?php echo $optimizer_results['percent'] . '%' ?>"></div>
262
+ </div>
263
</div>
264
</div>
265
</div>
266
</div>
267
</div>
inc/pages/dashboard_widgets.php CHANGED
@@ -34,7 +34,7 @@
34
<h4 class="panel-title dashboard-title"><?php _e('META TITLE','wp-meta-seo') ?></h4>
35
<div class="panel-bottom">
36
<h3 class="dashboard-title percent_1">0%</h3>
37
- <span class="dashboard-title percent_2"><?php _e('Meta title filled:','wp-meta-seo') ?> <span class="percent">0%</span></span>
38
</div>
39
</div>
40
<div class="wpms_dashboard_widgets_right">
@@ -59,7 +59,7 @@
59
<h4 class="panel-title dashboard-title"><?php _e('META DESCRIPTION','wp-meta-seo') ?></h4>
60
<div class="panel-bottom">
61
<h3 class="dashboard-title percent_1">0%</h3>
62
- <span class="dashboard-title percent_2"><?php _e('Meta description filled:','wp-meta-seo') ?> <span class="percent">0%</span></span>
63
</div>
64
</div>
65
<div class="wpms_dashboard_widgets_right">
@@ -98,7 +98,7 @@
98
<h4 class="panel-title dashboard-title"><?php _e('HTML IMAGE RESIZING','wp-meta-seo') ?></h4>
99
<div class="panel-bottom">
100
<h3 class="dashboard-title percent_1">0%</h3>
101
- <span class="dashboard-title percent_2"><?php _e('Wrong resized images:','wp-meta-seo') ?> <span class="percent">0%</span></span>
102
</div>
103
</div>
104
<div class="wpms_dashboard_widgets_right">
@@ -123,7 +123,7 @@
123
<h4 class="panel-title dashboard-title"><?php _e('IMAGE TITLE/ALT','wp-meta-seo') ?></h4>
124
<div class="panel-bottom">
125
<h3 class="dashboard-title percent_1">0%</h3>
126
- <span class="dashboard-title percent_2"><?php _e('Image data filled (in content):','wp-meta-seo') ?> <span class="percent">0%</span></span>
127
</div>
128
</div>
129
<div class="wpms_dashboard_widgets_right">
@@ -148,7 +148,7 @@
148
<h4 class="panel-title dashboard-title"><?php _e('NEW OR UPDATED CONTENT','wp-meta-seo') ?></h4>
149
<div class="panel-bottom">
150
<h3 class="dashboard-title percent_1">0%</h3>
151
- <span class="dashboard-title percent_2"><?php _e('Latest month new or updated content:','wp-meta-seo') ?> <span class="percent">0%</span></span>
152
</div>
153
</div>
154
<div class="wpms_dashboard_widgets_right">
@@ -173,7 +173,7 @@
173
<h4 class="panel-title dashboard-title"><?php _e('LINK TITLES','wp-meta-seo') ?></h4>
174
<div class="panel-bottom">
175
<h3 class="dashboard-title percent_1">0%</h3>
176
- <span class="dashboard-title percent_2"><?php _e('Links title completed:','wp-meta-seo') ?> <span class="percent">0%</span></span>
177
</div>
178
</div>
179
<div class="wpms_dashboard_widgets_right">
34
<h4 class="panel-title dashboard-title"><?php _e('META TITLE','wp-meta-seo') ?></h4>
35
<div class="panel-bottom">
36
<h3 class="dashboard-title percent_1">0%</h3>
37
+ <span class="dashboard-title percent_2"><?php _e('Meta title filled:','wp-meta-seo') ?> <span class="percent">0/0</span></span>
38
</div>
39
</div>
40
<div class="wpms_dashboard_widgets_right">
59
<h4 class="panel-title dashboard-title"><?php _e('META DESCRIPTION','wp-meta-seo') ?></h4>
60
<div class="panel-bottom">
61
<h3 class="dashboard-title percent_1">0%</h3>
62
+ <span class="dashboard-title percent_2"><?php _e('Meta description filled:','wp-meta-seo') ?> <span class="percent">0/0</span></span>
63
</div>
64
</div>
65
<div class="wpms_dashboard_widgets_right">
98
<h4 class="panel-title dashboard-title"><?php _e('HTML IMAGE RESIZING','wp-meta-seo') ?></h4>
99
<div class="panel-bottom">
100
<h3 class="dashboard-title percent_1">0%</h3>
101
+ <span class="dashboard-title percent_2"><?php _e('Wrong resized images:','wp-meta-seo') ?> <span class="percent">0/0</span></span>
102
</div>
103
</div>
104
<div class="wpms_dashboard_widgets_right">
123
<h4 class="panel-title dashboard-title"><?php _e('IMAGE TITLE/ALT','wp-meta-seo') ?></h4>
124
<div class="panel-bottom">
125
<h3 class="dashboard-title percent_1">0%</h3>
126
+ <span class="dashboard-title percent_2"><?php _e('Image data filled (in content):','wp-meta-seo') ?> <span class="percent">0/0</span></span>
127
</div>
128
</div>
129
<div class="wpms_dashboard_widgets_right">
148
<h4 class="panel-title dashboard-title"><?php _e('NEW OR UPDATED CONTENT','wp-meta-seo') ?></h4>
149
<div class="panel-bottom">
150
<h3 class="dashboard-title percent_1">0%</h3>
151
+ <span class="dashboard-title percent_2"><?php _e('Latest month new or updated content:','wp-meta-seo') ?> <span class="percent">0</span></span>
152
</div>
153
</div>
154
<div class="wpms_dashboard_widgets_right">
173
<h4 class="panel-title dashboard-title"><?php _e('LINK TITLES','wp-meta-seo') ?></h4>
174
<div class="panel-bottom">
175
<h3 class="dashboard-title percent_1">0%</h3>
176
+ <span class="dashboard-title percent_2"><?php _e('Links title completed:','wp-meta-seo') ?> <span class="percent">0/0</span></span>
177
</div>
178
</div>
179
<div class="wpms_dashboard_widgets_right">
inc/pages/image-meta.php CHANGED
@@ -3,6 +3,9 @@ if (!class_exists('MetaSeo_Image_List_Table')) {
3
require_once( WPMETASEO_PLUGIN_DIR . '/inc/class.metaseo-image-list-table.php' );
4
}
5
6
$metaseo_list_table = new MetaSeo_Image_List_Table();
7
$metaseo_list_table->process_action();
8
$metaseo_list_table->prepare_items();
@@ -27,6 +30,27 @@ if (!empty($_REQUEST['_wp_http_referer'])) {
27
//Scan all posts to find a group of images in their content
28
metaSeoScanImages();
29
autosize(document.querySelectorAll('.metaseo-img-meta'));
30
});
31
32
</script>
3
require_once( WPMETASEO_PLUGIN_DIR . '/inc/class.metaseo-image-list-table.php' );
4
}
5
6
+ wp_enqueue_style('m-style-qtip');
7
+ wp_enqueue_script('jquery-qtip');
8
+ wp_enqueue_style('wpms-myqtip');
9
$metaseo_list_table = new MetaSeo_Image_List_Table();
10
$metaseo_list_table->process_action();
11
$metaseo_list_table->prepare_items();
30
//Scan all posts to find a group of images in their content
31
metaSeoScanImages();
32
autosize(document.querySelectorAll('.metaseo-img-meta'));
33
+
34
+ jQuery('.image_scan_meta').qtip({
35
+ content: {
36
+ attr: 'alt'
37
+ },
38
+ position: {
39
+ my: 'bottom center',
40
+ at: 'top center'
41
+ },
42
+ style: {
43
+ tip: {
44
+ corner: true,
45
+ },
46
+ classes: 'wpms-widgets-qtip_show_arow'
47
+ },
48
+ show: 'hover',
49
+ hide: {
50
+ fixed: true,
51
+ delay: 10
52
+ }
53
+ });
54
});
55
56
</script>
js/category_field.js CHANGED
@@ -77,5 +77,17 @@ jQuery(document).ready(function ($) {
77
}
78
});
79
80
wpms_cat_show_length();
81
});
77
}
78
});
79
80
+ jQuery('.wpms_category_metakeywords').keyup(function () {
81
+ var titleElm = jQuery(this);
82
+
83
+ if (titleElm.val() !== '') {
84
+ var len = wpms_localize.wpms_cat_metakeywords_length - titleElm.val().length;
85
+ wpms_cat_status_length(len, '.cat-keywords-len');
86
+ jQuery('.cat-keywords-len').html(len);
87
+ } else {
88
+ jQuery('.cat-keywords-len').addClass('length-true').removeClass('length-wrong').html('<span class="good">' + wpms_localize.wpms_cat_metakeywords_length + '</span>');
89
+ }
90
+ });
91
+
92
wpms_cat_show_length();
93
});
languages/wp-meta-seo-en_US.mo CHANGED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: JoomUnited
3
Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
Requires at least: 4.0
5
Tested up to: 4.8.0
6
- Stable tag: 3.4.0
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -261,6 +261,11 @@ It could be! if you have a lot of pages that need to be indexed with no specific
261
262
== Changelog ==
263
264
= 3.4.0 =
265
* Add : Simple Analytics tracking only based on UA or JS snippet
266
* Add : Add image indexation system for large websites (image bulk editor)
3
Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
Requires at least: 4.0
5
Tested up to: 4.8.0
6
+ Stable tag: 3.4.1
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
261
262
== Changelog ==
263
264
+ = 3.4.1 =
265
+ * Add : Meta keywords field in category meta edition
266
+ * Add : Update dashboard description and image compression layout
267
+ * Fix : Warning when 'wpio_images' table does not exist
268
+
269
= 3.4.0 =
270
* Add : Simple Analytics tracking only based on UA or JS snippet
271
* Add : Add image indexation system for large websites (image bulk editor)
wp-meta-seo.php CHANGED
@@ -4,7 +4,7 @@
4
* Plugin Name: WP Meta SEO
5
* Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
* Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
- * Version: 3.4.0
8
* Text Domain: wp-meta-seo
9
* Domain Path: /languages
10
* Author: JoomUnited
@@ -75,7 +75,7 @@ if (!defined('URL'))
75
define('URL', get_site_url());
76
77
if (!defined('WPMSEO_VERSION')) {
78
- define('WPMSEO_VERSION', '3.4.0');
79
}
80
81
if (!defined('WPMS_CLIENTID')) {
@@ -94,6 +94,10 @@ if (!defined('WPMS_CAT_METADESC_LENGTH')) {
94
define('WPMS_CAT_METADESC_LENGTH', 156);
95
}
96
97
if (!defined('WPMSEO_FILE'))
98
define('WPMSEO_FILE', __FILE__);
99
@@ -286,6 +290,13 @@ if (is_admin()) {
286
$term = $wp_query->get_queried_object();
287
$cat_metatitle = get_term_meta($term->term_id,'wpms_category_metatitle',true);
288
$cat_metadesc = get_term_meta($term->term_id,'wpms_category_metadesc',true);
289
if(isset($cat_metatitle) && $cat_metatitle != ''){
290
$meta_title = $meta_title_esc = $meta_facebook_title = $meta_twitter_title = esc_attr($cat_metatitle);
291
}else{
4
* Plugin Name: WP Meta SEO
5
* Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
* Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
+ * Version: 3.4.1
8
* Text Domain: wp-meta-seo
9
* Domain Path: /languages
10
* Author: JoomUnited
75
define('URL', get_site_url());
76
77
if (!defined('WPMSEO_VERSION')) {
78
+ define('WPMSEO_VERSION', '3.4.1');
79
}
80
81
if (!defined('WPMS_CLIENTID')) {
94
define('WPMS_CAT_METADESC_LENGTH', 156);
95
}
96
97
+ if (!defined('WPMS_CAT_METAKEYWORDS_LENGTH')) {
98
+ define('WPMS_CAT_METAKEYWORDS_LENGTH', 256);
99
+ }
100
+
101
if (!defined('WPMSEO_FILE'))
102
define('WPMSEO_FILE', __FILE__);
103
290
$term = $wp_query->get_queried_object();
291
$cat_metatitle = get_term_meta($term->term_id,'wpms_category_metatitle',true);
292
$cat_metadesc = get_term_meta($term->term_id,'wpms_category_metadesc',true);
293
+
294
+ if (isset($settings['metaseo_showkeywords']) && $settings['metaseo_showkeywords'] == 1) {
295
+ $meta_keywords = get_term_meta($term->term_id,'wpms_category_metakeywords',true);
296
+ $meta_keywords_esc = esc_attr($meta_keywords);
297
+ } else {
298
+ $meta_keywords_esc = '';
299
+ }
300
if(isset($cat_metatitle) && $cat_metatitle != ''){
301
$meta_title = $meta_title_esc = $meta_facebook_title = $meta_twitter_title = esc_attr($cat_metatitle);
302
}else{