Contextual Related Posts - Version 2.5.1

Version Description

  • Features:

    • New option to disable creation of thumbnails
  • Enhancements:

    • Do not delete index on activation
    • crp_thumbnail image size will set the default crop option to true if not already set
  • Bug fixes:

    • Missing/Unknown PHP errors/warnings in the widget
    • Minor CSS fixes
Download this release

Release Info

Developer Ajay
Plugin Icon 128x128 Contextual Related Posts
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

admin/admin.php CHANGED
@@ -120,13 +120,15 @@ function crp_options() {
120
  if ( 'crp_thumbnail' !== $crp_settings['thumb_size'] ) {
121
  $crp_thumb_size = crp_get_all_image_sizes( $crp_settings['thumb_size'] );
122
 
123
- $crp_settings['thumb_height'] = absint( $crp_thumb_size['height'] );
124
- $crp_settings['thumb_width'] = absint( $crp_thumb_size['width'] );
125
- $crp_settings['thumb_crop'] = $crp_thumb_size['crop'];
 
126
  } else {
127
- $crp_settings['thumb_height'] = absint( $_POST['thumb_height'] );
128
- $crp_settings['thumb_width'] = absint( $_POST['thumb_width'] );
129
- $crp_settings['thumb_crop'] = ( isset( $_POST['thumb_crop'] ) ? true : false );
 
130
  }
131
 
132
  $crp_settings['thumb_html'] = sanitize_text_field( wp_unslash( $_POST['thumb_html'] ) );
120
  if ( 'crp_thumbnail' !== $crp_settings['thumb_size'] ) {
121
  $crp_thumb_size = crp_get_all_image_sizes( $crp_settings['thumb_size'] );
122
 
123
+ $crp_settings['thumb_height'] = absint( $crp_thumb_size['height'] );
124
+ $crp_settings['thumb_width'] = absint( $crp_thumb_size['width'] );
125
+ $crp_settings['thumb_crop'] = $crp_thumb_size['crop'];
126
+ $crp_settings['thumb_create_sizes'] = ( isset( $_POST['thumb_create_sizes'] ) ? true : false );
127
  } else {
128
+ $crp_settings['thumb_height'] = absint( $_POST['thumb_height'] );
129
+ $crp_settings['thumb_width'] = absint( $_POST['thumb_width'] );
130
+ $crp_settings['thumb_crop'] = ( isset( $_POST['thumb_crop'] ) ? true : false );
131
+ $crp_settings['thumb_create_sizes'] = ( isset( $_POST['thumb_create_sizes'] ) ? true : false );
132
  }
133
 
134
  $crp_settings['thumb_html'] = sanitize_text_field( wp_unslash( $_POST['thumb_html'] ) );
admin/main-view.php CHANGED
@@ -575,6 +575,14 @@ if ( ! defined( 'WPINC' ) ) {
575
  </p>
576
  </td>
577
  </tr>
 
 
 
 
 
 
 
 
578
  <tr><th scope="row"><label for="thumb_html"><?php esc_html_e( 'Image size attributes:', 'contextual-related-posts' ); ?></label></th>
579
  <td>
580
  <label>
575
  </p>
576
  </td>
577
  </tr>
578
+ <tr><th scope="row"><label for="thumb_create_sizes"><?php esc_html_e( 'Generate thumbnail sizes:', 'contextual-related-posts' ); ?></label></th>
579
+ <td>
580
+ <input type="checkbox" name="thumb_create_sizes" id="thumb_create_sizes" <?php checked( true, $crp_settings['thumb_create_sizes'] ); ?> />
581
+ <p class="description">
582
+ <?php esc_html_e( 'If you select this option and Custom size is selected above, the plugin will register the image size with WordPress to create new thumbnails. Does not update old images as explained above.', 'contextual-related-posts' ); ?>
583
+ </p>
584
+ </td>
585
+ </tr>
586
  <tr><th scope="row"><label for="thumb_html"><?php esc_html_e( 'Image size attributes:', 'contextual-related-posts' ); ?></label></th>
587
  <td>
588
  <label>
admin/metabox.php CHANGED
@@ -138,7 +138,7 @@ function crp_call_meta_box() {
138
  printf(
139
  /* translators: Post type name */
140
  esc_html__( 'This post type is: %s', 'contextual-related-posts' ),
141
- '<em>' . esc_html__( get_post_type( $manual_related_post ) ) . '</em>'
142
  );
143
 
144
  echo '</li>';
@@ -151,7 +151,7 @@ function crp_call_meta_box() {
151
  <label for="crp_thumb_meta"><strong><?php esc_html_e( 'Location of thumbnail', 'contextual-related-posts' ); ?>:</strong></label>
152
  <input type="text" id="crp_thumb_meta" name="crp_thumb_meta" value="<?php echo esc_attr( $value ); ?>" style="width:100%" />
153
  <em><?php esc_html_e( "Enter the full URL to the image (JPG, PNG or GIF) you'd like to use. This image will be used for the post. It will be resized to the thumbnail size set under Settings &raquo; Related Posts &raquo; Output Options", 'contextual-related-posts' ); ?></em>
154
- <em><?php esc_html_e( 'The URL above is saved in the meta field:', 'contextual-related-posts' ); ?></em> <strong><?php esc_html_e( $crp_settings['thumb_meta'] ); ?></strong>
155
  </p>
156
 
157
  <p>
@@ -255,8 +255,8 @@ function crp_save_meta_box( $post_id ) {
255
  $crp_post_meta_filtered = array_filter( $crp_post_meta );
256
 
257
  /**** Now we can start saving */
258
- if ( empty( $crp_post_meta_filtered ) ) { // Checks if all the array items are 0 or empty
259
- delete_post_meta( $post_id, 'crp_post_meta' ); // Delete the post meta if no options are set
260
  } else {
261
  update_post_meta( $post_id, 'crp_post_meta', $crp_post_meta_filtered );
262
  }
138
  printf(
139
  /* translators: Post type name */
140
  esc_html__( 'This post type is: %s', 'contextual-related-posts' ),
141
+ '<em>' . esc_html( get_post_type( $manual_related_post ) ) . '</em>'
142
  );
143
 
144
  echo '</li>';
151
  <label for="crp_thumb_meta"><strong><?php esc_html_e( 'Location of thumbnail', 'contextual-related-posts' ); ?>:</strong></label>
152
  <input type="text" id="crp_thumb_meta" name="crp_thumb_meta" value="<?php echo esc_attr( $value ); ?>" style="width:100%" />
153
  <em><?php esc_html_e( "Enter the full URL to the image (JPG, PNG or GIF) you'd like to use. This image will be used for the post. It will be resized to the thumbnail size set under Settings &raquo; Related Posts &raquo; Output Options", 'contextual-related-posts' ); ?></em>
154
+ <em><?php esc_html_e( 'The URL above is saved in the meta field:', 'contextual-related-posts' ); ?></em> <strong><?php echo esc_html( $crp_settings['thumb_meta'] ); ?></strong>
155
  </p>
156
 
157
  <p>
255
  $crp_post_meta_filtered = array_filter( $crp_post_meta );
256
 
257
  /**** Now we can start saving */
258
+ if ( empty( $crp_post_meta_filtered ) ) { // Checks if all the array items are 0 or empty.
259
+ delete_post_meta( $post_id, 'crp_post_meta' ); // Delete the post meta if no options are set.
260
  } else {
261
  update_post_meta( $post_id, 'crp_post_meta', $crp_post_meta_filtered );
262
  }
contextual-related-posts.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Contextual Related Posts
16
  * Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
17
  * Description: Display a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
18
- * Version: 2.5.0
19
  * Author: WebberZone
20
  * Author URI: https://webberzone.com
21
  * License: GPL-2.0+
@@ -167,6 +167,7 @@ function crp_default_options() {
167
  'thumb_height' => '150', // Height of thumbnails.
168
  'thumb_width' => '150', // Width of thumbnails.
169
  'thumb_crop' => true, // Crop mode. default is hard crop.
 
170
  'thumb_html' => 'html', // Use HTML or CSS for width and height of the thumbnail?
171
  'thumb_meta' => 'post-image', // Meta field that is used to store the location of default thumbnail image.
172
  'scan_images' => true, // Scan post for images.
@@ -234,7 +235,7 @@ function crp_read_options() {
234
 
235
 
236
  /*
237
- ----------------------------------------------------------------------------*
238
  * CRP modules & includes
239
  *----------------------------------------------------------------------------
240
  */
@@ -255,7 +256,7 @@ require_once CRP_PLUGIN_DIR . 'includes/modules/class-crp-widget.php';
255
 
256
 
257
  /*
258
- ----------------------------------------------------------------------------*
259
  * Dashboard and Administrative Functionality
260
  *----------------------------------------------------------------------------
261
  */
@@ -267,11 +268,11 @@ if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
267
  require_once CRP_PLUGIN_DIR . 'admin/metabox.php';
268
  require_once CRP_PLUGIN_DIR . 'admin/cache.php';
269
 
270
- } // End if().
271
 
272
 
273
  /*
274
- ----------------------------------------------------------------------------*
275
  * Deprecated functions
276
  *----------------------------------------------------------------------------
277
  */
15
  * Plugin Name: Contextual Related Posts
16
  * Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
17
  * Description: Display a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
18
+ * Version: 2.5.1
19
  * Author: WebberZone
20
  * Author URI: https://webberzone.com
21
  * License: GPL-2.0+
167
  'thumb_height' => '150', // Height of thumbnails.
168
  'thumb_width' => '150', // Width of thumbnails.
169
  'thumb_crop' => true, // Crop mode. default is hard crop.
170
+ 'thumb_create_sizes' => true, // Create thumbnail sizes.
171
  'thumb_html' => 'html', // Use HTML or CSS for width and height of the thumbnail?
172
  'thumb_meta' => 'post-image', // Meta field that is used to store the location of default thumbnail image.
173
  'scan_images' => true, // Scan post for images.
235
 
236
 
237
  /*
238
+ *----------------------------------------------------------------------------
239
  * CRP modules & includes
240
  *----------------------------------------------------------------------------
241
  */
256
 
257
 
258
  /*
259
+ *----------------------------------------------------------------------------
260
  * Dashboard and Administrative Functionality
261
  *----------------------------------------------------------------------------
262
  */
268
  require_once CRP_PLUGIN_DIR . 'admin/metabox.php';
269
  require_once CRP_PLUGIN_DIR . 'admin/cache.php';
270
 
271
+ } // End if.
272
 
273
 
274
  /*
275
+ *----------------------------------------------------------------------------
276
  * Deprecated functions
277
  *----------------------------------------------------------------------------
278
  */
css/default-style.css CHANGED
@@ -41,7 +41,6 @@
41
  display: block;
42
  bottom: 0;
43
  padding: 3px;
44
- color: #fff;
45
  font-size: .9em;
46
  text-shadow: .1em .1em .2em #000;
47
  background-color: rgba(0, 0, 0, 0.5);
41
  display: block;
42
  bottom: 0;
43
  padding: 3px;
 
44
  font-size: .9em;
45
  text-shadow: .1em .1em .2em #000;
46
  background-color: rgba(0, 0, 0, 0.5);
includes/header.php CHANGED
@@ -55,7 +55,7 @@ function crp_heading_styles() {
55
  global $crp_settings;
56
 
57
  if ( 'rounded_thumbs' === $crp_settings['crp_styles'] ) {
58
- wp_register_style( 'crp-style-rounded-thumbs', plugins_url( 'css/default-style.css', CRP_PLUGIN_FILE ) );
59
  wp_enqueue_style( 'crp-style-rounded-thumbs' );
60
 
61
  $custom_css = "
@@ -69,9 +69,9 @@ function crp_heading_styles() {
69
  margin: auto;
70
  }
71
  .crp_related .crp_title {
72
- width: " . ( $crp_settings['thumb_width'] ) . 'px;
73
  }
74
- ';
75
 
76
  wp_add_inline_style( 'crp-style-rounded-thumbs', $custom_css );
77
 
55
  global $crp_settings;
56
 
57
  if ( 'rounded_thumbs' === $crp_settings['crp_styles'] ) {
58
+ wp_register_style( 'crp-style-rounded-thumbs', plugins_url( 'css/default-style.css', CRP_PLUGIN_FILE ), array(), '1.0' );
59
  wp_enqueue_style( 'crp-style-rounded-thumbs' );
60
 
61
  $custom_css = "
69
  margin: auto;
70
  }
71
  .crp_related .crp_title {
72
+ width: 100%;
73
  }
74
+ ";
75
 
76
  wp_add_inline_style( 'crp-style-rounded-thumbs', $custom_css );
77
 
includes/media.php CHANGED
@@ -22,10 +22,10 @@ function crp_add_image_sizes() {
22
  }
23
 
24
  // Add image sizes if 'crp_thumbnail' is selected or the selected thumbnail size is no longer valid.
25
- if ( 'crp_thumbnail' === $crp_settings['thumb_size'] ) {
26
  $width = empty( $crp_settings['thumb_width'] ) ? 150 : $crp_settings['thumb_width'];
27
  $height = empty( $crp_settings['thumb_height'] ) ? 150 : $crp_settings['thumb_height'];
28
- $crop = isset( $crp_settings['thumb_crop'] ) ? $crp_settings['thumb_crop'] : false;
29
 
30
  add_image_size( 'crp_thumbnail', $width, $height, $crop );
31
  }
22
  }
23
 
24
  // Add image sizes if 'crp_thumbnail' is selected or the selected thumbnail size is no longer valid.
25
+ if ( 'crp_thumbnail' === $crp_settings['thumb_size'] && $crp_settings['thumb_create_sizes'] ) {
26
  $width = empty( $crp_settings['thumb_width'] ) ? 150 : $crp_settings['thumb_width'];
27
  $height = empty( $crp_settings['thumb_height'] ) ? 150 : $crp_settings['thumb_height'];
28
+ $crop = isset( $crp_settings['thumb_crop'] ) ? $crp_settings['thumb_crop'] : true;
29
 
30
  add_image_size( 'crp_thumbnail', $width, $height, $crop );
31
  }
includes/modules/class-crp-widget.php CHANGED
@@ -26,7 +26,7 @@ class CRP_Widget extends WP_Widget {
26
  /**
27
  * Register widget with WordPress.
28
  */
29
- function __construct() {
30
  parent::__construct(
31
  'widget_crp',
32
  __( 'Related Posts [CRP]', 'contextual-related-posts' ),
@@ -61,7 +61,7 @@ class CRP_Widget extends WP_Widget {
61
  // If post_types is empty or contains a query string then use parse_str else consider it comma-separated.
62
  if ( ! empty( $instance['post_types'] ) && false === strpos( $instance['post_types'], '=' ) ) {
63
  $post_types = explode( ',', $instance['post_types'] );
64
- } else {
65
  parse_str( $instance['post_types'], $post_types ); // Save post types in $post_types variable.
66
  }
67
 
@@ -90,7 +90,7 @@ class CRP_Widget extends WP_Widget {
90
  </p>
91
  <p>
92
  <label for="<?php echo esc_attr( $this->get_field_id( 'show_excerpt' ) ); ?>">
93
- <input id="<?php echo esc_attr( $this->get_field_id( 'show_excerpt' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_excerpt' ) ); ?>" type="checkbox"
94
  <?php
95
  if ( $show_excerpt ) {
96
  echo 'checked="checked"'; }
@@ -100,7 +100,7 @@ class CRP_Widget extends WP_Widget {
100
  </p>
101
  <p>
102
  <label for="<?php echo esc_attr( $this->get_field_id( 'show_author' ) ); ?>">
103
- <input id="<?php echo esc_attr( $this->get_field_id( 'show_author' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_author' ) ); ?>" type="checkbox"
104
  <?php
105
  if ( $show_author ) {
106
  echo 'checked="checked"'; }
@@ -110,7 +110,7 @@ class CRP_Widget extends WP_Widget {
110
  </p>
111
  <p>
112
  <label for="<?php echo esc_attr( $this->get_field_id( 'show_date' ) ); ?>">
113
- <input id="<?php echo esc_attr( $this->get_field_id( 'show_date' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_date' ) ); ?>" type="checkbox"
114
  <?php
115
  if ( $show_date ) {
116
  echo 'checked="checked"'; }
@@ -120,11 +120,11 @@ class CRP_Widget extends WP_Widget {
120
  </p>
121
  <p>
122
  <?php esc_html_e( 'Thumbnail options', 'contextual-related-posts' ); ?>: <br />
123
- <select class="widefat" id="<?php esc_attr_e( $this->get_field_id( 'post_thumb_op' ) ); ?>" name="<?php esc_attr_e( $this->get_field_name( 'post_thumb_op' ) ); ?>">
124
- <option value="inline" <?php selected( 'inline', $post_thumb_op, true ); ?>><?php esc_html_e( 'Thumbnails inline, before title', 'contextual-related-posts' ); ?></option>
125
- <option value="after" <?php selected( 'after', $post_thumb_op, true ); ?>><?php esc_html_e( 'Thumbnails inline, after title', 'contextual-related-posts' ); ?></option>
126
- <option value="thumbs_only" <?php selected( 'thumbs_only', $post_thumb_op, true ); ?>><?php esc_html_e( 'Only thumbnails, no text', 'contextual-related-posts' ); ?></option>
127
- <option value="text_only" <?php selected( 'text_only', $post_thumb_op, true ); ?>><?php esc_html_e( 'No thumbnails, only text.', 'contextual-related-posts' ); ?></option>
128
  </select>
129
  </p>
130
  <p>
@@ -177,15 +177,16 @@ class CRP_Widget extends WP_Widget {
177
  */
178
  public function update( $new_instance, $old_instance ) {
179
  $instance = $old_instance;
180
- $instance['title'] = strip_tags( $new_instance['title'] );
181
- $instance['limit'] = $new_instance['limit'];
182
- $instance['offset'] = $new_instance['offset'];
183
- $instance['show_excerpt'] = $new_instance['show_excerpt'];
184
- $instance['show_author'] = $new_instance['show_author'];
185
- $instance['show_date'] = $new_instance['show_date'];
186
  $instance['post_thumb_op'] = $new_instance['post_thumb_op'];
187
- $instance['thumb_height'] = $new_instance['thumb_height'];
188
- $instance['thumb_width'] = $new_instance['thumb_width'];
 
 
 
 
189
 
190
  // Process post types to be selected.
191
  $wp_post_types = get_post_types(
@@ -292,8 +293,8 @@ class CRP_Widget extends WP_Widget {
292
 
293
  $output .= $args['after_widget'];
294
 
295
- echo $output; // WPCS: XSS OK.
296
- }// End if().
297
  } // Ending function widget.
298
  }
299
 
26
  /**
27
  * Register widget with WordPress.
28
  */
29
+ public function __construct() {
30
  parent::__construct(
31
  'widget_crp',
32
  __( 'Related Posts [CRP]', 'contextual-related-posts' ),
61
  // If post_types is empty or contains a query string then use parse_str else consider it comma-separated.
62
  if ( ! empty( $instance['post_types'] ) && false === strpos( $instance['post_types'], '=' ) ) {
63
  $post_types = explode( ',', $instance['post_types'] );
64
+ } elseif ( ! empty( $instance['post_types'] ) ) {
65
  parse_str( $instance['post_types'], $post_types ); // Save post types in $post_types variable.
66
  }
67
 
90
  </p>
91
  <p>
92
  <label for="<?php echo esc_attr( $this->get_field_id( 'show_excerpt' ) ); ?>">
93
+ <input id="<?php echo esc_attr( $this->get_field_id( 'show_excerpt' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_excerpt' ) ); ?>" type="checkbox"
94
  <?php
95
  if ( $show_excerpt ) {
96
  echo 'checked="checked"'; }
100
  </p>
101
  <p>
102
  <label for="<?php echo esc_attr( $this->get_field_id( 'show_author' ) ); ?>">
103
+ <input id="<?php echo esc_attr( $this->get_field_id( 'show_author' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_author' ) ); ?>" type="checkbox"
104
  <?php
105
  if ( $show_author ) {
106
  echo 'checked="checked"'; }
110
  </p>
111
  <p>
112
  <label for="<?php echo esc_attr( $this->get_field_id( 'show_date' ) ); ?>">
113
+ <input id="<?php echo esc_attr( $this->get_field_id( 'show_date' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_date' ) ); ?>" type="checkbox"
114
  <?php
115
  if ( $show_date ) {
116
  echo 'checked="checked"'; }
120
  </p>
121
  <p>
122
  <?php esc_html_e( 'Thumbnail options', 'contextual-related-posts' ); ?>: <br />
123
+ <select class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'post_thumb_op' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'post_thumb_op' ) ); ?>">
124
+ <option value="inline" <?php selected( 'inline', $post_thumb_op, true ); ?>><?php esc_html_e( 'Thumbnails inline, before title', 'contextual-related-posts' ); ?></option>
125
+ <option value="after" <?php selected( 'after', $post_thumb_op, true ); ?>><?php esc_html_e( 'Thumbnails inline, after title', 'contextual-related-posts' ); ?></option>
126
+ <option value="thumbs_only" <?php selected( 'thumbs_only', $post_thumb_op, true ); ?>><?php esc_html_e( 'Only thumbnails, no text', 'contextual-related-posts' ); ?></option>
127
+ <option value="text_only" <?php selected( 'text_only', $post_thumb_op, true ); ?>><?php esc_html_e( 'No thumbnails, only text.', 'contextual-related-posts' ); ?></option>
128
  </select>
129
  </p>
130
  <p>
177
  */
178
  public function update( $new_instance, $old_instance ) {
179
  $instance = $old_instance;
180
+ $instance = array();
181
+ $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? wp_strip_all_tags( $new_instance['title'] ) : '';
182
+ $instance['limit'] = ( ! empty( $new_instance['limit'] ) ) ? intval( $new_instance['limit'] ) : '';
 
 
 
183
  $instance['post_thumb_op'] = $new_instance['post_thumb_op'];
184
+ $instance['thumb_width'] = ( ! empty( $new_instance['thumb_width'] ) ) ? intval( $new_instance['thumb_width'] ) : '';
185
+ $instance['thumb_height'] = ( ! empty( $new_instance['thumb_height'] ) ) ? intval( $new_instance['thumb_height'] ) : '';
186
+ $instance['show_excerpt'] = isset( $new_instance['show_excerpt'] ) ? true : false;
187
+ $instance['show_author'] = isset( $new_instance['show_author'] ) ? true : false;
188
+ $instance['show_date'] = isset( $new_instance['show_date'] ) ? true : false;
189
+ $instance['offset'] = ( ! empty( $new_instance['offset'] ) ) ? intval( $new_instance['offset'] ) : '';
190
 
191
  // Process post types to be selected.
192
  $wp_post_types = get_post_types(
293
 
294
  $output .= $args['after_widget'];
295
 
296
+ echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
297
+ }// End if.
298
  } // Ending function widget.
299
  }
300
 
includes/plugin-activator.php CHANGED
@@ -58,7 +58,6 @@ function crp_single_activate() {
58
 
59
  $wpdb->hide_errors();
60
 
61
- crp_delete_index();
62
  crp_create_index();
63
 
64
  $wpdb->show_errors();
58
 
59
  $wpdb->hide_errors();
60
 
 
61
  crp_create_index();
62
 
63
  $wpdb->show_errors();
languages/contextual-related-posts-en_US.mo CHANGED
Binary file
languages/contextual-related-posts-en_US.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Contextual Related Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2018-11-18 13:36+0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
8
  "Language-Team: WebberZone <plugins@webberzone.com>\n"
@@ -18,34 +18,34 @@ msgstr ""
18
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
- #: admin/admin.php:232
22
  msgid "Options saved successfully. If enabled, the cache has been cleared."
23
  msgstr ""
24
 
25
- #: admin/admin.php:235
26
  msgid ""
27
  "Rounded Thumbnails style selected. Author, Excerpt and Date will not be "
28
  "displayed."
29
  msgstr ""
30
 
31
- #: admin/admin.php:238
32
  msgid "Text Only style selected. Thumbnails will not be displayed."
33
  msgstr ""
34
 
35
- #: admin/admin.php:242
36
  #, php-format
37
  msgid "Pre-built thumbnail size selected. Thumbnail set to %1$d x %2$d."
38
  msgstr ""
39
 
40
- #: admin/admin.php:277
41
  msgid "Options set to Default."
42
  msgstr ""
43
 
44
- #: admin/admin.php:286
45
  msgid "Index recreated"
46
  msgstr ""
47
 
48
- #: admin/admin.php:303
49
  msgid "Related Posts"
50
  msgstr ""
51
 
@@ -92,16 +92,16 @@ msgstr ""
92
  msgid "Thumbnail options"
93
  msgstr ""
94
 
95
- #: admin/main-view.php:36 admin/main-view.php:650
96
  msgid "Styles"
97
  msgstr ""
98
 
99
- #: admin/main-view.php:37 admin/main-view.php:742
100
  msgid "Feed options"
101
  msgstr ""
102
 
103
  #: admin/main-view.php:54 admin/main-view.php:162 admin/main-view.php:272
104
- #: admin/main-view.php:476 admin/main-view.php:649 admin/main-view.php:741
105
  #: admin/sidebar-view.php:19 admin/sidebar-view.php:40
106
  #: admin/sidebar-view.php:58
107
  msgid "Click to toggle"
@@ -247,12 +247,12 @@ msgid ""
247
  msgstr ""
248
 
249
  #: admin/main-view.php:156 admin/main-view.php:266 admin/main-view.php:470
250
- #: admin/main-view.php:643 admin/main-view.php:735 admin/main-view.php:807
251
- #: admin/main-view.php:823
252
  msgid "Save Options"
253
  msgstr ""
254
 
255
- #: admin/main-view.php:179 admin/main-view.php:760
256
  msgid "Number of related posts to display: "
257
  msgstr ""
258
 
@@ -386,7 +386,7 @@ msgstr ""
386
  msgid "Display:"
387
  msgstr ""
388
 
389
- #: admin/main-view.php:311 admin/main-view.php:763
390
  msgid "Show post excerpt in list?"
391
  msgstr ""
392
 
@@ -493,23 +493,23 @@ msgstr ""
493
  msgid "HTML to display after the list of posts: "
494
  msgstr ""
495
 
496
- #: admin/main-view.php:493 admin/main-view.php:766
497
  msgid "Location of post thumbnail:"
498
  msgstr ""
499
 
500
- #: admin/main-view.php:497 admin/main-view.php:770
501
  msgid "Display thumbnails inline with posts, before title"
502
  msgstr ""
503
 
504
- #: admin/main-view.php:502 admin/main-view.php:774
505
  msgid "Display thumbnails inline with posts, after title"
506
  msgstr ""
507
 
508
- #: admin/main-view.php:507 admin/main-view.php:778
509
  msgid "Display only thumbnails, no text"
510
  msgstr ""
511
 
512
- #: admin/main-view.php:512 admin/main-view.php:782
513
  msgid "Do not display thumbnails, only text."
514
  msgstr ""
515
 
@@ -521,7 +521,7 @@ msgid ""
521
  "select %1$s under the Styles section."
522
  msgstr ""
523
 
524
- #: admin/main-view.php:516 admin/main-view.php:669
525
  msgid "No styles"
526
  msgstr ""
527
 
@@ -581,80 +581,91 @@ msgid ""
581
  msgstr ""
582
 
583
  #: admin/main-view.php:578
 
 
 
 
 
 
 
 
 
 
 
584
  msgid "Image size attributes:"
585
  msgstr ""
586
 
587
- #: admin/main-view.php:583
588
  msgid "Style attributes. e.g."
589
  msgstr ""
590
 
591
- #: admin/main-view.php:591
592
  msgid "HTML width and height attributes. e.g."
593
  msgstr ""
594
 
595
- #: admin/main-view.php:598
596
  msgid "No HTML or Style attributes"
597
  msgstr ""
598
 
599
- #: admin/main-view.php:603
600
  msgid "Post thumbnail meta field name:"
601
  msgstr ""
602
 
603
- #: admin/main-view.php:605
604
  #, php-format
605
  msgid ""
606
  "The value of this field should contain a direct link to the image. This is "
607
  "set in the meta box in the %1$s screen."
608
  msgstr ""
609
 
610
- #: admin/main-view.php:605
611
  msgid "Add New Post"
612
  msgstr ""
613
 
614
- #: admin/main-view.php:608
615
  msgid "Extract the first image from the post?"
616
  msgstr ""
617
 
618
- #: admin/main-view.php:610
619
  msgid ""
620
  "This will only happen if there is no post thumbnail set and no image URL is "
621
  "specified in the meta field."
622
  msgstr ""
623
 
624
- #: admin/main-view.php:613
625
  msgid "Use default thumbnail?"
626
  msgstr ""
627
 
628
- #: admin/main-view.php:615
629
  msgid ""
630
  "If checked, when no thumbnail is found, show a default one from the URL "
631
  "below. If not checked and no thumbnail is found, no image will be shown."
632
  msgstr ""
633
 
634
- #: admin/main-view.php:618
635
  msgid "Default thumbnail:"
636
  msgstr ""
637
 
638
- #: admin/main-view.php:625
639
  msgid ""
640
  "The plugin will first check if the post contains a thumbnail. If it doesn't "
641
  "then it will check the meta field. If this is not available, then it will "
642
  "show the default image as specified above."
643
  msgstr ""
644
 
645
- #: admin/main-view.php:666
646
  msgid "Style of the related posts:"
647
  msgstr ""
648
 
649
- #: admin/main-view.php:671
650
  msgid "Select this option if you plan to add your own styles"
651
  msgstr ""
652
 
653
- #: admin/main-view.php:680
654
  msgid "Rounded Thumbnails"
655
  msgstr ""
656
 
657
- #: admin/main-view.php:683
658
  msgid ""
659
  "Enabling this option will turn on the thumbnails and set their width and "
660
  "height to 150px. It will also turn off the display of the author, excerpt "
@@ -662,75 +673,75 @@ msgid ""
662
  "settings."
663
  msgstr ""
664
 
665
- #: admin/main-view.php:687
666
  #, php-format
667
  msgid "You can view the default style at %s"
668
  msgstr ""
669
 
670
- #: admin/main-view.php:695
671
  msgid "Text only"
672
  msgstr ""
673
 
674
- #: admin/main-view.php:697
675
  msgid ""
676
  "Enabling this option will disable thumbnails and no longer include the "
677
  "default style sheet included in the plugin."
678
  msgstr ""
679
 
680
- #: admin/main-view.php:712
681
  msgid "Custom CSS to add to header:"
682
  msgstr ""
683
 
684
- #: admin/main-view.php:717
685
  #, php-format
686
  msgid ""
687
  "Do not include %1$s tags. Check out the %2$s for available CSS classes to "
688
  "style."
689
  msgstr ""
690
 
691
- #: admin/main-view.php:758
692
  msgid ""
693
  "Below options override the related posts settings for your blog feed. These "
694
  "only apply if you have selected to add related posts to Feeds in the General "
695
  "Options tab."
696
  msgstr ""
697
 
698
- #: admin/main-view.php:786
699
  msgid "Maximum width of the thumbnail: "
700
  msgstr ""
701
 
702
- #: admin/main-view.php:789
703
  msgid "Maximum height of the thumbnail: "
704
  msgstr ""
705
 
706
- #: admin/main-view.php:824
707
  msgid "Default Options"
708
  msgstr ""
709
 
710
- #: admin/main-view.php:824
711
  msgid "Do you want to set options to Default?"
712
  msgstr ""
713
 
714
- #: admin/main-view.php:825
715
  msgid "Recreate Index"
716
  msgstr ""
717
 
718
- #: admin/main-view.php:825
719
  msgid "Are you sure you want to recreate the index?"
720
  msgstr ""
721
 
722
- #: admin/main-view.php:830
723
  #, php-format
724
  msgid ""
725
  "One or more FULLTEXT indices are missing. Please hit the %1$s at the bottom "
726
  "of the page to fix this."
727
  msgstr ""
728
 
729
- #: admin/main-view.php:830
730
  msgid "Recreate Index button"
731
  msgstr ""
732
 
733
- #: admin/main-view.php:835
734
  msgid ""
735
  "If the Recreate Index button fails, please run the following queries in "
736
  "phpMyAdmin or Adminer"
2
  msgstr ""
3
  "Project-Id-Version: Contextual Related Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2019-01-23 00:17+0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
8
  "Language-Team: WebberZone <plugins@webberzone.com>\n"
18
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
+ #: admin/admin.php:234
22
  msgid "Options saved successfully. If enabled, the cache has been cleared."
23
  msgstr ""
24
 
25
+ #: admin/admin.php:237
26
  msgid ""
27
  "Rounded Thumbnails style selected. Author, Excerpt and Date will not be "
28
  "displayed."
29
  msgstr ""
30
 
31
+ #: admin/admin.php:240
32
  msgid "Text Only style selected. Thumbnails will not be displayed."
33
  msgstr ""
34
 
35
+ #: admin/admin.php:244
36
  #, php-format
37
  msgid "Pre-built thumbnail size selected. Thumbnail set to %1$d x %2$d."
38
  msgstr ""
39
 
40
+ #: admin/admin.php:279
41
  msgid "Options set to Default."
42
  msgstr ""
43
 
44
+ #: admin/admin.php:288
45
  msgid "Index recreated"
46
  msgstr ""
47
 
48
+ #: admin/admin.php:305
49
  msgid "Related Posts"
50
  msgstr ""
51
 
92
  msgid "Thumbnail options"
93
  msgstr ""
94
 
95
+ #: admin/main-view.php:36 admin/main-view.php:658
96
  msgid "Styles"
97
  msgstr ""
98
 
99
+ #: admin/main-view.php:37 admin/main-view.php:750
100
  msgid "Feed options"
101
  msgstr ""
102
 
103
  #: admin/main-view.php:54 admin/main-view.php:162 admin/main-view.php:272
104
+ #: admin/main-view.php:476 admin/main-view.php:657 admin/main-view.php:749
105
  #: admin/sidebar-view.php:19 admin/sidebar-view.php:40
106
  #: admin/sidebar-view.php:58
107
  msgid "Click to toggle"
247
  msgstr ""
248
 
249
  #: admin/main-view.php:156 admin/main-view.php:266 admin/main-view.php:470
250
+ #: admin/main-view.php:651 admin/main-view.php:743 admin/main-view.php:815
251
+ #: admin/main-view.php:831
252
  msgid "Save Options"
253
  msgstr ""
254
 
255
+ #: admin/main-view.php:179 admin/main-view.php:768
256
  msgid "Number of related posts to display: "
257
  msgstr ""
258
 
386
  msgid "Display:"
387
  msgstr ""
388
 
389
+ #: admin/main-view.php:311 admin/main-view.php:771
390
  msgid "Show post excerpt in list?"
391
  msgstr ""
392
 
493
  msgid "HTML to display after the list of posts: "
494
  msgstr ""
495
 
496
+ #: admin/main-view.php:493 admin/main-view.php:774
497
  msgid "Location of post thumbnail:"
498
  msgstr ""
499
 
500
+ #: admin/main-view.php:497 admin/main-view.php:778
501
  msgid "Display thumbnails inline with posts, before title"
502
  msgstr ""
503
 
504
+ #: admin/main-view.php:502 admin/main-view.php:782
505
  msgid "Display thumbnails inline with posts, after title"
506
  msgstr ""
507
 
508
+ #: admin/main-view.php:507 admin/main-view.php:786
509
  msgid "Display only thumbnails, no text"
510
  msgstr ""
511
 
512
+ #: admin/main-view.php:512 admin/main-view.php:790
513
  msgid "Do not display thumbnails, only text."
514
  msgstr ""
515
 
521
  "select %1$s under the Styles section."
522
  msgstr ""
523
 
524
+ #: admin/main-view.php:516 admin/main-view.php:677
525
  msgid "No styles"
526
  msgstr ""
527
 
581
  msgstr ""
582
 
583
  #: admin/main-view.php:578
584
+ msgid "Generate thumbnail sizes:"
585
+ msgstr ""
586
+
587
+ #: admin/main-view.php:582
588
+ msgid ""
589
+ "If you select this option and Custom size is selected above, the plugin will "
590
+ "register the image size with WordPress to create new thumbnails. Does not "
591
+ "update old images as explained above."
592
+ msgstr ""
593
+
594
+ #: admin/main-view.php:586
595
  msgid "Image size attributes:"
596
  msgstr ""
597
 
598
+ #: admin/main-view.php:591
599
  msgid "Style attributes. e.g."
600
  msgstr ""
601
 
602
+ #: admin/main-view.php:599
603
  msgid "HTML width and height attributes. e.g."
604
  msgstr ""
605
 
606
+ #: admin/main-view.php:606
607
  msgid "No HTML or Style attributes"
608
  msgstr ""
609
 
610
+ #: admin/main-view.php:611
611
  msgid "Post thumbnail meta field name:"
612
  msgstr ""
613
 
614
+ #: admin/main-view.php:613
615
  #, php-format
616
  msgid ""
617
  "The value of this field should contain a direct link to the image. This is "
618
  "set in the meta box in the %1$s screen."
619
  msgstr ""
620
 
621
+ #: admin/main-view.php:613
622
  msgid "Add New Post"
623
  msgstr ""
624
 
625
+ #: admin/main-view.php:616
626
  msgid "Extract the first image from the post?"
627
  msgstr ""
628
 
629
+ #: admin/main-view.php:618
630
  msgid ""
631
  "This will only happen if there is no post thumbnail set and no image URL is "
632
  "specified in the meta field."
633
  msgstr ""
634
 
635
+ #: admin/main-view.php:621
636
  msgid "Use default thumbnail?"
637
  msgstr ""
638
 
639
+ #: admin/main-view.php:623
640
  msgid ""
641
  "If checked, when no thumbnail is found, show a default one from the URL "
642
  "below. If not checked and no thumbnail is found, no image will be shown."
643
  msgstr ""
644
 
645
+ #: admin/main-view.php:626
646
  msgid "Default thumbnail:"
647
  msgstr ""
648
 
649
+ #: admin/main-view.php:633
650
  msgid ""
651
  "The plugin will first check if the post contains a thumbnail. If it doesn't "
652
  "then it will check the meta field. If this is not available, then it will "
653
  "show the default image as specified above."
654
  msgstr ""
655
 
656
+ #: admin/main-view.php:674
657
  msgid "Style of the related posts:"
658
  msgstr ""
659
 
660
+ #: admin/main-view.php:679
661
  msgid "Select this option if you plan to add your own styles"
662
  msgstr ""
663
 
664
+ #: admin/main-view.php:688
665
  msgid "Rounded Thumbnails"
666
  msgstr ""
667
 
668
+ #: admin/main-view.php:691
669
  msgid ""
670
  "Enabling this option will turn on the thumbnails and set their width and "
671
  "height to 150px. It will also turn off the display of the author, excerpt "
673
  "settings."
674
  msgstr ""
675
 
676
+ #: admin/main-view.php:695
677
  #, php-format
678
  msgid "You can view the default style at %s"
679
  msgstr ""
680
 
681
+ #: admin/main-view.php:703
682
  msgid "Text only"
683
  msgstr ""
684
 
685
+ #: admin/main-view.php:705
686
  msgid ""
687
  "Enabling this option will disable thumbnails and no longer include the "
688
  "default style sheet included in the plugin."
689
  msgstr ""
690
 
691
+ #: admin/main-view.php:720
692
  msgid "Custom CSS to add to header:"
693
  msgstr ""
694
 
695
+ #: admin/main-view.php:725
696
  #, php-format
697
  msgid ""
698
  "Do not include %1$s tags. Check out the %2$s for available CSS classes to "
699
  "style."
700
  msgstr ""
701
 
702
+ #: admin/main-view.php:766
703
  msgid ""
704
  "Below options override the related posts settings for your blog feed. These "
705
  "only apply if you have selected to add related posts to Feeds in the General "
706
  "Options tab."
707
  msgstr ""
708
 
709
+ #: admin/main-view.php:794
710
  msgid "Maximum width of the thumbnail: "
711
  msgstr ""
712
 
713
+ #: admin/main-view.php:797
714
  msgid "Maximum height of the thumbnail: "
715
  msgstr ""
716
 
717
+ #: admin/main-view.php:832
718
  msgid "Default Options"
719
  msgstr ""
720
 
721
+ #: admin/main-view.php:832
722
  msgid "Do you want to set options to Default?"
723
  msgstr ""
724
 
725
+ #: admin/main-view.php:833
726
  msgid "Recreate Index"
727
  msgstr ""
728
 
729
+ #: admin/main-view.php:833
730
  msgid "Are you sure you want to recreate the index?"
731
  msgstr ""
732
 
733
+ #: admin/main-view.php:838
734
  #, php-format
735
  msgid ""
736
  "One or more FULLTEXT indices are missing. Please hit the %1$s at the bottom "
737
  "of the page to fix this."
738
  msgstr ""
739
 
740
+ #: admin/main-view.php:838
741
  msgid "Recreate Index button"
742
  msgstr ""
743
 
744
+ #: admin/main-view.php:843
745
  msgid ""
746
  "If the Recreate Index button fails, please run the following queries in "
747
  "phpMyAdmin or Adminer"
languages/contextual-related-posts-en_US.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Contextual Related Posts\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2018-11-18 13:36+0000\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
9
  "Language-Team: plugins@webberzone.com\n"
@@ -18,34 +18,34 @@ msgstr ""
18
  "X-Poedit-SourceCharset: UTF-8\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
- #: admin/admin.php:232
22
  msgid "Options saved successfully. If enabled, the cache has been cleared."
23
  msgstr ""
24
 
25
- #: admin/admin.php:235
26
  msgid ""
27
  "Rounded Thumbnails style selected. Author, Excerpt and Date will not be "
28
  "displayed."
29
  msgstr ""
30
 
31
- #: admin/admin.php:238
32
  msgid "Text Only style selected. Thumbnails will not be displayed."
33
  msgstr ""
34
 
35
- #: admin/admin.php:242
36
  #, php-format
37
  msgid "Pre-built thumbnail size selected. Thumbnail set to %1$d x %2$d."
38
  msgstr ""
39
 
40
- #: admin/admin.php:277
41
  msgid "Options set to Default."
42
  msgstr ""
43
 
44
- #: admin/admin.php:286
45
  msgid "Index recreated"
46
  msgstr ""
47
 
48
- #: admin/admin.php:303
49
  msgid "Related Posts"
50
  msgstr ""
51
 
@@ -92,16 +92,16 @@ msgstr ""
92
  msgid "Thumbnail options"
93
  msgstr ""
94
 
95
- #: admin/main-view.php:36 admin/main-view.php:650
96
  msgid "Styles"
97
  msgstr ""
98
 
99
- #: admin/main-view.php:37 admin/main-view.php:742
100
  msgid "Feed options"
101
  msgstr ""
102
 
103
  #: admin/main-view.php:54 admin/main-view.php:162 admin/main-view.php:272
104
- #: admin/main-view.php:476 admin/main-view.php:649 admin/main-view.php:741
105
  #: admin/sidebar-view.php:19 admin/sidebar-view.php:40
106
  #: admin/sidebar-view.php:58
107
  msgid "Click to toggle"
@@ -247,12 +247,12 @@ msgid ""
247
  msgstr ""
248
 
249
  #: admin/main-view.php:156 admin/main-view.php:266 admin/main-view.php:470
250
- #: admin/main-view.php:643 admin/main-view.php:735 admin/main-view.php:807
251
- #: admin/main-view.php:823
252
  msgid "Save Options"
253
  msgstr ""
254
 
255
- #: admin/main-view.php:179 admin/main-view.php:760
256
  msgid "Number of related posts to display: "
257
  msgstr ""
258
 
@@ -386,7 +386,7 @@ msgstr ""
386
  msgid "Display:"
387
  msgstr ""
388
 
389
- #: admin/main-view.php:311 admin/main-view.php:763
390
  msgid "Show post excerpt in list?"
391
  msgstr ""
392
 
@@ -493,23 +493,23 @@ msgstr ""
493
  msgid "HTML to display after the list of posts: "
494
  msgstr ""
495
 
496
- #: admin/main-view.php:493 admin/main-view.php:766
497
  msgid "Location of post thumbnail:"
498
  msgstr ""
499
 
500
- #: admin/main-view.php:497 admin/main-view.php:770
501
  msgid "Display thumbnails inline with posts, before title"
502
  msgstr ""
503
 
504
- #: admin/main-view.php:502 admin/main-view.php:774
505
  msgid "Display thumbnails inline with posts, after title"
506
  msgstr ""
507
 
508
- #: admin/main-view.php:507 admin/main-view.php:778
509
  msgid "Display only thumbnails, no text"
510
  msgstr ""
511
 
512
- #: admin/main-view.php:512 admin/main-view.php:782
513
  msgid "Do not display thumbnails, only text."
514
  msgstr ""
515
 
@@ -521,7 +521,7 @@ msgid ""
521
  "select %1$s under the Styles section."
522
  msgstr ""
523
 
524
- #: admin/main-view.php:516 admin/main-view.php:669
525
  msgid "No styles"
526
  msgstr ""
527
 
@@ -581,80 +581,91 @@ msgid ""
581
  msgstr ""
582
 
583
  #: admin/main-view.php:578
 
 
 
 
 
 
 
 
 
 
 
584
  msgid "Image size attributes:"
585
  msgstr ""
586
 
587
- #: admin/main-view.php:583
588
  msgid "Style attributes. e.g."
589
  msgstr ""
590
 
591
- #: admin/main-view.php:591
592
  msgid "HTML width and height attributes. e.g."
593
  msgstr ""
594
 
595
- #: admin/main-view.php:598
596
  msgid "No HTML or Style attributes"
597
  msgstr ""
598
 
599
- #: admin/main-view.php:603
600
  msgid "Post thumbnail meta field name:"
601
  msgstr ""
602
 
603
- #: admin/main-view.php:605
604
  #, php-format
605
  msgid ""
606
  "The value of this field should contain a direct link to the image. This is "
607
  "set in the meta box in the %1$s screen."
608
  msgstr ""
609
 
610
- #: admin/main-view.php:605
611
  msgid "Add New Post"
612
  msgstr ""
613
 
614
- #: admin/main-view.php:608
615
  msgid "Extract the first image from the post?"
616
  msgstr ""
617
 
618
- #: admin/main-view.php:610
619
  msgid ""
620
  "This will only happen if there is no post thumbnail set and no image URL is "
621
  "specified in the meta field."
622
  msgstr ""
623
 
624
- #: admin/main-view.php:613
625
  msgid "Use default thumbnail?"
626
  msgstr ""
627
 
628
- #: admin/main-view.php:615
629
  msgid ""
630
  "If checked, when no thumbnail is found, show a default one from the URL "
631
  "below. If not checked and no thumbnail is found, no image will be shown."
632
  msgstr ""
633
 
634
- #: admin/main-view.php:618
635
  msgid "Default thumbnail:"
636
  msgstr ""
637
 
638
- #: admin/main-view.php:625
639
  msgid ""
640
  "The plugin will first check if the post contains a thumbnail. If it doesn't "
641
  "then it will check the meta field. If this is not available, then it will "
642
  "show the default image as specified above."
643
  msgstr ""
644
 
645
- #: admin/main-view.php:666
646
  msgid "Style of the related posts:"
647
  msgstr ""
648
 
649
- #: admin/main-view.php:671
650
  msgid "Select this option if you plan to add your own styles"
651
  msgstr ""
652
 
653
- #: admin/main-view.php:680
654
  msgid "Rounded Thumbnails"
655
  msgstr ""
656
 
657
- #: admin/main-view.php:683
658
  msgid ""
659
  "Enabling this option will turn on the thumbnails and set their width and "
660
  "height to 150px. It will also turn off the display of the author, excerpt "
@@ -662,75 +673,75 @@ msgid ""
662
  "settings."
663
  msgstr ""
664
 
665
- #: admin/main-view.php:687
666
  #, php-format
667
  msgid "You can view the default style at %s"
668
  msgstr ""
669
 
670
- #: admin/main-view.php:695
671
  msgid "Text only"
672
  msgstr ""
673
 
674
- #: admin/main-view.php:697
675
  msgid ""
676
  "Enabling this option will disable thumbnails and no longer include the "
677
  "default style sheet included in the plugin."
678
  msgstr ""
679
 
680
- #: admin/main-view.php:712
681
  msgid "Custom CSS to add to header:"
682
  msgstr ""
683
 
684
- #: admin/main-view.php:717
685
  #, php-format
686
  msgid ""
687
  "Do not include %1$s tags. Check out the %2$s for available CSS classes to "
688
  "style."
689
  msgstr ""
690
 
691
- #: admin/main-view.php:758
692
  msgid ""
693
  "Below options override the related posts settings for your blog feed. These "
694
  "only apply if you have selected to add related posts to Feeds in the General "
695
  "Options tab."
696
  msgstr ""
697
 
698
- #: admin/main-view.php:786
699
  msgid "Maximum width of the thumbnail: "
700
  msgstr ""
701
 
702
- #: admin/main-view.php:789
703
  msgid "Maximum height of the thumbnail: "
704
  msgstr ""
705
 
706
- #: admin/main-view.php:824
707
  msgid "Default Options"
708
  msgstr ""
709
 
710
- #: admin/main-view.php:824
711
  msgid "Do you want to set options to Default?"
712
  msgstr ""
713
 
714
- #: admin/main-view.php:825
715
  msgid "Recreate Index"
716
  msgstr ""
717
 
718
- #: admin/main-view.php:825
719
  msgid "Are you sure you want to recreate the index?"
720
  msgstr ""
721
 
722
- #: admin/main-view.php:830
723
  #, php-format
724
  msgid ""
725
  "One or more FULLTEXT indices are missing. Please hit the %1$s at the bottom "
726
  "of the page to fix this."
727
  msgstr ""
728
 
729
- #: admin/main-view.php:830
730
  msgid "Recreate Index button"
731
  msgstr ""
732
 
733
- #: admin/main-view.php:835
734
  msgid ""
735
  "If the Recreate Index button fails, please run the following queries in "
736
  "phpMyAdmin or Adminer"
3
  msgstr ""
4
  "Project-Id-Version: Contextual Related Posts\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2019-01-23 00:17+0000\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Ajay D'Souza <me@ajaydsouza.com>\n"
9
  "Language-Team: plugins@webberzone.com\n"
18
  "X-Poedit-SourceCharset: UTF-8\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
+ #: admin/admin.php:234
22
  msgid "Options saved successfully. If enabled, the cache has been cleared."
23
  msgstr ""
24
 
25
+ #: admin/admin.php:237
26
  msgid ""
27
  "Rounded Thumbnails style selected. Author, Excerpt and Date will not be "
28
  "displayed."
29
  msgstr ""
30
 
31
+ #: admin/admin.php:240
32
  msgid "Text Only style selected. Thumbnails will not be displayed."
33
  msgstr ""
34
 
35
+ #: admin/admin.php:244
36
  #, php-format
37
  msgid "Pre-built thumbnail size selected. Thumbnail set to %1$d x %2$d."
38
  msgstr ""
39
 
40
+ #: admin/admin.php:279
41
  msgid "Options set to Default."
42
  msgstr ""
43
 
44
+ #: admin/admin.php:288
45
  msgid "Index recreated"
46
  msgstr ""
47
 
48
+ #: admin/admin.php:305
49
  msgid "Related Posts"
50
  msgstr ""
51
 
92
  msgid "Thumbnail options"
93
  msgstr ""
94
 
95
+ #: admin/main-view.php:36 admin/main-view.php:658
96
  msgid "Styles"
97
  msgstr ""
98
 
99
+ #: admin/main-view.php:37 admin/main-view.php:750
100
  msgid "Feed options"
101
  msgstr ""
102
 
103
  #: admin/main-view.php:54 admin/main-view.php:162 admin/main-view.php:272
104
+ #: admin/main-view.php:476 admin/main-view.php:657 admin/main-view.php:749
105
  #: admin/sidebar-view.php:19 admin/sidebar-view.php:40
106
  #: admin/sidebar-view.php:58
107
  msgid "Click to toggle"
247
  msgstr ""
248
 
249
  #: admin/main-view.php:156 admin/main-view.php:266 admin/main-view.php:470
250
+ #: admin/main-view.php:651 admin/main-view.php:743 admin/main-view.php:815
251
+ #: admin/main-view.php:831
252
  msgid "Save Options"
253
  msgstr ""
254
 
255
+ #: admin/main-view.php:179 admin/main-view.php:768
256
  msgid "Number of related posts to display: "
257
  msgstr ""
258
 
386
  msgid "Display:"
387
  msgstr ""
388
 
389
+ #: admin/main-view.php:311 admin/main-view.php:771
390
  msgid "Show post excerpt in list?"
391
  msgstr ""
392
 
493
  msgid "HTML to display after the list of posts: "
494
  msgstr ""
495
 
496
+ #: admin/main-view.php:493 admin/main-view.php:774
497
  msgid "Location of post thumbnail:"
498
  msgstr ""
499
 
500
+ #: admin/main-view.php:497 admin/main-view.php:778
501
  msgid "Display thumbnails inline with posts, before title"
502
  msgstr ""
503
 
504
+ #: admin/main-view.php:502 admin/main-view.php:782
505
  msgid "Display thumbnails inline with posts, after title"
506
  msgstr ""
507
 
508
+ #: admin/main-view.php:507 admin/main-view.php:786
509
  msgid "Display only thumbnails, no text"
510
  msgstr ""
511
 
512
+ #: admin/main-view.php:512 admin/main-view.php:790
513
  msgid "Do not display thumbnails, only text."
514
  msgstr ""
515
 
521
  "select %1$s under the Styles section."
522
  msgstr ""
523
 
524
+ #: admin/main-view.php:516 admin/main-view.php:677
525
  msgid "No styles"
526
  msgstr ""
527
 
581
  msgstr ""
582
 
583
  #: admin/main-view.php:578
584
+ msgid "Generate thumbnail sizes:"
585
+ msgstr ""
586
+
587
+ #: admin/main-view.php:582
588
+ msgid ""
589
+ "If you select this option and Custom size is selected above, the plugin will "
590
+ "register the image size with WordPress to create new thumbnails. Does not "
591
+ "update old images as explained above."
592
+ msgstr ""
593
+
594
+ #: admin/main-view.php:586
595
  msgid "Image size attributes:"
596
  msgstr ""
597
 
598
+ #: admin/main-view.php:591
599
  msgid "Style attributes. e.g."
600
  msgstr ""
601
 
602
+ #: admin/main-view.php:599
603
  msgid "HTML width and height attributes. e.g."
604
  msgstr ""
605
 
606
+ #: admin/main-view.php:606
607
  msgid "No HTML or Style attributes"
608
  msgstr ""
609
 
610
+ #: admin/main-view.php:611
611
  msgid "Post thumbnail meta field name:"
612
  msgstr ""
613
 
614
+ #: admin/main-view.php:613
615
  #, php-format
616
  msgid ""
617
  "The value of this field should contain a direct link to the image. This is "
618
  "set in the meta box in the %1$s screen."
619
  msgstr ""
620
 
621
+ #: admin/main-view.php:613
622
  msgid "Add New Post"
623
  msgstr ""
624
 
625
+ #: admin/main-view.php:616
626
  msgid "Extract the first image from the post?"
627
  msgstr ""
628
 
629
+ #: admin/main-view.php:618
630
  msgid ""
631
  "This will only happen if there is no post thumbnail set and no image URL is "
632
  "specified in the meta field."
633
  msgstr ""
634
 
635
+ #: admin/main-view.php:621
636
  msgid "Use default thumbnail?"
637
  msgstr ""
638
 
639
+ #: admin/main-view.php:623
640
  msgid ""
641
  "If checked, when no thumbnail is found, show a default one from the URL "
642
  "below. If not checked and no thumbnail is found, no image will be shown."
643
  msgstr ""
644
 
645
+ #: admin/main-view.php:626
646
  msgid "Default thumbnail:"
647
  msgstr ""
648
 
649
+ #: admin/main-view.php:633
650
  msgid ""
651
  "The plugin will first check if the post contains a thumbnail. If it doesn't "
652
  "then it will check the meta field. If this is not available, then it will "
653
  "show the default image as specified above."
654
  msgstr ""
655
 
656
+ #: admin/main-view.php:674
657
  msgid "Style of the related posts:"
658
  msgstr ""
659
 
660
+ #: admin/main-view.php:679
661
  msgid "Select this option if you plan to add your own styles"
662
  msgstr ""
663
 
664
+ #: admin/main-view.php:688
665
  msgid "Rounded Thumbnails"
666
  msgstr ""
667
 
668
+ #: admin/main-view.php:691
669
  msgid ""
670
  "Enabling this option will turn on the thumbnails and set their width and "
671
  "height to 150px. It will also turn off the display of the author, excerpt "
673
  "settings."
674
  msgstr ""
675
 
676
+ #: admin/main-view.php:695
677
  #, php-format
678
  msgid "You can view the default style at %s"
679
  msgstr ""
680
 
681
+ #: admin/main-view.php:703
682
  msgid "Text only"
683
  msgstr ""
684
 
685
+ #: admin/main-view.php:705
686
  msgid ""
687
  "Enabling this option will disable thumbnails and no longer include the "
688
  "default style sheet included in the plugin."
689
  msgstr ""
690
 
691
+ #: admin/main-view.php:720
692
  msgid "Custom CSS to add to header:"
693
  msgstr ""
694
 
695
+ #: admin/main-view.php:725
696
  #, php-format
697
  msgid ""
698
  "Do not include %1$s tags. Check out the %2$s for available CSS classes to "
699
  "style."
700
  msgstr ""
701
 
702
+ #: admin/main-view.php:766
703
  msgid ""
704
  "Below options override the related posts settings for your blog feed. These "
705
  "only apply if you have selected to add related posts to Feeds in the General "
706
  "Options tab."
707
  msgstr ""
708
 
709
+ #: admin/main-view.php:794
710
  msgid "Maximum width of the thumbnail: "
711
  msgstr ""
712
 
713
+ #: admin/main-view.php:797
714
  msgid "Maximum height of the thumbnail: "
715
  msgstr ""
716
 
717
+ #: admin/main-view.php:832
718
  msgid "Default Options"
719
  msgstr ""
720
 
721
+ #: admin/main-view.php:832
722
  msgid "Do you want to set options to Default?"
723
  msgstr ""
724
 
725
+ #: admin/main-view.php:833
726
  msgid "Recreate Index"
727
  msgstr ""
728
 
729
+ #: admin/main-view.php:833
730
  msgid "Are you sure you want to recreate the index?"
731
  msgstr ""
732
 
733
+ #: admin/main-view.php:838
734
  #, php-format
735
  msgid ""
736
  "One or more FULLTEXT indices are missing. Please hit the %1$s at the bottom "
737
  "of the page to fix this."
738
  msgstr ""
739
 
740
+ #: admin/main-view.php:838
741
  msgid "Recreate Index button"
742
  msgstr ""
743
 
744
+ #: admin/main-view.php:843
745
  msgid ""
746
  "If the Recreate Index button fails, please run the following queries in "
747
  "phpMyAdmin or Adminer"
readme.txt CHANGED
@@ -183,6 +183,19 @@ In addition to the above, the shortcode takes every option that the plugin suppo
183
 
184
  == Changelog ==
185
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  = 2.5.0 =
187
 
188
  * Features:
@@ -359,7 +372,7 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
359
 
360
  == Upgrade Notice ==
361
 
362
- = 2.5.0 =
363
  * New features. Upgrade highly recommended. Please do verify your settings after the upgrade.
364
  Check the Changelog for more details
365
 
183
 
184
  == Changelog ==
185
 
186
+ = 2.5.1 =
187
+
188
+ * Features:
189
+ * New option to disable creation of thumbnails
190
+
191
+ * Enhancements:
192
+ * Do not delete index on activation
193
+ * crp_thumbnail image size will set the default crop option to true if not already set
194
+
195
+ * Bug fixes:
196
+ * Missing/Unknown PHP errors/warnings in the widget
197
+ * Minor CSS fixes
198
+
199
  = 2.5.0 =
200
 
201
  * Features:
372
 
373
  == Upgrade Notice ==
374
 
375
+ = 2.5.1 =
376
  * New features. Upgrade highly recommended. Please do verify your settings after the upgrade.
377
  Check the Changelog for more details
378
 
uninstall.php CHANGED
@@ -32,15 +32,15 @@ if ( ! is_multisite() ) {
32
  } else {
33
 
34
  // Get all blogs in the network and activate plugin on each one.
35
- $blog_ids = $wpdb->get_col(
36
  "
37
  SELECT blog_id FROM $wpdb->blogs
38
  WHERE archived = '0' AND spam = '0' AND deleted = '0'
39
  "
40
  );
41
 
42
- foreach ( $blog_ids as $blog_id ) {
43
- switch_to_blog( $blog_id );
44
 
45
  $wpdb->query( "ALTER TABLE {$wpdb->posts} DROP INDEX crp_related" );
46
  $wpdb->query( "ALTER TABLE {$wpdb->posts} DROP INDEX crp_related_title" );
32
  } else {
33
 
34
  // Get all blogs in the network and activate plugin on each one.
35
+ $blogids = $wpdb->get_col(
36
  "
37
  SELECT blog_id FROM $wpdb->blogs
38
  WHERE archived = '0' AND spam = '0' AND deleted = '0'
39
  "
40
  );
41
 
42
+ foreach ( $blogids as $blogid ) {
43
+ switch_to_blog( $blogid );
44
 
45
  $wpdb->query( "ALTER TABLE {$wpdb->posts} DROP INDEX crp_related" );
46
  $wpdb->query( "ALTER TABLE {$wpdb->posts} DROP INDEX crp_related_title" );