コード例 #1
0
ファイル: page.php プロジェクト: hanleybrand/hipsterist
<?php

if (have_posts()) {
    while (have_posts()) {
        the_post();
        $post_name = $wpdb->get_var($wpdb->prepare("SELECT post_name FROM wp_posts WHERE id = %s", get_the_ID()));
        include_header($post_name . '-' . get_the_ID() . "-page");
        ?>

<div class="wrapper">
	<?php 
        include_sidebar($post_name);
        ?>
	
	<div id="right-content">
		<div id="post">
			<h2><?php 
        the_title();
        ?>
</h2>
			<div id="context">
				<?php 
        the_content('');
        ?>
			</div>
		</div>				
		<?php 
    }
} else {
    ?>
		<p>Sorry, but you're it the wrong place.</p>
コード例 #2
0
ファイル: category.php プロジェクト: hanleybrand/hipsterist
<?php

$color = "red";
include 'header.php';
get_header();
?>

<div class="wrapper">
	<?php 
include_sidebar('topics');
?>
	
	<div id="right-content">
		<h2 class="title-header"><?php 
single_cat_title();
?>
</h2>
		<div id="posts">
			<?php 
$x = 0;
?>
			<?php 
if (have_posts()) {
    ?>
			<?php 
    while (have_posts()) {
        the_post();
        ?>
			<div class="shallow-post<?php 
        if ($x % 2) {
            ?>
コード例 #3
0
ファイル: tag.php プロジェクト: hanleybrand/hipsterist
<?php

include_header('tags');
?>

<div class="wrapper">
	<?php 
include_sidebar();
?>
	
	<div id="right-content">
		<h2 class="title-header"><?php 
single_tag_title();
?>
</h2>
		<div id="posts">
			<?php 
$x = 0;
?>
			<?php 
if (have_posts()) {
    ?>
			<?php 
    while (have_posts()) {
        the_post();
        ?>
				<div class="shallow-post<?php 
        if ($x % 2) {
            ?>
 alt<?php 
        }
コード例 #4
0
ファイル: single.php プロジェクト: hanleybrand/hipsterist
<?php

include_header('post');
?>

<div class="wrapper">
	<?php 
include_sidebar('post');
?>
	
	<div id="right-content">
		<div id="post">
			<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
			<h2><?php 
        the_title();
        ?>
</h2>
			<div id="context">
				<?php 
        the_content('');
        ?>
			</div>
			<span class="meta">posted on <?php 
        strtolower(the_time('l, F jS, Y'));
        ?>
 by <a href="<?php 
        the_author_url();
コード例 #5
0
ファイル: index.php プロジェクト: hanleybrand/hipsterist
<?php

include_header();
?>

<div class="wrapper">
	<?php 
include_sidebar('home');
?>
	
	<div id="right-content">
		<div id="posts">
			<?php 
$x = 0;
?>
			<?php 
if (have_posts()) {
    ?>
			<?php 
    while (have_posts()) {
        the_post();
        ?>
			<div class="shallow-post<?php 
        if ($x % 2) {
            ?>
 alt<?php 
        }
        ?>
">
				<?php 
        if (has_post_thumbnail()) {
コード例 #6
0
ファイル: 404.php プロジェクト: hanleybrand/hipsterist
<?php

include_header('footer');
?>

<div class="wrapper">
	
	<?php 
include_sidebar('footer');
?>
	
	<div id="right-content">
			<h2 class="search center">Sorry, we couldn't find what you were looking for.</h2>
			<div class="clear"></div>		
	</div>
	
	<div class="clear"></div>		
	
</div>

<?php 
get_footer();