Yoast Breadcrumbs - Version 0.7.1

Version Description

Download this release

Release Info

Developer joostdevalk
Plugin Icon wp plugin Yoast Breadcrumbs
Version 0.7.1
Comparing to
See all releases

Code changes from version 0.7 to 0.7.1

Files changed (3) hide show
  1. readme.txt +1 -1
  2. script_link.png +0 -0
  3. yoast-breadcrumbs.php +25 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
4
Tags: rss, footer
5
Requires at least: 2.2
6
Tested up to: 2.7
7
- stable tag: 0.7
8
9
Easily add breadcrumbs to your template!
10
4
Tags: rss, footer
5
Requires at least: 2.2
6
Tested up to: 2.7
7
+ stable tag: 0.7.1
8
9
Easily add breadcrumbs to your template!
10
script_link.png ADDED
Binary file
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.6.4
6
Author: Joost de Valk
7
Author URI: http://yoast.com/
8
@@ -38,9 +38,32 @@ if ( ! class_exists( 'YoastBreadcrumbs_Admin' ) ) {
38
global $wpdb;
39
if ( function_exists('add_submenu_page') ) {
40
add_options_page('Yoast Breadcrumbs Configuration', 'Breadcrumbs', 10, basename(__FILE__),array('YoastBreadcrumbs_Admin','config_page'));
41
}
42
}
43
44
function config_page() {
45
if ( isset($_POST['submit']) ) {
46
if (!current_user_can('manage_options')) die(__('You cannot edit the Yoast Breadcrumbs options.'));
@@ -253,4 +276,4 @@ function yoast_breadcrumb($prefix = '', $suffix = '', $display = true) {
253
add_action('admin_menu', array('YoastBreadcrumbs_Admin','add_config_page'));
254
255
require("yoast-posts.php");
256
- ?>
2
Plugin Name: Yoast Breadcrumbs
3
Plugin URI: http://yoast.com/wordpress/breadcrumbs/
4
Description: Outputs a fully customizable breadcrumb path.
5
+ Version: 0.7.1
6
Author: Joost de Valk
7
Author URI: http://yoast.com/
8
38
global $wpdb;
39
if ( function_exists('add_submenu_page') ) {
40
add_options_page('Yoast Breadcrumbs Configuration', 'Breadcrumbs', 10, basename(__FILE__),array('YoastBreadcrumbs_Admin','config_page'));
41
+ add_filter( 'plugin_action_links', array( 'YoastBreadcrumbs_Admin', 'filter_plugin_actions'), 10, 2 );
42
+ add_filter( 'ozh_adminmenu_icon', array( 'YoastBreadcrumbs_Admin', 'add_ozh_adminmenu_icon' ) );
43
}
44
}
45
46
+ function add_ozh_adminmenu_icon( $hook ) {
47
+ static $breadcrumbsicon;
48
+ if (!$breadcrumbsicon) {
49
+ $breadcrumbsicon = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)). '/script_link.png';
50
+ }
51
+ if ($hook == 'yoast-breadcrumbs.php') return $breadcrumbsicon;
52
+ return $hook;
53
+ }
54
+
55
+ function filter_plugin_actions( $links, $file ){
56
+ //Static so we don't call plugin_basename on every plugin row.
57
+ static $this_plugin;
58
+ if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
59
+
60
+ if ( $file == $this_plugin ){
61
+ $settings_link = '<a href="options-general.php?page=yoast-breadcrumbs.php">' . __('Settings') . '</a>';
62
+ array_unshift( $links, $settings_link ); // before other links
63
+ }
64
+ return $links;
65
+ }
66
+
67
function config_page() {
68
if ( isset($_POST['submit']) ) {
69
if (!current_user_can('manage_options')) die(__('You cannot edit the Yoast Breadcrumbs options.'));
276
add_action('admin_menu', array('YoastBreadcrumbs_Admin','add_config_page'));
277
278
require("yoast-posts.php");
279
+ ?>