Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
first commit. Not done yet
  • Loading branch information
jayj committed Apr 15, 2011
1 parent abb5759 commit 3f0e968
Show file tree
Hide file tree
Showing 106 changed files with 14,645 additions and 0 deletions.
61 changes: 61 additions & 0 deletions archive.php
@@ -0,0 +1,61 @@
<?php
/**
* Archive Template
*
* The archive template is the default template used for archives pages without a more specific template.
*
* @package Cakifo
* @subpackage Template
*/

get_header(); // Loads the header.php template ?>

<?php do_atomic( 'before_main' ); // cakifo_before_main ?>

<div id="main">

<?php do_atomic( 'open_main' ); // cakifo_open_main ?>

<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template ?>

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

<?php do_atomic( 'before_entry' ); //cakifo_before_entry ?>

<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">

<?php do_atomic( 'open_entry' ); //cakifo_open_entry ?>

<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>

<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'thumbnail', 'attachment' => false ) ); ?>

<div class="entry-content">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->

<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="| Tagged "] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>


<div class="clear"></div>

<?php do_atomic( 'close_entry' ); //cakifo_close_entry ?>

</div> <!-- #post-<?php the_ID(); ?> -->

<?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>

<?php endwhile; ?>

<?php do_atomic( 'close_main' ); // cakifo_close_main ?>

<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template ?>

</div> <!-- #main -->

<?php do_atomic( 'after_main' ); // cakifo_after_main ?>

<?php get_footer(); // Loads the footer.php template ?>
108 changes: 108 additions & 0 deletions attachment.php
@@ -0,0 +1,108 @@
<?php
/**
* Attachment Template
*
* This is the default attachment template. It is used when visiting the singular view of a post attachment
* page (images, videos, audio, etc.).
*
* @package Cakifo
* @subpackage Template
*/

get_header(); // Loads the header.php template ?>

<?php do_atomic( 'before_main' ); // cakifo_before_main ?>

<div id="main">

<?php do_atomic( 'open_main' ); // cakifo_open_main ?>

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

<?php do_atomic( 'before_entry' ); //cakifo_before_entry ?>

<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">

<?php do_atomic( 'open_entry' ); //cakifo_open_entry ?>

<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>

<div class="entry-content">
<?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>

<p class="attachment-image">
<a href="<?php echo wp_get_attachment_url( get_the_ID() ); ?>" title="<?php esc_attr_e( 'View full size', hybrid_get_textdomain() ); ?>">
<?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
</a>
</p><!-- .attachment-image -->

<?php else : ?>

<?php hybrid_attachment(); // Function for handling non-image attachments. ?>

<p class="download">
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
</p> <!-- .download -->

<?php endif; ?>
</div> <!-- .entry-content -->

<?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>
<div id="image-info">
<div class="headline-list">
<h4><?php _e( 'Image Info', hybrid_get_textdomain() ); ?></h4>
<?php
$imgmeta = wp_get_attachment_metadata( get_the_ID() );

echo '<ul>';

printf( '<li>' . __( '<strong>Dimensions:</strong> %1$s x %2$s', hybrid_get_textdomain() ), $imgmeta['width'], $imgmeta['height'] ) . '</li>';

if ( $imgmeta['image_meta']['created_timestamp'] ) {
$date_format = __( 'F d, Y H:i a', hybrid_get_textdomain() );
printf( '<li>' . __( '<strong>Date:</strong> %1$s', hybrid_get_textdomain() ), date( $date_format, $imgmeta['image_meta']['created_timestamp'] ) ) . '</li>';
}

if ( $imgmeta['image_meta']['camera'] )
printf( '<li>' . __( '<strong>Camera:</strong> %1$s', hybrid_get_textdomain() ), $imgmeta['image_meta']['camera'] ) . '</li>';

if ( $imgmeta['image_meta']['iso'] )
printf( '<li>' . __( '<strong>ISO:</strong> %1$s', hybrid_get_textdomain() ), $imgmeta['image_meta']['iso'] ) . '</li>';

if ( $imgmeta['image_meta']['shutter_speed'] )
printf( '<li>' . __( '<strong>Shutter Speed:</strong> %1$s seconds', hybrid_get_textdomain() ), number_format( $imgmeta['image_meta']['shutter_speed'], 2 ) ) . '</li>';

echo '</ul>';
?>
</div> <!-- .headline-list -->

<div id="attachment-gallery" class="headline-list last">
<h4><?php _e( 'Gallery', hybrid_get_textdomain() ); ?></h4>
<?php
echo apply_atomic_shortcode( 'attachment_gallery', sprintf( '[gallery id="%1$s" exclude="%2$s" columns="5" size="small"]', $post->post_parent, get_the_ID() ) );
?>
</div> <!-- #attachment-gallery -->
</div> <!-- #image-info -->
<?php endif; ?>

<div class="clear"></div>

<?php do_atomic( 'close_entry' ); //cakifo_close_entry ?>

</div> <!-- #post-<?php the_ID(); ?> -->

<?php do_atomic( 'after_singular' ); // cakifo_after_singular ?>

<?php comments_template( '/comments.php', true ); // Loads the comments.php template ?>

<?php endwhile; ?>

<?php do_atomic( 'close_main' ); // cakifo_close_main ?>

<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template ?>

</div> <!-- #main -->

