-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-fotografos.php
85 lines (59 loc) · 3.03 KB
/
page-fotografos.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
Template Name: Fotógrafos
*/
get_header();
?>
<div id="content" class="page col-full">
<?php woo_main_before(); ?>
<section id="main" class="col-left nocachedynamic">
<?php
if ( have_posts() ) { $count = 0;
while ( have_posts() ) { the_post(); $count++;
?>
<?php
// BEGIN - CLB - 2013/08/08 - Conditional content by referrer
$referer_parse = parse_url($_SERVER['HTTP_REFERER']);
if(strpos($referer_parse['host'], 'list-manage.')!==false)
{ ?>
<article <?php post_class(); ?>>
<header>
<h1><?php the_title(); ?></h1>
</header>
<section class="entry">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
</section><!-- /.entry -->
<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
</article><!-- /.post -->
<?php
// Determine wether or not to display comments here, based on "Theme Options".
if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'page', 'both' ) ) ) {
comments_template();
};
}
else { ?>
<article <?php post_class(); ?>>
<header>
<h1>Esta página é reservada</h1>
</header>
<section class="entry">
<p>O conteúdo desta página só pode ser acessado por quem recebeu o link via e-mail.</p>
<p>Se você chegou aqui através de algum e-mail nosso e tem certeza que clicou no link correto, por favor, entre em contato pelo e-mail [email protected]</p>
</section><!-- /.entry -->
<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
</article><!-- /.post -->
<?php }; // END - CLB - 2013/08/08 - Conditional content by referrer
} // End WHILE Loop
} else {
?>
<article <?php post_class(); ?>>
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
</article><!-- /.post -->
<?php } // End IF Statement ?>
</section><!-- /#main -->
<?php woo_main_after(); ?>
<?php get_sidebar(); ?>
</div><!-- /#content -->
<?php get_footer(); ?>