@@ -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 | } |