Пример #1
0
                                <div id="ts-post-wrap">
                                    
                                    <div id="ts-post" <?php 
        post_class('post ts-post-section clearfix');
        ?>
>
                                        
                                        
                                        <div id="ts-post-the-content-wrap">
                                            
                                            <div id="ts-post-comments-share-wrap" class="clearfix">
                                                <?php 
        $comment_number = get_comments_number();
        ?>
                                                <a href="<?php 
        echo get_permalink() . ts_link2comments();
        ?>
" class="to-comments-link small-size smoothscroll" id="ts-moon-comment-bubble"><strong class="disqus-comment-count" data-disqus-url="<?php 
        echo get_permalink();
        ?>
"><?php 
        echo sprintf(_n('%s comment', '%s comments', $comment_number, 'ThemeStockyard'), $comment_number);
        ?>
</strong></a>
                                                <?php 
        if ($ts_sharing_options->show) {
            ?>
            
                                                <div id="page-share" class="<?php 
            echo esc_attr($ts_sharing_options->position_class);
            ?>
Пример #2
0
                echo esc_attr($text_align);
                ?>
 clearfix"><?php 
                // author link
                echo '<span class="meta-item meta-item-author subtle-text-color stylized-meta">';
                echo __('By', 'ThemeStockyard') . ' ';
                echo '<a href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '" class="author vcard">';
                if (isset($atts['show_author_avatar']) && $atts['show_author_avatar']) {
                    echo get_avatar(get_the_author_meta('user_email'), 24);
                }
                echo get_the_author_meta('display_name') . '</a></span>';
                echo '<span class="meta-item meta-item-date published small uppercase" title="' . get_the_date('Y-m-d\\TH:i:s') . '">' . get_the_date('M j') . '</span>';
                if (comments_open()) {
                    $comment_number = get_comments_number();
                    echo '<span class="meta-item meta-item-comments small uppercase">';
                    echo '<a href="' . ts_link2comments(get_permalink()) . '">';
                    echo '<i class="fa fa-comments"></i>';
                    echo '<span class="disqus-comment-count" data-disqus-url="' . get_permalink() . '">';
                    echo esc_html($comment_number);
                    echo '</span>';
                    echo '</a>';
                    echo '</span>';
                }
                ?>
</p></div>
                                    <?php 
            }
        }
        ?>
  
                                </div> 
Пример #3
0
     echo get_the_date();
     echo '</time>';
 }
 if (comments_open()) {
     $comment_number = get_comments_number();
     if (function_exists('is_woocommerce') && is_woocommerce()) {
         $show_shop_reviews_on_single = ts_option_vs_default('show_shop_reviews_on_single', 1);
         if ($show_shop_reviews_on_single == 1) {
             echo ' <span class="sep sep-1">&nbsp;&bull;&nbsp;</span> ';
             echo '<a href="' . esc_url(get_permalink()) . '#reviews" class="to-comments-link reviews-smoothscroll">' . $comment_number . ' ';
             echo $comment_number == 1 ? __('Review', 'ThemeStockyard') : __('Reviews', 'ThemeStockyard');
             echo '</a>' . "\n";
         }
     } else {
         echo ' <span class="sep sep-1">&nbsp;&bull;&nbsp;</span> ';
         echo '<a href="' . esc_url(get_permalink() . ts_link2comments()) . '" class="to-comments-link smoothscroll">';
         echo '<i class="fa fa-comments"></i>' . esc_html($comment_number) . ' ';
         echo $comment_number == 1 ? __('Comment', 'ThemeStockyard') : __('Comments', 'ThemeStockyard');
         echo '</a>' . "\n";
         if (ts_option_vs_default('show_titlebar_post_view_count', 0) == 1) {
             $ts_postview_nonce = wp_create_nonce('ts_update_postviews_nonce');
             $post_view_count = ts_postmeta_vs_default($ts_page_id, '_p_ts_postviews', 0);
             $post_view_count = !$post_view_count ? '0' : $post_view_count;
             $post_view_count_text = sprintf(_n('1 view', '%s views', $post_view_count, 'ThemeStockyard'), $post_view_count);
             echo ' &nbsp;&bull;&nbsp; ';
             echo '<span id="ts-postviews" data-pid="' . esc_attr($ts_page_id) . '" data-nonce="' . esc_attr($ts_postview_nonce) . '">';
             echo '<i class="fa fa-eye"></i>' . esc_html($post_view_count_text);
             echo '</span>';
         }
     }
 } else {