This repository has been archived by the owner on Oct 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
75 lines (67 loc) · 2.11 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE HTML>
<?php include('helpers/load_engine.php'); ?>
<html>
<head>
<meta charset='utf-8' />
<title>
<?php bloginfo('name'); ?>
</title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<?php wp_enqueue_script("jquery"); ?>
<?php
/// Folhas de estilos
css_include('nivo-slider');
css_include('default');
css_include('application');
wp_head();
?>
</head>
<body>
<div id='header'>
<?php get_header(); ?>
</div>
<div id='container'>
<div id='page-content'>
<?php the_post(); ?>
<?php the_content(); ?>
<br />
<img src='<?php bloginfo("template_url"); ?>/images/titulo_comentarios.jpg' />
<?php comments_template( '', true ); ?>
</div>
<!--
Se for a página de cirurgias e/ou estética, exibe o menu lateral sidebar
-->
<?php if(!(get_the_title() != "Cirurgias" && get_the_title() != "Estética")){ ?>
<div id='sidebar-page'>
<strong style='color:#00465F;'><?php the_title(); ?></strong><br />
<hr />
<?php
$post_filter = array(
'category' => get_cat_ID(get_the_title()),
'post_type' => 'post',
'post_status' => 'publish',
'numberposts' => 50
);
$posts = get_posts($post_filter);
?>
<?php foreach( $posts as $post ): setup_postdata($post);?>
<a href='<?php the_permalink(); ?>'> <?php the_title(); ?> </a> <br />
<?php endforeach ?>
<?php wp_reset_query(); ?>
</div>
<?php } // end if |the_title() == "Cirurgias" || the_title() == "Estética"| ?>
<!--Fim do sidebar-->
</div>
<div id='footer'>
<?php get_footer(); //comments_template( '', true ); ?>
</div>
</body>
<?php
js_include($filename='jquery.corner');
js_include($filename='jquery.nivo.slider');
js_include($filename='application');
?>
</html>