예제 #1
0
파일: functions.php 프로젝트: scoutrul/sys
 /**
  * Prints HTML with meta information for the current post (category, tags and permalink).
  *
  * @since Twenty Ten 1.0
  */
 function etheme_posted_in()
 {
     // Retrieves tag list of current post, separated by commas.
     $tag_list = get_the_tag_list('', ', ');
     if ($tag_list) {
         $posted_in = __('This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', ETHEME_DOMAIN);
     } elseif (is_object_in_taxonomy(get_post_type(), 'category')) {
         $posted_in = __('This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', ETHEME_DOMAIN);
     } else {
         $posted_in = __('Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', ETHEME_DOMAIN);
     }
     // Prints the string, replacing the placeholders.
     printf($posted_in, etheme_get_the_category_list(', '), $tag_list, get_permalink(), the_title_attribute('echo=0'));
 }
예제 #2
0
            ?>
 
		                    </div>
		                    <div class="blog_icon_comment">
		                       <span class="blog_icon_title"><i class="icon-comments"></i>&nbsp;</span><?php 
            comments_popup_link(__('Leave a comment', ETHEME_DOMAIN), __('1 Comment', ETHEME_DOMAIN), __('% Comments', ETHEME_DOMAIN));
            ?>
		                    </div>
		                    <div class="blog_icon_webdesign">
		<span class="blog_icon_title"><i class="icon-folder-open"></i></span>
		        				<?php 
            if (count(get_the_category())) {
                ?>
		        					<span class="cat-links">
		        						<?php 
                printf(__('%1$s', ETHEME_DOMAIN), etheme_get_the_category_list(', '));
                ?>
		        					</span>
		        				<?php 
            }
            ?>
		                    </div>
		                </div>
		        	<?php 
        }
        ?>
		        	
                	<?php 
        if (is_archive() || is_search()) {
            // Only display excerpts for archives and search.
            ?>
예제 #3
0
                
                <?php 
        if ($show_post_info == 1) {
            ?>
                    <div class="entry-utility">
            			<?php 
            etheme_posted_on();
            ?>
 /
        
        				<?php 
            if (count(get_the_category())) {
                ?>
        					<span class="cat-links">
        						<?php 
                printf(__('<span class="%1$s">Posted in</span> %2$s', ETHEME_DOMAIN), 'entry-utility-prep entry-utility-prep-cat-links', etheme_get_the_category_list(', '));
                ?>
        					</span>
        					<span class="meta-sep">|</span>
        				<?php 
            }
            ?>
        				<?php 
            $tags_list = get_the_tag_list('', ', ');
            if ($tags_list) {
                ?>
        					<span class="tag-links">
        						<?php 
                printf(__('<span class="%1$s">Tagged</span> %2$s', ETHEME_DOMAIN), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list);
                ?>
        					</span>