PageRenderTime 62ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/wp-clear-premium/archive.php

https://github.com/shlomsky/sanpedran
PHP | 94 lines | 62 code | 32 blank | 0 comment | 23 complexity | 37153c8dcc37c73b496739db012f4d45 MD5 | raw file
  1. <?php get_header(); ?>
  2. <?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?>
  3. <div id="contentleft">
  4. <div id="content">
  5. <?php if ( $wp_clear_archive_layout == '3-column' ) { ?>
  6. <div class="col-3">
  7. <?php } ?>
  8. <?php include (TEMPLATEPATH . '/banner468.php'); ?>
  9. <div class="maincontent">
  10. <?php /* If this is a category archive */ if (is_category()) { ?>
  11. <h1 class="archive-title"><a title="<?php _e("RSS Feed for the"); ?> '<?php echo single_cat_title(); ?>' <?php _e("Category"); ?>" href="<?php echo get_category_link($cat); ?>feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for the"); ?> '<?php echo single_cat_title(); ?>' <?php _e("Category"); ?>" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("All Entries in the"); ?> "<?php echo single_cat_title(); ?>" <?php _e("Category"); ?></h1>
  12. <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  13. <h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Archive for"); ?> <?php the_time('F jS, Y'); ?></h1>
  14. <?php /* If this is a daily archive */ } elseif (is_search()) { ?>
  15. <h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Search Results for"); ?> '<?php echo wp_specialchars($s, 1); ?>'</h1>
  16. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  17. <h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Archive for"); ?> <?php the_time('F, Y'); ?></h1>
  18. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  19. <h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Archive for"); ?> <?php the_time('Y'); ?></h1>
  20. <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  21. <?php if(isset($_GET['author_name'])) : $author = get_userdata(get_query_var('author_name')); $link = get_author_link(false, $author->ID, $author->user_firstname, $author->user_nicename,$author->user_url,$author->user_description,$author->user_email,$author->display_name); else : $author = get_userdata(get_query_var('author')); $link = get_author_link(false, $author->ID, $author->user_firstname, $author->user_nicename,$author->user_url,$author->user_description, $author->user_email,$author->display_name); endif; ?>
  22. <h1 class="archive-title"><a title="<?php _e("RSS Feed for This Author"); ?>" href="<?php the_author_url(); ?>feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for this author"); ?>" style="float:right;margin: 7px 0 0 5px" /></a><?php _e("Author Archive for"); ?> <?php echo $author->display_name; ?></h1>
  23. <div class="auth-bio auth-archive clearfix">
  24. <?php /* This adds the Gravatar */ if (function_exists('get_avatar')) { ?>
  25. <?php echo get_avatar($author->user_email,$size='64'); ?>
  26. <?php } else { ?>
  27. $md5 = md5( $email=$author->user_email );
  28. $default = urlencode( 'http://www.solostream.com/images/nophoto.gif' );
  29. echo "<img class='auth-archive-page' src='http://www.gravatar.com/avatar.php?gravatar_id=$md5&amp;size=60&amp;default=$default' alt='' />";
  30. ?>
  31. <?php } ?>
  32. <p><?php echo $author->user_description; ?></p>
  33. </div>
  34. <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  35. <h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Blog Archives"); ?></h1>
  36. <?php /* If this is a tag archive */ } elseif (is_tag()) { ?>
  37. <h1 class="archive-title"><a title="<?php _e("RSS Feed for This Tag"); ?>" href="<?php bloginfo('url'); ?>/tag/<?php echo str_replace(" ", "-", single_tag_title('', false)); ?>/feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for This Tag"); ?>" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("All Entries Tagged With:"); ?> "<?php single_tag_title(); ?>"</h1>
  38. <?php } ?>
  39. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  40. <div class="post clearfix" id="post-<?php the_ID(); ?>">
  41. <?php include (TEMPLATEPATH . '/post-thumb.php'); ?>
  42. <div class="entry clearfix">
  43. <h2><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark"); ?>" title="<?php _e("Permanent Link to"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  44. <?php if ( $wp_clear_post_content == 'Excerpts' ) { ?>
  45. <?php the_excerpt(); ?>
  46. <?php } else { ?>
  47. <?php the_content(''); ?>
  48. <?php } ?>
  49. </div>
  50. </div>
  51. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  52. <?php endwhile; endif; ?>
  53. <?php include (TEMPLATEPATH . "/bot-nav.php"); ?>
  54. </div>
  55. </div>
  56. <?php if ( $wp_clear_archive_layout == '3-column' ) { ?>
  57. <?php include (TEMPLATEPATH . "/sidebar-left.php"); ?>
  58. </div>
  59. <?php } ?>
  60. </div>
  61. <?php get_sidebar(); ?>
  62. <?php get_footer(); ?>