[EventCalendar] help

fodis arne vollstedt contact at fodis.de
Fri Mar 27 17:21:30 UTC 2009


yes, it's the archive.php.

the code:

<?php get_header(); ?>

<div id="post-wrap">

		<?php if (have_posts()) : ?>

		<?php $post = $posts[0]; // Hack. Set $post so that the_date()  
works. ?>
		
		<?php /* If this is a category archive */ if (is_category()) {
		if( function_exists(page2cat_output)): page2cat_output($cat); else: ?>
		<h2 class="pagetitle"><a href="#">Seminar &#8216;<?php echo  
single_cat_title(); ?>&#8217; </h2>
		<?php endif; ?>
		
		
		<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h2>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
		<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h2>Archive for <?php the_time('F jS, Y'); ?></h2>
		<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h2>Archive for <?php the_time('F, Y'); ?></h2>
		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h2>Archive for <?php the_time('Y'); ?></h2>
		<?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h2>Author Archive</h2>
		<?php /* If this is a paged archive */ } elseif  
(isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h2>Blog Archives</h2>
		<?php } ?>


		<?php while (have_posts()) : the_post(); ?>

			<div class="post" id="post-<?php the_ID(); ?>">
				<h2><a href="<?php the_permalink() ?>" rel="bookmark"  
title="Permanent Link to <?php the_title_attribute(); ?>"><?php  
the_title(); ?></a></h2>
				

				<?php the_content('weiterlesen &raquo;'); ?>

				<p> <?php comments_popup_link('<div class="button" style="float:  
left">Jetzt anmelden</div>', '<div class="button" style="float:  
left">1 Teilnehmer | Anmelden &#187;</div>', '% Teilnehmer | Anmelden  
&#187;</div>'); ?></p>
<div class="clear"></div>
			</div>

		<?php endwhile; ?>
		
		<ul>
			<li><?php next_posts_link('&laquo; davor') ?></li>
			<li><?php previous_posts_link('nächste &raquo;') ?></li>
		</ul>
		
	<?php else : ?>

		<h2>Not Found</h2>
		<p>Sorry, but you are looking for something that isn't here.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>


</div> <!-- END post-wrap -->


<?php get_footer(); ?>




More information about the EventCalendar mailing list