M

Sunday, 3 August 2008

page3.php ——————————
<?
/*
Template Name: Without sidebars
*/
?>
<?php get_header(); ?>
<div id="page3">
<?php if (have_posts()) : while (have_posts()): the_post(); ?>
<div class="post-body">
<?php the_content(); ?><br />
<?php wp_link_pages(array( 'before'=>'<p><strong>
Pages:</strong> ','after'=> '</p>','next_or_number'=>
'number' )); ?>
</div>
<?php edit_post_link(__('Edit')); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<!-- page3 close -->
<div id="refer">
<a href="<?php bloginfo('url');?>">
<?php echo get_the_time('Y'); ?> ©
<?php bloginfo('name'); ?></a>
<a href="http://validator.w3.org/check/referer" title="<?
php _e('This page validates as XHTML 1.0 Transitional') ?>">
<?php _e('Valid <abbr title="eXtensible HyperText Markup
Language">XHTML</abbr>') ?></a>
<a href="http://jigsaw.w3.org/css-validator/validator?uri=<
?php bloginfo('url') ?>" title="This page validates as
CSS level 2.1">
<abbr title="Cascading Style Sheets Level 2 Revision 1">
CSS</abbr></a>
<a href="http://gmpg.org/xfn/">
<abbr title="XHTML Friends Network">XFN</abbr></a>
<a href="http://wordpress.org/" title="<?php _e('Powered
by WordPress, state-of-the-art semantic personal publishing
platform.') ?>">WordPress</a>
<a href="http://m-eken.com/" title="<?php _e('Theme by')
?> M">M</a>
<?php wp_register('',' '); ?>
<?php wp_loginout(); ?><br />
</div>
</div><!-- center -->
<?php wp_footer(); ?>
</div><!-- page -->
</body>
</html>

page.php -------------------------------

<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()): the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>" >
<h2 class="post-title">
<a href="<?php the_permalink() ?>" rel="bookmark"
title="Permanent Link to: <?php the_title(); ?>">
<?php the_title(); ?></a> </h2>
<div class="post-body">
<div class="date-header" >
<?php the_time('m/j/Y g:i:00 A')?>
</div>
<span class="byline-author"> Posted by
<?php the_author(); ?>
</span> <br />
<?php the_content(); ?>
<div class="byline-author"><br />
<?php the_tags(__('Tags:'),', ','.<br />'); ?>
<?php _e('Categories:'); the_category(', ')?>.</div>
<br /><?php include(TEMPLATEPATH.'/sharethis.js')?>
</div>
<?php edit_post_link(__('Edit'),__('<div
class="post-footer">'),('</div>')); ?>
<?php wp_link_pages(array( 'before'=>'<p><
strong>Pages:</strong> ','after'=> '</p>',
'next_or_number'=> 'number' )); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div id="ads">
<!-- AdSense line :) --><!-- AdSense line :) -->
</div>
</div>
<!-- content close -->
<div id="content2">
<?php include(TEMPLATEPATH.'/topbar.php') ?>
<?php include(TEMPLATEPATH.'/mbar.php'); ?>
<?php get_footer(); ?>rightbar.php ---------------------------
<div id="rightbar">
<ul>
<?php if( !function_exists('dynamic_sidebar') ||
!dynamic_sidebar(2) ) : ?>
<li><h2 class="widgettitle"><?php _e('Recent Posts');
?></h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=5'); ?>
<li><h2 class="widgettitle"><?php _e('Categories')
?></h2></li>
<?php wp_list_categories('title_li='); ?>
</ul>
</li>
<?php endif; ?>
</ul>
</div>


Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

  • time time time…
  • Recent Comments

  • Lütfü Hoca

  • Roll

  • Ads