About page working
This commit is contained in:
parent
0584537f99
commit
3c6d3e6894
4 changed files with 79 additions and 16 deletions
31
index.php
31
index.php
|
@ -10,23 +10,24 @@ namespace WP_73k;
|
|||
|
||||
get_header(); ?>
|
||||
<main class="container d-flex justify-content-center">
|
||||
<div class="container mx-auto relative z-10 mb-16 lg:mb-32 flex flex-wrap items-start">
|
||||
<div class="w-full lg:w-4/6 lg:pr-10 mb-8">
|
||||
<?php
|
||||
if ( have_posts() ) {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
echo get_template_part( 'content-templates/content', 'article' );
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3">
|
||||
|
||||
<?php
|
||||
if ( !is_active_sidebar( 'sidebar' ) ) : ?>
|
||||
<aside class="w-full lg:w-2/6 bg-white border-gray-400 border-2 p-8">
|
||||
<?php dynamic_sidebar( 'sidebar' ); ?>
|
||||
</aside>
|
||||
if ( have_posts() ) {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
echo get_template_part( 'content-templates/content', 'article' );
|
||||
}
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
endif; ?>
|
||||
// if ( !is_active_sidebar( 'sidebar' ) ) : ?>
|
||||
<!-- <aside class="w-full lg:w-2/6 bg-white border-gray-400 border-2 p-8"> -->
|
||||
<?php // dynamic_sidebar( 'sidebar' ); ?>
|
||||
<!-- </aside> -->
|
||||
<?php
|
||||
// endif; ?>
|
||||
</div>
|
||||
</main>
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue