function x_get_content_layout()
 {
     $content_layout = x_get_option('x_layout_content', 'content-sidebar');
     if ($content_layout != 'full-width') {
         if (is_home()) {
             $opt = x_get_option('x_blog_layout', 'sidebar');
             $layout = $opt == 'sidebar' ? $content_layout : $opt;
         } elseif (is_singular('post')) {
             $meta = get_post_meta(get_the_ID(), '_x_post_layout', true);
             $layout = $meta == 'on' ? 'full-width' : $content_layout;
         } elseif (x_is_portfolio_item()) {
             $layout = 'full-width';
         } elseif (x_is_portfolio()) {
             $meta = get_post_meta(get_the_ID(), '_x_portfolio_layout', true);
             $layout = $meta == 'sidebar' ? $content_layout : $meta;
         } elseif (is_page_template('template-layout-content-sidebar.php')) {
             $layout = 'content-sidebar';
         } elseif (is_page_template('template-layout-sidebar-content.php')) {
             $layout = 'sidebar-content';
         } elseif (is_page_template('template-layout-full-width.php')) {
             $layout = 'full-width';
         } elseif (is_archive()) {
             if (x_is_shop() || x_is_product_category() || x_is_product_tag()) {
                 $opt = x_get_option('x_woocommerce_shop_layout_content', 'sidebar');
                 $layout = $opt == 'sidebar' ? $content_layout : $opt;
             } else {
                 $opt = x_get_option('x_archive_layout', 'sidebar');
                 $layout = $opt == 'sidebar' ? $content_layout : $opt;
             }
         } elseif (x_is_product()) {
             $layout = 'full-width';
         } elseif (x_is_bbpress()) {
             $opt = x_get_option('x_bbpress_layout_content', 'sidebar');
             $layout = $opt == 'sidebar' ? $content_layout : $opt;
         } elseif (x_is_buddypress()) {
             $opt = x_get_option('x_buddypress_layout_content', 'sidebar');
             $layout = $opt == 'sidebar' ? $content_layout : $opt;
         } elseif (is_404()) {
             $layout = 'full-width';
         } else {
             $layout = $content_layout;
         }
     } else {
         $layout = $content_layout;
     }
     return $layout;
 }
Exemplo n.º 2
0
 function x_get_content_layout()
 {
     $stack = x_get_stack();
     $mod = get_theme_mod('x_' . $stack . '_layout_content');
     $content_layout = $mod == '' ? 'content-sidebar' : $mod;
     if ($content_layout != 'full-width') {
         if (is_home()) {
             $mod = get_theme_mod('x_blog_layout');
             $layout = $mod == 'sidebar' ? $content_layout : $mod;
         } elseif (is_singular('post')) {
             $meta = get_post_meta(get_the_ID(), '_x_post_layout', true);
             $layout = $meta == 'on' ? 'full-width' : $content_layout;
         } elseif (x_is_portfolio_item()) {
             $layout = 'full-width';
         } elseif (x_is_product()) {
             $layout = 'full-width';
         } elseif (x_is_portfolio()) {
             $meta = get_post_meta(get_the_ID(), '_x_portfolio_layout', true);
             $layout = $meta == 'sidebar' ? $content_layout : $meta;
         } elseif (is_page_template('template-layout-content-sidebar.php')) {
             $layout = 'content-sidebar';
         } elseif (is_page_template('template-layout-sidebar-content.php')) {
             $layout = 'sidebar-content';
         } elseif (is_page_template('template-layout-full-width.php')) {
             $layout = 'full-width';
         } elseif (is_archive()) {
             if (x_is_shop()) {
                 $mod = get_theme_mod('x_woocommerce_shop_layout_content');
                 $layout = $mod == 'sidebar' ? $content_layout : $mod;
             } else {
                 $mod = get_theme_mod('x_archive_layout');
                 $layout = $mod == 'sidebar' ? $content_layout : $mod;
             }
         } elseif (x_is_product()) {
             $layout = 'full-width';
         } elseif (is_404()) {
             $layout = 'full-width';
         } else {
             $layout = $content_layout;
         }
     } else {
         $layout = $content_layout;
     }
     return $layout;
 }
Exemplo n.º 3
0
    function x_icon_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
                // 1
            // 1
            case 'trackback':
                // 1
                ?>
    <li <?php 
                comment_class();
                ?>
 id="comment-<?php 
                comment_ID();
                ?>
">
      <p><?php 
                _e('Pingback:', '__x__');
                ?>
 <?php 
                comment_author_link();
                ?>
 <?php 
                edit_comment_link(__('(Edit)', '__x__'), '<span class="edit-link">', '</span>');
                ?>
</p>
    <?php 
                break;
            default:
                // 2
                global $post;
                if (X_WOOCOMMERCE_IS_ACTIVE) {
                    $rating = esc_attr(get_comment_meta($GLOBALS['comment']->comment_ID, 'rating', true));
                }
                if (x_is_product()) {
                    $comment_time = sprintf(__('%1$s', '__x__'), get_comment_date());
                } else {
                    $comment_time = sprintf(__('%1$s at %2$s', '__x__'), get_comment_date(), get_comment_time());
                }
                ?>
    <li id="li-comment-<?php 
                comment_ID();
                ?>
" <?php 
                comment_class();
                ?>
>
      <?php 
                $comment_reply = !x_is_product() ? '<div class="x-reply">' . get_comment_reply_link(array_merge($args, array('reply_text' => __('Reply<span class="comment-reply-link-after"><i class="x-icon-reply" data-x-icon="&#xf112;"></i></span>', '__x__'), 'depth' => $depth, 'max_depth' => $args['max_depth']))) . '</div>' : '';
                ?>
      <?php 
                printf('<div class="x-comment-img">%1$s %2$s %3$s</div>', '<span class="avatar-wrap cf">' . get_avatar($comment, 120) . '</span>', $comment->user_id === $post->post_author ? '<span class="bypostauthor">' . __('Post<br>Author', '__x__') . '</span>' : '', $comment_reply);
                ?>
      <article id="comment-<?php 
                comment_ID();
                ?>
" class="comment">
        <header class="x-comment-header">
          <?php 
                printf('<cite class="x-comment-author">%1$s</cite>', get_comment_author_link());
                if (x_is_product() && get_option('woocommerce_enable_review_rating') == 'yes') {
                    ?>
 
            <div class="star-rating-container">
              <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="star-rating" title="<?php 
                    echo sprintf(__('Rated %d out of 5', '__x__'), $rating);
                    ?>
">
                <span style="width:<?php 
                    echo intval(get_comment_meta($GLOBALS['comment']->comment_ID, 'rating', true)) / 5 * 100;
                    ?>
%"><strong itemprop="ratingValue"><?php 
                    echo intval(get_comment_meta($GLOBALS['comment']->comment_ID, 'rating', true));
                    ?>
</strong> <?php 
                    _e('out of 5', '__x__');
                    ?>
</span>
              </div>
            </div>
          <?php 
                }
                printf('<div><a href="%1$s" class="x-comment-time"><time datetime="%2$s">%3$s</time></a></div>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), $comment_time);
                edit_comment_link(__('<i class="x-icon-edit" data-x-icon="&#xf044;"></i> Edit', '__x__'));
                ?>
        </header>
        <?php 
                if ('0' == $comment->comment_approved) {
                    ?>
          <p class="x-comment-awaiting-moderation"><?php 
                    _e('Your comment is awaiting moderation.', '__x__');
                    ?>
</p>
        <?php 
                }
                ?>
        <section class="x-comment-content">
          <?php 
                comment_text();
                ?>
        </section>
      </article>
    <?php 
                break;
        }
    }
Exemplo n.º 4
0
// =============================================================================
?>

<?php 
get_header();
?>

  <div class="x-container max width main">
    <div class="offset cf">
      <div class="<?php 
x_main_content_class();
?>
" role="main">

        <?php 
if (x_is_product()) {
    ?>
          <?php 
    x_ethos_entry_top_navigation();
    ?>
        <?php 
}
?>

        <?php 
