-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·72 lines (71 loc) · 3.27 KB
/
Copy pathsingle.php
File metadata and controls
executable file
·72 lines (71 loc) · 3.27 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* Single Template
*
* This is the default post template. It is used when a more specific template can't be found to display
* singular views of the 'post' post type.
*/
get_header();
do_action( 'before_content' );
do_action( 'templ_before_container_breadcrumb' ); ?>
<section id="content" class="large-9 small-12 columns">
<?php do_action( 'open_content' );
do_action( 'templ_inside_container_breadcrumb' );
global $post;
?>
<div class="hfeed">
<?php apply_filters('tmpl_before-content',supreme_sidebar_before_content() ); // Loads the sidebar-before-content.
if ( have_posts() ) :
while ( have_posts() ) : the_post();
do_action( 'before_entry' ); ?>
<div id="post-<?php the_ID(); ?>" class="<?php supreme_entry_class(); ?>">
<?php do_action( 'open_entry' );
do_action('entry-title');
apply_filters('supreme-post-info',supreme_core_post_info($post));
apply_filters( 'tmpl-entry',supreme_sidebar_entry() ); // Loads the sidebar-entry ?>
<section class="entry-content">
<?php do_action('open-post-content');
$format = get_post_format();
if(supreme_havent_gallery() && ($format =='gallery')){
apply_filters('supreme_detail_page_gallery',supreme_post_gallery($post));
}
/* get the image code - show image if Display imege option is enable from backend - Start */
if ( has_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php endif;
/* get the image code - show image if Display image option is enable from back end - Start */
the_content( __( 'Continue reading <span class="meta-nav">→</span>', THEME_DOMAIN ) );
do_action('single_post_custom_fields');
wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', THEME_DOMAIN ), 'after' => '</p>' ) );
do_action('close-post-content');
?>
</section>
<!-- .entry-content -->
<?php
apply_filters('supreme_single_categories',supreme_get_categories(__('Categories: ',THEME_DOMAIN),'category','',__('Tags: ',THEME_DOMAIN),'post_tag')); // 1- category label, 2- category slug,3- class name of div, 3- tags label,4- tags slug
do_action( 'close_entry' ); ?>
</div>
<!-- .hentry -->
<?php do_action( 'after_entry' );
apply_filters('tmpl_after-singular',supreme_sidebar_after_singular()); /* Loads the sidebar-after-singular.*/
do_action( 'after_singular' );
apply_filters('supreme_post_loop_navigation',supreme_loop_navigation($post));
do_action( 'before_comments' );
if ( supreme_get_settings( 'enable_comments_on_post' )) {
comments_template( '/comments.php', true ); /* Loads the comments.php template. */
}
do_action( 'after_comments' );
endwhile;
endif;
apply_filters('tmpl_after-content',supreme_sidebar_after_content()); /* after-content-sidebar use remove filter to dont display it */ ?>
</div>
<!-- .hfeed -->
<?php do_action( 'close_content' ); ?>
</section>
<!-- #content -->
<?php
do_action( 'after_content' );
apply_filters('supreme-post-detail-sidebar',supreme_post_detail_sidebar()); /* load the side bar of listing page */
get_footer(); // Loads the footer.php template. ?>