-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle-pauta.php
67 lines (53 loc) · 1.69 KB
/
single-pauta.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
<?php
get_header();
$show_default_title = get_post_meta(get_the_ID(), '_et_pb_show_title', true);
$is_page_builder_used = et_pb_is_pagebuilder_used(get_the_ID());
?>
<div id="single wrap">
<main class="single wrap">
<?php
// Chama o cabeçalho que apresenta o sistema de discussão
get_delibera_header();
// Chama o loop
// get_template_part( 'loop', 'pauta' );
if(file_exists(get_stylesheet_directory()."/content-pauta.php"))
{
load_template(get_stylesheet_directory()."/content-pauta.php");
}
else
{
global $deliberaThemes;
load_template($deliberaThemes->themeFilePath('content-pauta.php'), true);
}
?>
<section class="single-sidebar">
<div class="sidebar-section">
<h2 class="sidebar-title">outras pautas</h2>
<div class="yarpp-related">
<ol class="yarpp-list">
<?php
$posts_array = get_posts(
array(
'posts_per_page' => 10,
'post_type' => 'pauta',
'order' => 'rand',
'orderby'=>'rand'
)
);
foreach($posts_array as $key=>$value)
{
?>
<li class="yarpp-item">
<a class="yarpp-link" rel="bookmark" href="<?php echo $posts_array[$key]->guid; ?>"> <?php echo $posts_array[$key]->post_title; ?> </a>
</li>
<?php
}
?>
<?php get_sidebar(); ?>
</ol>
</div>
</div>
</section>
<?php comments_template( '', true ); ?>
</main>
<?php get_footer(); ?>