forked from oceanwp/oceanwp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingular.php
More file actions
executable file
·76 lines (47 loc) · 1.65 KB
/
singular.php
File metadata and controls
executable file
·76 lines (47 loc) · 1.65 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
73
74
75
76
<?php
/**
* The template for displaying all pages, single posts and attachments
*
* This is a new template file that WordPress introduced in
* version 4.3.
*
* @package OceanWP WordPress theme
*/
get_header(); ?>
<?php do_action( 'ocean_before_content_wrap' ); ?>
<div id="content-wrap" class="container clr">
<?php do_action( 'ocean_before_primary' ); ?>
<div id="primary" class="content-area clr">
<?php do_action( 'ocean_before_content' ); ?>
<div id="content" class="site-content clr">
<?php do_action( 'ocean_before_content_inner' ); ?>
<?php
// Elementor `single` location.
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) {
// Start loop.
while ( have_posts() ) :
the_post();
if ( is_singular( 'download' ) ) {
// EDD Page.
get_template_part( 'partials/edd/single' );
} elseif ( is_singular( 'page' ) ) {
// Single post.
get_template_part( 'partials/page/layout' );
} elseif ( is_singular( 'oceanwp_library' ) || is_singular( 'elementor_library' ) ) {
// Library post types.
get_template_part( 'partials/library/layout' );
} else {
// All other post types.
get_template_part( 'partials/single/layout', get_post_type() );
}
endwhile;
}
?>
<?php do_action( 'ocean_after_content_inner' ); ?>
</div><!-- #content -->
<?php do_action( 'ocean_after_content' ); ?>
</div><!-- #primary -->
<?php do_action( 'ocean_after_primary' ); ?>
</div><!-- #content-wrap -->
<?php do_action( 'ocean_after_content_wrap' ); ?>
<?php get_footer(); ?>