This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·57 lines (45 loc) · 1.38 KB
/
single.php
File metadata and controls
executable file
·57 lines (45 loc) · 1.38 KB
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
/**
* The template for displaying all single posts.
*
* @package Bricks
* @link https://themebeans.com/themes/bricks
*/
get_header();
// POST META
$orderby = get_post_meta( $post->ID, '_bean_post_randomize', true );
$orderby = ( $orderby == 'off' ) ? 'post__in' : 'rand';
$link = get_post_meta( $post->ID, '_bean_link_url', true );
$link_title = get_post_meta( $post->ID, '_bean_link_title', true );
$quote = get_post_meta( $post->ID, '_bean_quote', true );
$quote_source = get_post_meta( $post->ID, '_bean_quote_source', true );
$embed = get_post_meta( $post->ID, '_bean_video_embed', true );
$video_embed_url = get_post_meta( $post->ID, '_bean_video_embed_url', true );
// VIEW COUNTER
bean_setPostViews( get_the_ID() );
// OPTIONAL SIDEBAR
if ( get_theme_mod( 'show_blogroll_sidebar' ) == true ) {
if ( is_active_sidebar( 'internal-sidebar' ) ) { ?>
<div class="primary-sidebar">
<?php dynamic_sidebar( 'Internal Sidebar' ); } ?>
</div><!-- END .primary-sidebar -->
<?php } ?>
<div class="primary-content
<?php
if ( get_theme_mod( 'show_blogroll_sidebar' ) == false ) {
echo 'no-sidebar'; }
?>
">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'loop', 'post' ); ?>
<?php
endwhile;
endif;
?>
</div><!-- END .primary-content -->
<?php
get_footer();