reportaprod /blog/wp-content/themes/depo-masthead/index.php

Language PHP Lines 70
MD5 Hash 064b41750a9ab7fdc8717a772534ec29 Estimated Cost $920 (why?)
Repository https://bitbucket.org/sergiohzlz/reportaprod View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php get_header(); ?>

	<?php
		query_posts($query_string . "&showposts=-1");
		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()) { ?>
		<h2 class="pagetitle"><?php printf(__('Archive for the &#8216;%s&#8217; Category', 'depo-masthead'), single_cat_title('', false)); ?></h2>
	<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h2 class="pagetitle"><?php printf(__('Posts Tagged &#8216;%s&#8217;', 'depo-masthead'), single_tag_title('', false) ); ?></h2>
	<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'depo-masthead'), get_the_time(__('F jS, Y', 'depo-masthead'))); ?></h2>
	<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'depo-masthead'), get_the_time(__('F, Y', 'depo-masthead'))); ?></h2>
	<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'depo-masthead'), get_the_time(__('Y', 'depo-masthead'))); ?></h2>
	<?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h2 class="pagetitle"><?php _e('Author Archive', 'depo-masthead'); ?></h2>
	<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h2 class="pagetitle">Blog Archives</h2>
 	<?php } ?>
	<?php if (is_search()) : ?> <h2 class="pagetitle">Search for &#8220;<?php the_search_query(); ?>&#8221;</h2><?php endif; ?>

		<?php while (have_posts()) : the_post(); ?>
			<?php $count++; ?>
			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
				<p class="postmetadata"><?php the_tags('', ', ', '<br />'); ?></p>
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'depo-masthead'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
				<small><?php printf(__('In %1$s on %2$s at %3$s', 'depo-masthead'), get_the_category_list(__(', ', 'depo-masthead')), '<strong>'.get_the_time(get_option('date_format')).'</strong>', '<strong>'.get_the_time().'</strong>'); ?></small>
				
				<div class="entry">
					<?php the_content('Read the rest of this entry &raquo;', 'depo-masthead'); ?>	
					<?php wp_link_pages(); ?>
					<?php edit_post_link(__('Edit this entry.', 'depo-masthead'), '<p>', '</p>'); ?>
				</div>						
			</div>
			
			<div id="showcomments" class="archive"><div class="divider"></div><a href="<?php the_permalink() ?>#comments">&#9654; <?php comments_number('Comment', 'View 1 Comment', 'View % Comments'); ?></a></div>


		<?php endwhile; ?>

		<?php if ( is_day() || is_month() || is_year() ) : ?>
			<div class="navigation">
				<div class="previous">
					<?php previous_archive_link('<span class="arrow">&laquo;</span> <span class="link"><span class="before">'.__('Before', 'depo-masthead').'</span><span class="title">%title</span><span class="date">&nbsp;</span> </span>');?>
				</div>
				<div class="next">
					<?php next_archive_link('<span class="link"> <span class="after">'.__('After', 'depo-masthead').'</span> <span class="title">%title</span> <span class="date">&nbsp;</span> </span> <span class="arrow">&raquo;</span>');?>
				</div>
				<div class="clear"></div>
			</div>
		<?php endif; ?>

	<?php else : ?>
		<h2 class="pagetitle"><?php _e( 'Nothing Found', 'depo-masthead' ); ?></h2>
		<div class="post" style="text-align: center;">
		
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
	<?php endif; ?>

	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
Back to Top