/**
  * Singleton instance
  * 
  * @return object
  */
 public static function get_instance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }
 /**
  * Prints HTML with meta information for the current post (category, tags and permalink).
  *
  * @since Twenty Ten 1.0
  */
 function twentyten_posted_in()
 {
     // Retrieves tag list of current post, separated by commas.
     $tag_list = get_the_tag_list('', ', ');
     if ($tag_list) {
         $posted_in = __('This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', TabulaRasa::get_textdomain());
     } elseif (is_object_in_taxonomy(get_post_type(), 'category')) {
         $posted_in = __('This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', TabulaRasa::get_textdomain());
     } else {
         $posted_in = __('Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', TabulaRasa::get_textdomain());
     }
     // Prints the string, replacing the placeholders.
     printf($posted_in, get_the_category_list(', '), $tag_list, get_permalink(), the_title_attribute('echo=0'));
 }
Beispiel #3
0
		<?php 
        }
        ?>
		<?php 
        comments_popup_link(__('Leave a comment', TabulaRasa::get_textdomain()), __('1 Comment', TabulaRasa::get_textdomain()), __('% Comments', TabulaRasa::get_textdomain()));
        ?>
		<?php 
        edit_post_link(__('Edit', TabulaRasa::get_textdomain()), '| ', '');
        ?>

		<?php 
        comments_template('', true);
        ?>

	<?php 
    }
    // This was the if statement that broke the loop into three parts based on categories.
    ?>

<?php 
}
// End the loop. Whew.
?>

<?php 
/* Display navigation to next/previous pages when applicable */
if ($wp_query->max_num_pages > 1) {
    ?>
	<?php 
    TabulaRasa::paginate();
}
<?php 
if (have_posts()) {
    ?>
				<h1><?php 
    printf(__('Search Results for: %s', TabulaRasa::get_textdomain()), '' . get_search_query() . '');
    ?>
</h1>
				<?php 
    /* Run the loop for the search to output the results.
     * If you want to overload this in a child theme then include a file
     * called loop-search.php and that will be used instead.
     */
    get_template_part('loop', 'search');
} else {
    ?>
					<h2><?php 
    _e('Nothing Found', TabulaRasa::get_textdomain());
    ?>
</h2>
					<p><?php 
    _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', TabulaRasa::get_textdomain());
    ?>
</p>
					<?php 
    get_search_form();
}
?>
</div>
<?php 
get_sidebar();
get_footer();
Beispiel #5
0
<?php

/**
 * The template for displaying Tag Archive pages.
 *
 * @package WordPress
 * @subpackage TabulaRasa
 * @since TabulaRasa 1.0
 */
get_header();
?>
<div class="content grid8 first" role="main">
				<h1><?php 
printf(__('Tag Archives: %s', TabulaRasa::get_textdomain()), '' . single_tag_title('', false) . '');
?>
</h1>

<?php 
/* Run the loop for the tag archive to output the posts
 * If you want to overload this in a child theme then include a file
 * called loop-tag.php and that will be used instead.
 */
get_template_part('loop', 'tag');
?>
</div>
<?php 
get_sidebar();
get_footer();
Beispiel #6
0
/**
 * The template for displaying 404 pages (Not Found).
 *
 * @package WordPress
 * @subpackage TabulaRasa
 * @since TabulaRasa 1.0
 */
get_header();
?>
<div class="content grid8 first" role="main">


				<h1><?php 
_e('Not Found', TabulaRasa::get_textdomain());
?>
</h1>
				<p><?php 
_e('Apologies, but the page you requested could not be found. Perhaps searching will help.', TabulaRasa::get_textdomain());
?>
</p>
				<?php 
get_search_form();
?>

	<script type="text/javascript">
		// focus on search field after it has loaded
		document.getElementById('s') && document.getElementById('s').focus();
	</script>
</div>
<?php 
get_footer();
Beispiel #7
0
						<h1><?php 
            the_title();
            ?>
</h1>
					<?php 
        }
        ?>
				

						<?php 
        the_content();
        ?>
						<?php 
        wp_link_pages(array('before' => '' . __('Pages:', TabulaRasa::get_textdomain()), 'after' => ''));
        ?>
						<?php 
        edit_post_link(__('Edit', TabulaRasa::get_textdomain()), '', '');
        ?>

				<?php 
        comments_template('', true);
        ?>

<?php 
    }
}
?>
</div>
<?php 
get_sidebar();
get_footer();
<?php

/**
 * The template for displaying Category Archive pages.
 *
 * @package WordPress
 * @subpackage TabulaRasa
 * @since TabulaRasa 1.0
 */
get_header();
?>
<div class="content grid8 first" role="main">
				<h1><?php 
