Version Description
- Discontinuing the YARPP Pro service
Download this release
Release Info
Developer | jeffparker |
Plugin | Yet Another Related Posts Plugin (YARPP) |
Version | 4.4 |
Comparing to | |
See all releases |
Code changes from version 4.3.6 to 4.4
- classes/YARPP_Core.php +1 -1
- classes/YARPP_Widget.php +8 -30
- readme.txt +4 -1
- yarpp.php +2 -2
classes/YARPP_Core.php
CHANGED
@@ -1468,7 +1468,7 @@ class YARPP {
|
|
1468 |
|
1469 |
if ($this->get_option('cross_relate')) {
|
1470 |
$type = $this->get_post_types();
|
1471 |
-
} else if (get_post_type === 'page') {
|
1472 |
$type = array('page');
|
1473 |
} else {
|
1474 |
$type = array('post');
|
1468 |
|
1469 |
if ($this->get_option('cross_relate')) {
|
1470 |
$type = $this->get_post_types();
|
1471 |
+
} else if (get_post_type() === 'page') {
|
1472 |
$type = array('page');
|
1473 |
} else {
|
1474 |
$type = array('post');
|
classes/YARPP_Widget.php
CHANGED
@@ -31,35 +31,13 @@ class YARPP_Widget extends WP_Widget {
|
|
31 |
|
32 |
$title = apply_filters('widget_title', $instance['title']);
|
33 |
$output = $before_widget;
|
34 |
-
if (
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
$aid = $yarpp->yarppPro['aid'];
|
40 |
-
$v = $yarpp->yarppPro['v'];
|
41 |
-
$dpid = $instance['pro_dpid'];
|
42 |
-
$ru = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
43 |
-
|
44 |
-
/* TODO: Put this on a template */
|
45 |
-
$output .=
|
46 |
-
"\n".
|
47 |
-
'<div id="adkengage_ssp_div"></div>'.
|
48 |
-
'<script type="text/javascript" '.
|
49 |
-
'src="http://adkengage.com/pshandler.js?aid='.$aid.'&v='.$v.'&dpid='.$dpid.'&ru='.$ru.'">'.
|
50 |
-
'</script>'.
|
51 |
-
"\n";
|
52 |
-
}
|
53 |
-
} else {
|
54 |
-
if (!$instance['template']) {
|
55 |
-
$output .= $before_title;
|
56 |
-
$output .= $title;
|
57 |
-
$output .= $after_title;
|
58 |
-
}
|
59 |
-
$instance['domain'] = 'widget';
|
60 |
-
$output .= $yarpp->display_related(null, $instance, false);
|
61 |
}
|
62 |
-
|
|
|
63 |
$output .= $after_widget;
|
64 |
echo $output;
|
65 |
}
|
@@ -69,8 +47,8 @@ class YARPP_Widget extends WP_Widget {
|
|
69 |
'template' => false,
|
70 |
'title' => $new_instance['title'],
|
71 |
'thumbnails_heading' => $new_instance['thumbnails_heading'],
|
72 |
-
'use_pro' =>
|
73 |
-
'pro_dpid' =>
|
74 |
'promote_yarpp' => false,
|
75 |
);
|
76 |
|
31 |
|
32 |
$title = apply_filters('widget_title', $instance['title']);
|
33 |
$output = $before_widget;
|
34 |
+
if (!$instance['template']) {
|
35 |
+
$output .= $before_title;
|
36 |
+
$output .= $title;
|
37 |
+
$output .= $after_title;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
+
$instance['domain'] = 'widget';
|
40 |
+
$output .= $yarpp->display_related(null, $instance, false);
|
41 |
$output .= $after_widget;
|
42 |
echo $output;
|
43 |
}
|
47 |
'template' => false,
|
48 |
'title' => $new_instance['title'],
|
49 |
'thumbnails_heading' => $new_instance['thumbnails_heading'],
|
50 |
+
'use_pro' => false,
|
51 |
+
'pro_dpid' => null,
|
52 |
'promote_yarpp' => false,
|
53 |
);
|
54 |
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://www.yarpp.com/
|
|
6 |
Tags: feeds, pages, posts, related, rss, yarpp, ads, multisite, multilingual, thumbnails, related posts, related content
|
7 |
Requires at least: 3.3
|
8 |
Tested up to: 4.7
|
9 |
-
Stable tag: 4.
|
10 |
License: GPLv2 or later
|
11 |
|
12 |
Display a list of related posts on your site based on a powerful unique algorithm.
|
@@ -283,6 +283,9 @@ YARPP is currently localized in the following languages:
|
|
283 |
|
284 |
== Changelog ==
|
285 |
|
|
|
|
|
|
|
286 |
= 4.3.6 =
|
287 |
* Removed new file
|
288 |
|
6 |
Tags: feeds, pages, posts, related, rss, yarpp, ads, multisite, multilingual, thumbnails, related posts, related content
|
7 |
Requires at least: 3.3
|
8 |
Tested up to: 4.7
|
9 |
+
Stable tag: 4.4
|
10 |
License: GPLv2 or later
|
11 |
|
12 |
Display a list of related posts on your site based on a powerful unique algorithm.
|
283 |
|
284 |
== Changelog ==
|
285 |
|
286 |
+
= 4.4 =
|
287 |
+
* Discontinuing the YARPP Pro service
|
288 |
+
|
289 |
= 4.3.6 =
|
290 |
* Removed new file
|
291 |
|
yarpp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*----------------------------------------------------------------------------------------------------------------------
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
|
5 |
-
Version: 4.
|
6 |
Author: Adknowledge
|
7 |
Author URI: http://www.yarpp.com/
|
8 |
Plugin URI: http://www.yarpp.com/
|
@@ -14,7 +14,7 @@ if(!defined('WP_CONTENT_DIR')){
|
|
14 |
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
|
15 |
}
|
16 |
|
17 |
-
define('YARPP_VERSION', '4.
|
18 |
define('YARPP_DIR', dirname(__FILE__));
|
19 |
define('YARPP_URL', plugins_url('',__FILE__));
|
20 |
define('YARPP_NO_RELATED', ':(');
|
2 |
/*----------------------------------------------------------------------------------------------------------------------
|
3 |
Plugin Name: Yet Another Related Posts Plugin
|
4 |
Description: Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
|
5 |
+
Version: 4.4
|
6 |
Author: Adknowledge
|
7 |
Author URI: http://www.yarpp.com/
|
8 |
Plugin URI: http://www.yarpp.com/
|
14 |
define('WP_CONTENT_DIR', substr($tr,0,strrpos($tr,'/')));
|
15 |
}
|
16 |
|
17 |
+
define('YARPP_VERSION', '4.4');
|
18 |
define('YARPP_DIR', dirname(__FILE__));
|
19 |
define('YARPP_URL', plugins_url('',__FILE__));
|
20 |
define('YARPP_NO_RELATED', ':(');
|