This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtournament-page.php
53 lines (47 loc) · 1.62 KB
/
tournament-page.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
<?php
/**
/* Template Name: Tournament Main Template
* @package VLRFC
* @subpackage
*/
include(TEMPLATEPATH . '/4leafs/header.php'); ?>
<div id="content_container">
<div id="content_main">
<div id="content_main_inner" >
<?php $postCount = 0; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$h1_css = ( ( $postCount == 0 ) ? "no_topmargin" : "" );
$alt_headline = get_post_meta($post->ID, "alt_headline_title", true);
?>
<!--
<h1 class="<?php echo $h1_css; ?>" id="post-<?php the_ID(); ?>" ><?php empty( $alt_headline ) ? the_title() : print($alt_headline); ?></h1>
-->
<?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 $postCount++; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php edit_post_link( 'Edit this entry.', '<p>', '</p>' ); ?>
<?php
$catId = '';
if( is_page( 'tournament' ) ) {
$catId = "3,48";
}
if( is_page( '25' ) ) {
$catId = '13';
}
if( is_page( '45' ) ) {
$catId = '8';
}
if( !empty( $catId ) || !empty( $catName ) ){
include( TEMPLATEPATH . '/posts-inc.php' );
}
?>
<div class="clear"></div>
</div> <!-- end of div#content_main_inner -->
<div class="clear"></div>
</div> <!-- end of div#content_main -->
<?php include(TEMPLATEPATH . '/4leafs/sidebar.php'); ?>
<?php include(TEMPLATEPATH . '/4leafs/footer.php');