Version Description
- Fixed minor issue in post preview when post has no categories yet as per this thread.
- Added support for WP Framework.
- Added missing CSS for Backend Class.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Yoast Breadcrumbs |
Version | 0.8.2 |
Comparing to | |
See all releases |
Code changes from version 0.8.1 to 0.8.2
- readme.txt +16 -3
- yoast-breadcrumbs.php +9 -5
- yst_plugin_tools.css +25 -0
readme.txt
CHANGED
@@ -4,13 +4,21 @@ Donate link: http://yoast.com/donate/
|
|
4 |
Tags: rss, footer
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.8.2
|
7 |
-
stable tag: 0.8.
|
8 |
|
9 |
Easily add breadcrumbs to your template!
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
Easily add breadcrumbs to your template.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
More info:
|
16 |
|
@@ -20,6 +28,11 @@ More info:
|
|
20 |
|
21 |
== Changelog ==
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
= 0.8.1 =
|
24 |
* Fixed theme framework integration per [this suggestion](http://wordpress.org/support/topic/292107).
|
25 |
* Upgraded Backend class to 0.1.1.
|
@@ -27,7 +40,7 @@ More info:
|
|
27 |
= 0.8 =
|
28 |
* Switched to new Yoast Plugin Backend.
|
29 |
* Prevented issues with double declaration of breadcrumbs.
|
30 |
-
* Added automatic support for Thematic, Hybrid and Thesis frameworks.
|
31 |
|
32 |
= 0.7.5 =
|
33 |
* Added support for custom taxonomies.
|
4 |
Tags: rss, footer
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.8.2
|
7 |
+
stable tag: 0.8.2
|
8 |
|
9 |
Easily add breadcrumbs to your template!
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
Easily add breadcrumbs to your template. If you're using one of the supported WordPress frameworks, it's as easy as enabling the plugin and checking the "Try to add automatically box", if you're not using one of those, adding it is as simple as adding one line of code to your template!
|
14 |
+
|
15 |
+
= Supported Frameworks =
|
16 |
+
Currently the breadcrumbs plugin supports the following frameworks:
|
17 |
+
|
18 |
+
* Thematic
|
19 |
+
* Hybrid
|
20 |
+
* Thesis
|
21 |
+
* WP Framework
|
22 |
|
23 |
More info:
|
24 |
|
28 |
|
29 |
== Changelog ==
|
30 |
|
31 |
+
= 0.8.2 =
|
32 |
+
* Fixed minor issue in post preview when post has no categories yet as per [this thread](http://wordpress.org/support/topic/292512).
|
33 |
+
* Added support for [WP Framework](http://wpframework.com/).
|
34 |
+
* Added missing CSS for Backend Class.
|
35 |
+
|
36 |
= 0.8.1 =
|
37 |
* Fixed theme framework integration per [this suggestion](http://wordpress.org/support/topic/292107).
|
38 |
* Upgraded Backend class to 0.1.1.
|
40 |
= 0.8 =
|
41 |
* Switched to new Yoast Plugin Backend.
|
42 |
* Prevented issues with double declaration of breadcrumbs.
|
43 |
+
* Added automatic support for [Thematic](http://themeshaper.com/thematic/), [Hybrid](http://themehybrid.com/) and [Thesis](http://diythemes.com/) frameworks.
|
44 |
|
45 |
= 0.7.5 =
|
46 |
* Added support for custom taxonomies.
|
yoast-breadcrumbs.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Plugin Name: Yoast Breadcrumbs
|
3 |
Plugin URI: http://yoast.com/wordpress/breadcrumbs/
|
4 |
Description: Outputs a fully customizable breadcrumb path.
|
5 |
-
Version: 0.8.
|
6 |
Author: Joost de Valk
|
7 |
Author URI: http://yoast.com/
|
8 |
|
@@ -228,10 +228,12 @@ function yoast_breadcrumb($prefix = '', $suffix = '', $display = true) {
|
|
228 |
if (is_single() && $opt['singlecatprefix']) {
|
229 |
$cats = get_the_category();
|
230 |
$cat = $cats[0];
|
231 |
-
if ($cat
|
232 |
-
|
233 |
-
|
234 |
-
|
|
|
|
|
235 |
}
|
236 |
}
|
237 |
if ( is_category() ) {
|
@@ -317,4 +319,6 @@ function yoast_breadcrumb_output() {
|
|
317 |
add_action('thesis_hook_before_content','yoast_breadcrumb_output',10,1);
|
318 |
add_action('hybrid_before_content','yoast_breadcrumb_output',10,1);
|
319 |
add_action('thematic_belowheader','yoast_breadcrumb_output',10,1);
|
|
|
|
|
320 |
?>
|
2 |
Plugin Name: Yoast Breadcrumbs
|
3 |
Plugin URI: http://yoast.com/wordpress/breadcrumbs/
|
4 |
Description: Outputs a fully customizable breadcrumb path.
|
5 |
+
Version: 0.8.2
|
6 |
Author: Joost de Valk
|
7 |
Author URI: http://yoast.com/
|
8 |
|
228 |
if (is_single() && $opt['singlecatprefix']) {
|
229 |
$cats = get_the_category();
|
230 |
$cat = $cats[0];
|
231 |
+
if ( is_object($cat) ) {
|
232 |
+
if ($cat->parent != 0) {
|
233 |
+
$output .= get_category_parents($cat->term_id, true, " ".$opt['sep']." ");
|
234 |
+
} else {
|
235 |
+
$output .= '<a href="'.get_category_link($cat->term_id).'">'.$cat->name.'</a> '.$opt['sep'].' ';
|
236 |
+
}
|
237 |
}
|
238 |
}
|
239 |
if ( is_category() ) {
|
319 |
add_action('thesis_hook_before_content','yoast_breadcrumb_output',10,1);
|
320 |
add_action('hybrid_before_content','yoast_breadcrumb_output',10,1);
|
321 |
add_action('thematic_belowheader','yoast_breadcrumb_output',10,1);
|
322 |
+
add_action('framework_hook_content_open','yoast_breadcrumb_output',10,1);
|
323 |
+
|
324 |
?>
|
yst_plugin_tools.css
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
small {
|
2 |
+
font-weight:normal;
|
3 |
+
color:#777;
|
4 |
+
}
|
5 |
+
|
6 |
+
div.inside ul {
|
7 |
+
margin-left: 20px;
|
8 |
+
}
|
9 |
+
|
10 |
+
div.inside ul li {
|
11 |
+
list-style: square;
|
12 |
+
line-height:16px;
|
13 |
+
}
|
14 |
+
|
15 |
+
div.inside ul li.rss {
|
16 |
+
list-style-image: url(/wp-includes/images/rss.png);
|
17 |
+
}
|
18 |
+
|
19 |
+
div.inside ul li.email {
|
20 |
+
list-style-image: url(http://cdn.yoast.com/email_sub.png);
|
21 |
+
}
|
22 |
+
|
23 |
+
div.inside ul li.yoast {
|
24 |
+
list-style-image: url(http://cdn.yoast.com/theme/yoast-16x16.png);
|
25 |
+
}
|