<?php do_atomic( 'after_main' ); // cakifo_after_main ?>

<?php get_footer(); // Loads the footer.php template ?>
42 changes: 42 additions & 0 deletions comment.php
@@ -0,0 +1,42 @@
<?php
/**
* Comment Template
*
* The comment template displays an individual comment. This can be overwritten by templates specific
* to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php,
* comment-trackback.php) in a child theme.
*
* @package Cakifo
* @subpackage Template
*/

global $post, $comment;
?>

<li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">

<?php do_atomic( 'before_comment' ); // cakifo_before_comment ?>

<div class="comment-wrap">

<?php do_atomic( 'open_comment' ); // cakifo_open_comment ?>

<?php echo hybrid_avatar(); ?>

<?php echo apply_atomic_shortcode( 'comment_meta', '<div class="comment-meta">[comment-author] [comment-published] [comment-permalink before="| "] [comment-edit-link before="| "] [comment-reply-link before="| "]</div>' ); ?>

<div class="comment-content comment-text">
<?php if ( '0' == $comment->comment_approved ) : ?>
<?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', hybrid_get_textdomain() ) . '</p>' ); ?>
<?php endif; ?>

<?php comment_text( $comment->comment_ID ); ?>
</div><!-- .comment-content .comment-text -->

<?php do_atomic( 'close_comment' ); // cakifo_close_comment ?>

</div><!-- .comment-wrap -->

<?php do_atomic( 'after_comment' ); // cakifo_after_comment ?>

<?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>
59 changes: 59 additions & 0 deletions comments.php
@@ -0,0 +1,59 @@
<?php
/**
* Comments Template
*
* Lists comments and calls the comment form. Individual comments have their own templates. The
* hierarchy for these templates is $comment_type.php, comment.php.
*
* @package Cakifo
* @subpackage Template
*/

/* Kill the page if trying to access this template directly. */
if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
die( __( 'Please do not load this page directly. Thanks!', hybrid_get_textdomain() ) );

/* If a post password is required or no comments are given and comments/pings are closed, return */
if ( post_password_required() || ( ! have_comments() && ! comments_open() && ! pings_open() ) )
return;
?>

<div id="comments">

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

<h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', hybrid_get_textdomain() ), __( 'One Response', hybrid_get_textdomain() ), __( '% Responses', hybrid_get_textdomain() ) ); ?></h3>

<?php do_atomic( 'before_comment_list' );// cakifo_before_comment_list ?>

<ol class="comment-list">
<?php wp_list_comments( hybrid_list_comments_args() ); ?>
</ol> <!-- .comment-list -->

<?php do_atomic( 'after_comment_list' ); // cakifo_after_comment_list ?>

<?php if ( get_option( 'page_comments' ) ) : ?>
<div class="pagination comment-pagination">
<?php paginate_comments_links(); ?>
</div> <!-- .comment-navigation -->
<?php endif; ?>

<?php endif; // have_comments() ?>

<?php if ( pings_open() && !comments_open() ) : ?>

<p class="comments-closed pings-open warning">
<?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_textdomain() ), get_trackback_url() ); ?>
</p> <!-- .comments-closed .pings-open .warning -->

<?php elseif ( !comments_open() ) : ?>

<p class="comments-closed warning">
<?php _e( 'Comments are closed.', hybrid_get_textdomain() ); ?>
</p> <!-- .comments-closed .warning -->

<?php endif; ?>

<?php comment_form(); // Loads the comment form ?>

</div> <!-- #comments -->
56 changes: 56 additions & 0 deletions footer.php
@@ -0,0 +1,56 @@
<?php
/**
* Footer Template
*
* The footer template is generally used on every page of your site. Nearly all other
* templates call it somewhere near the bottom of the file. It is used mostly as a closing
* wrapper, which is opened with the header.php file. It also executes key functions needed
* by the theme, child themes, and plugins.
*
* @package Cakifo
* @subpackage Template
*/
?>

<?php get_sidebar( 'primary' ); // Loads the sidebar-primary.php template ?>

<?php get_sidebar( 'secondary' ); // Loads the sidebar-secondary.php template ?>

<?php do_atomic( 'close_content' ); // cakifo_close_content ?>

</div> <!-- #content -->

<?php do_atomic( 'after_main' ); // cakifoafter_main ?>

<?php get_template_part( 'menu', 'subsidiary' ); // Loads the menu-subsidiary.php template ?>

<?php do_atomic( 'before_footer' ); // cakifo_before_footer ?>

<div id="footer">

<?php do_atomic( 'open_footer' ); // cakifo_open_footer ?>

<div class="wrap">

<?php echo apply_atomic_shortcode( 'footer_content', hybrid_get_setting( 'footer_insert' ) ); ?>

<?php do_atomic( 'footer' ); // cakifo_footer ?>

<?php get_sidebar( 'subsidiary' ); // Loads the sidebar-subsidiary.php template ?>

</div> <!-- .wrap -->

<?php do_atomic( 'close_footer' ); // cakifo_close_footer ?>

</div> <!-- #footer -->

<?php do_atomic( 'after_footer' ); // cakifo_after_footer ?>

</div> <!-- #wrapper -->

<?php do_atomic( 'close_body' ); // cakifo_close_body ?>

<?php wp_footer(); // wp_footer ?>

</body>
</html>

0 comments on commit 3f0e968

Please sign in to comment.