-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate-full-width.php
57 lines (35 loc) · 1.66 KB
/
template-full-width.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
Template Name: Full Width Page (no sidebars or widgets)
*/
?>
<?php //if ( ufl_check_page_visitor_level( $post->ID ) > 0 ) { define( 'DONOTCACHEPAGE', 1 ); } ?>
<?php include("header.php"); ?>
<?php ufandshands_breadcrumbs(); ?>
<div id="content-wrap">
<div id="content-shadow">
<div id="content" class="container">
<?php if ( ufl_check_authorized_user( $post->ID ) ) { // check if logged in/valid shib user required
$content_width = 900;
?>
<article id="main-content" class="span-23 box" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php ufandshands_content_title(); //page title ?>
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php endwhile; endif; //main article loop ends?>
<?php if ( is_user_logged_in() ) { ?>
<p id="edit" class="clear" style="margin-top:20px;"><?php edit_post_link('Edit this article', ' » ', ''); ?> | <a href="<?php echo wp_logout_url(); ?>" title="Log out of this account">Log out »</a></p>
<?php } ?>
</article><!-- end #main-content -->
<?php } else { // users are not logged in display error or login button ?>
<!-- Non-Members -->
<article name ="content" id="main-content" class="span-23 box" role="main">
<?php get_template_part('content','restricted'); ?>
</article>
<?php } ?>
</div>
</div>
</div>
<?php include('user-role-menu.php'); ?>
<?php include("footer.php"); ?>