-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage.php
More file actions
54 lines (48 loc) · 1.68 KB
/
page.php
File metadata and controls
54 lines (48 loc) · 1.68 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
<?php
/**
* The template for displaying pages.
*
* @package ideal WordPress Theme
* @version 1.0.0
*/
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit;
}
get_header();
global $ideal_is_page_sidebar,$ideal_is_page_cards,$ideal_flex,$ideal_is_sticky,$ideal_id_container;
get_template_part( 'includes/partials/page-header/pages-header' );
?>
<div id="ideal-pagecontent" class="ideal-site-content uk-section">
<div id="ideal-page-content-inner" class="uk-container <?php echo $ideal_id_container; ?>">
<?php if ($ideal_is_page_sidebar == false) {?>
<div class=" uk-grid-column-small" uk-grid>
<div class="id-con-warp uk-width-expand@m">
<div class="uk-container">
<?php }
if (!empty($ideal_is_page_cards) && $ideal_is_page_cards == true) { echo '<div class="uk-card uk-card-default uk-card-body">';
}
if (have_posts()):
while (have_posts()):
the_post();
the_content();
if (!empty($ideal_is_page_cards) && $ideal_is_page_cards == true) {echo '</div>';}
ideal_comment_open();
endwhile;
endif;
if ($ideal_is_page_sidebar == false) {?>
</div>
</div>
<!--/id-con-warp-->
<div id="sidebar" class="uk-width-1-4@m uk-width-1-4@l <?php echo $ideal_flex ; ?>">
<div class=" uk-container uk-container-expand " id="blog-sidebar">
<div class="side-bar uk-flex uk-flex-column" <?php echo $ideal_is_sticky; ?>>
<?php get_sidebar();?>
</div>
</div>
</div><!--/sidebar-->
<?php } // if is_sidebar end?>
</div>
</div>
<?php
get_footer();