StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-06-2009, 03:37 PM
Doktor Bro Doktor Bro is offline
Registered User
Genesis Member
 
Join Date: Dec 2008
Location: Germany, Frankfurt
Posts: 42
Default div "date" in a separate file

Hello coders!

What do you think about write this part in a separate file named date.php

Code:
<div class="dateleft">
	

<span class="time"><?php the_time('F j, Y'); ?></span> <?php _e("by"); ?> <?php the_author_posts_link(); ?> <?php edit_post_link('(Edit)', '', ''); ?> 
 <?php _e("Filed under:"); ?> <?php the_category(', ') ?></p> 
</div>
				
<div class="dateright">
	

<span class="icomment"><?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></span></p> 
</div>
and every time it appears (5!) include it
Code:
<div class="date">
<?php include(TEMPLATEPATH."/date.php"); ?>
</div>
Works nice on my installation.
__________________
Russian hiphop magazine ????? ????
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove "posted date" and "[watch video]" on Homepage? LingerieNightsAZ General Discussion 2 02-18-2010 02:03 PM
I wan't delete some words: "advertisement" "comments" "subscribe".... in Home Francois Laurent General Discussion 2 01-06-2010 11:11 AM
Move Date from "Top Navbar" to "SubNavBar"? Cal General Discussion 3 12-30-2008 07:07 AM


All times are GMT -5. The time now is 07:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.