Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 75 lines (47 sloc) 2.75 kB
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
1 <?php
2 /**
3 * Template Name: Logged In
4 *
5 * The Logged In template is a page template that allows only logged-in users to view the content
6 * of the page and its comments. If the user isn't logged in, a message to log in with a link to the
7 * WordPress login page will be displayed. If the site has open registration, a link to register will
8 * also be displayed.
9 *
10 * @package Hybrid
11 * @subpackage Template
a27065a More massive updates and cleanup.
greenshady authored
12 * @link http://themehybrid.com/themes/hybrid/page-templates/logged-in
13 * @deprecated 0.9.0 This template will eventually be moved to the Hybrid page templates pack.
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
14 */
15
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
16 get_header(); // Loads the header.php template. ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
17
18 <div id="content" class="hfeed content">
19
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
20 <?php do_atomic( 'before_content' ); // hybrid_before_content ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
21
22 <?php if ( have_posts() && is_user_logged_in() ) : while ( have_posts() ) : the_post(); ?>
23
24 <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
25
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
26 <?php do_atomic( 'before_entry' ); // hybrid_before_entry ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
27
28 <div class="entry-content">
29 <?php the_content(); ?>
6d68626 @justintadlock Switch all calls of hybrid_get_textdomain() to 'hybrid'.
authored
30 <?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
31 </div><!-- .entry-content -->
32
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
33 <?php do_atomic( 'after_entry' ); // hybrid_after_entry ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
34
35 </div><!-- .hentry -->
36
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
37 <?php do_atomic( 'after_singular' ); // hybrid_after_singular ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
38
a27065a More massive updates and cleanup.
greenshady authored
39 <?php comments_template( '/comments.php', true ); // Loads the comments.php template ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
40
41 <?php endwhile; ?>
42
43 <?php elseif ( have_posts() && !is_user_logged_in() ) : // If user is not logged in ?>
44
45 <div id="post-0" class="<?php hybrid_entry_class(); ?>">
46
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
47 <?php do_atomic( 'before_entry' ); // hybrid_before_entry ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
48
49 <div class="entry-content">
50
51 <p class="alert">
6d68626 @justintadlock Switch all calls of hybrid_get_textdomain() to 'hybrid'.
authored
52 <?php printf( __( 'You must be <a href="%1$s" title="Log in">logged in</a> to view the content of this page.', 'hybrid' ), wp_login_url( get_permalink() ) ); ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
53
6d68626 @justintadlock Switch all calls of hybrid_get_textdomain() to 'hybrid'.
authored
54 <?php if ( get_option( 'users_can_register' ) ) printf( __( 'If you\'re not currently a member, please take a moment to <a href="%1$s" title="Register">register</a>.', 'hybrid' ), site_url( 'wp-login.php?action=register', 'login' ) ); ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
55 </p><!-- .alert -->
56
57 </div><!-- .entry-content -->
58
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
59 <?php do_atomic( 'after_entry' ); // hybrid_after_entry ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
60
61 </div><!-- #post-0 .hentry -->
62
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
63 <?php do_atomic( 'after_singular' ); // hybrid_after_singular ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
64
65 <?php else: ?>
66
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
67 <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
68
69 <?php endif; ?>
70
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
71 <?php do_atomic( 'after_content' ); // hybrid_after_content ?>
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revi…
greenshady authored
72
73 </div><!-- .content .hfeed -->
74
eceb041 Crazy amounts of updates to bring this up to date with Hybrid Core.
greenshady authored
75 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.