Yet Another Related Posts Plugin (YARPP) - Version 3.1.9

Version Description

  • Added Standard Arabic localization (ar) by led
  • The Related Posts Widget now can also use custom templates. (#1143)
  • Fixed a conflict with the Magazine Premium theme
  • Fixes a WordPress warning of "unexpected output" on plugin installation.
  • Fixes a PHP warning message regarding array_key.
  • Fixed a strict WordPress warning about capabilities.
  • Bugfix: widget now obeys cross-relate posts and pages option
  • For WPMU + Multisite users, reverted 3.1.8's get_site_options to get_options, so that individual site options can be maintained.
Download this release

Release Info

Developer mitchoyoshitaka
Plugin Icon 128x128 Yet Another Related Posts Plugin (YARPP)
Version 3.1.9
Comparing to
See all releases

Code changes from version 3.1.8 to 3.1.9

Files changed (7) hide show
  1. includes.php +85 -38
  2. lang/yarpp-ar.mo +0 -0
  3. lang/yarpp-ar_AR.po +588 -0
  4. magic.php +3 -3
  5. options.php +29 -29
  6. readme.txt +11 -1
  7. yarpp.php +12 -12
includes.php CHANGED
@@ -12,6 +12,7 @@ if ( !defined('WP_CONTENT_DIR') )
12
  if ( !defined('YARPP_UNLIKELY_DEFAULT') )
13
  define('YARPP_UNLIKELY_DEFAULT', "There's no way this is going to be the string.");
14
 
 
15
  // here's a list of all the options YARPP uses (except version), as well as their default values, sans the yarpp_ prefix, split up into binary options and value options. These arrays are used in updating settings (options.php) and other tasks.
16
  $yarpp_value_options = array('threshold' => 5,
17
  'limit' => 5,
@@ -75,7 +76,7 @@ function yarpp_enabled() {
75
  }
76
 
77
  function yarpp_reinforce() {
78
- if (!get_site_option('yarpp_version'))
79
  yarpp_activate();
80
  yarpp_upgrade_check(true);
81
  }
@@ -83,12 +84,12 @@ function yarpp_reinforce() {
83
  function yarpp_activate() {
84
  global $yarpp_version, $wpdb, $yarpp_binary_options, $yarpp_value_options;
85
  foreach (array_keys($yarpp_value_options) as $option) {
86
- if (get_site_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
87
- add_site_option("yarpp_$option",$yarpp_value_options[$option] . ' ');
88
  }
89
  foreach (array_keys($yarpp_binary_options) as $option) {
90
- if (get_site_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
91
- add_site_option("yarpp_$option",$yarpp_binary_options[$option]);
92
  }
93
  if (!yarpp_enabled()) {
94
  if (!$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_title` ( `post_title`)")) {
@@ -127,8 +128,8 @@ function yarpp_activate() {
127
  return 0;
128
  }
129
  }
130
- add_site_option('yarpp_version',YARPP_VERSION);
131
- update_site_option('yarpp_version',YARPP_VERSION);
132
  return 1;
133
  }
134
 
@@ -146,28 +147,28 @@ function yarpp_upgrade_check($inuse = false) {
146
  global $wpdb, $yarpp_value_options, $yarpp_binary_options;
147
 
148
  foreach (array_keys($yarpp_value_options) as $option) {
149
- if (get_site_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
150
- add_site_option("yarpp_$option",$yarpp_value_options[$option].' ');
151
  }
152
  foreach (array_keys($yarpp_binary_options) as $option) {
153
- if (get_site_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
154
- add_site_option("yarpp_$option",$yarpp_binary_options[$option]);
155
  }
156
 
157
  // upgrade check
158
 
159
- if (get_site_option('threshold') and get_site_option('limit') and get_site_option('len')) {
160
  yarpp_activate();
161
  yarpp_upgrade_one_five();
162
- update_site_option('yarpp_version','1.5');
163
  }
164
 
165
- if (version_compare('3.1.3',get_site_option('yarpp_version')) > 0) {
166
  $wpdb->query("ALTER TABLE {$wpdb->prefix}yarpp_related_cache DROP PRIMARY KEY ,
167
  ADD PRIMARY KEY ( score , date , reference_ID , ID )");
168
  }
169
 
170
- update_site_option('yarpp_version',YARPP_VERSION);
171
 
172
  // just in case, try to add the index one more time.
173
  if (!yarpp_enabled()) {
@@ -178,8 +179,7 @@ function yarpp_upgrade_check($inuse = false) {
178
  }
179
 
180
  function yarpp_admin_menu() {
181
- $hook = add_options_page(__('Related Posts (YARPP)','yarpp'),__('Related Posts (YARPP)','yarpp'), 8, 'yet-another-related-posts-plugin/options.php', 'yarpp_options_page');
182
- //if (function_exists('add_submenu_page')) add_submenu_page('options-general.php', 'Related Posts (YARPP)', 'Related Posts (YARPP)', 8, 'yet-another-related-posts-plugin/options.php');
183
  add_action("load-$hook",'yarpp_load_thickbox');
184
  // new in 3.0.12: add settings link to the plugins page
185
  add_filter('plugin_action_links', 'yarpp_settings_link', 10, 2);
@@ -216,37 +216,84 @@ class YARPP_Widget extends WP_Widget {
216
  }
217
 
218
  function widget($args, $instance) {
 
219
  if (!is_single())
220
  return;
221
 
222
  extract($args);
 
 
 
 
 
223
  $title = apply_filters('widget_title', $instance['title']);
224
  echo $before_widget;
225
- echo $before_title;
226
- if ($title)
227
- echo $title;
228
- else
229
- _e('Related Posts (YARPP)','yarpp');
230
- echo $after_title;
231
- echo yarpp_related(array('post'),$instance,false,false,'widget');
 
 
 
232
  echo $after_widget;
233
  }
234
 
235
  function update($new_instance, $old_instance) {
236
- $instance = array( 'promote_yarpp' => 0);
 
237
  foreach ( $instance as $field => $val ) {
238
  if ( isset($new_instance[$field]) )
239
  $instance[$field] = 1;
240
  }
241
- $instance['title'] = $new_instance['title'];
 
 
 
 
 
 
242
  return $instance;
243
  }
244
 
245
  function form($instance) {
246
  $title = esc_attr($instance['title']);
 
247
  ?>
248
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  <p><input class="checkbox" id="<?php echo $this->get_field_id('promote_yarpp'); ?>" name="<?php echo $this->get_field_name('promote_yarpp'); ?>" type="checkbox" <?php checked($instance['images'], true) ?> /> <label for="<?php echo $this->get_field_id('promote_yarpp'); ?>"><?php _e("Help promote Yet Another Related Posts Plugin?",'yarpp'); ?></label></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  <?php
251
  }
252
  }
@@ -376,19 +423,19 @@ function yarpp_upgrade_one_five() {
376
  global $wpdb;
377
  $migrate_options = array('past_only','show_excerpt','show_pass_post','cross_relate','limit','threshold','before_title','after_title','before_post','after_post');
378
  foreach ($migrate_options as $option) {
379
- if (get_site_option($option,YARPP_UNLIKELY_DEFAULT) != YARPP_UNLIKELY_DEFAULT) {
380
- update_site_option("yarpp_$option",get_site_option($option));
381
- delete_site_option($option);
382
  }
383
  }
384
  // len is one option where we actually change the name of the option
385
- update_site_option('yarpp_excerpt_length',get_site_option('len'));
386
- delete_site_option('len');
387
 
388
  // override these defaults for those who upgrade from < 1.5
389
- update_site_option('yarpp_auto_display',false);
390
- update_site_option('yarpp_before_related','');
391
- update_site_option('yarpp_after_related','');
392
  unset($yarpp_version);
393
  }
394
 
@@ -403,17 +450,17 @@ function yarpp_excerpt($content,$length) {
403
  function yarpp_set_option($option,$value) {
404
  global $yarpp_value_options;
405
  if (array_search($option,array_keys($yarpp_value_options)) === true)
406
- update_site_option("yarpp_$option",$value.' ');
407
  else
408
- update_site_option("yarpp_$option",$value);
409
  }
410
 
411
  function yarpp_get_option($option,$escapehtml = false) {
412
  global $yarpp_value_options;
413
  if (!(array_search($option,array_keys($yarpp_value_options)) === false))
414
- $return = chop(get_site_option("yarpp_$option"));
415
  else
416
- $return = get_site_option("yarpp_$option");
417
  if ($escapehtml)
418
  $return = htmlspecialchars(stripslashes($return));
419
  return $return;
12
  if ( !defined('YARPP_UNLIKELY_DEFAULT') )
13
  define('YARPP_UNLIKELY_DEFAULT', "There's no way this is going to be the string.");
14
 
15
+ global $yarpp_value_options, $yarpp_binary_options;
16
  // here's a list of all the options YARPP uses (except version), as well as their default values, sans the yarpp_ prefix, split up into binary options and value options. These arrays are used in updating settings (options.php) and other tasks.
17
  $yarpp_value_options = array('threshold' => 5,
18
  'limit' => 5,
76
  }
77
 
78
  function yarpp_reinforce() {
79
+ if (!get_option('yarpp_version'))
80
  yarpp_activate();
81
  yarpp_upgrade_check(true);
82
  }
84
  function yarpp_activate() {
85
  global $yarpp_version, $wpdb, $yarpp_binary_options, $yarpp_value_options;
86
  foreach (array_keys($yarpp_value_options) as $option) {
87
+ if (get_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
88
+ add_option("yarpp_$option",$yarpp_value_options[$option] . ' ');
89
  }
90
  foreach (array_keys($yarpp_binary_options) as $option) {
91
+ if (get_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
92
+ add_option("yarpp_$option",$yarpp_binary_options[$option]);
93
  }
94
  if (!yarpp_enabled()) {
95
  if (!$wpdb->query("ALTER TABLE $wpdb->posts ADD FULLTEXT `yarpp_title` ( `post_title`)")) {
128
  return 0;
129
  }
130
  }
131
+ add_option('yarpp_version',YARPP_VERSION);
132
+ update_option('yarpp_version',YARPP_VERSION);
133
  return 1;
134
  }
135
 
147
  global $wpdb, $yarpp_value_options, $yarpp_binary_options;
148
 
149
  foreach (array_keys($yarpp_value_options) as $option) {
150
+ if (get_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
151
+ add_option("yarpp_$option",$yarpp_value_options[$option].' ');
152
  }
153
  foreach (array_keys($yarpp_binary_options) as $option) {
154
+ if (get_option("yarpp_$option",YARPP_UNLIKELY_DEFAULT) == YARPP_UNLIKELY_DEFAULT)
155
+ add_option("yarpp_$option",$yarpp_binary_options[$option]);
156
  }
157
 
158
  // upgrade check
159
 
160
+ if (get_option('threshold') and get_option('limit') and get_option('len')) {
161
  yarpp_activate();
162
  yarpp_upgrade_one_five();
163
+ update_option('yarpp_version','1.5');
164
  }
165
 
166
+ if (version_compare('3.1.3',get_option('yarpp_version')) > 0) {
167
  $wpdb->query("ALTER TABLE {$wpdb->prefix}yarpp_related_cache DROP PRIMARY KEY ,
168
  ADD PRIMARY KEY ( score , date , reference_ID , ID )");
169
  }
170
 
171
+ update_option('yarpp_version',YARPP_VERSION);
172
 
173
  // just in case, try to add the index one more time.
174
  if (!yarpp_enabled()) {
179
  }
180
 
181
  function yarpp_admin_menu() {
182
+ $hook = add_options_page(__('Related Posts (YARPP)','yarpp'),__('Related Posts (YARPP)','yarpp'), 'manage_options', 'yet-another-related-posts-plugin/options.php', 'yarpp_options_page');
 
183
  add_action("load-$hook",'yarpp_load_thickbox');
184
  // new in 3.0.12: add settings link to the plugins page
185
  add_filter('plugin_action_links', 'yarpp_settings_link', 10, 2);
216
  }
217
 
218
  function widget($args, $instance) {
219
+ global $post;
220
  if (!is_single())
221
  return;
222
 
223
  extract($args);
224
+
225
+ $type = ($post->post_type == 'page' ? array('page') : array('post'));
226
+ if (yarpp_get_option('cross_relate'))
227
+ $type = array('post','page');
228
+
229
  $title = apply_filters('widget_title', $instance['title']);
230
  echo $before_widget;
231
+ if ( !$instance['use_template'] ) {
232
+ echo $before_title;
233
+ if ($title)
234
+ echo $title;
235
+ else
236
+ _e('Related Posts (YARPP)','yarpp');
237
+ echo $after_title;
238
+ }
239
+ // var_dump($instance);
240
+ echo yarpp_related($type,$instance,false,false,'widget');
241
  echo $after_widget;
242
  }
243
 
244
  function update($new_instance, $old_instance) {
245
+ // this starts with default values.
246
+ $instance = array( 'promote_yarpp' => 0, 'use_template' => 0 );
247
  foreach ( $instance as $field => $val ) {
248
  if ( isset($new_instance[$field]) )
249
  $instance[$field] = 1;
250
  }
251
+ if ($instance['use_template']) {
252
+ $instance['template_file'] = $new_instance['template_file'];
253
+ $instance['title'] = $old_instance['title'];
254
+ } else {
255
+ $instance['template_file'] = $old_instance['template_file'];
256
+ $instance['title'] = $new_instance['title'];
257
+ }
258
  return $instance;
259
  }
260
 
261
  function form($instance) {
262
  $title = esc_attr($instance['title']);
263
+ $template_file = $instance['template_file'];
264
  ?>
265
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
266
+
267
+ <?php // if there are YARPP templates installed...
268
+ if (count(glob(STYLESHEETPATH . '/yarpp-template-*.php'))): ?>
269
+
270
+ <p><input class="checkbox" id="<?php echo $this->get_field_id('use_template'); ?>" name="<?php echo $this->get_field_name('use_template'); ?>" type="checkbox" <?php checked($instance['use_template'], true) ?> /> <label for="<?php echo $this->get_field_id('use_template'); ?>"><?php _e("Display using a custom template file",'yarpp');?></label></p>
271
+ <p id="<?php echo $this->get_field_id('template_file_p'); ?>"><label for="<?php echo $this->get_field_id('template_file'); ?>"><?php _e("Template file:",'yarpp');?></label> <select name="<?php echo $this->get_field_name('template_file'); ?>" id="<?php echo $this->get_field_id('template_file'); ?>">
272
+ <?php foreach (glob(STYLESHEETPATH . '/yarpp-template-*.php') as $template): ?>
273
+ <option value='<?php echo htmlspecialchars(basename($template))?>'<?php echo (basename($template)==$template_file)?" selected='selected'":'';?>><?php echo htmlspecialchars(basename($template))?></option>
274
+ <?php endforeach; ?>
275
+ </select><p>
276
+
277
+ <?php endif; ?>
278
+
279
  <p><input class="checkbox" id="<?php echo $this->get_field_id('promote_yarpp'); ?>" name="<?php echo $this->get_field_name('promote_yarpp'); ?>" type="checkbox" <?php checked($instance['images'], true) ?> /> <label for="<?php echo $this->get_field_id('promote_yarpp'); ?>"><?php _e("Help promote Yet Another Related Posts Plugin?",'yarpp'); ?></label></p>
280
+
281
+ <script type="text/javascript">
282
+ jQuery(function() {
283
+ function ensureTemplateChoice() {
284
+ if (jQuery('#<?php echo $this->get_field_id('use_template'); ?>').attr('checked')) {
285
+ jQuery('#<?php echo $this->get_field_id('title'); ?>').attr('disabled',true);
286
+ jQuery('#<?php echo $this->get_field_id('template_file_p'); ?>').show();
287
+ } else {
288
+ jQuery('#<?php echo $this->get_field_id('title'); ?>').attr('disabled',false);
289
+ jQuery('#<?php echo $this->get_field_id('template_file_p'); ?>').hide();
290
+ }
291
+ }
292
+ jQuery('#<?php echo $this->get_field_id('use_template'); ?>').change(ensureTemplateChoice);
293
+ ensureTemplateChoice();
294
+ });
295
+ </script>
296
+
297
  <?php
298
  }
299
  }
423
  global $wpdb;
424
  $migrate_options = array('past_only','show_excerpt','show_pass_post','cross_relate','limit','threshold','before_title','after_title','before_post','after_post');
425
  foreach ($migrate_options as $option) {
426
+ if (get_option($option,YARPP_UNLIKELY_DEFAULT) != YARPP_UNLIKELY_DEFAULT) {
427
+ update_option("yarpp_$option",get_option($option));
428
+ delete_option($option);
429
  }
430
  }
431
  // len is one option where we actually change the name of the option
432
+ update_option('yarpp_excerpt_length',get_option('len'));
433
+ delete_option('len');
434
 
435
  // override these defaults for those who upgrade from < 1.5
436
+ update_option('yarpp_auto_display',false);
437
+ update_option('yarpp_before_related','');
438
+ update_option('yarpp_after_related','');
439
  unset($yarpp_version);
440
  }
441
 
450
  function yarpp_set_option($option,$value) {
451
  global $yarpp_value_options;
452
  if (array_search($option,array_keys($yarpp_value_options)) === true)
453
+ update_option("yarpp_$option",$value.' ');
454
  else
455
+ update_option("yarpp_$option",$value);
456
  }
457
 
458
  function yarpp_get_option($option,$escapehtml = false) {
459
  global $yarpp_value_options;
460
  if (!(array_search($option,array_keys($yarpp_value_options)) === false))
461
+ $return = chop(get_option("yarpp_$option"));
462
  else
463
+ $return = get_option("yarpp_$option");
464
  if ($escapehtml)
465
  $return = htmlspecialchars(stripslashes($return));
466
  return $return;
lang/yarpp-ar.mo ADDED
Binary file
lang/yarpp-ar_AR.po ADDED
@@ -0,0 +1,588 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Yet Another Related Posts Plugin v3.0.5\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2010-05-06 10:40+0300\n"
7
+ "Last-Translator: Ирина <timoo08@mail.ru>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Russian\n"
14
+ "X-Poedit-Country: RUSSIA\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: includes.php:96
23
+ #@ yarpp
24
+ msgid "MySQL error on adding yarpp_title"
25
+ msgstr "خطأ على إضافة MySQL “yarpp_title”"
26
+
27
+ #: includes.php:101
28
+ #@ yarpp
29
+ msgid "MySQL error on adding yarpp_content"
30
+ msgstr "خطأ على إضافة MySQL “yarpp_content”"
31
+
32
+ #: includes.php:182
33
+ #: includes.php:215
34
+ #: includes.php:236
35
+ #@ yarpp
36
+ msgid "Related Posts (YARPP)"
37
+ msgstr "الوظائف ذات الصلة (YARPP)"
38
+
39
+ #: includes.php:489
40
+ #@ yarpp
41
+ msgid "Related Posts"
42
+ msgstr "الوظائف ذات الصلة"
43
+
44
+ #: template-builtin.php:35
45
+ #, php-format
46
+ #@ yarpp
47
+ msgid "%f is the YARPP match score between the current entry and this related entry. You are seeing this value because you are logged in to WordPress as an administrator. It is not shown to regular visitors."
48
+ msgstr "%f - وكانت النتيجة مطابقة YARPP بين دخول الحالية وهذا الموضوع ذات الصلة. كنت ترى هذه القيمة لأنه يتم تسجيل الدخول إلى وورد كمسؤول. لا يظهر للزوار والعادية."
49
+
50
+ #: magic.php:351
51
+ #: options.php:462
52
+ #: options.php:530
53
+ #@ yarpp
54
+ msgid "Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>."
55
+ msgstr "الوظائف ذات الصلة يقدمها لكم من جانب آخر على href='http://mitcho.com/code/yarpp/'> <aالمشاركات ذات البرنامج المساعد</a>."
56
+
57
+ #: options.php:26
58
+ #@ yarpp
59
+ msgid "The MyISAM check has been overridden. You may now use the \"consider titles\" and \"consider bodies\" relatedness criteria."
60
+ msgstr "وكان الاختيار تجاوز MyISAM. يمكنك الآن استخدام \"النظر في عناوين \" و \"النظر في هيئات معايير ارتباط\"."
61
+
62
+ #: options.php:35
63
+ #, php-format
64
+ #@ yarpp
65
+ msgid "YARPP's \"consider titles\" and \"consider bodies\" relatedness criteria require your <code>%s</code> table to use the <a href='http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html'>MyISAM storage engine</a>, but the table seems to be using the <code>%s</code> engine. These two options have been disabled."
66
+ msgstr "YARPP في \"النظر في عناوين \" و \"النظر في هيئات معايير ارتباط\" يتطلب ٪ الخاص <code>ق </ الجدول> رمز لاستخدام <أ href = http://dev.mysql.com/doc/refman/ ' 5.0/en/storage-engines.html 'تخزين <المحرك MyISAM> / 1> ، ولكن يبدو أن جدول باستخدام ٪ <code> </ محرك>. تم تعطيل هذه الخيارين."
67
+
68
+ #: options.php:37
69
+ #, php-format
70
+ #@ yarpp
71
+ msgid "To restore these features, please update your <code>%s</code> table by executing the following SQL directive: <code>ALTER TABLE `%s` ENGINE = MyISAM;</code> . No data will be erased by altering the table's engine, although there are performance implications."
72
+ msgstr "لاستعادة هذه الميزات ، الرجاء تحديث الخاص <code>٪ </ الجدول> رمز من خلال تنفيذ التوجيه مزود التالية : تغيير الجدول <code>`٪ سيصدره محرك MyISAM = ؛ < /. سوف تمحى لا توجد بيانات عن طريق تغيير محرك الجدول ، وإن كانت هناك آثار الأداء."
73
+
74
+ #: options.php:39
75
+ #, php-format
76
+ #@ yarpp
77
+ msgid "If, despite this check, you are sure that <code>%s</code> is using the MyISAM engine, press this magic button:"
78
+ msgstr "إذا ، بغض النظر عن هذا الخيار ، كنت على يقين من أن الجدول <code>٪ </ يستخدم رمز MyISAM ، انقر على هذا الزر السحري :"
79
+
80
+ #: options.php:42
81
+ #@ yarpp
82
+ msgid "Trust me. Let me use MyISAM features."
83
+ msgstr "ثق بي. واسمحوا لي أن استخدام ميزات MyISAM."
84
+
85
+ #: options.php:65
86
+ #@ yarpp
87
+ msgid "The YARPP database had an error but has been fixed."
88
+ msgstr "وكانت قاعدة بيانات YARPP خطأ ولكن قد تم إصلاحها."
89
+
90
+ #: options.php:67
91
+ #@ yarpp
92
+ msgid "The YARPP database has an error which could not be fixed."
93
+ msgstr "قاعدة بيانات YARPP وخطأ لا يمكن إصلاحها."
94
+
95
+ #: options.php:141
96
+ #: options.php:158
97
+ #: options.php:170
98
+ #@ yarpp
99
+ msgid "do not consider"
100
+ msgstr "لا تنظر"
101
+
102
+ #: options.php:142
103
+ #: options.php:159
104
+ #: options.php:172
105
+ #@ yarpp
106
+ msgid "consider"
107
+ msgstr "نظر"
108
+
109
+ #: options.php:160
110
+ #@ yarpp
111
+ msgid "consider with extra weight"
112
+ msgstr "النظر مع الوزن الزائد"
113
+
114
+ #: options.php:188
115
+ #@ yarpp
116
+ msgid "Yet Another Related Posts Plugin version history (RSS 2.0)"
117
+ msgstr "بعد إصدار آخر ذات الوظائف البرنامج المساعد التاريخ (RSS 2.0)"
118
+
119
+ #: options.php:253
120
+ #@ yarpp
121
+ msgid "Donate to mitcho (Michael Yoshitaka Erlewine) for this plugin via PayPal"
122
+ msgstr "التبرع لmitcho (مايكل يوشيتاكا Erlewine) عن طريق هذا البرنامج المساعد PayPal"
123
+
124
+ #: options.php:242
125
+ #@ yarpp
126
+ msgid "Yet Another Related Posts Plugin Options"
127
+ msgstr "بعد آخر على الوظائف ذات المساعد الخيارات"
128
+
129
+ #: options.php:274
130
+ #@ yarpp
131
+ msgid "\"The Pool\""
132
+ msgstr "<em>محتوى</em>"
133
+
134
+ #: options.php:276
135
+ #@ yarpp
136
+ msgid "\"The Pool\" refers to the pool of posts and pages that are candidates for display as related to the current entry."
137
+ msgstr " \"إن تجمع\" يشير إلى مجموعة من وظائف والصفحات التي يتم المرشحين لعرض والمتعلقة بدخول الحالي."
138
+
139
+ #: options.php:281
140
+ #@ yarpp
141
+ msgid "Disallow by category:"
142
+ msgstr "عدم السماح حسب الفئة :"
143
+
144
+ #: options.php:283
145
+ #@ yarpp
146
+ msgid "Disallow by tag:"
147
+ msgstr "عدم السماح بها العلامة :"
148
+
149
+ #: options.php:286
150
+ #@ yarpp
151
+ msgid "Show password protected posts?"
152
+ msgstr "كلمة السر المحمية معرض الوظائف؟"
153
+
154
+ #: options.php:326
155
+ #@ yarpp
156
+ msgid "Show only previous posts?"
157
+ msgstr "عرض مشاركات سابقة فقط؟"
158
+
159
+ #: options.php:307
160
+ #@ yarpp
161
+ msgid "\"Relatedness\" options"
162
+ msgstr "ارتباط \"خيارات\""
163
+
164
+ #: options.php:310
165
+ #, php-format
166
+ #@ yarpp
167
+ msgid "YARPP is different than the <a href=\"http://wasabi.pbwiki.com/Related%20Entries\">previous plugins it is based on</a> as it limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>."
168
+ msgstr "YARPP يختلف عن السابق ل<a> href=\"http://wasabi.pbwiki.com/Related٪20Entries\"> المحمول </ بحيث يحد من اختيار الاتصالات <br/> (1) الحد الأقصى لعدد (2) \" التشابه \"."
169
+
170
+ #: options.php:310
171
+ #: options.php:325
172
+ #: options.php:409
173
+ #: options.php:414
174
+ #: options.php:461
175
+ #: options.php:478
176
+ #: options.php:479
177
+ #: options.php:483
178
+ #: options.php:529
179
+ #@ yarpp
180
+ msgid "more&gt;"
181
+ msgstr "المزيد"
182
+
183
+ #: options.php:316
184
+ #@ yarpp
185
+ msgid "Match threshold:"
186
+ msgstr "عتبة التشابه :"
187
+
188
+ #: options.php:317
189
+ #@ yarpp
190
+ msgid "Titles: "
191
+ msgstr "العناوين :"
192
+
193
+ #: options.php:319
194
+ #@ yarpp
195
+ msgid "Bodies: "
196
+ msgstr "الهيئات :"
197
+
198
+ #: options.php:321
199
+ #@ yarpp
200
+ msgid "Tags: "
201
+ msgstr "به :"
202
+
203
+ #: options.php:323
204
+ #@ yarpp
205
+ msgid "Categories: "
206
+ msgstr "فئات :"
207
+
208
+ #: options.php:325
209
+ #@ yarpp
210
+ msgid "Cross-relate posts and pages?"
211
+ msgstr "وتتصل عبر وظائف والصفحات؟"
212
+
213
+ #: options.php:325
214
+ #@ yarpp
215
+ msgid "When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts."
216
+ msgstr "عندما \"تتصل عبر وظائف وصفحات \" يتم تحديد الخيار ، related_posts <code>() <> / <code>related_pages () <> / و<code>related_entries () </ رمز وسوف يعطي كل نفس الناتج ، يعود كل من الصفحات ذات الصلة وظيفة."
217
+
218
+ #: options.php:404
219
+ #@ yarpp
220
+ msgid "Display options <small>for your website</small>"
221
+ msgstr "خيارات العرض <small>ل<موقع الويب الخاص بك</small>"
222
+
223
+ #: options.php:409
224
+ #@ yarpp
225
+ msgid "Automatically display related posts?"
226
+ msgstr "عرض تلقائيا وظائف ذات الصلة؟"
227
+
228
+ #: options.php:409
229
+ #@ yarpp
230
+ msgid "This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files."
231
+ msgstr "<code>related_posts () <> / أو المتغيرات (<code>related_pages () <> / و<code>related_entries () </) في الموضوع الخاص بك الملفات."
232
+
233
+ #: options.php:410
234
+ #@ yarpp
235
+ msgid "Website display code example"
236
+ msgstr "الموقع سبيل المثال عرض رمز"
237
+
238
+ #: options.php:410
239
+ #: options.php:480
240
+ #@ yarpp
241
+ msgid "(Update options to reload.)"
242
+ msgstr "(خيارات تحديث لإعادة تحميل.)"
243
+
244
+ #: options.php:413
245
+ #: options.php:482
246
+ #@ yarpp
247
+ msgid "Maximum number of related posts:"
248
+ msgstr "الحد الأقصى لعدد الوظائف ذات الصلة :"
249
+
250
+ #: options.php:426
251
+ #@ yarpp
252
+ msgid "Before / after related entries:"
253
+ msgstr "قبل / بعد مداخل ذات الصلة :"
254
+
255
+ #: options.php:427
256
+ #: options.php:432
257
+ #: options.php:441
258
+ #: options.php:496
259
+ #: options.php:501
260
+ #: options.php:510
261
+ #@ yarpp
262
+ msgid "For example:"
263
+ msgstr "على سبيل المثال :"
264
+
265
+ #: options.php:431
266
+ #: options.php:500
267
+ #@ yarpp
268
+ msgid "Before / after each related entry:"
269
+ msgstr "قبل / بعد كل إدخال ذات الصلة :"
270
+
271
+ #: options.php:435
272
+ #: options.php:504
273
+ #@ yarpp
274
+ msgid "Show excerpt?"
275
+ msgstr "وتظهر مقتطفات؟"
276
+
277
+ #: options.php:436
278
+ #: options.php:505
279
+ #@ yarpp
280
+ msgid "Excerpt length (No. of words):"
281
+ msgstr "مقتطفات طول (عدد الكلمات) :"
282
+
283
+ #: options.php:440
284
+ #@ yarpp
285
+ msgid "Before / after (Excerpt):"
286
+ msgstr "قبل / بعد (مقتطفات) :"
287
+
288
+ #: options.php:446
289
+ #: options.php:515
290
+ #@ yarpp
291
+ msgid "Order results:"
292
+ msgstr "ترتيب النتائج :"
293
+
294
+ #: options.php:448
295
+ #: options.php:517
296
+ #@ yarpp
297
+ msgid "score (high relevance to low)"
298
+ msgstr "التشابه (في ترتيب تنازلي)"
299
+
300
+ #: options.php:449
301
+ #: options.php:518
302
+ #@ yarpp
303
+ msgid "score (low relevance to high)"
304
+ msgstr "التشابه (تصاعدي)"
305
+
306
+ #: options.php:450
307
+ #: options.php:519
308
+ #@ yarpp
309
+ msgid "date (new to old)"
310
+ msgstr "تاريخ (جديد إلى القديم)"
311
+
312
+ #: options.php:451
313
+ #: options.php:520
314
+ #@ yarpp
315
+ msgid "date (old to new)"
316
+ msgstr "التاريخ (القديم إلى جديد)"
317
+
318
+ #: options.php:452
319
+ #: options.php:521
320
+ #@ yarpp
321
+ msgid "title (alphabetical)"
322
+ msgstr "عنوان (الأبجدي)"
323
+
324
+ #: options.php:453
325
+ #: options.php:522
326
+ #@ yarpp
327
+ msgid "title (reverse alphabetical)"
328
+ msgstr "عنوان (عكس الأبجدي)"
329
+
330
+ #: options.php:458
331
+ #: options.php:527
332
+ #@ yarpp
333
+ msgid "Default display if no results:"
334
+ msgstr "إذا لم يكن العرض الافتراضي النتائج :"
335
+
336
+ #: includes.php:279
337
+ #: options.php:460
338
+ #: options.php:529
339
+ #@ yarpp
340
+ msgid "Help promote Yet Another Related Posts Plugin?"
341
+ msgstr "تساعد على تعزيز آخر على الوظائف ذات البرنامج المساعد؟"
342
+
343
+ #: options.php:462
344
+ #: options.php:530
345
+ #, php-format
346
+ #@ yarpp
347
+ msgid "This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated."
348
+ msgstr "وهذا الخيار إضافة رمز ٪ s. محاولة تشغيله ، وتحديث الخيارات المتاحة أمامك ، وانظر التعليمات البرمجية في المثال رمز للحق. هذه الروابط والهبات هي موضع تقدير كبير."
349
+
350
+ #: options.php:472
351
+ #@ yarpp
352
+ msgid "Display options <small>for RSS</small>"
353
+ msgstr "خيارات العرض <small>لأجل RSS</small>"
354
+
355
+ #: options.php:478
356
+ #@ yarpp
357
+ msgid "Display related posts in feeds?"
358
+ msgstr "عرض وظائف ذات الصلة في RSS?"
359
+
360
+ #: options.php:479
361
+ #@ yarpp
362
+ msgid "Display related posts in the descriptions?"
363
+ msgstr "عرض مشاركات ذات الصلة في أوصاف؟"
364
+
365
+ #: options.php:479
366
+ #@ yarpp
367
+ msgid "This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all."
368
+ msgstr "هذا الخيار يعرض وظائف ذات الصلة في مجالات وصف آر إس إس ، وليس المحتوى. إذا يغذي يتم تعيين الخاص تصل إلى عرض مقتطفات فقط ، ومع ذلك ، لا تستخدم إلا في حقل الوصف ، لذلك هناك حاجة لهذا الخيار أي عرض في وظائف ذات الصلة في all.Display الأوصاف؟"
369
+
370
+ #: options.php:480
371
+ #@ yarpp
372
+ msgid "RSS display code example"
373
+ msgstr " سبيل المثال عرض رمز RSS"
374
+
375
+ #: options.php:495
376
+ #@ yarpp
377
+ msgid "Before / after related entries display:"
378
+ msgstr "قبل / بعد عرض الإدخالات ذات الصلة :"
379
+
380
+ #: options.php:509
381
+ #@ yarpp
382
+ msgid "Before / after (excerpt):"
383
+ msgstr "قبل / بعد (مقتطفات) :"
384
+
385
+ #: options.php:135
386
+ #@ yarpp
387
+ msgid "word"
388
+ msgstr "كلمة"
389
+
390
+ #: options.php:136
391
+ #@ yarpp
392
+ msgid "tag"
393
+ msgstr "بطاقة"
394
+
395
+ #: options.php:137
396
+ #@ yarpp
397
+ msgid "category"
398
+ msgstr "فئة"
399
+
400
+ #: options.php:144
401
+ #: options.php:174
402
+ #, php-format
403
+ #@ yarpp
404
+ msgid "require at least one %s in common"
405
+ msgstr "ق تتطلب ما لا يقل عن واحد في المائة في العام"
406
+
407
+ #: options.php:146
408
+ #: options.php:176
409
+ #, php-format
410
+ #@ yarpp
411
+ msgid "require more than one %s in common"
412
+ msgstr "ق تتطلب أكثر من واحد في المائة في العام"
413
+
414
+ #: options.php:99
415
+ #@ yarpp
416
+ msgid "Options saved!"
417
+ msgstr "حفظ الخيارات!"
418
+
419
+ #: options.php:310
420
+ #@ yarpp
421
+ msgid "The higher the match threshold, the more restrictive, and you get less related posts overall. The default match threshold is 5. If you want to find an appropriate match threshhold, take a look at some post's related posts display and their scores. You can see what kinds of related posts are being picked up and with what kind of match scores, and determine an appropriate threshold for your site."
422
+ msgstr "ارتفاع عتبة التشابه ، إلا أن تشديد العينة ، وسيحصلون على أقل ناتج قياسي. العتبة الافتراضي هو 5. إذا كنت ترغب في العثور على عتبة المقبول ، تجربة مع رسائل متعددة. يمكنك ان ترى ما ورسائل تصل ما قيمها من التشابه ، والتي يمكن تحديد مستوى مقبول لموقعك."
423
+
424
+ #: options.php:538
425
+ #@ yarpp
426
+ msgid "Update options"
427
+ msgstr "خيارات التحديث"
428
+
429
+ #: options.php:539
430
+ #@ yarpp
431
+ msgid "Do you really want to reset your configuration?"
432
+ msgstr "هل تريد حقا لإعادة التكوين الخاص بك؟"
433
+
434
+ #: options.php:539
435
+ #@ yarpp
436
+ msgid "Reset options"
437
+ msgstr "خيارات إعادة تعيين"
438
+
439
+ #: includes.php:112
440
+ #@ yarpp
441
+ msgid "MySQL error on creating yarpp_keyword_cache table"
442
+ msgstr " MySQL خطأ في إنشاء جدول yarpp_keyword_cache"
443
+
444
+ #: includes.php:123
445
+ #@ yarpp
446
+ msgid "MySQL error on creating yarpp_related_cache table"
447
+ msgstr " MySQL خطأ في إنشاء جدول yarpp_keyword_cache"
448
+
449
+ #: magic.php:71
450
+ #@ yarpp
451
+ msgid "Example post "
452
+ msgstr "سبيل المثال وظيفة"
453
+
454
+ #: options.php:255
455
+ #@ yarpp
456
+ msgid "by <a href=\"http://mitcho.com/code/\">mitcho (Michael 芳貴 Erlewine)</a>"
457
+ msgstr "من قبل <a href=\"http://mitcho.com/code/\">mitcho (Michael 芳貴 Erlewine)</a>"
458
+
459
+ #: options.php:255
460
+ #@ yarpp
461
+ msgid "Follow <a href=\"http://twitter.com/yarpp/\">Yet Another Related Posts Plugin on Twitter</a>"
462
+ msgstr "يتبع<a href=\"http://twitter.com/yarpp/\">بعد آخر على الوظائف ذات المساعد على التغريد</a>"
463
+
464
+ #: options.php:290
465
+ #@ yarpp
466
+ msgid "day(s)"
467
+ msgstr "أيام"
468
+
469
+ #: options.php:291
470
+ #@ yarpp
471
+ msgid "week(s)"
472
+ msgstr "أسبوع"
473
+
474
+ #: options.php:292
475
+ #@ yarpp
476
+ msgid "month(s)"
477
+ msgstr "شهر"
478
+
479
+ #: options.php:294
480
+ #@ yarpp
481
+ msgid "Show only posts from the past NUMBER UNITS"
482
+ msgstr "عرض وظيفة فقط من الماضي NUMBER UNITS"
483
+
484
+ #: options.php:388
485
+ #@ yarpp
486
+ msgid "There is a new beta (VERSION) of Yet Another Related Posts Plugin. You can <A>download it here</a> at your own risk."
487
+ msgstr "الإصدار التجريبي الجديد (نسخة) سد YARPP. يمكنك تحميله من هنا <a></ أ> على مسؤوليتك الخاصة."
488
+
489
+ #: options.php:390
490
+ #@ yarpp
491
+ msgid "There is a new version (VERSION) of Yet Another Related Posts Plugin available! You can <A>download it here</a>."
492
+ msgstr "الإصدار الجديد (الإصدار) سد YARPP. يمكنك تحميله من هنا <a></ أ>."
493
+
494
+ #: includes.php:270
495
+ #: options.php:414
496
+ #: options.php:483
497
+ #@ yarpp
498
+ msgid "Display using a custom template file"
499
+ msgstr "عرض باستخدام قالب مخصص ملف"
500
+
501
+ #: includes.php:271
502
+ #: options.php:416
503
+ #: options.php:485
504
+ #@ yarpp
505
+ msgid "Template file:"
506
+ msgstr "ملف القالب :"
507
+
508
+ #: options.php:478
509
+ #@ yarpp
510
+ msgid "This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed."
511
+ msgstr "يعرض هذا الخيار وظائف ذات الصلة في نهاية كل عنصر في آر إس إس الخاص والذرة. قالب لا يلزم إجراء تغييرات."
512
+
513
+ #: template-metabox.php:12
514
+ #@ yarpp
515
+ msgid "These are the related entries for this entry. Updating this post may change these related posts."
516
+ msgstr "هذه الوظائف ذات الصلة لهذا المنصب. تغيير هذا الموقف يمكن أن يتغير مجموعة من الوظائف ذات الصلة."
517
+
518
+ #: template-metabox.php:26
519
+ #@ yarpp
520
+ msgid "Whether all of these related entries are actually displayed and how they are displayed depends on your YARPP display options."
521
+ msgstr "إذا كان كل من هذه الإدخالات ذات الصلة معروضة في الواقع وكيف يتم عرضها يعتمد على خيارات العرض YARPP."
522
+
523
+ #: includes.php:29
524
+ #: includes.php:40
525
+ #: template-metabox.php:28
526
+ #: template-widget.php:13
527
+ #@ yarpp
528
+ msgid "No related posts."
529
+ msgstr "لا الوظائف ذات الصلة."
530
+
531
+ #: options.php:10
532
+ #@ yarpp
533
+ msgid "Please move the YARPP template files into your theme to complete installation. Simply move the sample template files (currently in <code>wp-content/plugins/yet-another-related-posts-plugin/yarpp-templates/</code>) to the <code>TEMPLATEPATH</code> directory."
534
+ msgstr "من فضلك ، لاكتمال التثبيت ، ضع ملفات القالب YARPP في الموضوع الخاص بك. ببساطة سحب ملفات القالب (لحظة <code>wp-content/plugins/yet-another-related-posts-plugin/yarpp-templates /) في مجلد رمز <code>TEMPLATEPATH> "
535
+
536
+ #: options.php:15
537
+ #@ yarpp
538
+ msgid "No YARPP template files were found in your theme (<code>TEMPLATEPATH</code>) so the templating feature has been turned off."
539
+ msgstr "لا YARPP قالب الملفات تم العثور عليها في الموضوع الخاص بك (<code>TEMPLATEPATH </) لذلك تم تشغيل ميزة templating قبالة."
540
+
541
+ #: options.php:483
542
+ #@ yarpp
543
+ msgid "NEW!"
544
+ msgstr "جديد!"
545
+
546
+ #: options.php:414
547
+ #: options.php:483
548
+ #@ yarpp
549
+ msgid "This advanced option gives you full power to customize how your related posts are displayed. Templates (stored in your theme folder) are written in PHP."
550
+ msgstr "هذا الخيار المتقدمة يعطيك القوة الكاملة لتخصيص كيفية عرض مشاركاتك ذات الصلة. مكتوبة قوالب (المخزنة في مجلد موضوع الخاص) PHP."
551
+
552
+ #: includes.php:27
553
+ #: includes.php:38
554
+ #@ yarpp
555
+ msgid "Related posts:"
556
+ msgstr ""
557
+
558
+ #: includes.php:191
559
+ #@ yarpp
560
+ msgid "Settings"
561
+ msgstr ""
562
+
563
+ #: includes.php:265
564
+ msgid "Title:"
565
+ msgstr ""
566
+
567
+ #: options.php:68
568
+ #@ yarpp
569
+ msgid "Please try <A>manual SQL setup</a>."
570
+ msgstr ""
571
+
572
+ #: options.php:271
573
+ #: options.php:304
574
+ #: options.php:401
575
+ #: options.php:469
576
+ msgid "Click to toggle"
577
+ msgstr ""
578
+
579
+ #: options.php:427
580
+ #: options.php:432
581
+ #: options.php:441
582
+ #: options.php:496
583
+ #: options.php:501
584
+ #: options.php:510
585
+ #@ yarpp
586
+ msgid " or "
587
+ msgstr ""
588
+
magic.php CHANGED
@@ -313,16 +313,16 @@ function yarpp_related($type,$args,$echo = true,$reference_ID=false,$domain = 'w
313
  // make sure we get the right is_single value
314
  // (see http://wordpress.org/support/topic/288230)
315
  $wp_query->is_single = false;
316
-
317
  if ($domain == 'metabox') {
318
  include(YARPP_DIR.'/template-metabox.php');
319
- } elseif ($domain == 'widget') {
320
- include(YARPP_DIR.'/template-widget.php');
321
  } elseif ($use_template and file_exists(STYLESHEETPATH . '/' . $template_file) and $template_file != '') {
322
  ob_start();
323
  include(STYLESHEETPATH . '/' . $template_file);
324
  $output = ob_get_contents();
325
  ob_end_clean();
 
 
326
  } else {
327
  include(YARPP_DIR.'/template-builtin.php');
328
  }
313
  // make sure we get the right is_single value
314
  // (see http://wordpress.org/support/topic/288230)
315
  $wp_query->is_single = false;
316
+
317
  if ($domain == 'metabox') {
318
  include(YARPP_DIR.'/template-metabox.php');
 
 
319
  } elseif ($use_template and file_exists(STYLESHEETPATH . '/' . $template_file) and $template_file != '') {
320
  ob_start();
321
  include(STYLESHEETPATH . '/' . $template_file);
322
  $output = ob_get_contents();
323
  ob_end_clean();
324
+ } elseif ($domain == 'widget') {
325
+ include(YARPP_DIR.'/template-widget.php');
326
  } else {
327
  include(YARPP_DIR.'/template-builtin.php');
328
  }
options.php CHANGED
@@ -115,19 +115,19 @@ function yarpp_unmapthetag($name) {
115
  return $untagmap[$name];
116
  }
117
 
118
- function checkbox($option,$desc,$tr="<tr valign='top'>
119
  <th class='th-full' colspan='2' scope='row'>",$inputplus = '',$thplus='') {
120
  echo " $tr<input $inputplus type='checkbox' name='$option' value='true'". ((yarpp_get_option($option) == 1) ? ' checked="checked"': '' )." /> $desc</th>$thplus
121
  </tr>";
122
  }
123
- function textbox($option,$desc,$size=2,$tr="<tr valign='top'>
124
  <th scope='row'>") {
125
  $value = stripslashes(yarpp_get_option($option,true));
126
  echo " $tr$desc</th>
127
  <td><input name='$option' type='text' id='$option' value='$value' size='$size' /></td>
128
  </tr>";
129
  }
130
- function importance($option,$desc,$type='word',$tr="<tr valign='top'>
131
  <th scope='row'>",$inputplus = '') {
132
  $value = yarpp_get_option($option);
133
 
@@ -148,7 +148,7 @@ function importance($option,$desc,$type='word',$tr="<tr valign='top'>
148
  </tr>";
149
  }
150
 
151
- function importance2($option,$desc,$type='word',$tr="<tr valign='top'>
152
  <th scope='row'>",$inputplus = '') {
153
  $value = yarpp_get_option($option);
154
 
@@ -162,7 +162,7 @@ function importance2($option,$desc,$type='word',$tr="<tr valign='top'>
162
  </tr>";
163
  }
164
 
165
- function select($option,$desc,$type='word',$tr="<tr valign='top'>
166
  <th scope='row'>",$inputplus = '') {
167
  echo " $tr$desc</th>
168
  <td>
@@ -283,7 +283,7 @@ function load_display_discats() {
283
  <th scope='row'><?php _e('Disallow by tag:','yarpp');?></th>
284
  <td><div id='display_distags' style="overflow:auto;max-height:100px;"></div></td></tr>
285
  <?php
286
- checkbox('show_pass_post',__("Show password protected posts?",'yarpp'));
287
 
288
  $recent_number = "<input name=\"recent_number\" type=\"text\" id=\"recent_number\" value=\"".stripslashes(yarpp_get_option('recent_number',true))."\" size=\"2\" />";
289
  $recent_units = "<select name=\"recent_units\" id=\"recent_units\">
@@ -291,7 +291,7 @@ function load_display_discats() {
291
  <option value='week'". (('week'==yarpp_get_option('recent_units'))?" selected='selected'":'').">".__('week(s)','yarpp')."</option>
292
  <option value='month'". (('month'==yarpp_get_option('recent_units'))?" selected='selected'":'').">".__('month(s)','yarpp')."</option>
293
  </select>";
294
- checkbox('recent_only',str_replace('NUMBER',$recent_number,str_replace('UNITS',$recent_units,__("Show only posts from the past NUMBER UNITS",'yarpp'))));
295
  ?>
296
 
297
  </tbody>
@@ -313,17 +313,17 @@ function load_display_discats() {
313
  <tbody>
314
 
315
  <?php
316
- textbox('threshold',__('Match threshold:','yarpp'));
317
- importance2('title',__("Titles: ",'yarpp'),'word',"<tr valign='top'>
318
  <th scope='row'>",(!$yarpp_myisam?' readonly="readonly" disabled="disabled"':''));
319
- importance2('body',__("Bodies: ",'yarpp'),'word',"<tr valign='top'>
320
  <th scope='row'>",(!$yarpp_myisam?' readonly="readonly" disabled="disabled"':''));
321
- importance('tags',__("Tags: ",'yarpp'),'tag',"<tr valign='top'>
322
  <th scope='row'>",(!$yarpp_twopointfive?' readonly="readonly" disabled="disabled"':''));
323
- importance('categories',__("Categories: ",'yarpp'),'category',"<tr valign='top'>
324
  <th scope='row'>",(!$yarpp_twopointfive?' readonly="readonly" disabled="disabled"':''));
325
- checkbox('cross_relate',__("Cross-relate posts and pages?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts.",'yarpp')."</span></a>");
326
- checkbox('past_only',__("Show only previous posts?",'yarpp'));
327
  ?>
328
  </tbody>
329
  </table>
@@ -406,12 +406,12 @@ function load_display_discats() {
406
 
407
  <table class="form-table" style="margin-top: 0;width:100%">
408
  <?php
409
- checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files.",'yarpp')."</span></a>","<tr valign='top'>
410
  <th class='th-full' colspan='2' scope='row'>",'','<td rowspan="11" style="border-left:8px transparent solid;"><b>'.__("Website display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
411
  ."<div id='display_demo_web' style='overflow:auto;width:350px;max-height:500px;'></div></td>");?>
412
 
413
- <?php textbox('limit',__('Maximum number of related posts:','yarpp'))?>
414
- <?php checkbox('use_template',__("Display using a custom template file",'yarpp')." <!--<span style='color:red;'>".__('NEW!','yarpp')."</span>--> <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This advanced option gives you full power to customize how your related posts are displayed. Templates (stored in your theme folder) are written in PHP.",'yarpp')."</span></a>","<tr valign='top'><th colspan='2'>",' class="template" onclick="javascript:template()"'.(!$yarpp_templateable?' disabled="disabled"':'')); ?>
415
  <tr valign='top' class='templated'>
416
  <th><?php _e("Template file:",'yarpp');?></th>
417
  <td>
@@ -432,8 +432,8 @@ checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a
432
  <td><input name="before_title" type="text" id="before_title" value="<?php echo stripslashes(yarpp_get_option('before_title',true)); ?>" size="10" /> / <input name="after_title" type="text" id="after_title" value="<?php echo stripslashes(yarpp_get_option('after_title',true)); ?>" size="10" /><em><small> <?php _e("For example:",'yarpp');?> &lt;li&gt;&lt;/li&gt;<?php _e(' or ','yarpp');?>&lt;dl&gt;&lt;/dl&gt;</small></em>
433
  </td>
434
  </tr>
435
- <?php checkbox('show_excerpt',__("Show excerpt?",'yarpp'),"<tr class='not_templated' valign='top'><th colspan='2'>",' class="show_excerpt" onclick="javascript:excerpt()"'); ?>
436
- <?php textbox('excerpt_length',__('Excerpt length (No. of words):','yarpp'),null,"<tr class='excerpted' valign='top'>
437
  <th>")?>
438
 
439
  <tr class="excerpted" valign='top'>
@@ -455,9 +455,9 @@ checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a
455
  </td>
456
  </tr>
457
 
458
- <?php textbox('no_results',__('Default display if no results:','yarpp'),'40',"<tr class='not_templated' valign='top'>
459
  <th>")?>
460
- <?php checkbox('promote_yarpp',__("Help promote Yet Another Related Posts Plugin?",'yarpp')
461
  ." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>"
462
  .sprintf(__("This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated.", 'yarpp'),"<code>".htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp'))."</code>") ."</span></a>"); ?>
463
  </table>
@@ -475,12 +475,12 @@ checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a
475
  <table class="form-table" style="margin-top: 0;width:100%">
476
  <?php
477
 
478
- checkbox('rss_display',__("Display related posts in feeds?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed.",'yarpp')."</span></a>","<tr valign='top'><th colspan='3'>",' class="rss_display" onclick="javascript:rss_display();"');
479
- checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all.",'yarpp')."</span></a>","<tr class='rss_displayed' valign='top'>
480
  <th class='th-full' colspan='2' scope='row'>",'','<td rowspan="9" style="border-left:8px transparent solid;"><b>'.__("RSS display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
481
  ."<div id='display_demo_rss' style='overflow:auto;width:350px;max-height:500px;'></div></td>"); ?>
482
- <?php textbox('rss_limit',__('Maximum number of related posts:','yarpp'),2)?>
483
- <?php checkbox('rss_use_template',__("Display using a custom template file",'yarpp')." <!--<span style='color:red;'>".__('NEW!','yarpp')."</span>--> <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This advanced option gives you full power to customize how your related posts are displayed. Templates (stored in your theme folder) are written in PHP.",'yarpp')."</span></a>","<tr valign='top'><th colspan='2'>",' class="rss_template" onclick="javascript:rss_template()"'.(!$yarpp_templateable?' disabled="disabled"':'')); ?>
484
  <tr valign='top' class='rss_templated'>
485
  <th><?php _e("Template file:",'yarpp');?></th>
486
  <td>
@@ -501,8 +501,8 @@ checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'
501
  <td><input name="rss_before_title" type="text" id="rss_before_title" value="<?php echo stripslashes(yarpp_get_option('rss_before_title',true)); ?>" size="10" /> / <input name="rss_after_title" type="text" id="rss_after_title" value="<?php echo stripslashes(yarpp_get_option('rss_after_title',true)); ?>" size="10" /><em><small> <?php _e("For example:",'yarpp');?> &lt;li&gt;&lt;/li&gt;<?php _e(' or ','yarpp');?>&lt;dl&gt;&lt;/dl&gt;</small></em>
502
  </td>
503
  </tr>
504
- <?php checkbox('rss_show_excerpt',__("Show excerpt?",'yarpp'),"<tr class='rss_not_templated' valign='top'><th colspan='2'>",' class="rss_show_excerpt" onclick="javascript:rss_excerpt()"'); ?>
505
- <?php textbox('rss_excerpt_length',__('Excerpt length (No. of words):','yarpp'),null,"<tr class='rss_excerpted' valign='top'>
506
  <th>")?>
507
 
508
  <tr class="rss_excerpted" valign='top'>
@@ -524,9 +524,9 @@ checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'
524
  </td>
525
  </tr>
526
 
527
- <?php textbox('rss_no_results',__('Default display if no results:','yarpp'),'40',"<tr valign='top' class='rss_not_templated'>
528
  <th scope='row'>")?>
529
- <?php checkbox('rss_promote_yarpp',__("Help promote Yet Another Related Posts Plugin?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>"
530
  .sprintf(__("This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated.", 'yarpp'),"<code>".htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp'))."</code>") ."</span></a>","<tr valign='top' class='rss_displayed'>
531
  <th class='th-full' colspan='2' scope='row'>"); ?>
532
  </table>
115
  return $untagmap[$name];
116
  }
117
 
118
+ function yarpp_options_checkbox($option,$desc,$tr="<tr valign='top'>
119
  <th class='th-full' colspan='2' scope='row'>",$inputplus = '',$thplus='') {
120
  echo " $tr<input $inputplus type='checkbox' name='$option' value='true'". ((yarpp_get_option($option) == 1) ? ' checked="checked"': '' )." /> $desc</th>$thplus
121
  </tr>";
122
  }
123
+ function yarpp_options_textbox($option,$desc,$size=2,$tr="<tr valign='top'>
124
  <th scope='row'>") {
125
  $value = stripslashes(yarpp_get_option($option,true));
126
  echo " $tr$desc</th>
127
  <td><input name='$option' type='text' id='$option' value='$value' size='$size' /></td>
128
  </tr>";
129
  }
130
+ function yarpp_options_importance($option,$desc,$type='word',$tr="<tr valign='top'>
131
  <th scope='row'>",$inputplus = '') {
132
  $value = yarpp_get_option($option);
133
 
148
  </tr>";
149
  }
150
 
151
+ function yarpp_options_importance2($option,$desc,$type='word',$tr="<tr valign='top'>
152
  <th scope='row'>",$inputplus = '') {
153
  $value = yarpp_get_option($option);
154
 
162
  </tr>";
163
  }
164
 
165
+ function yarpp_options_select($option,$desc,$type='word',$tr="<tr valign='top'>
166
  <th scope='row'>",$inputplus = '') {
167
  echo " $tr$desc</th>
168
  <td>
283
  <th scope='row'><?php _e('Disallow by tag:','yarpp');?></th>
284
  <td><div id='display_distags' style="overflow:auto;max-height:100px;"></div></td></tr>
285
  <?php
286
+ yarpp_options_checkbox('show_pass_post',__("Show password protected posts?",'yarpp'));
287
 
288
  $recent_number = "<input name=\"recent_number\" type=\"text\" id=\"recent_number\" value=\"".stripslashes(yarpp_get_option('recent_number',true))."\" size=\"2\" />";
289
  $recent_units = "<select name=\"recent_units\" id=\"recent_units\">
291
  <option value='week'". (('week'==yarpp_get_option('recent_units'))?" selected='selected'":'').">".__('week(s)','yarpp')."</option>
292
  <option value='month'". (('month'==yarpp_get_option('recent_units'))?" selected='selected'":'').">".__('month(s)','yarpp')."</option>
293
  </select>";
294
+ yarpp_options_checkbox('recent_only',str_replace('NUMBER',$recent_number,str_replace('UNITS',$recent_units,__("Show only posts from the past NUMBER UNITS",'yarpp'))));
295
  ?>
296
 
297
  </tbody>
313
  <tbody>
314
 
315
  <?php
316
+ yarpp_options_textbox('threshold',__('Match threshold:','yarpp'));
317
+ yarpp_options_importance2('title',__("Titles: ",'yarpp'),'word',"<tr valign='top'>
318
  <th scope='row'>",(!$yarpp_myisam?' readonly="readonly" disabled="disabled"':''));
319
+ yarpp_options_importance2('body',__("Bodies: ",'yarpp'),'word',"<tr valign='top'>
320
  <th scope='row'>",(!$yarpp_myisam?' readonly="readonly" disabled="disabled"':''));
321
+ yarpp_options_importance('tags',__("Tags: ",'yarpp'),'tag',"<tr valign='top'>
322
  <th scope='row'>",(!$yarpp_twopointfive?' readonly="readonly" disabled="disabled"':''));
323
+ yarpp_options_importance('categories',__("Categories: ",'yarpp'),'category',"<tr valign='top'>
324
  <th scope='row'>",(!$yarpp_twopointfive?' readonly="readonly" disabled="disabled"':''));
325
+ yarpp_options_checkbox('cross_relate',__("Cross-relate posts and pages?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("When the \"Cross-relate posts and pages\" option is selected, the <code>related_posts()</code>, <code>related_pages()</code>, and <code>related_entries()</code> all will give the same output, returning both related pages and posts.",'yarpp')."</span></a>");
326
+ yarpp_options_checkbox('past_only',__("Show only previous posts?",'yarpp'));
327
  ?>
328
  </tbody>
329
  </table>
406
 
407
  <table class="form-table" style="margin-top: 0;width:100%">
408
  <?php
409
+ yarpp_options_checkbox('auto_display',__("Automatically display related posts?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This option automatically displays related posts right after the content on single entry pages. If this option is off, you will need to manually insert <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files.",'yarpp')."</span></a>","<tr valign='top'>
410
  <th class='th-full' colspan='2' scope='row'>",'','<td rowspan="11" style="border-left:8px transparent solid;"><b>'.__("Website display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
411
  ."<div id='display_demo_web' style='overflow:auto;width:350px;max-height:500px;'></div></td>");?>
412
 
413
+ <?php yarpp_options_textbox('limit',__('Maximum number of related posts:','yarpp'))?>
414
+ <?php yarpp_options_checkbox('use_template',__("Display using a custom template file",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This advanced option gives you full power to customize how your related posts are displayed. Templates (stored in your theme folder) are written in PHP.",'yarpp')."</span></a>","<tr valign='top'><th colspan='2'>",' class="template" onclick="javascript:template()"'.(!$yarpp_templateable?' disabled="disabled"':'')); ?>
415
  <tr valign='top' class='templated'>
416
  <th><?php _e("Template file:",'yarpp');?></th>
417
  <td>
432
  <td><input name="before_title" type="text" id="before_title" value="<?php echo stripslashes(yarpp_get_option('before_title',true)); ?>" size="10" /> / <input name="after_title" type="text" id="after_title" value="<?php echo stripslashes(yarpp_get_option('after_title',true)); ?>" size="10" /><em><small> <?php _e("For example:",'yarpp');?> &lt;li&gt;&lt;/li&gt;<?php _e(' or ','yarpp');?>&lt;dl&gt;&lt;/dl&gt;</small></em>
433
  </td>
434
  </tr>
435
+ <?php yarpp_options_checkbox('show_excerpt',__("Show excerpt?",'yarpp'),"<tr class='not_templated' valign='top'><th colspan='2'>",' class="show_excerpt" onclick="javascript:excerpt()"'); ?>
436
+ <?php yarpp_options_textbox('excerpt_length',__('Excerpt length (No. of words):','yarpp'),null,"<tr class='excerpted' valign='top'>
437
  <th>")?>
438
 
439
  <tr class="excerpted" valign='top'>
455
  </td>
456
  </tr>
457
 
458
+ <?php yarpp_options_textbox('no_results',__('Default display if no results:','yarpp'),'40',"<tr class='not_templated' valign='top'>
459
  <th>")?>
460
+ <?php yarpp_options_checkbox('promote_yarpp',__("Help promote Yet Another Related Posts Plugin?",'yarpp')
461
  ." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>"
462
  .sprintf(__("This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated.", 'yarpp'),"<code>".htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp'))."</code>") ."</span></a>"); ?>
463
  </table>
475
  <table class="form-table" style="margin-top: 0;width:100%">
476
  <?php
477
 
478
+ yarpp_options_checkbox('rss_display',__("Display related posts in feeds?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed.",'yarpp')."</span></a>","<tr valign='top'><th colspan='3'>",' class="rss_display" onclick="javascript:rss_display();"');
479
+ yarpp_options_checkbox('rss_excerpt_display',__("Display related posts in the descriptions?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This option displays the related posts in the RSS description fields, not just the content. If your feeds are set up to only display excerpts, however, only the description field is used, so this option is required for any display at all.",'yarpp')."</span></a>","<tr class='rss_displayed' valign='top'>
480
  <th class='th-full' colspan='2' scope='row'>",'','<td rowspan="9" style="border-left:8px transparent solid;"><b>'.__("RSS display code example",'yarpp').'</b><br /><small>'.__("(Update options to reload.)",'yarpp').'</small><br/>'
481
  ."<div id='display_demo_rss' style='overflow:auto;width:350px;max-height:500px;'></div></td>"); ?>
482
+ <?php yarpp_options_textbox('rss_limit',__('Maximum number of related posts:','yarpp'),2)?>
483
+ <?php yarpp_options_checkbox('rss_use_template',__("Display using a custom template file",'yarpp')." <!--<span style='color:red;'>".__('NEW!','yarpp')."</span>--> <a href='#' class='info'>".__('more&gt;','yarpp')."<span>".__("This advanced option gives you full power to customize how your related posts are displayed. Templates (stored in your theme folder) are written in PHP.",'yarpp')."</span></a>","<tr valign='top'><th colspan='2'>",' class="rss_template" onclick="javascript:rss_template()"'.(!$yarpp_templateable?' disabled="disabled"':'')); ?>
484
  <tr valign='top' class='rss_templated'>
485
  <th><?php _e("Template file:",'yarpp');?></th>
486
  <td>
501
  <td><input name="rss_before_title" type="text" id="rss_before_title" value="<?php echo stripslashes(yarpp_get_option('rss_before_title',true)); ?>" size="10" /> / <input name="rss_after_title" type="text" id="rss_after_title" value="<?php echo stripslashes(yarpp_get_option('rss_after_title',true)); ?>" size="10" /><em><small> <?php _e("For example:",'yarpp');?> &lt;li&gt;&lt;/li&gt;<?php _e(' or ','yarpp');?>&lt;dl&gt;&lt;/dl&gt;</small></em>
502
  </td>
503
  </tr>
504
+ <?php yarpp_options_checkbox('rss_show_excerpt',__("Show excerpt?",'yarpp'),"<tr class='rss_not_templated' valign='top'><th colspan='2'>",' class="rss_show_excerpt" onclick="javascript:rss_excerpt()"'); ?>
505
+ <?php yarpp_options_textbox('rss_excerpt_length',__('Excerpt length (No. of words):','yarpp'),null,"<tr class='rss_excerpted' valign='top'>
506
  <th>")?>
507
 
508
  <tr class="rss_excerpted" valign='top'>
524
  </td>
525
  </tr>
526
 
527
+ <?php yarpp_options_textbox('rss_no_results',__('Default display if no results:','yarpp'),'40',"<tr valign='top' class='rss_not_templated'>
528
  <th scope='row'>")?>
529
+ <?php yarpp_options_checkbox('rss_promote_yarpp',__("Help promote Yet Another Related Posts Plugin?",'yarpp')." <a href='#' class='info'>".__('more&gt;','yarpp')."<span>"
530
  .sprintf(__("This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated.", 'yarpp'),"<code>".htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.",'yarpp'))."</code>") ."</span></a>","<tr valign='top' class='rss_displayed'>
531
  <th class='th-full' colspan='2' scope='row'>"); ?>
532
  </table>
readme.txt CHANGED
@@ -7,7 +7,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4D
7
  Tags: related, posts, post, pages, page, RSS, feed, feeds
8
  Requires at least: 2.8
9
  Tested up to: 3.0
10
- Stable tag: 3.1.8
11
 
12
  Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
13
 
@@ -140,6 +140,7 @@ I highly recommend you disactivate YARPP, replace it with the new one, and then
140
  YARPP is currently localized in the following languages:
141
 
142
  * Egyptian Arabic (`ar_EG`) by Bishoy Antoun (yarpp-ar at mitcho dot com) of [cdmazika.com](http://www.cdmazika.com).
 
143
  * Belarussian (`by_BY`) by [Fat Cow](http://www.fatcow.com)
144
  * Simplified Chinese (`zh_CN`) by Jor Wang (mail at jorwang dot com) of [jorwang.com](http://jorwang.com)
145
  * Cypriot Greek (`el_CY`) by Aristidis Tonikidis (yarpp-el at mitcho dot com) of [akouseto.gr](http://www.akouseto.gr)
@@ -177,6 +178,15 @@ If you are a bilingual speaker of English and another language and an avid user
177
 
178
  == Changelog ==
179
 
 
 
 
 
 
 
 
 
 
180
  = 3.1.8 =
181
  * Added Turkish localization (`tr_TR`)
182
  * Bugfix: related pages and "cross-relate posts and pages" functionality is now working again.
7
  Tags: related, posts, post, pages, page, RSS, feed, feeds
8
  Requires at least: 2.8
9
  Tested up to: 3.0
10
+ Stable tag: 3.1.9
11
 
12
  Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
13
 
140
  YARPP is currently localized in the following languages:
141
 
142
  * Egyptian Arabic (`ar_EG`) by Bishoy Antoun (yarpp-ar at mitcho dot com) of [cdmazika.com](http://www.cdmazika.com).
143
+ * Standard Arabic (`ar`) by [led](http://led24.de) (yarpp-ar at mitcho dot com)
144
  * Belarussian (`by_BY`) by [Fat Cow](http://www.fatcow.com)
145
  * Simplified Chinese (`zh_CN`) by Jor Wang (mail at jorwang dot com) of [jorwang.com](http://jorwang.com)
146
  * Cypriot Greek (`el_CY`) by Aristidis Tonikidis (yarpp-el at mitcho dot com) of [akouseto.gr](http://www.akouseto.gr)
178
 
179
  == Changelog ==
180
 
181
+ = 3.1.9 =
182
+ * Added Standard Arabic localization (`ar`) by [led](http://led24.de)
183
+ * The Related Posts Widget now can also use custom templates. ([#1143](http://plugins.trac.wordpress.org/ticket/1143))
184
+ * Fixed a [conflict with the Magazine Premium theme](http://wordpress.org/support/topic/419174)
185
+ * Fixes a WordPress warning of "unexpected output" on plugin installation.
186
+ * Fixes a PHP warning message regarding `array_key`.
187
+ * Fixed a strict WordPress warning about capabilities.
188
+ * Bugfix: widget now obeys cross-relate posts and pages option
189
+ * For WPMU + Multisite users, reverted 3.1.8's `get_site_option`s to `get_option`s, so that individual site options can be maintained.
190
  = 3.1.8 =
191
  * Added Turkish localization (`tr_TR`)
192
  * Bugfix: related pages and "cross-relate posts and pages" functionality is now working again.
yarpp.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: Yet Another Related Posts Plugin
4
  Plugin URI: http://mitcho.com/code/yarpp/
5
  Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
6
- Version: 3.1.8
7
  Author: mitcho (Michael Yoshitaka Erlewine)
8
  Author URI: http://mitcho.com/
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&charset=UTF%2d8
10
  */
11
 
12
- define('YARPP_VERSION','3.1.8');
13
  define('YARPP_DIR',dirname(__FILE__));
14
 
15
  require_once(YARPP_DIR.'/includes.php');
@@ -24,16 +24,16 @@ add_filter('the_excerpt_rss','yarpp_rss_excerpt',600);
24
  register_activation_hook(__FILE__,'yarpp_activate');
25
 
26
  // new in 3.1: clear cache when updating certain settings.
27
- add_action('update_site_option_yarpp_distags','yarpp_clear_cache');
28
- add_action('update_site_option_yarpp_discats','yarpp_clear_cache');
29
- add_action('update_site_option_yarpp_show_pass_post','yarpp_clear_cache');
30
- add_action('update_site_option_yarpp_recent_only','yarpp_clear_cache');
31
- add_action('update_site_option_yarpp_threshold','yarpp_clear_cache');
32
- add_action('update_site_option_yarpp_title','yarpp_clear_cache');
33
- add_action('update_site_option_yarpp_body','yarpp_clear_cache');
34
- add_action('update_site_option_yarpp_categories','yarpp_clear_cache');
35
- add_action('update_site_option_yarpp_tags','yarpp_clear_cache');
36
- add_action('update_site_option_yarpp_tags','yarpp_clear_cache');
37
 
38
  load_plugin_textdomain('yarpp', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)).'/lang',dirname(plugin_basename(__FILE__)).'/lang');
39
 
3
  Plugin Name: Yet Another Related Posts Plugin
4
  Plugin URI: http://mitcho.com/code/yarpp/
5
  Description: Returns a list of related entries based on a unique algorithm for display on your blog and RSS feeds. A templating feature allows customization of the display.
6
+ Version: 3.1.9
7
  Author: mitcho (Michael Yoshitaka Erlewine)
8
  Author URI: http://mitcho.com/
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=66G4DATK4999L&item_name=mitcho%2ecom%2fcode%3a%20donate%20to%20Michael%20Yoshitaka%20Erlewine&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&charset=UTF%2d8
10
  */
11
 
12
+ define('YARPP_VERSION','3.1.9');
13
  define('YARPP_DIR',dirname(__FILE__));
14
 
15
  require_once(YARPP_DIR.'/includes.php');
24
  register_activation_hook(__FILE__,'yarpp_activate');
25
 
26
  // new in 3.1: clear cache when updating certain settings.
27
+ add_action('update_option_yarpp_distags','yarpp_clear_cache');
28
+ add_action('update_option_yarpp_discats','yarpp_clear_cache');
29
+ add_action('update_option_yarpp_show_pass_post','yarpp_clear_cache');
30
+ add_action('update_option_yarpp_recent_only','yarpp_clear_cache');
31
+ add_action('update_option_yarpp_threshold','yarpp_clear_cache');
32
+ add_action('update_option_yarpp_title','yarpp_clear_cache');
33
+ add_action('update_option_yarpp_body','yarpp_clear_cache');
34
+ add_action('update_option_yarpp_categories','yarpp_clear_cache');
35
+ add_action('update_option_yarpp_tags','yarpp_clear_cache');
36
+ add_action('update_option_yarpp_tags','yarpp_clear_cache');
37
 
38
  load_plugin_textdomain('yarpp', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)).'/lang',dirname(plugin_basename(__FILE__)).'/lang');
39