Skip to content
This repository has been archived by the owner on Jan 17, 2018. It is now read-only.

Commit

Permalink
Copying ChaoticSoul's code to AngelicSoul.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanveloso committed Aug 8, 2009
1 parent d577896 commit 55c282a
Show file tree
Hide file tree
Showing 17 changed files with 549 additions and 484 deletions.
14 changes: 7 additions & 7 deletions 404.php
@@ -1,10 +1,10 @@
<?php get_header(); ?>
<div id="content" class="widecolumn">
<h2 class="title">Problem?</h2>
<p>Looks like you have a problem here sir/madam. You sure you have the right place? Maybe you got a little lost? Maybe you're looking for something you're not supposed to find? Either way, just go search for it, it can't hurt.</p>
</div>

<div id="content" class="widecolumn">
<h2 class="title"><?php _e('Problem?', 'chaoticsoul'); ?></h2>
<p><?php _e("Looks like you have a problem here sir/madam. You sure you have the right place? Maybe you got a little lost? Maybe you're looking for something you're not supposed to find? Either way, just go search for it, it can't hurt.", 'chaoticsoul'); ?></p>
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
<?php get_footer(); ?>
101 changes: 51 additions & 50 deletions archive.php
@@ -1,54 +1,55 @@
<?php get_header(); ?>

<div id="content" class="widecolumn">
<?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()) { ?>
<h2 class="title">Archive for the '<?php echo single_cat_title(); ?>' Category</h2>

<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="title">Archive for <?php the_time('F jS, Y'); ?></h2>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="title">Archive for <?php the_time('F, Y'); ?></h2>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="title">Archive for <?php the_time('Y'); ?></h2>

<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2 class="title">Search Results</h2>

<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="title">Author Archive</h2>

<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="title">Blog Archives</h2>

<?php } ?>

<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
&bull; <?php the_time('l, F jS, Y') ?>
<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
</div>
<br />
<?php endwhile; ?>

<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
</div>

<?php else : ?>

<h2 class="center">Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<?php endif; ?>
</div>


<div id="content" class="widecolumn">
<?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()) { ?>
<h2 class="title"><?php printf(__("Archive for the '%s' Category", 'chaoticsoul'), single_cat_title('', false)); ?></h2>

<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="title"><?php printf(__('Archive for %s', 'chaoticsoul'), get_the_time('F jS, Y')); ?></h2>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="title"><?php printf(__('Archive for %s', 'chaoticsoul'), get_the_time('F, Y')); ?></h2>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="title"><?php printf(__('Archive for %s', 'chaoticsoul'), get_the_time('Y')); ?></h2>

<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2 class="title"><?php _e('Search Results', 'chaoticsoul'); ?></h2>

<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="title"><?php _e('Author Archive', 'chaoticsoul'); ?></h2>

<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="title"><?php _e('Blog Archives', 'chaoticsoul'); ?></h2>

<?php } ?>

<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'chaoticsoul'), get_the_title()); ?>"><?php the_title(); ?></a></h2> &bull; <?php the_time('l, F jS, Y') ?>
&bull; <?php the_time(get_option('date_format')) ?> &bull; <?php comments_popup_link(__('No Comments', 'chaoticsoul'), __('1 Comment', 'chaoticsoul'), __('% Comments', 'chaoticsoul')); ?><?php edit_post_link(__('Edit', 'chaoticsoul'), ' (', ')'); ?>
<p class="postmetadata"><?php printf(__('Posted in %s', 'chaoticsoul'), get_the_category_list(', ')); ?><?php the_tags('<br />' . __( 'Tags' ) . ': ', ', ', ''); ?></p>
</div>

<br />
<?php endwhile; ?>

<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries', 'chaoticsoul')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;', 'chaoticsoul')) ?></div>
</div>

<?php else : ?>

<h2 class="center"><?php _e('Not Found', 'chaoticsoul'); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<?php endif; ?>
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
18 changes: 9 additions & 9 deletions archives.php
Expand Up @@ -7,15 +7,15 @@
<?php get_header(); ?>

<div id="content" class="widecolumn">
<h2 class="title">Archives by Month:</h2>
<ul class="archive">
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2 class="title">Archives by Subject:</h2>
<ul class="archive">
<?php wp_list_cats(); ?>
</ul>
<h2 class="title"><?php _e('Archives by Month:', 'chaoticsoul'); ?></h2>
<ul class="archive">
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2 class="title"><?php _e('Archives by Subject:', 'chaoticsoul'); ?></h2>
<ul class="archive">
<?php wp_list_cats(); ?>
</ul>
</div>

<?php get_sidebar(); ?>
Expand Down
106 changes: 50 additions & 56 deletions attachment.php
@@ -1,60 +1,54 @@
<?php get_header(); ?>

<div id="content" class="widecolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="navigation">
<div class="alignleft">&nbsp;</div>
<div class="alignright">&nbsp;</div>
</div>
<?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>
<?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entrytext">
<p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<p class="postmetadata alt">
<small>
This entry was posted
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
and is filed under <?php the_category(', ') ?>.
You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.

<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.

<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.

<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.

<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.

<?php } edit_post_link('Edit this entry.','',''); ?>

</small>
</p>
</div>
</div>
<?php comments_template(); ?>

<?php endwhile; else: ?>

<p>Sorry, no attachments matched your criteria.</p>

<?php endif; ?>
</div>
<div id="content" class="widecolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="navigation">
<div class="alignleft">&nbsp;</div>
<div class="alignright">&nbsp;</div>
</div>
<?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>
<?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'chaoticsoul'), get_the_title()); ?>"><?php the_title(); ?></a></h2>
<div class="entrytext">
<p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
<?php the_content('<p class="serif">'.__('Read the rest of this entry &raquo;', 'chaoticsoul').'</p>'); ?>
<?php link_pages('<p><strong>'.__('Pages:', 'chaoticsoul').'</strong> ', '</p>', 'number'); ?>
<p class="postmetadata alt">
<small>
<?php
printf(__('This entry was posted on %s at %s. ', 'chaoticsoul'), get_the_time(get_option('date_format')), get_the_time(get_option('time_format')));
printf(__('You can follow any responses to this entry through the %s feed. ', 'chaoticsoul'), '<a href="'.get_post_comments_feed_link().'">RSS 2.0</a>');
if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open
printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site. ', 'chaoticsoul'), get_trackback_url(true));
} elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open
printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site. ', 'chaoticsoul'), get_trackback_url(true));

} elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not
_e('You can skip to the end and leave a response. Pinging is currently not allowed. ', 'chaoticsoul');

} elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open
_e('Both comments and pings are currently closed. ', 'chaoticsoul');

}
edit_post_link(__('Edit this entry.', 'chaoticsoul'),'','');
?>
</small>
</p>
</div>
</div>
<?php comments_template(); ?>

<?php endwhile; else: ?>

<p><?php _e('Sorry, no attachments matched your criteria.', 'chaoticsoul'); ?></p>

<?php endif; ?>
</div>

<?php get_footer(); ?>

0 comments on commit 55c282a

Please sign in to comment.