function the_breadcrumb() { echo ''; if (!is_home()) { echo '<span class="item" typeof="v:Breadcrumb"><a href="'; echo get_option('home'); echo '" rel="v:url" property="v:title">'; echo 'Phim HD'; echo "</a></span>"; if (is_category() || is_single()) { echo ''; $categories = get_the_category(); $seperator = ''; $output = ''; if ($categories) { foreach ($categories as $category) { $output .= '<span class="item" typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_category_link($category->term_id) . '" title="' . esc_attr(sprintf(__("View all posts in %s"), $category->name)) . '">' . $category->cat_name . '</a></span>' . $seperator; } echo trim($output, $seperator); } echo ''; if (is_single()) { echo new_brek(); } } elseif (is_page()) { echo '<span class="item" itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="">'; echo the_title(); echo '</span>'; } echo ''; } elseif (is_tag()) { single_tag_title(); } elseif (is_day()) { echo "<li>Archive for "; the_time('F jS, Y'); echo '</li>'; } elseif (is_month()) { echo "<li>Archive for "; the_time('F, Y'); echo '</li>'; } elseif (is_year()) { echo "<li>Archive for "; the_time('Y'); echo '</li>'; } elseif (is_author()) { echo "<li>Author Archive"; echo '</li>'; } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { echo "<li>Blog Archives"; echo '</li>'; } elseif (is_search()) { echo "<li>Search Results"; echo '</li>'; } echo ''; }
function the_breadcrumb() { //echo '<div class="blocktitle breadcrumbs">'; if (!is_home()) { echo '<div class="item" typeof="v:Breadcrumb"><a href="' . get_bloginfo("wpurl") . '" rel="v:url" property="v:title">Xem phim</a></div>'; if (is_single()) { echo ''; $categories = get_the_category(); $seperator = ''; $output = ''; if ($categories) { foreach ($categories as $category) { $output .= '<div class="item" typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_category_link($category->term_id) . '" title="' . esc_attr(sprintf(__("View all posts in %s"), $category->name)) . '">' . $category->cat_name . '</a></div>' . $seperator; } echo trim($output, $seperator); } if (is_single()) { echo new_brek(); } } elseif (is_page()) { echo '<h2 class="item last-child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span title="' . get_the_title() . '">' . get_the_title() . '</span></h2>'; } echo ''; } elseif (is_tag()) { echo '<h2 class="item last-child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">'; single_tag_title(); echo '</span></h2>'; } elseif (is_day()) { echo "<li>Archive for "; the_time('F jS, Y'); echo '</li>'; } elseif (is_month()) { echo "<li>Archive for "; the_time('F, Y'); echo '</li>'; } elseif (is_year()) { echo "<li>Archive for "; the_time('Y'); echo '</li>'; } elseif (is_author()) { echo "<li>Author Archive"; echo '</li>'; } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { echo "<li>Blog Archives"; echo '</li>'; } elseif (is_search()) { echo "<li>Search Results"; echo '</li>'; } //echo '</div>'; }