Seo Optimized Images - Version 1.6.2

Version Description

  1. adding space before and after alt anf title attributes.
Download this release

Release Info

Developer priyanshu.mittal
Plugin Icon 128x128 Seo Optimized Images
Version 1.6.2
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.2

readme.txt CHANGED
@@ -50,6 +50,8 @@ In case you face any problem, contact us via the [Forums](https://wordpress.org/
50
 
51
 
52
  == Changelog ==
 
 
53
  = 1.6.1 =
54
  1. update setting label for plugin dashboard.
55
  = 1.6 =
50
 
51
 
52
  == Changelog ==
53
+ = 1.6.2 =
54
+ 1. adding space before and after alt anf title attributes.
55
  = 1.6.1 =
56
  1. update setting label for plugin dashboard.
57
  = 1.6 =
seo-optimized-images-settings.php CHANGED
@@ -139,7 +139,7 @@ if(isset($_POST['submit_general_settings_tab'])){
139
  '1'=>'YES',
140
  '0'=>'NO'); ?>
141
  <?php foreach($override_setting as $key => $value) { ?>
142
- <option value="<?php echo $key; ?>" <?php if ($soi_options_array['soi_override_thumbnail_images']==$key) { echo 'selected="selected"'; } ?> >
143
  <?php _e($value,'seoimages') ?> </option>
144
  <?php } ?>
145
  </select>
@@ -156,7 +156,7 @@ if(isset($_POST['submit_general_settings_tab'])){
156
  '1'=>'YES',
157
  '0'=>'NO'); ?>
158
  <?php foreach($override_setting as $key => $value) { ?>
159
- <option value="<?php echo $key; ?>" <?php if ($soi_options_array['soi_override_woo_thumbnail_images']==$key) { echo 'selected="selected"'; } ?> >
160
  <?php _e($value,'seoimages') ?> </option>
161
  <?php } ?>
162
  </select>
@@ -167,7 +167,7 @@ if(isset($_POST['submit_general_settings_tab'])){
167
  <tr valign="top">
168
  <th scope="row"><?php _e('Enable yoast pirmary category','seoimages');?></th>
169
  <td>
170
- <input type="checkbox" id="soi_override_yost_primary_cat" name="soi_override_yost_primary_cat" value="1" <?php if( $soi_options_array['soi_override_yost_primary_cat'] == true ) echo "checked"; ?> disabled>
171
  <p class=""><?php _e('Only Show Primary Category created by Yoast SEO Plugin.', 'seoimages') ?>&nbsp;&nbsp;<a class="prolinkbtn" >Available In Pro</a></p>
172
  </td>
173
  </tr>
139
  '1'=>'YES',
140
  '0'=>'NO'); ?>
141
  <?php foreach($override_setting as $key => $value) { ?>
142
+ <option value="<?php echo $key; ?>" <?php if (isset($soi_options_array['soi_override_thumbnail_images'])==$key) { echo 'selected="selected"'; } ?> >
143
  <?php _e($value,'seoimages') ?> </option>
144
  <?php } ?>
145
  </select>
156
  '1'=>'YES',
157
  '0'=>'NO'); ?>
158
  <?php foreach($override_setting as $key => $value) { ?>
159
+ <option value="<?php echo $key; ?>" <?php if (isset($soi_options_array['soi_override_woo_thumbnail_images'])==$key) { echo 'selected="selected"'; } ?> >
160
  <?php _e($value,'seoimages') ?> </option>
161
  <?php } ?>
162
  </select>
167
  <tr valign="top">
168
  <th scope="row"><?php _e('Enable yoast pirmary category','seoimages');?></th>
169
  <td>
170
+ <input type="checkbox" id="soi_override_yost_primary_cat" name="soi_override_yost_primary_cat" value="1" <?php if( isset($soi_options_array['soi_override_yost_primary_cat']) == true ) echo "checked"; ?> disabled>
171
  <p class=""><?php _e('Only Show Primary Category created by Yoast SEO Plugin.', 'seoimages') ?>&nbsp;&nbsp;<a class="prolinkbtn" >Available In Pro</a></p>
172
  </td>
173
  </tr>
seo-optimized-images.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: SEO Optimized Images
5
  Plugin URI: http://webriti.com
6
  Description: The **SEO Optimized Images** plugin Seo Optmized Images Plugin lets you dynamically insert Seo Friendly alt attributes and title attributes to your Images . Simply activate the plugin, provide the pattern and you are ready to go.
7
- Version: 1.6.1
8
  Author: priyanshu.mittal
9
  Author URI: http://webriti.com
10
 
@@ -70,10 +70,10 @@ function soi_replace_tags ($content, $alt_text='',$title='')
70
  // $t = "$post_title"
71
  // we want to output like alt = "text"
72
 
73
- $t = 'alt = "'.$alt_text.'"';
74
 
75
  // we want to output like title = "text"
76
- $t_title = 'title = "'.$title_text.'"';
77
 
78
 
79
  foreach($images[0] as $img)
@@ -113,8 +113,8 @@ function soi_replace_tags ($content, $alt_text='',$title='')
113
  $title_text = str_replace('%category',$post_category,$title_text );
114
 
115
  //configure tags with specified values from option panel.
116
- $t = 'alt = "'.$alt_text.'"';
117
- $t_title = 'title = "'.$title_text.'"';
118
 
119
  //take the alt tag out from the image html markup
120
  $is_alt = preg_match_all('/alt="([^"]*)"/i', $img, $alt);
4
  Plugin Name: SEO Optimized Images
5
  Plugin URI: http://webriti.com
6
  Description: The **SEO Optimized Images** plugin Seo Optmized Images Plugin lets you dynamically insert Seo Friendly alt attributes and title attributes to your Images . Simply activate the plugin, provide the pattern and you are ready to go.
7
+ Version: 1.6.2
8
  Author: priyanshu.mittal
9
  Author URI: http://webriti.com
10
 
70
  // $t = "$post_title"
71
  // we want to output like alt = "text"
72
 
73
+ $t = 'alt="'.$alt_text.'"';
74
 
75
  // we want to output like title = "text"
76
+ $t_title = 'title="'.$title_text.'"';
77
 
78
 
79
  foreach($images[0] as $img)
113
  $title_text = str_replace('%category',$post_category,$title_text );
114
 
115
  //configure tags with specified values from option panel.
116
+ $t = ' alt="'.$alt_text.'" ';
117
+ $t_title = ' title="'.$title_text.'" ';
118
 
119
  //take the alt tag out from the image html markup
120
  $is_alt = preg_match_all('/alt="([^"]*)"/i', $img, $alt);