| @@ -22,60 +22,60 @@ discard block | ||
| 22 | 22 | function geodir_x_action_calls() | 
| 23 | 23 |  { | 
| 24 | 24 | |
| 25 | - /* ACTIONS | |
| 25 | + /* ACTIONS | |
| 26 | 26 | ****************************************************************************************/ | 
| 27 | 27 | |
| 28 | - // Add body class for styling purposes | |
| 29 | -    add_filter('body_class', 'geodir_x_body_class'); | |
| 28 | + // Add body class for styling purposes | |
| 29 | +	add_filter('body_class', 'geodir_x_body_class'); | |
| 30 | 30 | |
| 31 | - // HOME TOP SIDEBAR | |
| 32 | - //remove_action( 'geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10 ); | |
| 33 | - //remove_action( 'geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10 ); | |
| 34 | - //add_action( 'geodir_wrapper_open', 'geodir_x_home_sidebar', 5 ); | |
| 35 | -    add_action('geodir_before_search_form', 'geodir_x_search_container_open'); | |
| 36 | -    add_action('geodir_after_search_form', 'geodir_x_search_container_close'); | |
| 31 | + // HOME TOP SIDEBAR | |
| 32 | + //remove_action( 'geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10 ); | |
| 33 | + //remove_action( 'geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10 ); | |
| 34 | + //add_action( 'geodir_wrapper_open', 'geodir_x_home_sidebar', 5 ); | |
| 35 | +	add_action('geodir_before_search_form', 'geodir_x_search_container_open'); | |
| 36 | +	add_action('geodir_after_search_form', 'geodir_x_search_container_close'); | |
| 37 | 37 | |
| 38 | - // WRAPPER OPEN ACTIONS | |
| 39 | -    remove_action('geodir_wrapper_open', 'geodir_action_wrapper_open', 10); | |
| 40 | -    add_action('geodir_wrapper_open', 'geodir_x_action_wrapper_open', 9); | |
| 38 | + // WRAPPER OPEN ACTIONS | |
| 39 | +	remove_action('geodir_wrapper_open', 'geodir_action_wrapper_open', 10); | |
| 40 | +	add_action('geodir_wrapper_open', 'geodir_x_action_wrapper_open', 9); | |
| 41 | 41 | |
| 42 | - // WRAPPER CLOSE ACTIONS | |
| 43 | -    remove_action('geodir_wrapper_close', 'geodir_action_wrapper_close', 10); | |
| 44 | -    add_action('geodir_wrapper_close', 'geodir_x_action_wrapper_close', 11); | |
| 42 | + // WRAPPER CLOSE ACTIONS | |
| 43 | +	remove_action('geodir_wrapper_close', 'geodir_action_wrapper_close', 10); | |
| 44 | +	add_action('geodir_wrapper_close', 'geodir_x_action_wrapper_close', 11); | |
| 45 | 45 | |
| 46 | - // WRAPPER CONTENT OPEN ACTIONS | |
| 47 | -    remove_action('geodir_wrapper_content_open', 'geodir_action_wrapper_content_open', 10); | |
| 48 | -    add_action('geodir_wrapper_content_open', 'geodir_x_action_wrapper_content_open', 9, 3); | |
| 46 | + // WRAPPER CONTENT OPEN ACTIONS | |
| 47 | +	remove_action('geodir_wrapper_content_open', 'geodir_action_wrapper_content_open', 10); | |
| 48 | +	add_action('geodir_wrapper_content_open', 'geodir_x_action_wrapper_content_open', 9, 3); | |
| 49 | 49 | |
| 50 | - // WRAPPER CONTENT CLOSE ACTIONS | |
| 51 | -    remove_action('geodir_wrapper_content_close', 'geodir_action_wrapper_content_close', 10); | |
| 52 | -    add_action('geodir_wrapper_content_close', 'geodir_x_action_wrapper_content_close', 11); | |
| 50 | + // WRAPPER CONTENT CLOSE ACTIONS | |
| 51 | +	remove_action('geodir_wrapper_content_close', 'geodir_action_wrapper_content_close', 10); | |
| 52 | +	add_action('geodir_wrapper_content_close', 'geodir_x_action_wrapper_content_close', 11); | |
| 53 | 53 | |
| 54 | - // SIDEBAR RIGHT OPEN ACTIONS | |
| 55 | -    remove_action('geodir_sidebar_right_open', 'geodir_action_sidebar_right_open', 10); | |
| 56 | -    add_action('geodir_sidebar_right_open', 'geodir_x_action_sidebar_right_open', 10, 4); | |
| 54 | + // SIDEBAR RIGHT OPEN ACTIONS | |
| 55 | +	remove_action('geodir_sidebar_right_open', 'geodir_action_sidebar_right_open', 10); | |
| 56 | +	add_action('geodir_sidebar_right_open', 'geodir_x_action_sidebar_right_open', 10, 4); | |
| 57 | 57 | |
| 58 | - // SIDEBAR RIGHT CLOSE ACTIONS | |
| 59 | -    remove_action('geodir_sidebar_right_close', 'geodir_action_sidebar_right_close', 10); | |
| 60 | -    add_action('geodir_sidebar_right_close', 'geodir_x_action_sidebar_right_close', 10, 1); | |
| 58 | + // SIDEBAR RIGHT CLOSE ACTIONS | |
| 59 | +	remove_action('geodir_sidebar_right_close', 'geodir_action_sidebar_right_close', 10); | |
| 60 | +	add_action('geodir_sidebar_right_close', 'geodir_x_action_sidebar_right_close', 10, 1); | |
| 61 | 61 | |
| 62 | - // REMOVE BREADCRUMBS | |
| 63 | -    remove_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20); | |
| 64 | -    remove_action('geodir_detail_before_main_content', 'geodir_breadcrumb', 20); | |
| 65 | -    remove_action('geodir_search_before_main_content', 'geodir_breadcrumb', 20); | |
| 66 | -    remove_action('geodir_author_before_main_content', 'geodir_breadcrumb', 20); | |
| 67 | -    remove_action('geodir_home_before_main_content', 'geodir_breadcrumb', 20); | |
| 68 | -    remove_action('geodir_location_before_main_content', 'geodir_breadcrumb', 20); | |
| 62 | + // REMOVE BREADCRUMBS | |
| 63 | +	remove_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20); | |
| 64 | +	remove_action('geodir_detail_before_main_content', 'geodir_breadcrumb', 20); | |
| 65 | +	remove_action('geodir_search_before_main_content', 'geodir_breadcrumb', 20); | |
| 66 | +	remove_action('geodir_author_before_main_content', 'geodir_breadcrumb', 20); | |
| 67 | +	remove_action('geodir_home_before_main_content', 'geodir_breadcrumb', 20); | |
| 68 | +	remove_action('geodir_location_before_main_content', 'geodir_breadcrumb', 20); | |
| 69 | 69 | |
| 70 | - // make top section wide | |
| 71 | -    remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); | |
| 72 | -    remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); | |
| 73 | -    remove_action('geodir_author_before_main_content', 'geodir_action_geodir_sidebar_author_top', 10); | |
| 74 | -    remove_action('geodir_search_before_main_content', 'geodir_action_geodir_sidebar_search_top', 10); | |
| 75 | -    remove_action('geodir_detail_before_main_content', 'geodir_action_geodir_sidebar_detail_top', 10); | |
| 76 | -    remove_action('geodir_listings_before_main_content', 'geodir_action_geodir_sidebar_listings_top', 10); | |
| 70 | + // make top section wide | |
| 71 | +	remove_action('geodir_home_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); | |
| 72 | +	remove_action('geodir_location_before_main_content', 'geodir_action_geodir_sidebar_home_top', 10); | |
| 73 | +	remove_action('geodir_author_before_main_content', 'geodir_action_geodir_sidebar_author_top', 10); | |
| 74 | +	remove_action('geodir_search_before_main_content', 'geodir_action_geodir_sidebar_search_top', 10); | |
| 75 | +	remove_action('geodir_detail_before_main_content', 'geodir_action_geodir_sidebar_detail_top', 10); | |
| 76 | +	remove_action('geodir_listings_before_main_content', 'geodir_action_geodir_sidebar_listings_top', 10); | |
| 77 | 77 | |
| 78 | -    add_action('geodir_wrapper_open', 'gd_X_compat_add_top_section_back', 5); | |
| 78 | +	add_action('geodir_wrapper_open', 'gd_X_compat_add_top_section_back', 5); | |
| 79 | 79 | |
| 80 | 80 | |
| 81 | 81 | } // Close geodir_x_action_calls | 
| @@ -92,17 +92,17 @@ discard block | ||
| 92 | 92 | function gd_X_compat_add_top_section_back() | 
| 93 | 93 |  { | 
| 94 | 94 | |
| 95 | -    if (is_page_geodir_home() || geodir_is_page('location')) { | |
| 96 | - geodir_action_geodir_sidebar_home_top(); | |
| 97 | -    } elseif (geodir_is_page('listing')) { | |
| 98 | - geodir_action_geodir_sidebar_listings_top(); | |
| 99 | -    } elseif (geodir_is_page('detail')) { | |
| 100 | - geodir_action_geodir_sidebar_detail_top(); | |
| 101 | -    } elseif (geodir_is_page('search')) { | |
| 102 | - geodir_action_geodir_sidebar_search_top(); | |
| 103 | -    } elseif (geodir_is_page('author')) { | |
| 104 | - geodir_action_geodir_sidebar_author_top(); | |
| 105 | - } | |
| 95 | +	if (is_page_geodir_home() || geodir_is_page('location')) { | |
| 96 | + geodir_action_geodir_sidebar_home_top(); | |
| 97 | +	} elseif (geodir_is_page('listing')) { | |
| 98 | + geodir_action_geodir_sidebar_listings_top(); | |
| 99 | +	} elseif (geodir_is_page('detail')) { | |
| 100 | + geodir_action_geodir_sidebar_detail_top(); | |
| 101 | +	} elseif (geodir_is_page('search')) { | |
| 102 | + geodir_action_geodir_sidebar_search_top(); | |
| 103 | +	} elseif (geodir_is_page('author')) { | |
| 104 | + geodir_action_geodir_sidebar_author_top(); | |
| 105 | + } | |
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | } | 
| @@ -120,8 +120,8 @@ discard block | ||
| 120 | 120 | */ | 
| 121 | 121 | function geodir_x_body_class($classes) | 
| 122 | 122 |  { | 
| 123 | - $classes[] = 'geodir-x'; | |
| 124 | - return $classes; | |
| 123 | + $classes[] = 'geodir-x'; | |
| 124 | + return $classes; | |
| 125 | 125 | } | 
| 126 | 126 | |
| 127 | 127 | /** | 
| @@ -133,14 +133,14 @@ discard block | ||
| 133 | 133 | */ | 
| 134 | 134 | function geodir_x_home_sidebar() | 
| 135 | 135 |  { | 
| 136 | -    //if ( geodir_is_geodir_page() ) { | |
| 137 | - global $wp; | |
| 138 | -    if ($wp->query_vars['page_id'] == geodir_location_page_id() || is_home() && !geodir_is_page('login')) { | |
| 139 | - echo '<div class="x-main full">'; | |
| 140 | -        dynamic_sidebar('geodir_home_top'); | |
| 141 | - echo '</div>'; | |
| 142 | - } | |
| 143 | - //} | |
| 136 | +	//if ( geodir_is_geodir_page() ) { | |
| 137 | + global $wp; | |
| 138 | +	if ($wp->query_vars['page_id'] == geodir_location_page_id() || is_home() && !geodir_is_page('login')) { | |
| 139 | + echo '<div class="x-main full">'; | |
| 140 | +		dynamic_sidebar('geodir_home_top'); | |
| 141 | + echo '</div>'; | |
| 142 | + } | |
| 143 | + //} | |
| 144 | 144 | } | 
| 145 | 145 | |
| 146 | 146 | /** | 
| @@ -151,7 +151,7 @@ discard block | ||
| 151 | 151 | */ | 
| 152 | 152 | function geodir_x_search_container_open() | 
| 153 | 153 |  { | 
| 154 | - echo '<div class="x-container-fluid x-container max">'; | |
| 154 | + echo '<div class="x-container-fluid x-container max">'; | |
| 155 | 155 | } | 
| 156 | 156 | |
| 157 | 157 | /** | 
| @@ -162,7 +162,7 @@ discard block | ||
| 162 | 162 | */ | 
| 163 | 163 | function geodir_x_search_container_close() | 
| 164 | 164 |  { | 
| 165 | - echo '</div>'; | |
| 165 | + echo '</div>'; | |
| 166 | 166 | } | 
| 167 | 167 | |
| 168 | 168 | /** | 
| @@ -173,19 +173,19 @@ discard block | ||
| 173 | 173 | */ | 
| 174 | 174 | function geodir_x_action_wrapper_open() | 
| 175 | 175 |  { | 
| 176 | - $stack = x_get_stack(); | |
| 177 | - | |
| 178 | -    if ($stack == 'integrity') { | |
| 179 | - echo '<div class="x-container-fluid x-container max width offset">'; | |
| 180 | -    } elseif ($stack == 'renew') { | |
| 181 | - echo '<div class="x-container-fluid x-container max width offset cf">'; | |
| 182 | -    } elseif ($stack == 'icon') { | |
| 183 | - echo '<div class="x-main full" role="main">'; | |
| 184 | -    } elseif ($stack == 'ethos') { | |
| 185 | - echo '<div class="x-container-fluid x-container max width main"><div class="offset cf">'; | |
| 186 | -    }else{ | |
| 187 | - echo '<div class="x-container max width offset">'; | |
| 188 | - } | |
| 176 | + $stack = x_get_stack(); | |
| 177 | + | |
| 178 | +	if ($stack == 'integrity') { | |
| 179 | + echo '<div class="x-container-fluid x-container max width offset">'; | |
| 180 | +	} elseif ($stack == 'renew') { | |
| 181 | + echo '<div class="x-container-fluid x-container max width offset cf">'; | |
| 182 | +	} elseif ($stack == 'icon') { | |
| 183 | + echo '<div class="x-main full" role="main">'; | |
| 184 | +	} elseif ($stack == 'ethos') { | |
| 185 | + echo '<div class="x-container-fluid x-container max width main"><div class="offset cf">'; | |
| 186 | +	}else{ | |
| 187 | + echo '<div class="x-container max width offset">'; | |
| 188 | + } | |
| 189 | 189 | } | 
| 190 | 190 | |
| 191 | 191 | /** | 
| @@ -196,12 +196,12 @@ discard block | ||
| 196 | 196 | */ | 
| 197 | 197 | function geodir_x_action_wrapper_close() | 
| 198 | 198 |  { | 
| 199 | - $stack = x_get_stack(); | |
| 200 | -    if ($stack == 'ethos') { | |
| 201 | - echo '</div></div>'; | |
| 202 | -    } else { | |
| 203 | - echo '</div>'; | |
| 204 | - } | |
| 199 | + $stack = x_get_stack(); | |
| 200 | +	if ($stack == 'ethos') { | |
| 201 | + echo '</div></div>'; | |
| 202 | +	} else { | |
| 203 | + echo '</div>'; | |
| 204 | + } | |
| 205 | 205 | } | 
| 206 | 206 | |
| 207 | 207 | /** | 
| @@ -215,9 +215,9 @@ discard block | ||
| 215 | 215 | */ | 
| 216 | 216 | function geodir_x_action_wrapper_content_open($type = '', $id = '', $class = '') | 
| 217 | 217 |  { | 
| 218 | - $content_class = ' entry-wrap '; | |
| 218 | + $content_class = ' entry-wrap '; | |
| 219 | 219 | |
| 220 | - echo '<div class="x-main left ' . $class . $content_class . ' " role="main">'; | |
| 220 | + echo '<div class="x-main left ' . $class . $content_class . ' " role="main">'; | |
| 221 | 221 | } | 
| 222 | 222 | |
| 223 | 223 | /** | 
| @@ -228,7 +228,7 @@ discard block | ||
| 228 | 228 | */ | 
| 229 | 229 | function geodir_x_action_wrapper_content_close() | 
| 230 | 230 |  { | 
| 231 | - echo '</div>'; | |
| 231 | + echo '</div>'; | |
| 232 | 232 | } | 
| 233 | 233 | |
| 234 | 234 | /** | 
| @@ -243,7 +243,7 @@ discard block | ||
| 243 | 243 | */ | 
| 244 | 244 | function geodir_x_action_sidebar_right_open($type = '', $id = '', $class = '', $itemtype = '') | 
| 245 | 245 |  { | 
| 246 | - echo '<aside class="x-sidebar right" role="complementary" itemscope itemtype="' . $itemtype . '">'; | |
| 246 | + echo '<aside class="x-sidebar right" role="complementary" itemscope itemtype="' . $itemtype . '">'; | |
| 247 | 247 | } | 
| 248 | 248 | |
| 249 | 249 | /** | 
| @@ -255,7 +255,7 @@ discard block | ||
| 255 | 255 | */ | 
| 256 | 256 | function geodir_x_action_sidebar_right_close($type = '') | 
| 257 | 257 |  { | 
| 258 | - echo '</aside>'; | |
| 258 | + echo '</aside>'; | |
| 259 | 259 | } | 
| 260 | 260 | |
| 261 | 261 |  add_filter('geodir_breadcrumb', 'geodir_x_breadcrumb'); | 
| @@ -269,12 +269,12 @@ discard block | ||
| 269 | 269 | */ | 
| 270 | 270 | function geodir_x_breadcrumb($breadcrumb) | 
| 271 | 271 |  { | 
| 272 | -    $breadcrumb = str_replace('<div class="geodir-breadcrumb clearfix"><ul id="breadcrumbs">', '', $breadcrumb); | |
| 273 | -    $breadcrumb = str_replace('<li>', '', $breadcrumb); | |
| 274 | -    $breadcrumb = str_replace('</li>', '', $breadcrumb); | |
| 275 | -    $breadcrumb = str_replace('Home', '<span class="home"><i class="x-icon-home"></i></span>', $breadcrumb); | |
| 276 | -    $breadcrumb = str_replace('</ul></div>', '', $breadcrumb); | |
| 277 | - return $breadcrumb; | |
| 272 | +	$breadcrumb = str_replace('<div class="geodir-breadcrumb clearfix"><ul id="breadcrumbs">', '', $breadcrumb); | |
| 273 | +	$breadcrumb = str_replace('<li>', '', $breadcrumb); | |
| 274 | +	$breadcrumb = str_replace('</li>', '', $breadcrumb); | |
| 275 | +	$breadcrumb = str_replace('Home', '<span class="home"><i class="x-icon-home"></i></span>', $breadcrumb); | |
| 276 | +	$breadcrumb = str_replace('</ul></div>', '', $breadcrumb); | |
| 277 | + return $breadcrumb; | |
| 278 | 278 | } | 
| 279 | 279 | |
| 280 | 280 |  add_filter('geodir_breadcrumb_separator', 'geodir_x_breadcrumb_separator'); | 
| @@ -288,125 +288,125 @@ discard block | ||
| 288 | 288 | */ | 
| 289 | 289 | function geodir_x_breadcrumb_separator($separator) | 
| 290 | 290 |  { | 
| 291 | -    $separator = str_replace(' > ', ' <span class="delimiter"><i class="x-icon-angle-right"></i></span> ', $separator); | |
| 292 | - return $separator; | |
| 291 | +	$separator = str_replace(' > ', ' <span class="delimiter"><i class="x-icon-angle-right"></i></span> ', $separator); | |
| 292 | + return $separator; | |
| 293 | 293 | } | 
| 294 | 294 | |
| 295 | 295 |  if (!function_exists('x_breadcrumbs')) : | 
| 296 | - /** | |
| 297 | - * breadcrumbs. | |
| 298 | - * | |
| 299 | - * @since 1.0.0 | |
| 300 | - * @package GeoDirectory | |
| 301 | - */ | |
| 302 | - function x_breadcrumbs() | |
| 303 | -    { | |
| 304 | - | |
| 305 | -        if (x_get_option('x_breadcrumb_display', '1')) { | |
| 306 | - | |
| 307 | - // | |
| 308 | - // 1. Delimiter between crumbs. | |
| 309 | - // 2. Output text for the "Home" link. | |
| 310 | - // 3. Link to the home page. | |
| 311 | - // 4. Tag before the current crumb. | |
| 312 | - // 5. Tag after the current crumb. | |
| 313 | - // 6. Get page title. | |
| 314 | - // 7. Get blog title. | |
| 315 | - // 8. Get shop title. | |
| 316 | - // | |
| 317 | - | |
| 318 | - GLOBAL $post,$wp; | |
| 319 | - | |
| 320 | -            if (geodir_is_page('detail') || geodir_is_page('listing') || (isset($wp->query_vars['page_id']) && $wp->query_vars['page_id'] == geodir_location_page_id())) { | |
| 321 | - geodir_breadcrumb(); | |
| 322 | -            } else { | |
| 323 | - | |
| 324 | - $stack = x_get_stack(); | |
| 325 | - $delimiter = ' <span class="delimiter"><i class="x-icon-angle-right"></i></span> '; // 1 | |
| 326 | - $home_text = '<span class="home"><i class="x-icon-home"></i></span>'; // 2 | |
| 327 | - $home_link = home_url(); // 3 | |
| 328 | - $current_before = '<span class="current">'; // 4 | |
| 329 | - $current_after = '</span>'; // 5 | |
| 330 | - $page_title = get_the_title(); // 6 | |
| 331 | -                $blog_title = get_the_title(get_option('page_for_posts', true));                 // 7 | |
| 332 | -                $shop_title = get_theme_mod('x_' . $stack . '_shop_title');                        // 8 | |
| 333 | - | |
| 334 | -                if (function_exists('woocommerce_get_page_id')) { | |
| 335 | - $shop_url = x_get_shop_link(); | |
| 336 | - $shop_link = '<a href="' . $shop_url . '">' . $shop_title . '</a>'; | |
| 337 | - } | |
| 338 | - | |
| 339 | -                if (is_front_page()) { | |
| 340 | - echo '<div class="x-breadcrumbs">' . $current_before . $home_text . $current_after . '</div>'; | |
| 341 | -                } elseif (is_home()) { | |
| 342 | - echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter . $current_before . $blog_title . $current_after . '</div>'; | |
| 343 | -                } else { | |
| 344 | - echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter; | |
| 345 | -                    if (is_category()) { | |
| 346 | -                        $the_cat = get_category(get_query_var('cat'), false); | |
| 347 | - if ($the_cat->parent != 0) echo get_category_parents($the_cat->parent, TRUE, $delimiter); | |
| 348 | -                        echo $current_before . single_cat_title('', false) . $current_after; | |
| 349 | -                    } elseif (x_is_product_category()) { | |
| 350 | -                        echo $shop_link . $delimiter . $current_before . single_cat_title('', false) . $current_after; | |
| 351 | -                    } elseif (x_is_product_tag()) { | |
| 352 | -                        echo $shop_link . $delimiter . $current_before . single_tag_title('', false) . $current_after; | |
| 353 | -                    } elseif (is_search()) { | |
| 354 | -                        echo $current_before . __('Search Results for ', '__x__') . '“' . get_search_query() . '”' . $current_after; | |
| 355 | -                    } elseif (is_singular('post')) { | |
| 356 | -                        if (get_option('page_for_posts') == is_front_page()) { | |
| 357 | - echo $current_before . $page_title . $current_after; | |
| 358 | -                        } else { | |
| 359 | -                            echo '<a href="' . get_permalink(get_option('page_for_posts')) . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $blog_title . '</a>' . $delimiter . $current_before . $page_title . $current_after; | |
| 360 | - } | |
| 361 | -                    } elseif (x_is_portfolio()) { | |
| 362 | - echo $current_before . get_the_title() . $current_after; | |
| 363 | -                    } elseif (x_is_portfolio_item()) { | |
| 364 | - $link = x_get_parent_portfolio_link(); | |
| 365 | - $title = x_get_parent_portfolio_title(); | |
| 366 | -                        echo '<a href="' . $link . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after; | |
| 367 | -                    } elseif (x_is_product()) { | |
| 368 | - echo $shop_link . $delimiter . $current_before . $page_title . $current_after; | |
| 369 | -                    } elseif (is_page() && !$post->post_parent) { | |
| 370 | - echo $current_before . $page_title . $current_after; | |
| 371 | -                    } elseif (is_page() && $post->post_parent) { | |
| 372 | - $parent_id = $post->post_parent; | |
| 373 | - $breadcrumbs = array(); | |
| 374 | -                        while ($parent_id) { | |
| 375 | - $page = get_page($parent_id); | |
| 376 | - $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>'; | |
| 377 | - $parent_id = $page->post_parent; | |
| 378 | - } | |
| 379 | - $breadcrumbs = array_reverse($breadcrumbs); | |
| 380 | -                        for ($i = 0; $i < count($breadcrumbs); $i++) { | |
| 381 | - echo $breadcrumbs[$i]; | |
| 382 | - if ($i != count($breadcrumbs) - 1) echo $delimiter; | |
| 383 | - } | |
| 384 | - echo $delimiter . $current_before . $page_title . $current_after; | |
| 385 | -                    } elseif (is_tag()) { | |
| 386 | -                        echo $current_before . single_tag_title('', false) . $current_after; | |
| 387 | -                    } elseif (is_author()) { | |
| 388 | - GLOBAL $author; | |
| 389 | - $userdata = get_userdata($author); | |
| 390 | -                        echo $current_before . __('Posts by ', '__x__') . '“' . $userdata->display_name . $current_after . '”'; | |
| 391 | -                    } elseif (is_404()) { | |
| 392 | -                        echo $current_before . __('404 (Page Not Found)', '__x__') . $current_after; | |
| 393 | -                    } elseif (is_archive()) { | |
| 394 | -                        if (x_is_shop()) { | |
| 395 | - echo $current_before . $shop_title . $current_after; | |
| 396 | -                        } else { | |
| 397 | -                            echo $current_before . __('Archives ', '__x__') . $current_after; | |
| 398 | - } | |
| 399 | - } | |
| 400 | -                    if (get_query_var('paged')) { | |
| 401 | -                        echo ' <span class="current" style="white-space: nowrap;">(' . __('Page', '__x__') . ' ' . get_query_var('paged') . ')</span>'; | |
| 402 | - } | |
| 403 | - echo '</div>'; | |
| 404 | - } | |
| 405 | - | |
| 406 | - } | |
| 407 | - | |
| 408 | - } | |
| 409 | - } // ends my geodir check | |
| 296 | + /** | |
| 297 | + * breadcrumbs. | |
| 298 | + * | |
| 299 | + * @since 1.0.0 | |
| 300 | + * @package GeoDirectory | |
| 301 | + */ | |
| 302 | + function x_breadcrumbs() | |
| 303 | +	{ | |
| 304 | + | |
| 305 | +		if (x_get_option('x_breadcrumb_display', '1')) { | |
| 306 | + | |
| 307 | + // | |
| 308 | + // 1. Delimiter between crumbs. | |
| 309 | + // 2. Output text for the "Home" link. | |
| 310 | + // 3. Link to the home page. | |
| 311 | + // 4. Tag before the current crumb. | |
| 312 | + // 5. Tag after the current crumb. | |
| 313 | + // 6. Get page title. | |
| 314 | + // 7. Get blog title. | |
| 315 | + // 8. Get shop title. | |
| 316 | + // | |
| 317 | + | |
| 318 | + GLOBAL $post,$wp; | |
| 319 | + | |
| 320 | +			if (geodir_is_page('detail') || geodir_is_page('listing') || (isset($wp->query_vars['page_id']) && $wp->query_vars['page_id'] == geodir_location_page_id())) { | |
| 321 | + geodir_breadcrumb(); | |
| 322 | +			} else { | |
| 323 | + | |
| 324 | + $stack = x_get_stack(); | |
| 325 | + $delimiter = ' <span class="delimiter"><i class="x-icon-angle-right"></i></span> '; // 1 | |
| 326 | + $home_text = '<span class="home"><i class="x-icon-home"></i></span>'; // 2 | |
| 327 | + $home_link = home_url(); // 3 | |
| 328 | + $current_before = '<span class="current">'; // 4 | |
| 329 | + $current_after = '</span>'; // 5 | |
| 330 | + $page_title = get_the_title(); // 6 | |
| 331 | +				$blog_title = get_the_title(get_option('page_for_posts', true));                 // 7 | |
| 332 | +				$shop_title = get_theme_mod('x_' . $stack . '_shop_title');                        // 8 | |
| 333 | + | |
| 334 | +				if (function_exists('woocommerce_get_page_id')) { | |
| 335 | + $shop_url = x_get_shop_link(); | |
| 336 | + $shop_link = '<a href="' . $shop_url . '">' . $shop_title . '</a>'; | |
| 337 | + } | |
| 338 | + | |
| 339 | +				if (is_front_page()) { | |
| 340 | + echo '<div class="x-breadcrumbs">' . $current_before . $home_text . $current_after . '</div>'; | |
| 341 | +				} elseif (is_home()) { | |
| 342 | + echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter . $current_before . $blog_title . $current_after . '</div>'; | |
| 343 | +				} else { | |
| 344 | + echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter; | |
| 345 | +					if (is_category()) { | |
| 346 | +						$the_cat = get_category(get_query_var('cat'), false); | |
| 347 | + if ($the_cat->parent != 0) echo get_category_parents($the_cat->parent, TRUE, $delimiter); | |
| 348 | +						echo $current_before . single_cat_title('', false) . $current_after; | |
| 349 | +					} elseif (x_is_product_category()) { | |
| 350 | +						echo $shop_link . $delimiter . $current_before . single_cat_title('', false) . $current_after; | |
| 351 | +					} elseif (x_is_product_tag()) { | |
| 352 | +						echo $shop_link . $delimiter . $current_before . single_tag_title('', false) . $current_after; | |
| 353 | +					} elseif (is_search()) { | |
| 354 | +						echo $current_before . __('Search Results for ', '__x__') . '“' . get_search_query() . '”' . $current_after; | |
| 355 | +					} elseif (is_singular('post')) { | |
| 356 | +						if (get_option('page_for_posts') == is_front_page()) { | |
| 357 | + echo $current_before . $page_title . $current_after; | |
| 358 | +						} else { | |
| 359 | +							echo '<a href="' . get_permalink(get_option('page_for_posts')) . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $blog_title . '</a>' . $delimiter . $current_before . $page_title . $current_after; | |
| 360 | + } | |
| 361 | +					} elseif (x_is_portfolio()) { | |
| 362 | + echo $current_before . get_the_title() . $current_after; | |
| 363 | +					} elseif (x_is_portfolio_item()) { | |
| 364 | + $link = x_get_parent_portfolio_link(); | |
| 365 | + $title = x_get_parent_portfolio_title(); | |
| 366 | +						echo '<a href="' . $link . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after; | |
| 367 | +					} elseif (x_is_product()) { | |
| 368 | + echo $shop_link . $delimiter . $current_before . $page_title . $current_after; | |
| 369 | +					} elseif (is_page() && !$post->post_parent) { | |
| 370 | + echo $current_before . $page_title . $current_after; | |
| 371 | +					} elseif (is_page() && $post->post_parent) { | |
| 372 | + $parent_id = $post->post_parent; | |
| 373 | + $breadcrumbs = array(); | |
| 374 | +						while ($parent_id) { | |
| 375 | + $page = get_page($parent_id); | |
| 376 | + $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>'; | |
| 377 | + $parent_id = $page->post_parent; | |
| 378 | + } | |
| 379 | + $breadcrumbs = array_reverse($breadcrumbs); | |
| 380 | +						for ($i = 0; $i < count($breadcrumbs); $i++) { | |
| 381 | + echo $breadcrumbs[$i]; | |
| 382 | + if ($i != count($breadcrumbs) - 1) echo $delimiter; | |
| 383 | + } | |
| 384 | + echo $delimiter . $current_before . $page_title . $current_after; | |
| 385 | +					} elseif (is_tag()) { | |
| 386 | +						echo $current_before . single_tag_title('', false) . $current_after; | |
| 387 | +					} elseif (is_author()) { | |
| 388 | + GLOBAL $author; | |
| 389 | + $userdata = get_userdata($author); | |
| 390 | +						echo $current_before . __('Posts by ', '__x__') . '“' . $userdata->display_name . $current_after . '”'; | |
| 391 | +					} elseif (is_404()) { | |
| 392 | +						echo $current_before . __('404 (Page Not Found)', '__x__') . $current_after; | |
| 393 | +					} elseif (is_archive()) { | |
| 394 | +						if (x_is_shop()) { | |
| 395 | + echo $current_before . $shop_title . $current_after; | |
| 396 | +						} else { | |
| 397 | +							echo $current_before . __('Archives ', '__x__') . $current_after; | |
| 398 | + } | |
| 399 | + } | |
| 400 | +					if (get_query_var('paged')) { | |
| 401 | +						echo ' <span class="current" style="white-space: nowrap;">(' . __('Page', '__x__') . ' ' . get_query_var('paged') . ')</span>'; | |
| 402 | + } | |
| 403 | + echo '</div>'; | |
| 404 | + } | |
| 405 | + | |
| 406 | + } | |
| 407 | + | |
| 408 | + } | |
| 409 | + } // ends my geodir check | |
| 410 | 410 | endif; | 
| 411 | 411 | |
| 412 | 412 | |
| @@ -421,8 +421,8 @@ discard block | ||
| 421 | 421 | */ | 
| 422 | 422 | function geodir_x_location_switcher_menu_li_class($class) | 
| 423 | 423 |  { | 
| 424 | - $class .= " menu-item-has-children "; | |
| 425 | - return $class; | |
| 424 | + $class .= " menu-item-has-children "; | |
| 425 | + return $class; | |
| 426 | 426 | } | 
| 427 | 427 | |
| 428 | 428 |  add_filter('geodir_sub_menu_li_class', 'geodir_x_sub_menu_li_class', 10, 1); | 
| @@ -436,6 +436,6 @@ discard block | ||
| 436 | 436 | */ | 
| 437 | 437 | function geodir_x_sub_menu_li_class($class) | 
| 438 | 438 |  { | 
| 439 | - $class .= " menu-item-has-children "; | |
| 440 | - return $class; | |
| 439 | + $class .= " menu-item-has-children "; | |
| 440 | + return $class; | |
| 441 | 441 | } | 
| @@ -183,7 +183,7 @@ discard block | ||
| 183 | 183 | echo '<div class="x-main full" role="main">'; | 
| 184 | 184 |      } elseif ($stack == 'ethos') { | 
| 185 | 185 | echo '<div class="x-container-fluid x-container max width main"><div class="offset cf">'; | 
| 186 | -    }else{ | |
| 186 | +    } else { | |
| 187 | 187 | echo '<div class="x-container max width offset">'; | 
| 188 | 188 | } | 
| 189 | 189 | } | 
| @@ -217,7 +217,7 @@ discard block | ||
| 217 | 217 |  { | 
| 218 | 218 | $content_class = ' entry-wrap '; | 
| 219 | 219 | |
| 220 | - echo '<div class="x-main left ' . $class . $content_class . ' " role="main">'; | |
| 220 | + echo '<div class="x-main left '.$class.$content_class.' " role="main">'; | |
| 221 | 221 | } | 
| 222 | 222 | |
| 223 | 223 | /** | 
| @@ -243,7 +243,7 @@ discard block | ||
| 243 | 243 | */ | 
| 244 | 244 | function geodir_x_action_sidebar_right_open($type = '', $id = '', $class = '', $itemtype = '') | 
| 245 | 245 |  { | 
| 246 | - echo '<aside class="x-sidebar right" role="complementary" itemscope itemtype="' . $itemtype . '">'; | |
| 246 | + echo '<aside class="x-sidebar right" role="complementary" itemscope itemtype="'.$itemtype.'">'; | |
| 247 | 247 | } | 
| 248 | 248 | |
| 249 | 249 | /** | 
| @@ -315,7 +315,7 @@ discard block | ||
| 315 | 315 | // 8. Get shop title. | 
| 316 | 316 | // | 
| 317 | 317 | |
| 318 | - GLOBAL $post,$wp; | |
| 318 | + GLOBAL $post, $wp; | |
| 319 | 319 | |
| 320 | 320 |              if (geodir_is_page('detail') || geodir_is_page('listing') || (isset($wp->query_vars['page_id']) && $wp->query_vars['page_id'] == geodir_location_page_id())) { | 
| 321 | 321 | geodir_breadcrumb(); | 
| @@ -323,57 +323,57 @@ discard block | ||
| 323 | 323 | |
| 324 | 324 | $stack = x_get_stack(); | 
| 325 | 325 | $delimiter = ' <span class="delimiter"><i class="x-icon-angle-right"></i></span> '; // 1 | 
| 326 | - $home_text = '<span class="home"><i class="x-icon-home"></i></span>'; // 2 | |
| 327 | - $home_link = home_url(); // 3 | |
| 328 | - $current_before = '<span class="current">'; // 4 | |
| 329 | - $current_after = '</span>'; // 5 | |
| 330 | - $page_title = get_the_title(); // 6 | |
| 331 | -                $blog_title = get_the_title(get_option('page_for_posts', true));                 // 7 | |
| 332 | -                $shop_title = get_theme_mod('x_' . $stack . '_shop_title');                        // 8 | |
| 326 | + $home_text = '<span class="home"><i class="x-icon-home"></i></span>'; // 2 | |
| 327 | + $home_link = home_url(); // 3 | |
| 328 | + $current_before = '<span class="current">'; // 4 | |
| 329 | + $current_after = '</span>'; // 5 | |
| 330 | + $page_title = get_the_title(); // 6 | |
| 331 | +                $blog_title = get_the_title(get_option('page_for_posts', true)); // 7 | |
| 332 | +                $shop_title = get_theme_mod('x_'.$stack.'_shop_title'); // 8 | |
| 333 | 333 | |
| 334 | 334 |                  if (function_exists('woocommerce_get_page_id')) { | 
| 335 | 335 | $shop_url = x_get_shop_link(); | 
| 336 | - $shop_link = '<a href="' . $shop_url . '">' . $shop_title . '</a>'; | |
| 336 | + $shop_link = '<a href="'.$shop_url.'">'.$shop_title.'</a>'; | |
| 337 | 337 | } | 
| 338 | 338 | |
| 339 | 339 |                  if (is_front_page()) { | 
| 340 | - echo '<div class="x-breadcrumbs">' . $current_before . $home_text . $current_after . '</div>'; | |
| 340 | + echo '<div class="x-breadcrumbs">'.$current_before.$home_text.$current_after.'</div>'; | |
| 341 | 341 |                  } elseif (is_home()) { | 
| 342 | - echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter . $current_before . $blog_title . $current_after . '</div>'; | |
| 342 | + echo '<div class="x-breadcrumbs"><a href="'.$home_link.'">'.$home_text.'</a>'.$delimiter.$current_before.$blog_title.$current_after.'</div>'; | |
| 343 | 343 |                  } else { | 
| 344 | - echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter; | |
| 344 | + echo '<div class="x-breadcrumbs"><a href="'.$home_link.'">'.$home_text.'</a>'.$delimiter; | |
| 345 | 345 |                      if (is_category()) { | 
| 346 | 346 |                          $the_cat = get_category(get_query_var('cat'), false); | 
| 347 | 347 | if ($the_cat->parent != 0) echo get_category_parents($the_cat->parent, TRUE, $delimiter); | 
| 348 | -                        echo $current_before . single_cat_title('', false) . $current_after; | |
| 348 | +                        echo $current_before.single_cat_title('', false).$current_after; | |
| 349 | 349 |                      } elseif (x_is_product_category()) { | 
| 350 | -                        echo $shop_link . $delimiter . $current_before . single_cat_title('', false) . $current_after; | |
| 350 | +                        echo $shop_link.$delimiter.$current_before.single_cat_title('', false).$current_after; | |
| 351 | 351 |                      } elseif (x_is_product_tag()) { | 
| 352 | -                        echo $shop_link . $delimiter . $current_before . single_tag_title('', false) . $current_after; | |
| 352 | +                        echo $shop_link.$delimiter.$current_before.single_tag_title('', false).$current_after; | |
| 353 | 353 |                      } elseif (is_search()) { | 
| 354 | -                        echo $current_before . __('Search Results for ', '__x__') . '“' . get_search_query() . '”' . $current_after; | |
| 354 | +                        echo $current_before.__('Search Results for ', '__x__').'“'.get_search_query().'”'.$current_after; | |
| 355 | 355 |                      } elseif (is_singular('post')) { | 
| 356 | 356 |                          if (get_option('page_for_posts') == is_front_page()) { | 
| 357 | - echo $current_before . $page_title . $current_after; | |
| 357 | + echo $current_before.$page_title.$current_after; | |
| 358 | 358 |                          } else { | 
| 359 | -                            echo '<a href="' . get_permalink(get_option('page_for_posts')) . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $blog_title . '</a>' . $delimiter . $current_before . $page_title . $current_after; | |
| 359 | +                            echo '<a href="'.get_permalink(get_option('page_for_posts')).'" title="'.esc_attr(__('See All Posts', '__x__')).'">'.$blog_title.'</a>'.$delimiter.$current_before.$page_title.$current_after; | |
| 360 | 360 | } | 
| 361 | 361 |                      } elseif (x_is_portfolio()) { | 
| 362 | - echo $current_before . get_the_title() . $current_after; | |
| 362 | + echo $current_before.get_the_title().$current_after; | |
| 363 | 363 |                      } elseif (x_is_portfolio_item()) { | 
| 364 | 364 | $link = x_get_parent_portfolio_link(); | 
| 365 | 365 | $title = x_get_parent_portfolio_title(); | 
| 366 | -                        echo '<a href="' . $link . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after; | |
| 366 | +                        echo '<a href="'.$link.'" title="'.esc_attr(__('See All Posts', '__x__')).'">'.$title.'</a>'.$delimiter.$current_before.$page_title.$current_after; | |
| 367 | 367 |                      } elseif (x_is_product()) { | 
| 368 | - echo $shop_link . $delimiter . $current_before . $page_title . $current_after; | |
| 368 | + echo $shop_link.$delimiter.$current_before.$page_title.$current_after; | |
| 369 | 369 |                      } elseif (is_page() && !$post->post_parent) { | 
| 370 | - echo $current_before . $page_title . $current_after; | |
| 370 | + echo $current_before.$page_title.$current_after; | |
| 371 | 371 |                      } elseif (is_page() && $post->post_parent) { | 
| 372 | 372 | $parent_id = $post->post_parent; | 
| 373 | 373 | $breadcrumbs = array(); | 
| 374 | 374 |                          while ($parent_id) { | 
| 375 | 375 | $page = get_page($parent_id); | 
| 376 | - $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>'; | |
| 376 | + $breadcrumbs[] = '<a href="'.get_permalink($page->ID).'">'.get_the_title($page->ID).'</a>'; | |
| 377 | 377 | $parent_id = $page->post_parent; | 
| 378 | 378 | } | 
| 379 | 379 | $breadcrumbs = array_reverse($breadcrumbs); | 
| @@ -381,24 +381,24 @@ discard block | ||
| 381 | 381 | echo $breadcrumbs[$i]; | 
| 382 | 382 | if ($i != count($breadcrumbs) - 1) echo $delimiter; | 
| 383 | 383 | } | 
| 384 | - echo $delimiter . $current_before . $page_title . $current_after; | |
| 384 | + echo $delimiter.$current_before.$page_title.$current_after; | |
| 385 | 385 |                      } elseif (is_tag()) { | 
| 386 | -                        echo $current_before . single_tag_title('', false) . $current_after; | |
| 386 | +                        echo $current_before.single_tag_title('', false).$current_after; | |
| 387 | 387 |                      } elseif (is_author()) { | 
| 388 | 388 | GLOBAL $author; | 
| 389 | 389 | $userdata = get_userdata($author); | 
| 390 | -                        echo $current_before . __('Posts by ', '__x__') . '“' . $userdata->display_name . $current_after . '”'; | |
| 390 | +                        echo $current_before.__('Posts by ', '__x__').'“'.$userdata->display_name.$current_after.'”'; | |
| 391 | 391 |                      } elseif (is_404()) { | 
| 392 | -                        echo $current_before . __('404 (Page Not Found)', '__x__') . $current_after; | |
| 392 | +                        echo $current_before.__('404 (Page Not Found)', '__x__').$current_after; | |
| 393 | 393 |                      } elseif (is_archive()) { | 
| 394 | 394 |                          if (x_is_shop()) { | 
| 395 | - echo $current_before . $shop_title . $current_after; | |
| 395 | + echo $current_before.$shop_title.$current_after; | |
| 396 | 396 |                          } else { | 
| 397 | -                            echo $current_before . __('Archives ', '__x__') . $current_after; | |
| 397 | +                            echo $current_before.__('Archives ', '__x__').$current_after; | |
| 398 | 398 | } | 
| 399 | 399 | } | 
| 400 | 400 |                      if (get_query_var('paged')) { | 
| 401 | -                        echo ' <span class="current" style="white-space: nowrap;">(' . __('Page', '__x__') . ' ' . get_query_var('paged') . ')</span>'; | |
| 401 | +                        echo ' <span class="current" style="white-space: nowrap;">('.__('Page', '__x__').' '.get_query_var('paged').')</span>'; | |
| 402 | 402 | } | 
| 403 | 403 | echo '</div>'; | 
| 404 | 404 | } | 
| @@ -183,7 +183,7 @@ discard block | ||
| 183 | 183 | echo '<div class="x-main full" role="main">'; | 
| 184 | 184 |      } elseif ($stack == 'ethos') { | 
| 185 | 185 | echo '<div class="x-container-fluid x-container max width main"><div class="offset cf">'; | 
| 186 | -    }else{ | |
| 186 | +    } else{ | |
| 187 | 187 | echo '<div class="x-container max width offset">'; | 
| 188 | 188 | } | 
| 189 | 189 | } | 
| @@ -344,7 +344,9 @@ discard block | ||
| 344 | 344 | echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter; | 
| 345 | 345 |                      if (is_category()) { | 
| 346 | 346 |                          $the_cat = get_category(get_query_var('cat'), false); | 
| 347 | - if ($the_cat->parent != 0) echo get_category_parents($the_cat->parent, TRUE, $delimiter); | |
| 347 | +                        if ($the_cat->parent != 0) { | |
| 348 | + echo get_category_parents($the_cat->parent, TRUE, $delimiter); | |
| 349 | + } | |
| 348 | 350 |                          echo $current_before . single_cat_title('', false) . $current_after; | 
| 349 | 351 |                      } elseif (x_is_product_category()) { | 
| 350 | 352 |                          echo $shop_link . $delimiter . $current_before . single_cat_title('', false) . $current_after; | 
| @@ -379,7 +381,9 @@ discard block | ||
| 379 | 381 | $breadcrumbs = array_reverse($breadcrumbs); | 
| 380 | 382 |                          for ($i = 0; $i < count($breadcrumbs); $i++) { | 
| 381 | 383 | echo $breadcrumbs[$i]; | 
| 382 | - if ($i != count($breadcrumbs) - 1) echo $delimiter; | |
| 384 | +                            if ($i != count($breadcrumbs) - 1) { | |
| 385 | + echo $delimiter; | |
| 386 | + } | |
| 383 | 387 | } | 
| 384 | 388 | echo $delimiter . $current_before . $page_title . $current_after; | 
| 385 | 389 |                      } elseif (is_tag()) { |