printf(__('Category Archives: %s', TabulaRasa::get_textdomain()), '' . single_cat_title('', false) . '');
?>
</h1>
				<?php 
$category_description = category_description();
if (!empty($category_description)) {
    echo '' . $category_description . '';
}
/* Run the loop for the category page to output the posts.
 * If you want to overload this in a child theme then include a file
 * called loop-category.php and that will be used instead.
 */
get_template_part('loop', 'category');
?>
</div>
<?php 
get_sidebar();
get_footer();
<?php 
        }
        ?>

						<?php 
        twentyten_posted_in();
        ?>
						<?php 
        edit_post_link(__('Edit', TabulaRasa::get_textdomain()), '', '');
        ?>

				<?php 
        previous_post_link('%link', '' . _x('&larr;', 'Previous post link', TabulaRasa::get_textdomain()) . ' %title');
        ?>
				<?php 
        next_post_link('%link', '%title ' . _x('&rarr;', 'Next post link', TabulaRasa::get_textdomain()) . '');
        ?>

				<?php 
        comments_template('', true);
        ?>

<?php 
    }
}
// end of the loop.
?>
</div>
<?php 
get_sidebar();
get_footer();
if (is_day()) {
    ?>
				<?php 
    printf(__('Daily Archives: %s', TabulaRasa::get_textdomain()), get_the_date());
} elseif (is_month()) {
    ?>
				<?php 
    printf(__('Monthly Archives: %s', TabulaRasa::get_textdomain()), get_the_date('F Y'));
} elseif (is_year()) {
    ?>
				<?php 
    printf(__('Yearly Archives: %s', TabulaRasa::get_textdomain()), get_the_date('Y'));
} else {
    ?>
				<?php 
    _e('Blog Archives', TabulaRasa::get_textdomain());
}
?>
			</h1>

<?php 
/* Since we called the_post() above, we need to
 * rewind the loop back to the beginning that way
 * we can run the loop properly, in full.
 */
rewind_posts();
/* Run the loop for the archives page to output the posts.
 * If you want to overload this in a child theme then include a file
 * called loop-archives.php and that will be used instead.
 */
get_template_part('loop', 'archive');
?>
" title="<?php 
echo esc_attr(get_bloginfo('name', 'display'));
?>
" rel="home"><?php 
bloginfo('name');
?>
</a></h1>
				<p><?php 
bloginfo('description');
?>
</p>               
			</header>
			<nav role="navigation" class="menu grid12">
				<?php 
/*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */
?>
				<a href="#content" class="access" title="<?php 
esc_attr_e('Skip to content', TabulaRasa::get_textdomain());
?>
"><?php 
_e('Skip to content', TabulaRasa::get_textdomain());
?>
</a>
				<?php 
/* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */
?>
				<?php 
wp_nav_menu(array('container' => false, 'theme_location' => 'primary'));
?>
			</nav><!-- #access -->
			<li>
				<h3><?php 
    _e('Archives', TabulaRasa::get_textdomain());
    ?>
</h3>
				<ul>
					<?php 
    wp_get_archives('type=monthly');
    ?>
				</ul>
			</li>

			<li>
				<h3><?php 
    _e('Meta', TabulaRasa::get_textdomain());
    ?>
</h3>
				<ul>
					<?php 
    wp_register();
    ?>
					<li><?php 
    wp_loginout();
    ?>
</li>
					<?php 
    wp_meta();
    ?>
				</ul>
			</li>
        ?>
				<?php 
        next_comments_link(__('Newer Comments &rarr;', TabulaRasa::get_textdomain()));
    }
    // check for comment navigation
    ?>

<?php 
} else {
    // or, if we don't have comments:
    /* If there are no comments and comments are closed,
     * let's leave a little note, shall we?
     */
    if (!comments_open()) {
        ?>
	<p><?php 
        _e('Comments are closed.', TabulaRasa::get_textdomain());
        ?>
</p>
<?php 
    }
    // end ! comments_open()
    ?>

<?php 
}
// end have_comments()
?>

<?php 
comment_form();
      <li><span class="author_info_field_title"><?php 
    _e('Twitter', TabulaRasa::get_textdomain());
    ?>
:</span> <a href="<?php 
    the_author_meta('twitter');
    ?>
"><?php 
    the_author_meta('twitter');
    ?>
</a></li>
        <?php 
}
if (get_the_author_meta('description')) {
    ?>
      <li><span class="author_info_field_title"><?php 
    _e('Profile', TabulaRasa::get_textdomain());
    ?>
:</span> <?php 
    the_author_meta('description');
    ?>
</li>
        <?php 
}
?>
    </ul>


<?php 
/* Since we called the_post() above, we need to
 * rewind the loop back to the beginning that way
 * we can run the loop properly, in full.