-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
128 lines (92 loc) · 3.85 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php get_header();?>
<div class="container-fluid single-page-template" style="margin:0px auto !important;padding: 0px 0px 0px 0px;">
<div class="container" style="padding: 90px 20px 90px 0px;">
<div class="row" style="margin:0px auto;padding: 0px 0px 0px 0px;display: flex;flex-wrap: wrap;flex-direction: row;justify-content: space-between;align-content: stretch;">
<div id="single-page-section" class="col-sm-8 col-md-8" style="margin:0px 0px 30px 0px;border-bottom: 1px dotted #000;padding: 0px 0px 40px 0px;">
<?php include (TEMPLATEPATH . '/design/content/meta/breadcrumbs/spb.php');?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article>
<?php // if ( is_user_logged_in() ) {;?>
<!--<div style="position:fixed;max-width:100px;max-height:100px;background:#F00;top:50%;right:0;s">
<button class="btn btn-dark customize-unpreviewable" href="<?php // echo home_url(); ?>/wp-admin/post.php?post=<?php // the_ID(); ?>&action=edit" title="" role="contentinfo" type="button" title="<?php // the_title(); ?> - Edit This Page "><span class="dashicons dashicons-edit-page"></span></button>
<a class="btn btn-dark" href="<?php // echo home_url(); ?>/wp-admin/customize.php?url=<?php // echo get_the_permalink(); ?>" title="" role="contentinfo" type="button">Live Customize Edit</a>
</div>-->
<?php // } else{ };?>
<header id="headertitle" style="white-space: normal;width:100%;display:inline-block;">
<h1 class="single-page-header-title">
<?php
$customTitle = get_theme_mod('yourseobook_single_page_heading_title_setting');
if (!empty($customTitle)) {
echo esc_html($customTitle);
} else {
the_title();
}
?>
</h1>
</header>
<div class="entry-content">
<?php include (TEMPLATEPATH . '/api/func/content/single/featured-image-fallback.php');?>
<?php include (TEMPLATEPATH . '/design/content/meta/sp/single-page-top-meta.php');?>
<?php echo yourseobook_generate_table_of_contents(); ?>
<?php $content = apply_filters('the_content', get_the_content());
$content = explode("</h3>", $content, 2);
// var_dump($content); // debug
echo $content[0].'</h3>';
echo '';
if (!empty($content[1])) {
echo $content[1];
} ?>
<?php // get_the_content(); ?>
<?php yourseobook_set_post_views(get_the_ID());?>
</div>
<footer>
<hr>
<?php include (TEMPLATEPATH . '/design/content/meta/sp/single-page-bottom-meta.php');?>
<?php include (TEMPLATEPATH . '/design/content/meta/sp/single-page-bottom-share-buttons.php');?>
<?php include (TEMPLATEPATH . '/design/content/meta/sp/single-page-bottom-author.php');?>
<style>
div#mySidenav .sidenav.shown ul {
list-style: circle;
padding: 10px;
}
.shown ul li a {
color: #fff;
text-align: left;
text-decoration: none;
font-weight: 400;
margin: 10px 0px 10px 0px;
display: inline-block;
border: 1px dotted #fff;
padding: 5px;
font-size: 12px;
line-height: 1.15rem;
}
</style>
</footer>
</article>
<?php endwhile; else : ?>
<?php endif; ?>
<div class="navigation">
<?php previous_post_link(); ?> <?php next_post_link(); ?>
</div>
</div>
<?php if ( get_theme_mod( 'yourseobook_single_page_sidebar_display_control' ) ) : ?>
<div id="spsdc" class="col-sm-3 col-md-3">
<aside>
<?php if ( is_active_sidebar( 'yourseobook_single_page_right_sidebar' ) ) : ?>
<?php dynamic_sidebar( 'yourseobook_single_page_right_sidebar' ); ?>
<?php endif; ?>
</aside>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php if ( get_theme_mod( 'yourseobook_single_page_cta_sticky_socials_display_control' ) ) : ?>
<?php include (TEMPLATEPATH . '/design/engage/call-to-actions/sticky-socials.php');?>
<?php endif; ?>
<?php if ( get_theme_mod( 'yourseobook_single_page_cta_footer_pop_up_display_control' ) ) : ?>
<?php include (TEMPLATEPATH . '/design/engage/call-to-actions/footer-pop-up.php');?>
<?php include (TEMPLATEPATH . '/design/engage/call-to-actions/free-website-audit.php ');?>
<?php endif; ?>
<?php get_footer();?>