Version Description
(06-August-2020) = * New: Support for custom page types and taxonomies, including those added by WooCommerce * Enhancement: Show spinner while full-text indexes are being created * Enhancement: Various YARPP Admin UX/UI improvements * Bugfix: Fixes bug where Review Notice was not getting dismissed for non-admins * Bugfix: Exclude Gutenberg blocks so that they don't appear as related
Download this release
Release Info
Developer | jeffparker |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 5.5.0 |
Comparing to | |
See all releases |
Code changes from version 5.4.0 to 5.5.0
- classes/YARPP_Admin.php +5 -2
- classes/YARPP_Core.php +1 -1
- classes/YARPP_Meta_Box_Display_Feed.php +3 -3
- classes/YARPP_Meta_Box_Display_Rest_Api.php +1 -1
- classes/YARPP_Meta_Box_Display_Web.php +5 -4
- classes/YARPP_Meta_Box_Pool.php +4 -1
- classes/YARPP_Meta_Box_Relatedness.php +1 -4
- includes/phtmls/yarpp_meta_box_pool.phtml +19 -4
- includes/phtmls/yarpp_meta_box_tax_weight.phtml +10 -3
- includes/phtmls/yarpp_meta_box_template_checkbox.phtml +1 -1
- includes/phtmls/yarpp_options.phtml +3 -2
- includes/phtmls/yarpp_widget_form.phtml +1 -1
- includes/yarpp_meta_boxes_hooks.php +5 -5
- includes/yarpp_myisam_notice.php +12 -11
- js/options_basic.js +10 -0
- readme.txt +19 -12
- style/options_basic.css +18 -13
- style/widget.css +7 -7
- yarpp.php +2 -2
classes/YARPP_Admin.php
CHANGED
@@ -83,7 +83,6 @@ class YARPP_Admin {
|
|
83 |
$user_id = $current_user->ID;
|
84 |
|
85 |
if (!is_admin() ||
|
86 |
-
!current_user_can('publish_posts') ||
|
87 |
!isset($_GET['_wpnonce']) ||
|
88 |
!wp_verify_nonce($_GET['_wpnonce'], 'review-nonce') ||
|
89 |
!isset($_GET['yarpp_defer_t']) ||
|
@@ -108,7 +107,11 @@ class YARPP_Admin {
|
|
108 |
|
109 |
global $current_user;
|
110 |
$user_id = $current_user->ID;
|
111 |
-
|
|
|
|
|
|
|
|
|
112 |
$show_review_notice = false;
|
113 |
$activation_timestamp = get_site_option(self::ACTIVATE_TIMESTAMP_OPTION);
|
114 |
$review_dismissal_array = get_user_meta($user_id, self::REVIEW_DISMISS_OPTION, true);
|
83 |
$user_id = $current_user->ID;
|
84 |
|
85 |
if (!is_admin() ||
|
|
|
86 |
!isset($_GET['_wpnonce']) ||
|
87 |
!wp_verify_nonce($_GET['_wpnonce'], 'review-nonce') ||
|
88 |
!isset($_GET['yarpp_defer_t']) ||
|
107 |
|
108 |
global $current_user;
|
109 |
$user_id = $current_user->ID;
|
110 |
+
|
111 |
+
if (!current_user_can('publish_posts')) {
|
112 |
+
return;
|
113 |
+
}
|
114 |
+
|
115 |
$show_review_notice = false;
|
116 |
$activation_timestamp = get_site_option(self::ACTIVATE_TIMESTAMP_OPTION);
|
117 |
$review_dismissal_array = get_user_meta($user_id, self::REVIEW_DISMISS_OPTION, true);
|
classes/YARPP_Core.php
CHANGED
@@ -854,7 +854,7 @@ class YARPP {
|
|
854 |
}
|
855 |
|
856 |
private function post_type_filter($post_type) {
|
857 |
-
if ($post_type->
|
858 |
if (isset($post_type->yarpp_support)) return $post_type->yarpp_support;
|
859 |
return false;
|
860 |
}
|
854 |
}
|
855 |
|
856 |
private function post_type_filter($post_type) {
|
857 |
+
if ($post_type->public) return true;
|
858 |
if (isset($post_type->yarpp_support)) return $post_type->yarpp_support;
|
859 |
return false;
|
860 |
}
|
classes/YARPP_Meta_Box_Display_Feed.php
CHANGED
@@ -10,8 +10,8 @@ class YARPP_Meta_Box_Display_Feed extends YARPP_Meta_Box {
|
|
10 |
echo ' style="display: none;"';
|
11 |
echo '><b>' . __( "RSS display code example", 'yarpp' ) . '</b><br /><small>' . __( "(Update options to reload.)", 'yarpp' ) . "</small><br/><div id='display_demo_rss'></div></div>";
|
12 |
|
13 |
-
$this->checkbox( 'rss_display', __( "Display related posts in feeds?", 'yarpp' )." <span class='yarpp_help' data-help='" . esc_attr( __( "This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed.", 'yarpp' ) ) . "'> </span>", '' );
|
14 |
-
$this->checkbox( 'rss_excerpt_display', __( "Display related posts in the descriptions?", 'yarpp' )." <span class='yarpp_help' data-help='" . esc_attr( __( "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>", 'rss_displayed' );
|
15 |
|
16 |
$this->textbox( 'rss_limit', __( 'Maximum number of related posts:', 'yarpp' ), 2, 'rss_displayed' );
|
17 |
$this->template_checkbox( true, 'rss_displayed' );
|
@@ -55,6 +55,6 @@ class YARPP_Meta_Box_Display_Feed extends YARPP_Meta_Box {
|
|
55 |
|
56 |
$this->displayorder( 'rss_order', 'rss_displayed' );
|
57 |
|
58 |
-
$this->checkbox( 'rss_promote_yarpp', __( "Link to YARPP?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s These links are greatly appreciated and keeps us motivated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Powered by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'https://yarpp.com' ) )."</code>" ) ) . "'> </span>", 'rss_displayed' );
|
59 |
}
|
60 |
}
|
10 |
echo ' style="display: none;"';
|
11 |
echo '><b>' . __( "RSS display code example", 'yarpp' ) . '</b><br /><small>' . __( "(Update options to reload.)", 'yarpp' ) . "</small><br/><div id='display_demo_rss'></div></div>";
|
12 |
|
13 |
+
$this->checkbox( 'rss_display', __( "Display related posts in feeds?", 'yarpp' )." <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( __( "This option displays related posts at the end of each item in your RSS and Atom feeds. No template changes are needed.", 'yarpp' ) ) . "'> </span>", '' );
|
14 |
+
$this->checkbox( 'rss_excerpt_display', __( "Display related posts in the descriptions?", 'yarpp' )." <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( __( "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>", 'rss_displayed' );
|
15 |
|
16 |
$this->textbox( 'rss_limit', __( 'Maximum number of related posts:', 'yarpp' ), 2, 'rss_displayed' );
|
17 |
$this->template_checkbox( true, 'rss_displayed' );
|
55 |
|
56 |
$this->displayorder( 'rss_order', 'rss_displayed' );
|
57 |
|
58 |
+
$this->checkbox( 'rss_promote_yarpp', __( "Link to YARPP?", 'yarpp' ) . " <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s These links are greatly appreciated and keeps us motivated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Powered by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'https://yarpp.com' ) )."</code>" ) ) . "'> </span>", 'rss_displayed' );
|
59 |
}
|
60 |
}
|
classes/YARPP_Meta_Box_Display_Rest_Api.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
class YARPP_Meta_Box_Display_Rest_Api extends YARPP_Meta_Box {
|
4 |
public function display() {
|
5 |
echo "<div>";
|
6 |
-
$this->checkbox( 'rest_api_display', __( "Display related posts in REST API?", 'yarpp' )." <span class='yarpp_help' data-help='" . esc_attr( __( "This option adds related posts to the REST API.", 'yarpp' ) ) . "'> </span>", '' );
|
7 |
echo '<a href="https://support.shareaholic.com/hc/en-us/articles/360046456752">';
|
8 |
esc_html_e('Read the REST API documentation.', 'yarpp');
|
9 |
echo "</a></div>";
|
3 |
class YARPP_Meta_Box_Display_Rest_Api extends YARPP_Meta_Box {
|
4 |
public function display() {
|
5 |
echo "<div>";
|
6 |
+
$this->checkbox( 'rest_api_display', __( "Display related posts in REST API?", 'yarpp' )." <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( __( "This option adds related posts to the REST API.", 'yarpp' ) ) . "'> </span>", '' );
|
7 |
echo '<a href="https://support.shareaholic.com/hc/en-us/articles/360046456752">';
|
8 |
esc_html_e('Read the REST API documentation.', 'yarpp');
|
9 |
echo "</a></div>";
|
classes/YARPP_Meta_Box_Display_Web.php
CHANGED
@@ -11,8 +11,8 @@ class YARPP_Meta_Box_Display_Web extends YARPP_Meta_Box {
|
|
11 |
echo '><strong>' . __( "Website display code example", 'yarpp' ) . '</strong><br /><small>' . __( "(Update options to reload.)", 'yarpp' ) . "</small><br/><div id='display_demo_web'></div></div>";
|
12 |
|
13 |
echo "<div class='yarpp_form_row yarpp_form_post_types'><div>";
|
14 |
-
echo
|
15 |
-
echo " <span class='yarpp_help' data-help='" . esc_attr( __( "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 the shortcode <code>[yarpp]</code>, or PHP functions <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files.", 'yarpp' ) ) . "'> </span> ";
|
16 |
echo "</div><div>";
|
17 |
$post_types = yarpp_get_option( 'auto_display_post_types' );
|
18 |
foreach ($yarpp->get_post_types('objects') as $post_type) {
|
@@ -25,9 +25,10 @@ class YARPP_Meta_Box_Display_Web extends YARPP_Meta_Box {
|
|
25 |
$this->checkbox( 'auto_display_archive', __( "Also display in archives", 'yarpp' ) );
|
26 |
|
27 |
$this->textbox( 'limit', __( 'Maximum number of related posts:', 'yarpp' ) );
|
|
|
28 |
$this->template_checkbox( false );
|
29 |
echo "</div>";
|
30 |
-
|
31 |
$chosen_template = yarpp_get_option( "template" );
|
32 |
$choice = false === $chosen_template ? 'builtin' :
|
33 |
( $chosen_template == 'thumbnails' ? 'thumbnails' : 'custom' );
|
@@ -65,6 +66,6 @@ class YARPP_Meta_Box_Display_Web extends YARPP_Meta_Box {
|
|
65 |
echo "</div>";
|
66 |
|
67 |
$this->displayorder( 'order' );
|
68 |
-
$this->checkbox( 'promote_yarpp', __( "Link to YARPP?", 'yarpp' ) . " <span class='yarpp_help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s These links are greatly appreciated and keeps us motivated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Powered by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'https://yarpp.com' ) )."</code>" ) ) . "'> </span>", 'yarpp' );
|
69 |
}
|
70 |
}
|
11 |
echo '><strong>' . __( "Website display code example", 'yarpp' ) . '</strong><br /><small>' . __( "(Update options to reload.)", 'yarpp' ) . "</small><br/><div id='display_demo_web'></div></div>";
|
12 |
|
13 |
echo "<div class='yarpp_form_row yarpp_form_post_types'><div>";
|
14 |
+
echo __( "Automatically display related content on: ", 'yarpp' );
|
15 |
+
echo " <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( __( "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 the shortcode <code>[yarpp]</code>, or PHP functions <code>related_posts()</code> or variants (<code>related_pages()</code> and <code>related_entries()</code>) into your theme files.", 'yarpp' ) ) . "'> </span> ";
|
16 |
echo "</div><div>";
|
17 |
$post_types = yarpp_get_option( 'auto_display_post_types' );
|
18 |
foreach ($yarpp->get_post_types('objects') as $post_type) {
|
25 |
$this->checkbox( 'auto_display_archive', __( "Also display in archives", 'yarpp' ) );
|
26 |
|
27 |
$this->textbox( 'limit', __( 'Maximum number of related posts:', 'yarpp' ) );
|
28 |
+
|
29 |
$this->template_checkbox( false );
|
30 |
echo "</div>";
|
31 |
+
|
32 |
$chosen_template = yarpp_get_option( "template" );
|
33 |
$choice = false === $chosen_template ? 'builtin' :
|
34 |
( $chosen_template == 'thumbnails' ? 'thumbnails' : 'custom' );
|
66 |
echo "</div>";
|
67 |
|
68 |
$this->displayorder( 'order' );
|
69 |
+
$this->checkbox( 'promote_yarpp', __( "Link to YARPP?", 'yarpp' ) . " <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( sprintf( __( "This option will add the code %s These links are greatly appreciated and keeps us motivated.", 'yarpp' ), "<code>" . htmlspecialchars( sprintf( __( "Powered by <a href='%s' title='WordPress Related Posts Plugin' target='_blank'>YARPP</a>.", 'yarpp' ), 'https://yarpp.com' ) )."</code>" ) ) . "'> </span>", 'yarpp' );
|
70 |
}
|
71 |
}
|
classes/YARPP_Meta_Box_Pool.php
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
class YARPP_Meta_Box_Pool extends YARPP_Meta_Box {
|
4 |
-
public function exclude($taxonomy, $string) {
|
5 |
global $yarpp;
|
6 |
|
7 |
echo "<div class='yarpp_form_row yarpp_form_exclude'><div class='yarpp_form_label'>";
|
8 |
echo $string;
|
|
|
|
|
|
|
9 |
echo "</div><div class='yarpp_scroll_wrapper'><div class='exclude_terms' id='exclude_{$taxonomy}'>";
|
10 |
|
11 |
$exclude_tt_ids = wp_parse_id_list( yarpp_get_option( 'exclude' ) );
|
1 |
<?php
|
2 |
|
3 |
class YARPP_Meta_Box_Pool extends YARPP_Meta_Box {
|
4 |
+
public function exclude($taxonomy, $string, $_builtin = true) {
|
5 |
global $yarpp;
|
6 |
|
7 |
echo "<div class='yarpp_form_row yarpp_form_exclude'><div class='yarpp_form_label'>";
|
8 |
echo $string;
|
9 |
+
if ($_builtin == false) {
|
10 |
+
echo " <span class='yarpp_help dashicons dashicons-info' data-help='" . esc_attr( __( "This belongs to a custom taxonomy", 'yarpp' ) ) . "'></span>";
|
11 |
+
}
|
12 |
echo "</div><div class='yarpp_scroll_wrapper'><div class='exclude_terms' id='exclude_{$taxonomy}'>";
|
13 |
|
14 |
$exclude_tt_ids = wp_parse_id_list( yarpp_get_option( 'exclude' ) );
|
classes/YARPP_Meta_Box_Relatedness.php
CHANGED
@@ -4,7 +4,7 @@ class YARPP_Meta_Box_Relatedness extends YARPP_Meta_Box {
|
|
4 |
public function display() {
|
5 |
global $yarpp;
|
6 |
?>
|
7 |
-
<p><?php _e( 'YARPP limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>.', 'yarpp' ); ?> <span class='yarpp_help' data-help="<?php echo esc_attr( __( '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 threshold, 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.', 'yarpp' ) ); ?>"> </span></p>
|
8 |
|
9 |
<?php
|
10 |
$this->textbox( 'threshold', __( 'Match threshold:', 'yarpp' ) );
|
@@ -14,8 +14,5 @@ class YARPP_Meta_Box_Relatedness extends YARPP_Meta_Box {
|
|
14 |
foreach ( $yarpp->get_taxonomies() as $taxonomy ) {
|
15 |
$this->tax_weight( $taxonomy );
|
16 |
}
|
17 |
-
|
18 |
-
$this->checkbox( 'cross_relate', __( "Display results from all post types", 'yarpp' )." <span class='yarpp_help' data-help='" . esc_attr( __( "When \"display results from all post types\" is off, only posts will be displayed as related to a post, only pages will be displayed as related to a page, etc.", 'yarpp' ) ) . "'> </span>" );
|
19 |
-
$this->checkbox( 'past_only', __( "Show only previous posts?", 'yarpp' ) );
|
20 |
}
|
21 |
}
|
4 |
public function display() {
|
5 |
global $yarpp;
|
6 |
?>
|
7 |
+
<p><?php _e( 'YARPP limits the related posts list by (1) a maximum number and (2) a <em>match threshold</em>.', 'yarpp' ); ?> <span class='yarpp_help dashicons dashicons-editor-help' data-help="<?php echo esc_attr( __( '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 threshold, 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.', 'yarpp' ) ); ?>"> </span></p>
|
8 |
|
9 |
<?php
|
10 |
$this->textbox( 'threshold', __( 'Match threshold:', 'yarpp' ) );
|
14 |
foreach ( $yarpp->get_taxonomies() as $taxonomy ) {
|
15 |
$this->tax_weight( $taxonomy );
|
16 |
}
|
|
|
|
|
|
|
17 |
}
|
18 |
}
|
includes/phtmls/yarpp_meta_box_pool.phtml
CHANGED
@@ -9,9 +9,10 @@
|
|
9 |
|
10 |
<?php
|
11 |
foreach ($yarpp->get_taxonomies() as $taxonomy) {
|
12 |
-
$this->exclude($taxonomy->name, sprintf(__('Disallow by %s:', 'yarpp'), $taxonomy->labels->
|
13 |
}
|
14 |
-
|
|
|
15 |
|
16 |
$recent = yarpp_get_option('recent');
|
17 |
if ((bool) $recent) {
|
@@ -34,6 +35,20 @@
|
|
34 |
<div class='yarpp_form_row yarpp_form_checkbox'>
|
35 |
<div>
|
36 |
<input type='checkbox' name='recent_only' value='true' <?php checked((bool) $recent) ?> />
|
37 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</div>
|
39 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
<?php
|
11 |
foreach ($yarpp->get_taxonomies() as $taxonomy) {
|
12 |
+
$this->exclude($taxonomy->name, sprintf(__('Disallow by %s:', 'yarpp'), ucwords($taxonomy->labels->name)), $taxonomy->_builtin);
|
13 |
}
|
14 |
+
|
15 |
+
$this->checkbox('show_pass_post', __('Display password protected posts', 'yarpp'));
|
16 |
|
17 |
$recent = yarpp_get_option('recent');
|
18 |
if ((bool) $recent) {
|
35 |
<div class='yarpp_form_row yarpp_form_checkbox'>
|
36 |
<div>
|
37 |
<input type='checkbox' name='recent_only' value='true' <?php checked((bool) $recent) ?> />
|
38 |
+
<?php
|
39 |
+
|
40 |
+
printf(
|
41 |
+
// translators: 1: HTML for a number field, 2: HTML for a units dropdown (eg "week(s)", "day(s)", month(s))
|
42 |
+
__('Display only posts from the past %1$s %2$s', 'yarpp'),
|
43 |
+
$recent_number,
|
44 |
+
$recent_units
|
45 |
+
);
|
46 |
+
?>
|
47 |
</div>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
<?php
|
51 |
+
$this->checkbox( 'past_only', __( "Display only posts older than current post", 'yarpp' )." <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( __( "Only posts older than the current post will be displayed.", 'yarpp' ) ) . "'> </span>" );
|
52 |
+
|
53 |
+
$this->checkbox( 'cross_relate', __( "Display results from all post types", 'yarpp' )." <span class='yarpp_help dashicons dashicons-editor-help' data-help='" . esc_attr( __( "When disabled, only other posts with the same post type will be displayed. For example, only posts will be displayed as related to a post, only pages will be displayed as related to a page, etc.", 'yarpp' ) ) . "'> </span>" );
|
54 |
+
?>
|
includes/phtmls/yarpp_meta_box_tax_weight.phtml
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
<div class="yarpp_form_row yarpp_form_select">
|
2 |
<div class="yarpp_form_label">
|
3 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
</div>
|
5 |
<div>
|
6 |
<select name=weight[tax][<?php echo $taxonomy->name ?>]">
|
@@ -14,10 +21,10 @@
|
|
14 |
<?php _e("consider with extra weight", "yarpp") ?>
|
15 |
</option>
|
16 |
<option value="require_one" <?php echo (($require == 1) ? 'selected' : null) ?>>
|
17 |
-
<?php echo sprintf(__("require at least one %s in common", "yarpp"), $taxonomy->labels->singular_name) ?>
|
18 |
</option>
|
19 |
<option value="require_more" <?php echo (($require == 2) ? 'selected' : null) ?>>
|
20 |
-
<?php echo sprintf(__("require more than one %s in common", "yarpp"), $taxonomy->labels->singular_name) ?>
|
21 |
</option>
|
22 |
</select>
|
23 |
</div>
|
1 |
<div class="yarpp_form_row yarpp_form_select">
|
2 |
<div class="yarpp_form_label">
|
3 |
+
<?php
|
4 |
+
echo $taxonomy->labels->name;
|
5 |
+
?>:
|
6 |
+
<?php
|
7 |
+
if ($taxonomy->_builtin == false) {
|
8 |
+
echo " <span class='yarpp_help dashicons dashicons-info' data-help='" . esc_attr( __( "This belongs to a custom taxonomy", 'yarpp' ) ) . "'></span>";
|
9 |
+
}
|
10 |
+
?>
|
11 |
</div>
|
12 |
<div>
|
13 |
<select name=weight[tax][<?php echo $taxonomy->name ?>]">
|
21 |
<?php _e("consider with extra weight", "yarpp") ?>
|
22 |
</option>
|
23 |
<option value="require_one" <?php echo (($require == 1) ? 'selected' : null) ?>>
|
24 |
+
<?php echo sprintf(__("require at least one %s in common", "yarpp"), strtolower($taxonomy->labels->singular_name)) ?>
|
25 |
</option>
|
26 |
<option value="require_more" <?php echo (($require == 2) ? 'selected' : null) ?>>
|
27 |
+
<?php echo sprintf(__("require more than one %s in common", "yarpp"), strtolower($taxonomy->labels->singular_name)) ?>
|
28 |
</option>
|
29 |
</select>
|
30 |
</div>
|
includes/phtmls/yarpp_meta_box_template_checkbox.phtml
CHANGED
@@ -10,8 +10,8 @@
|
|
10 |
}
|
11 |
?>
|
12 |
|
|
|
13 |
<div class="yarpp_form_row yarpp_form_template_buttons <?php echo $class ?>">
|
14 |
-
|
15 |
<div data-value="builtin" class="yarpp_template_button <?php echo $builtIn ?>">
|
16 |
<div class="image"></div>
|
17 |
<div class="label"><?php _e('List', 'yarpp') ?></div>
|
10 |
}
|
11 |
?>
|
12 |
|
13 |
+
<div class="yarpp_form_row <?php echo $class ?>"><?php _e( 'Theme:', 'yarpp' ); ?></div>
|
14 |
<div class="yarpp_form_row yarpp_form_template_buttons <?php echo $class ?>">
|
|
|
15 |
<div data-value="builtin" class="yarpp_template_button <?php echo $builtIn ?>">
|
16 |
<div class="image"></div>
|
17 |
<div class="label"><?php _e('List', 'yarpp') ?></div>
|
includes/phtmls/yarpp_options.phtml
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
</ul>
|
10 |
|
11 |
<div class="yarpp_switch_content">
|
12 |
-
<p
|
13 |
</div>
|
14 |
</div>
|
15 |
|
@@ -42,7 +42,8 @@
|
|
42 |
</script>
|
43 |
|
44 |
<div>
|
45 |
-
<input type="submit" class='button-primary' name="update_yarpp" value="<?php _e('Save Changes')?>" />
|
|
|
46 |
<?php wp_nonce_field( 'update_yarpp', 'update_yarpp-nonce' ); ?>
|
47 |
</div>
|
48 |
|
9 |
</ul>
|
10 |
|
11 |
<div class="yarpp_switch_content">
|
12 |
+
<p><?php _e('The settings below allow you to configure the basic settings for YARPP', 'yarpp') ?></p>
|
13 |
</div>
|
14 |
</div>
|
15 |
|
42 |
</script>
|
43 |
|
44 |
<div>
|
45 |
+
<input type="submit" class='button-primary yarpp_spin_on_click' name="update_yarpp" value="<?php _e('Save Changes')?>" />
|
46 |
+
<span class="spinner yarpp-no-float"></span>
|
47 |
<?php wp_nonce_field( 'update_yarpp', 'update_yarpp-nonce' ); ?>
|
48 |
</div>
|
49 |
|
includes/phtmls/yarpp_widget_form.phtml
CHANGED
@@ -36,7 +36,7 @@
|
|
36 |
name="<?php echo $this->get_field_name('pro_dpid') ?>"
|
37 |
value="<?php echo esc_attr($instance['pro_dpid']) ?>"
|
38 |
/>
|
39 |
-
<span class="yarpp_help">
|
40 |
<span class="yarpp_help_msg">
|
41 |
Create an account through the “YARPP Pro” tab on the “Settings” page, create your widget style,
|
42 |
and click “Get Code” to find your Widget ID.
|
36 |
name="<?php echo $this->get_field_name('pro_dpid') ?>"
|
37 |
value="<?php echo esc_attr($instance['pro_dpid']) ?>"
|
38 |
/>
|
39 |
+
<span class="yarpp_help dashicons dashicons-editor-help">
|
40 |
<span class="yarpp_help_msg">
|
41 |
Create an account through the “YARPP Pro” tab on the “Settings” page, create your widget style,
|
42 |
and click “Get Code” to find your Widget ID.
|
includes/yarpp_meta_boxes_hooks.php
CHANGED
@@ -21,7 +21,7 @@ add_meta_box(
|
|
21 |
|
22 |
add_meta_box(
|
23 |
'yarpp_relatedness',
|
24 |
-
__( '
|
25 |
array(
|
26 |
new YARPP_Meta_Box_Relatedness,
|
27 |
'display'
|
@@ -33,7 +33,7 @@ add_meta_box(
|
|
33 |
|
34 |
add_meta_box(
|
35 |
'yarpp_display_web',
|
36 |
-
__('Display
|
37 |
array(
|
38 |
new YARPP_Meta_Box_Display_Web,
|
39 |
'display'
|
@@ -45,7 +45,7 @@ add_meta_box(
|
|
45 |
|
46 |
add_meta_box(
|
47 |
'yarpp_display_rss',
|
48 |
-
__('
|
49 |
array(
|
50 |
new YARPP_Meta_Box_Display_Feed,
|
51 |
'display'
|
@@ -62,8 +62,8 @@ if(
|
|
62 |
class_exists('WP_REST_Posts_Controller')
|
63 |
){
|
64 |
add_meta_box(
|
65 |
-
'
|
66 |
-
__('
|
67 |
array(
|
68 |
new YARPP_Meta_Box_Display_Rest_Api,
|
69 |
'display'
|
21 |
|
22 |
add_meta_box(
|
23 |
'yarpp_relatedness',
|
24 |
+
__( 'The Algorithm', 'yarpp' ),
|
25 |
array(
|
26 |
new YARPP_Meta_Box_Relatedness,
|
27 |
'display'
|
33 |
|
34 |
add_meta_box(
|
35 |
'yarpp_display_web',
|
36 |
+
__('Automatic Display Options', 'yarpp'),
|
37 |
array(
|
38 |
new YARPP_Meta_Box_Display_Web,
|
39 |
'display'
|
45 |
|
46 |
add_meta_box(
|
47 |
'yarpp_display_rss',
|
48 |
+
__('RSS Feed Options', 'yarpp'),
|
49 |
array(
|
50 |
new YARPP_Meta_Box_Display_Feed,
|
51 |
'display'
|
62 |
class_exists('WP_REST_Posts_Controller')
|
63 |
){
|
64 |
add_meta_box(
|
65 |
+
'yarpp_display_api',
|
66 |
+
__('REST API Options', 'yarpp'),
|
67 |
array(
|
68 |
new YARPP_Meta_Box_Display_Rest_Api,
|
69 |
'display'
|
includes/yarpp_myisam_notice.php
CHANGED
@@ -11,10 +11,10 @@ if (isset($_POST['myisam_override'])) {
|
|
11 |
|
12 |
$yarpp->db_options->set_fulltext_disabled(false);
|
13 |
?>
|
14 |
-
<div class="
|
15 |
<?php
|
16 |
esc_html_e(
|
17 |
-
'
|
18 |
'yarpp'
|
19 |
);
|
20 |
?></div>
|
@@ -23,11 +23,11 @@ if (isset($_POST['myisam_override'])) {
|
|
23 |
} else {
|
24 |
|
25 |
yarpp_set_option(YARPP_DB_Options::YARPP_MYISAM_OVERRIDE, 0);
|
26 |
-
?><div class="error" >
|
27 |
-
<span class="yarpp-red"><?php esc_html_e('
|
28 |
<?php
|
29 |
printf(
|
30 |
-
esc_html__( 'There was an error adding the
|
31 |
$yarpp->db_options->get_fulltext_db_error()
|
32 |
);
|
33 |
?><br/>
|
@@ -41,7 +41,7 @@ $database_supports_fulltext_indexes = $yarpp->db_schema->database_supports_fullt
|
|
41 |
if ( ! $database_supports_fulltext_indexes) $yarpp->disable_fulltext();
|
42 |
if ( !(bool) yarpp_get_option(YARPP_DB_Options::YARPP_MYISAM_OVERRIDE) && $yarpp->db_options->is_fulltext_disabled()) {
|
43 |
?>
|
44 |
-
<div class='
|
45 |
<p><?php
|
46 |
esc_html_e('Comparing posts based on titles or bodies is currently disabled','yarpp');
|
47 |
?>
|
@@ -56,11 +56,11 @@ if ( !(bool) yarpp_get_option(YARPP_DB_Options::YARPP_MYISAM_OVERRIDE) && $yarpp
|
|
56 |
</p>
|
57 |
<div id="yarpp_fulltext_details" class="hidden">
|
58 |
<?php if ( $database_supports_fulltext_indexes ){ ?>
|
59 |
-
<p><?php esc_html_e('YARPP can automatically create "
|
60 |
<?php } else { ?>
|
61 |
<p><?php
|
62 |
printf(
|
63 |
-
esc_html__('Because
|
64 |
'InnoDB',
|
65 |
'5.6.4',
|
66 |
'<code>' . $wpdb->posts . '</code>',
|
@@ -77,12 +77,13 @@ if ( !(bool) yarpp_get_option(YARPP_DB_Options::YARPP_MYISAM_OVERRIDE) && $yarpp
|
|
77 |
</p>
|
78 |
<code class="yarpp_separated">ALTER TABLE `<?php echo $wpdb->posts;?>` ENGINE = MyISAM;</code>
|
79 |
<p><?php
|
80 |
-
esc_html_e('After you have done that, click the button below to enable comparing titles and bodies using
|
81 |
?>
|
82 |
</p>
|
83 |
<?php } ?>
|
84 |
<form method="post" class="yarpp_separated">
|
85 |
-
<input type='submit' class='button' name='myisam_override' value='Create
|
|
|
86 |
</form>
|
87 |
<p><?php
|
88 |
esc_html_e(
|
@@ -104,4 +105,4 @@ if ( !(bool) yarpp_get_option(YARPP_DB_Options::YARPP_MYISAM_OVERRIDE) && $yarpp
|
|
104 |
</div>
|
105 |
</div>
|
106 |
<?php
|
107 |
-
}
|
11 |
|
12 |
$yarpp->db_options->set_fulltext_disabled(false);
|
13 |
?>
|
14 |
+
<div class="notice notice-success">
|
15 |
<?php
|
16 |
esc_html_e(
|
17 |
+
'Full-text indexes have been added to the posts table. You may now use titles and bodies as relatedness criteria.',
|
18 |
'yarpp'
|
19 |
);
|
20 |
?></div>
|
23 |
} else {
|
24 |
|
25 |
yarpp_set_option(YARPP_DB_Options::YARPP_MYISAM_OVERRIDE, 0);
|
26 |
+
?><div class="notice notice-error" >
|
27 |
+
<span class="yarpp-red"><?php esc_html_e('Full-text Index creation did not work!','yarpp');?></span><br/>
|
28 |
<?php
|
29 |
printf(
|
30 |
+
esc_html__( 'There was an error adding the full-text index to your posts table: %s', 'yarpp' ),
|
31 |
$yarpp->db_options->get_fulltext_db_error()
|
32 |
);
|
33 |
?><br/>
|
41 |
if ( ! $database_supports_fulltext_indexes) $yarpp->disable_fulltext();
|
42 |
if ( !(bool) yarpp_get_option(YARPP_DB_Options::YARPP_MYISAM_OVERRIDE) && $yarpp->db_options->is_fulltext_disabled()) {
|
43 |
?>
|
44 |
+
<div class='notice notice-warning'>
|
45 |
<p><?php
|
46 |
esc_html_e('Comparing posts based on titles or bodies is currently disabled','yarpp');
|
47 |
?>
|
56 |
</p>
|
57 |
<div id="yarpp_fulltext_details" class="hidden">
|
58 |
<?php if ( $database_supports_fulltext_indexes ){ ?>
|
59 |
+
<p><?php esc_html_e('YARPP can automatically create "full-text indexes" to enable comparing posts based on titles and bodies. To do so, click the button below.');?></p>
|
60 |
<?php } else { ?>
|
61 |
<p><?php
|
62 |
printf(
|
63 |
+
esc_html__('Because full-text indexing is not supported by your current table engine, "%1$s", YARPP cannot compare posts based on their titles or bodies.','yarpp'),
|
64 |
'InnoDB',
|
65 |
'5.6.4',
|
66 |
'<code>' . $wpdb->posts . '</code>',
|
77 |
</p>
|
78 |
<code class="yarpp_separated">ALTER TABLE `<?php echo $wpdb->posts;?>` ENGINE = MyISAM;</code>
|
79 |
<p><?php
|
80 |
+
esc_html_e('After you have done that, click the button below to enable comparing titles and bodies using full-text indexes."','yarpp');
|
81 |
?>
|
82 |
</p>
|
83 |
<?php } ?>
|
84 |
<form method="post" class="yarpp_separated">
|
85 |
+
<input type='submit' class='button yarpp_spin_on_click' name='myisam_override' value='Create FULLTEXT indexes'/>
|
86 |
+
<span class="spinner"></span>
|
87 |
</form>
|
88 |
<p><?php
|
89 |
esc_html_e(
|
105 |
</div>
|
106 |
</div>
|
107 |
<?php
|
108 |
+
}
|
js/options_basic.js
CHANGED
@@ -110,6 +110,7 @@ jQuery(function($) {
|
|
110 |
display.find('.loading').remove();
|
111 |
if (':(' == html) { // no more :(
|
112 |
finished_taxonomies[taxonomy] = true;
|
|
|
113 |
return;
|
114 |
}
|
115 |
display.append(html);
|
@@ -195,6 +196,15 @@ jQuery(function($) {
|
|
195 |
window.location = window.location + (window.location.search.length ? '&' : '?') + 'action=copy_templates&_ajax_nonce=' + $('#yarpp_copy_templates-nonce').val();
|
196 |
});
|
197 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
$('.yarpp_template_button:not(.disabled)').click(function() {
|
199 |
$(this).siblings('input')
|
200 |
.val($(this).attr('data-value'))
|
110 |
display.find('.loading').remove();
|
111 |
if (':(' == html) { // no more :(
|
112 |
finished_taxonomies[taxonomy] = true;
|
113 |
+
display.append("-");
|
114 |
return;
|
115 |
}
|
116 |
display.append(html);
|
196 |
window.location = window.location + (window.location.search.length ? '&' : '?') + 'action=copy_templates&_ajax_nonce=' + $('#yarpp_copy_templates-nonce').val();
|
197 |
});
|
198 |
});
|
199 |
+
|
200 |
+
$('.yarpp_spin_on_click').on('click', function() {
|
201 |
+
$button = $(this);
|
202 |
+
$spinner = $button.siblings('.spinner');
|
203 |
+
|
204 |
+
$button.addClass( 'disabled' );
|
205 |
+
$spinner.addClass( 'is-active' );
|
206 |
+
});
|
207 |
+
|
208 |
$('.yarpp_template_button:not(.disabled)').click(function() {
|
209 |
$(this).siblings('input')
|
210 |
.val($(this).attr('data-value'))
|
readme.txt
CHANGED
@@ -5,15 +5,15 @@ Requires at least: 3.7
|
|
5 |
Requires PHP: 5.3
|
6 |
License: GPLv2 or later
|
7 |
Tested up to: 5.5
|
8 |
-
Stable tag: 5.
|
9 |
|
10 |
-
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Yet Another Related Posts Plugin (YARPP) displays pages, posts, and custom post types related to the current entry, introducing your readers to other relevant content on your site.
|
15 |
|
16 |
-
**
|
17 |
-------------------------------------------
|
18 |
* **Thumbnail or list view** of related content.
|
19 |
* **Related posts, pages, and custom post types.**
|
@@ -52,7 +52,7 @@ Make sure the "display related posts in feeds" option is turned on if you would
|
|
52 |
|
53 |
Related posts can also be displayed as a widget. Go to the Appearance > Widgets options page and add the "Related Posts (YARPP)" widget. Choose to display content from YARPP Basic. The widget will only be displayed on single entry (permalink) pages.
|
54 |
|
55 |
-
The YARPP
|
56 |
|
57 |
= Custom display through templates =
|
58 |
|
@@ -72,15 +72,15 @@ You can place YARPP manually wherever you’d like in your theme within [The Loo
|
|
72 |
|
73 |
== Frequently Asked Questions ==
|
74 |
|
75 |
-
**Common Questions about YARPP
|
76 |
|
77 |
-
Below are Frequently Asked Questions about YARPP
|
78 |
|
79 |
If your question isn't here, ask your own question at [the WordPress.org forums](https://wordpress.org/support/plugin/yet-another-related-posts-plugin).
|
80 |
|
81 |
= Many pages list "no related posts." =
|
82 |
|
83 |
-
Most likely you have "no related posts" right now because the default "match threshold" is too high. Here's what
|
84 |
|
85 |
= How can I move the related posts display? =
|
86 |
|
@@ -94,7 +94,7 @@ Yes. In Wordpress, go to "Settings" and "Related Posts (YARPP)" and make sure "T
|
|
94 |
|
95 |
= Where do I tell YARPP to display related posts only by tags? =
|
96 |
|
97 |
-
In WordPress, go to "Settings" and "
|
98 |
|
99 |
= Can I specify related posts? =
|
100 |
|
@@ -163,7 +163,7 @@ The recommended solution in such cases is to use the [Polylang](https://polylang
|
|
163 |
|
164 |
YARPP works fine with full-width (double-byte) characters, assuming your WordPress database is set up with Unicode support. 99% of the time, if you're able to write blog posts with full-width characters and they're displayed correctly, YARPP will work on your blog.
|
165 |
|
166 |
-
However, YARPP does have difficulty with languages that don't place spaces between words (Chinese, Japanese, etc.). For these languages, the "consider body" and "consider titles" options in the "
|
167 |
|
168 |
= Does YARPP slow down my blog/server? =
|
169 |
|
@@ -218,7 +218,7 @@ yarpp_related(array(
|
|
218 |
'past_only' => false, // show only posts which were published before the reference post
|
219 |
'exclude' => array(), // a list of term_taxonomy_ids. entities with any of these terms will be excluded from consideration.
|
220 |
'recent' => false, // to limit to entries published recently, set to something like '15 day', '20 week', or '12 month'.
|
221 |
-
// Relatedness options: these determine how "relatedness" is computed
|
222 |
// Weights are used to construct the "match score" between candidates and the reference post
|
223 |
'weight' => array(
|
224 |
'body' => 1,
|
@@ -285,6 +285,13 @@ add_action(
|
|
285 |
`
|
286 |
|
287 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
= 5.4.0 (03-August-2020) =
|
289 |
* New: Shortcode support! `[yarpp]` ([documentation](https://wordpress.org/plugins/yet-another-related-posts-plugin/#%0Ahow%20can%20i%20move%20the%20related%20posts%20display%3F%0A))
|
290 |
* Enhancement: Adds YARPP score to REST API responses ([documentation](https://support.shareaholic.com/hc/en-us/articles/360046456752))
|
@@ -992,6 +999,6 @@ After a break of many years, the plugin is 100% supported now that the baton has
|
|
992 |
* Initial upload
|
993 |
|
994 |
== Upgrade Notice ==
|
995 |
-
= 5.
|
996 |
We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
|
997 |
|
5 |
Requires PHP: 5.3
|
6 |
License: GPLv2 or later
|
7 |
Tested up to: 5.5
|
8 |
+
Stable tag: 5.5.0
|
9 |
|
10 |
+
The most popular plugin to display a list of related posts on your site based on a powerful unique algorithm.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
*Yet Another Related Posts Plugin* (YARPP) is a professionally maintained and feature rich plugin that displays pages, posts, and custom post types related to the current entry, introducing your readers to other relevant content on your site. Automatically added Related Posts can increase your pageviews up to 10%. Just install and activate.
|
15 |
|
16 |
+
**Key Features**
|
17 |
-------------------------------------------
|
18 |
* **Thumbnail or list view** of related content.
|
19 |
* **Related posts, pages, and custom post types.**
|
52 |
|
53 |
Related posts can also be displayed as a widget. Go to the Appearance > Widgets options page and add the "Related Posts (YARPP)" widget. Choose to display content from YARPP Basic. The widget will only be displayed on single entry (permalink) pages.
|
54 |
|
55 |
+
The YARPP widget can be used even if the "auto display" option is turned off.
|
56 |
|
57 |
= Custom display through templates =
|
58 |
|
72 |
|
73 |
== Frequently Asked Questions ==
|
74 |
|
75 |
+
**Common Questions about YARPP **
|
76 |
|
77 |
+
Below are Frequently Asked Questions about YARPP.
|
78 |
|
79 |
If your question isn't here, ask your own question at [the WordPress.org forums](https://wordpress.org/support/plugin/yet-another-related-posts-plugin).
|
80 |
|
81 |
= Many pages list "no related posts." =
|
82 |
|
83 |
+
Most likely you have "no related posts" right now because the default "match threshold" is too high. Here's what we recommend to find an appropriate match threshold: lower your match threshold in the YARPP "Algorithm" options to something very low, like 1. (If you don't see the match threshold, you may need to display the "Algorithm" options via the "Screen Options" tab at the top.) Most likely the really low threshold will pull up many posts that aren't actually related (false positives), so look at some of your posts' related posts and their match scores. This will help you find an appropriate threshold. You want it lower than what you have now, but high enough so it doesn't have many false positives.
|
84 |
|
85 |
= How can I move the related posts display? =
|
86 |
|
94 |
|
95 |
= Where do I tell YARPP to display related posts only by tags? =
|
96 |
|
97 |
+
In WordPress, go to "Settings" and "YARPP" and make sure "Algorithm" is checked in the "Screen Options" section at the top of the page. In the "Algorithm" section, configure the dropdown boxes next to "Titles," "Bodies," "Categories," and "Tags."
|
98 |
|
99 |
= Can I specify related posts? =
|
100 |
|
163 |
|
164 |
YARPP works fine with full-width (double-byte) characters, assuming your WordPress database is set up with Unicode support. 99% of the time, if you're able to write blog posts with full-width characters and they're displayed correctly, YARPP will work on your blog.
|
165 |
|
166 |
+
However, YARPP does have difficulty with languages that don't place spaces between words (Chinese, Japanese, etc.). For these languages, the "consider body" and "consider titles" options in the "Algorithm options" may not be very helpful. Using only tags and categories may work better for these languages.
|
167 |
|
168 |
= Does YARPP slow down my blog/server? =
|
169 |
|
218 |
'past_only' => false, // show only posts which were published before the reference post
|
219 |
'exclude' => array(), // a list of term_taxonomy_ids. entities with any of these terms will be excluded from consideration.
|
220 |
'recent' => false, // to limit to entries published recently, set to something like '15 day', '20 week', or '12 month'.
|
221 |
+
// Relatedness algorithm options: these determine how "relatedness" is computed
|
222 |
// Weights are used to construct the "match score" between candidates and the reference post
|
223 |
'weight' => array(
|
224 |
'body' => 1,
|
285 |
`
|
286 |
|
287 |
== Changelog ==
|
288 |
+
= 5.5.0 (06-August-2020) =
|
289 |
+
* New: Support for custom page types and taxonomies, including those added by WooCommerce
|
290 |
+
* Enhancement: Show spinner while full-text indexes are being created
|
291 |
+
* Enhancement: Various YARPP Admin UX/UI improvements
|
292 |
+
* [Bugfix](https://wordpress.org/support/topic/nice-plugin-crappy-ever-present-notice/): Fixes bug where Review Notice was not getting dismissed for non-admins
|
293 |
+
* [Bugfix](https://wordpress.org/support/topic/please-exclude-the-gutenberg-blocks/): Exclude Gutenberg blocks so that they don't appear as related
|
294 |
+
|
295 |
= 5.4.0 (03-August-2020) =
|
296 |
* New: Shortcode support! `[yarpp]` ([documentation](https://wordpress.org/plugins/yet-another-related-posts-plugin/#%0Ahow%20can%20i%20move%20the%20related%20posts%20display%3F%0A))
|
297 |
* Enhancement: Adds YARPP score to REST API responses ([documentation](https://support.shareaholic.com/hc/en-us/articles/360046456752))
|
999 |
* Initial upload
|
1000 |
|
1001 |
== Upgrade Notice ==
|
1002 |
+
= 5.5.0 =
|
1003 |
We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thank you for using YARPP!
|
1004 |
|
style/options_basic.css
CHANGED
@@ -2,6 +2,15 @@
|
|
2 |
width: 900px;
|
3 |
}
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
.form-table td {
|
6 |
line-height: 11px; /* to match the th's */
|
7 |
}
|
@@ -108,12 +117,9 @@ a.info{
|
|
108 |
z-index:24;
|
109 |
}
|
110 |
|
111 |
-
.yarpp_help {
|
112 |
-
|
113 |
-
|
114 |
-
vertical-align: text-bottom;
|
115 |
-
width: 20px;
|
116 |
-
height: 20px;
|
117 |
}
|
118 |
|
119 |
a.yarpp_help {
|
@@ -126,10 +132,6 @@ a.yarpp_help:hover {
|
|
126 |
background-position: -520px -0px;
|
127 |
}
|
128 |
|
129 |
-
.branch-3-4 .yarpp_help, .branch-3-3 .yarpp-help {
|
130 |
-
background-image: url('../../../../wp-includes/images/wpicons.png');
|
131 |
-
}
|
132 |
-
|
133 |
.exclude_terms span {
|
134 |
display: inline-block;
|
135 |
}
|
@@ -150,8 +152,11 @@ a.yarpp_help:hover {
|
|
150 |
|
151 |
.yarpp_form_row > div {
|
152 |
display: inline-block;
|
153 |
-
|
154 |
-
|
|
|
|
|
|
|
155 |
}
|
156 |
|
157 |
.yarpp_form_checkbox > div {
|
@@ -232,7 +237,7 @@ body.rtl .yarpp_code_display {
|
|
232 |
min-height: 25px;
|
233 |
max-height: 100px;
|
234 |
width: 60%;
|
235 |
-
|
236 |
}
|
237 |
|
238 |
@media all and (max-width:1200px) {
|
2 |
width: 900px;
|
3 |
}
|
4 |
|
5 |
+
.yarpp-red {
|
6 |
+
color: #dc3232;
|
7 |
+
}
|
8 |
+
|
9 |
+
.yarpp-no-float {
|
10 |
+
float: none;
|
11 |
+
margin-bottom: 5px;
|
12 |
+
}
|
13 |
+
|
14 |
.form-table td {
|
15 |
line-height: 11px; /* to match the th's */
|
16 |
}
|
117 |
z-index:24;
|
118 |
}
|
119 |
|
120 |
+
.yarpp_help .wp-pointer-content p {
|
121 |
+
text-align: left;
|
122 |
+
font-family: sans-serif;
|
|
|
|
|
|
|
123 |
}
|
124 |
|
125 |
a.yarpp_help {
|
132 |
background-position: -520px -0px;
|
133 |
}
|
134 |
|
|
|
|
|
|
|
|
|
135 |
.exclude_terms span {
|
136 |
display: inline-block;
|
137 |
}
|
152 |
|
153 |
.yarpp_form_row > div {
|
154 |
display: inline-block;
|
155 |
+
vertical-align: top;
|
156 |
+
}
|
157 |
+
|
158 |
+
.yarpp_form_row > div > label {
|
159 |
+
vertical-align: baseline;
|
160 |
}
|
161 |
|
162 |
.yarpp_form_checkbox > div {
|
237 |
min-height: 25px;
|
238 |
max-height: 100px;
|
239 |
width: 60%;
|
240 |
+
vertical-align: middle;
|
241 |
}
|
242 |
|
243 |
@media all and (max-width:1200px) {
|
style/widget.css
CHANGED
@@ -3,20 +3,19 @@
|
|
3 |
padding: 0.4em 2em 0.8em;
|
4 |
text-align: justify;
|
5 |
}
|
|
|
6 |
.yarpp_pro_msg strong{
|
7 |
display: inline-block;
|
8 |
text-align: center;
|
9 |
width: 100%;
|
10 |
color: orange;
|
11 |
}
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
vertical-align: text-bottom;
|
17 |
-
width: 20px;
|
18 |
-
height: 20px;
|
19 |
}
|
|
|
20 |
.yarpp_help_msg {
|
21 |
position: absolute;
|
22 |
left: 25px;
|
@@ -29,6 +28,7 @@
|
|
29 |
box-shadow: 0 0 0.4em -0.15em #333;
|
30 |
z-index: 100;
|
31 |
}
|
|
|
32 |
.yarpp_help:hover .yarpp_help_msg{
|
33 |
display: block
|
34 |
}
|
3 |
padding: 0.4em 2em 0.8em;
|
4 |
text-align: justify;
|
5 |
}
|
6 |
+
|
7 |
.yarpp_pro_msg strong{
|
8 |
display: inline-block;
|
9 |
text-align: center;
|
10 |
width: 100%;
|
11 |
color: orange;
|
12 |
}
|
13 |
+
|
14 |
+
.yarpp_help .wp-pointer-content p {
|
15 |
+
text-align: left;
|
16 |
+
font-family: sans-serif;
|
|
|
|
|
|
|
17 |
}
|
18 |
+
|
19 |
.yarpp_help_msg {
|
20 |
position: absolute;
|
21 |
left: 25px;
|
28 |
box-shadow: 0 0 0.4em -0.15em #333;
|
29 |
z-index: 100;
|
30 |
}
|
31 |
+
|
32 |
.yarpp_help:hover .yarpp_help_msg{
|
33 |
display: block
|
34 |
}
|
yarpp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Yet Another Related Posts Plugin (YARPP)
|
4 |
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
|
5 |
-
Version: 5.
|
6 |
Author: YARPP
|
7 |
Author URI: https://yarpp.com/
|
8 |
Plugin URI: https://yarpp.com/
|
@@ -23,7 +23,7 @@ if(!defined('WP_CONTENT_DIR')){
|
|
23 |
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
|
24 |
}
|
25 |
|
26 |
-
define('YARPP_VERSION', '5.
|
27 |
|
28 |
define('YARPP_DIR', dirname(__FILE__));
|
29 |
define('YARPP_URL', plugins_url('',__FILE__));
|
2 |
/*
|
3 |
Plugin Name: Yet Another Related Posts Plugin (YARPP)
|
4 |
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
|
5 |
+
Version: 5.5.0
|
6 |
Author: YARPP
|
7 |
Author URI: https://yarpp.com/
|
8 |
Plugin URI: https://yarpp.com/
|
23 |
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
|
24 |
}
|
25 |
|
26 |
+
define('YARPP_VERSION', '5.5.0');
|
27 |
|
28 |
define('YARPP_DIR', dirname(__FILE__));
|
29 |
define('YARPP_URL', plugins_url('',__FILE__));
|