woocommerce_content();
?>

      </div>

      <?php 
Exemplo n.º 5
0
    ?>
  <?php 
    if (is_page() && $disable_page_title == 'on') {
        ?>

  <?php 
    } else {
        ?>

    <header class="x-header-landmark">
      <div class="x-container max width">
        <div class="x-landmark-breadcrumbs-wrap">
          <div class="x-landmark">

          <?php 
        if (x_is_shop() || x_is_product()) {
            ?>

            <h1 class="h-landmark"><span><?php 
            echo x_get_option('x_renew_shop_title');
            ?>
</span></h1>

          <?php 
        } elseif (x_is_bbpress()) {
            ?>

            <h1 class="h-landmark"><span><?php 
            echo get_the_title();
            ?>
</span></h1>
Exemplo n.º 6
0
 function x_breadcrumbs()
 {
     if (x_get_option('x_breadcrumb_display')) {
         global $post;
         $is_ltr = !is_rtl();
         $stack = x_get_stack();
         $delimiter = x_get_breadcrumb_delimiter();
         $home_text = x_get_breadcrumb_home_text();
         $home_link = home_url();
         $current_before = x_get_breadcrumb_current_before();
         $current_after = x_get_breadcrumb_current_after();
         $page_title = get_the_title();
         $blog_title = get_the_title(get_option('page_for_posts', true));
         if (!is_404()) {
             $post_parent = $post->post_parent;
         } else {
             $post_parent = '';
         }
         if (X_WOOCOMMERCE_IS_ACTIVE) {
             $shop_url = x_get_shop_link();
             $shop_title = x_get_option('x_' . $stack . '_shop_title');
             $shop_link = '<a href="' . $shop_url . '">' . $shop_title . '</a>';
         }
         echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter;
         if (is_home()) {
             echo $current_before . $blog_title . $current_after;
         } elseif (is_category()) {
             $the_cat = get_category(get_query_var('cat'), false);
             if ($the_cat->parent != 0) {
                 echo get_category_parents($the_cat->parent, TRUE, $delimiter);
             }
             echo $current_before . single_cat_title('', false) . $current_after;
         } elseif (x_is_product_category()) {
             if ($is_ltr) {
                 echo $shop_link . $delimiter . $current_before . single_cat_title('', false) . $current_after;
             } else {
                 echo $current_before . single_cat_title('', false) . $current_after . $delimiter . $shop_link;
             }
         } elseif (x_is_product_tag()) {
             if ($is_ltr) {
                 echo $shop_link . $delimiter . $current_before . single_tag_title('', false) . $current_after;
             } else {
                 echo $current_before . single_tag_title('', false) . $current_after . $delimiter . $shop_link;
             }
         } elseif (is_search()) {
             echo $current_before . __('Search Results for ', '__x__') . '&#8220;' . get_search_query() . '&#8221;' . $current_after;
         } elseif (is_singular('post')) {
             if (get_option('page_for_posts') == is_front_page()) {
                 echo $current_before . $page_title . $current_after;
             } else {
                 if ($is_ltr) {
                     echo '<a href="' . get_permalink(get_option('page_for_posts')) . '">' . $blog_title . '</a>' . $delimiter . $current_before . $page_title . $current_after;
                 } else {
                     echo $current_before . $page_title . $current_after . $delimiter . '<a href="' . get_permalink(get_option('page_for_posts')) . '">' . $blog_title . '</a>';
                 }
             }
         } elseif (x_is_portfolio()) {
             echo $current_before . get_the_title() . $current_after;
         } elseif (x_is_portfolio_item()) {
             $link = x_get_parent_portfolio_link();
             $title = x_get_parent_portfolio_title();
             if ($is_ltr) {
                 echo '<a href="' . $link . '">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after;
             } else {
                 echo $current_before . $page_title . $current_after . $delimiter . '<a href="' . $link . '">' . $title . '</a>';
             }
         } elseif (x_is_product()) {
             if ($is_ltr) {
                 echo $shop_link . $delimiter . $current_before . $page_title . $current_after;
             } else {
                 echo $current_before . $page_title . $current_after . $delimiter . $shop_link;
             }
         } elseif (x_is_buddypress()) {
             if (bp_is_group()) {
                 echo '<a href="' . bp_get_groups_directory_permalink() . '">' . x_get_option('x_buddypress_groups_title') . '</a>' . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;
             } elseif (bp_is_user()) {
                 echo '<a href="' . bp_get_members_directory_permalink() . '">' . x_get_option('x_buddypress_members_title') . '</a>' . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;
             } else {
                 echo $current_before . x_buddypress_get_the_title() . $current_after;
             }
         } elseif (x_is_bbpress()) {
             remove_filter('bbp_no_breadcrumb', '__return_true');
             if (bbp_is_forum_archive()) {
                 echo $current_before . bbp_get_forum_archive_title() . $current_after;
             } else {
                 echo bbp_get_breadcrumb();
             }
             add_filter('bbp_no_breadcrumb', '__return_true');
         } elseif (is_page() && !$post_parent) {
             echo $current_before . $page_title . $current_after;
         } elseif (is_page() && $post_parent) {
             $parent_id = $post_parent;
             $breadcrumbs = array();
             if (is_rtl()) {
                 echo $current_before . $page_title . $current_after . $delimiter;
             }
             while ($parent_id) {
                 $page = get_page($parent_id);
                 $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';
                 $parent_id = $page->post_parent;
             }
             if ($is_ltr) {
                 $breadcrumbs = array_reverse($breadcrumbs);
             }
             for ($i = 0; $i < count($breadcrumbs); $i++) {
                 echo $breadcrumbs[$i];
                 if ($i != count($breadcrumbs) - 1) {
                     echo $delimiter;
                 }
             }
             if ($is_ltr) {
                 echo $delimiter . $current_before . $page_title . $current_after;
             }
         } elseif (is_tag()) {
             echo $current_before . single_tag_title('', false) . $current_after;
         } elseif (is_author()) {
             global $author;
             $userdata = get_userdata($author);
             echo $current_before . __('Posts by ', '__x__') . '&#8220;' . $userdata->display_name . $current_after . '&#8221;';
         } elseif (is_404()) {
             echo $current_before . __('404 (Page Not Found)', '__x__') . $current_after;
         } elseif (is_archive()) {
             if (x_is_shop()) {
                 echo $current_before . $shop_title . $current_after;
             } else {
                 echo $current_before . __('Archives ', '__x__') . $current_after;
             }
         }
         echo '</div>';
     }
 }
Exemplo n.º 7
0
 function x_breadcrumbs()
 {
     if (get_theme_mod('x_breadcrumb_display')) {
         global $post;
         $is_ltr = !is_rtl();
         $stack = x_get_stack();
         $delimiter = ' <span class="delimiter"><i class="x-icon-angle-' . ($is_ltr ? 'right' : 'left') . '"></i></span> ';
         $home_text = '<span class="home"><i class="x-icon-home"></i></span>';
         $home_link = home_url();
         $current_before = '<span class="current">';
         $current_after = '</span>';
         $page_title = get_the_title();
         $blog_title = get_the_title(get_option('page_for_posts', true));
         $post_parent = $post->post_parent;
         if (function_exists('woocommerce_get_page_id')) {
             $shop_url = x_get_shop_link();
             $shop_title = get_theme_mod('x_' . $stack . '_shop_title');
             $shop_link = '<a href="' . $shop_url . '">' . $shop_title . '</a>';
         }
         echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter;
         if (is_home()) {
             echo $current_before . $blog_title . $current_after;
         } elseif (is_category()) {
             $the_cat = get_category(get_query_var('cat'), false);
             if ($the_cat->parent != 0) {
                 echo get_category_parents($the_cat->parent, TRUE, $delimiter);
             }
             echo $current_before . single_cat_title('', false) . $current_after;
         } elseif (x_is_product_category()) {
             if ($is_ltr) {
                 echo $shop_link . $delimiter . $current_before . single_cat_title('', false) . $current_after;
             } else {
                 echo $current_before . single_cat_title('', false) . $current_after . $delimiter . $shop_link;
             }
         } elseif (x_is_product_tag()) {
             if ($is_ltr) {
                 echo $shop_link . $delimiter . $current_before . single_tag_title('', false) . $current_after;
             } else {
                 echo $current_before . single_tag_title('', false) . $current_after . $delimiter . $shop_link;
             }
         } elseif (is_search()) {
             echo $current_before . __('Search Results for ', '__x__') . '&#8220;' . get_search_query() . '&#8221;' . $current_after;
         } elseif (is_singular('post')) {
             if (get_option('page_for_posts') == is_front_page()) {
                 echo $current_before . $page_title . $current_after;
             } else {
                 if ($is_ltr) {
                     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;
                 } else {
                     echo $current_before . $page_title . $current_after . $delimiter . '<a href="' . get_permalink(get_option('page_for_posts')) . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $blog_title . '</a>';
                 }
             }
         } elseif (x_is_portfolio()) {
             echo $current_before . get_the_title() . $current_after;
         } elseif (x_is_portfolio_item()) {
             $link = x_get_parent_portfolio_link();
             $title = x_get_parent_portfolio_title();
             if ($is_ltr) {
                 echo '<a href="' . $link . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after;
             } else {
                 echo $current_before . $page_title . $current_after . $delimiter . '<a href="' . $link . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $title . '</a>';
             }
         } elseif (x_is_product()) {
             if ($is_ltr) {
                 echo $shop_link . $delimiter . $current_before . $page_title . $current_after;
             } else {
                 echo $current_before . $page_title . $current_after . $delimiter . $shop_link;
             }
         } elseif (is_page() && !$post_parent) {
             echo $current_before . $page_title . $current_after;
         } elseif (is_page() && $post_parent) {
             $parent_id = $post_parent;
             $breadcrumbs = array();
             if (is_rtl()) {
                 echo $current_before . $page_title . $current_after . $delimiter;
             }
             while ($parent_id) {
                 $page = get_page($parent_id);
                 $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';
                 $parent_id = $page->post_parent;
             }
             if ($is_ltr) {
                 $breadcrumbs = array_reverse($breadcrumbs);
             }
             for ($i = 0; $i < count($breadcrumbs); $i++) {
                 echo $breadcrumbs[$i];
                 if ($i != count($breadcrumbs) - 1) {
                     echo $delimiter;
                 }
             }
             if ($is_ltr) {
                 echo $delimiter . $current_before . $page_title . $current_after;
             }
         } elseif (is_tag()) {
             echo $current_before . single_tag_title('', false) . $current_after;
         } elseif (is_author()) {
             global $author;
             $userdata = get_userdata($author);
             echo $current_before . __('Posts by ', '__x__') . '&#8220;' . $userdata->display_name . $current_after . '&#8221;';
         } elseif (is_404()) {
             echo $current_before . __('404 (Page Not Found)', '__x__') . $current_after;
         } elseif (is_archive()) {
             if (x_is_shop()) {
                 echo $current_before . $shop_title . $current_after;
             } else {
                 echo $current_before . __('Archives ', '__x__') . $current_after;
             }
         }
         echo '</div>';
     }
 }
Exemplo n.º 8
0
 /**
  * breadcrumbs.
  *
  * @since 1.0.0
  * @package GeoDirectory
  */
 function x_breadcrumbs()
 {
     if (x_get_option('x_breadcrumb_display', '1')) {
         //
         // 1. Delimiter between crumbs.
         // 2. Output text for the "Home" link.
         // 3. Link to the home page.
         // 4. Tag before the current crumb.
         // 5. Tag after the current crumb.
         // 6. Get page title.
         // 7. Get blog title.
         // 8. Get shop title.
         //
         global $post, $wp;
         if (geodir_is_page('detail') || geodir_is_page('listing') || isset($wp->query_vars['page_id']) && $wp->query_vars['page_id'] == geodir_location_page_id()) {
             geodir_breadcrumb();
         } else {
             $stack = x_get_stack();
             $delimiter = ' <span class="delimiter"><i class="x-icon-angle-right"></i></span> ';
             // 1
             $home_text = '<span class="home"><i class="x-icon-home"></i></span>';
             // 2
             $home_link = home_url();
             // 3
             $current_before = '<span class="current">';
             // 4
             $current_after = '</span>';
             // 5
             $page_title = get_the_title();
             // 6
             $blog_title = get_the_title(get_option('page_for_posts', true));
             // 7
             $shop_title = get_theme_mod('x_' . $stack . '_shop_title');
             // 8
             if (function_exists('woocommerce_get_page_id')) {
                 $shop_url = x_get_shop_link();
                 $shop_link = '<a href="' . $shop_url . '">' . $shop_title . '</a>';
             }
             if (is_front_page()) {
                 echo '<div class="x-breadcrumbs">' . $current_before . $home_text . $current_after . '</div>';
             } elseif (is_home()) {
                 echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter . $current_before . $blog_title . $current_after . '</div>';
             } else {
                 echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter;
                 if (is_category()) {
                     $the_cat = get_category(get_query_var('cat'), false);
                     if ($the_cat->parent != 0) {
                         echo get_category_parents($the_cat->parent, TRUE, $delimiter);
                     }
                     echo $current_before . single_cat_title('', false) . $current_after;
                 } elseif (x_is_product_category()) {
                     echo $shop_link . $delimiter . $current_before . single_cat_title('', false) . $current_after;
                 } elseif (x_is_product_tag()) {
                     echo $shop_link . $delimiter . $current_before . single_tag_title('', false) . $current_after;
                 } elseif (is_search()) {
                     echo $current_before . __('Search Results for ', '__x__') . '&#8220;' . get_search_query() . '&#8221;' . $current_after;
                 } elseif (is_singular('post')) {
                     if (get_option('page_for_posts') == is_front_page()) {
                         echo $current_before . $page_title . $current_after;
                     } else {
                         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;
                     }
                 } elseif (x_is_portfolio()) {
                     echo $current_before . get_the_title() . $current_after;
                 } elseif (x_is_portfolio_item()) {
                     $link = x_get_parent_portfolio_link();
                     $title = x_get_parent_portfolio_title();
                     echo '<a href="' . $link . '" title="' . esc_attr(__('See All Posts', '__x__')) . '">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after;
                 } elseif (x_is_product()) {
                     echo $shop_link . $delimiter . $current_before . $page_title . $current_after;
                 } elseif (is_page() && !$post->post_parent) {
                     echo $current_before . $page_title . $current_after;
                 } elseif (is_page() && $post->post_parent) {
                     $parent_id = $post->post_parent;
                     $breadcrumbs = array();
                     while ($parent_id) {
                         $page = get_page($parent_id);
                         $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';
                         $parent_id = $page->post_parent;
                     }
                     $breadcrumbs = array_reverse($breadcrumbs);
                     for ($i = 0; $i < count($breadcrumbs); $i++) {
                         echo $breadcrumbs[$i];
                         if ($i != count($breadcrumbs) - 1) {
                             echo $delimiter;
                         }
                     }
                     echo $delimiter . $current_before . $page_title . $current_after;
                 } elseif (is_tag()) {
                     echo $current_before . single_tag_title('', false) . $current_after;
                 } elseif (is_author()) {
                     global $author;
                     $userdata = get_userdata($author);
                     echo $current_before . __('Posts by ', '__x__') . '&#8220;' . $userdata->display_name . $current_after . '&#8221;';
                 } elseif (is_404()) {
                     echo $current_before . __('404 (Page Not Found)', '__x__') . $current_after;
                 } elseif (is_archive()) {
                     if (x_is_shop()) {
                         echo $current_before . $shop_title . $current_after;
                     } else {
                         echo $current_before . __('Archives ', '__x__') . $current_after;
                     }
                 }
                 if (get_query_var('paged')) {
                     echo ' <span class="current" style="white-space: nowrap;">(' . __('Page', '__x__') . ' ' . get_query_var('paged') . ')</span>';
                 }
                 echo '</div>';
             }
         }
     }
 }