function rt_breadcrumb($gecerli_sayfa) { if (is_page()) { $ust_id = $gecerli_sayfa->post_parent; $yeni_sorgu = get_post($ust_id); if ($yeni_sorgu->post_parent) { rt_breadcrumb($yeni_sorgu); echo " \\ "; } echo "<a href=\"" . get_permalink($yeni_sorgu->ID) . "\" title=\"\" >" . get_the_title($yeni_sorgu->ID) . "</a>"; } elseif (is_single() || is_category() && !is_archive()) { $ust_id = $gecerli_sayfa->post_parent; $yeni_sorgu = get_post($ust_id); $kategori = get_the_category($yeni_sorgu->ID); $ID = $kategori[0]->cat_ID; $ayrac = " \ "; echo get_category_parents($ID, TRUE, $ayrac, FALSE); if ($yeni_sorgu->post_parent) { rt_breadcrumb($yeni_sorgu); if (!is_category()) { echo " \\ "; } } if (is_single()) { echo "<a href=\"" . get_permalink($yeni_sorgu->ID) . "\" title=\"\" >" . get_the_title($yeni_sorgu->ID) . "</a>"; } } else { echo wp_title(''); } }
$this_is_blog = true; ?> <div class="sub_header"> <!-- Page navigation--> <div class="breadcrumb"> <!-- [rt-breadcrumb] --> 当前位置: <a href="<?php bloginfo('url'); ?> " title="<?php echo bloginfo('name'); ?> ">首页</a> \ <?php rt_breadcrumb($post->ID); ?> <!--/ [rt-breadcrumb] --> </div> <!-- /Page navigation--> <!-- search --> <div class="search_bar"> <form action="<?php bloginfo('url'); ?> " method="get" id="search_form"> <input type="text" class="search_text" name="s" id="s" value="搜索" /><input type="image" src="<?php bloginfo('template_directory'); ?> /images/pixel.gif" class="searchsubmit" alt="" />
?> <?php } ?> <?php if ($info_bar) { ?> <!-- info bar --> <div id="info_bar" class="box-shadow-inset"> <!-- breadcrumb menu --> <?php rt_breadcrumb(); ?> <!-- / breadcrumb menu --> <?php if (get_option(THEMESLUG . '_show_search')) { ?> <!-- search --> <div class="search-bar"> <form action="<?php echo wpml_get_home_url(); ?> /" method="get" class="showtextback"> <fieldset> <input type="image" src="<?php echo THEMEURI;