Resume page working, many other small improvements
This commit is contained in:
parent
d9b2b6946a
commit
1e708c02a3
11 changed files with 129 additions and 60 deletions
59
page.php
59
page.php
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* The default single page template.
|
||||
*
|
||||
* @author Freeshifter LLC
|
||||
* @author Adam Piontek
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
|
@ -10,34 +10,43 @@ namespace WP_73k;
|
|||
|
||||
get_header(); ?>
|
||||
<main class="container d-flex justify-content-center">
|
||||
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 border-bottom border-gray pb-4 mb-3">
|
||||
|
||||
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 border-bottom border-gray pb-3 mb-5 mt-3">
|
||||
<?php
|
||||
if ( have_posts() ) {
|
||||
while ( have_posts() ) {
|
||||
the_post(); ?>
|
||||
|
||||
<article itemscope itemtype="https://schema.org/CreativeWork">
|
||||
<header>
|
||||
<h2 class="fs-2 fw-600 mb-2">
|
||||
<?php
|
||||
if ( is_archive() || is_home() ) {
|
||||
printf( '<a href="%s" rel="bookmark">%s</a>',
|
||||
esc_url( get_the_permalink() ),
|
||||
esc_html( get_the_title() )
|
||||
);
|
||||
} else {
|
||||
echo get_the_title();
|
||||
} ?>
|
||||
</h2>
|
||||
</header>
|
||||
<article itemscope itemtype="https://schema.org/CreativeWork">
|
||||
|
||||
<div class="article">
|
||||
<?php
|
||||
if ( has_post_thumbnail() ) {
|
||||
echo get_the_post_thumbnail( get_the_ID(), 'large', ['class' => 'rounded shadow-lg'] );
|
||||
<header>
|
||||
<h2 class="fs-2 fw-600 mb-0">
|
||||
<?php
|
||||
if ( is_archive() || is_home() ) {
|
||||
printf( '<a href="%s" rel="bookmark">%s</a>',
|
||||
esc_url( get_the_permalink() ),
|
||||
esc_html( get_the_title() )
|
||||
);
|
||||
} else {
|
||||
echo get_the_title();
|
||||
} ?>
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<div class="article">
|
||||
<?php
|
||||
if ( has_post_thumbnail() ) {
|
||||
echo get_the_post_thumbnail( get_the_ID(), 'large', ['class' => 'rounded shadow-lg'] );
|
||||
}
|
||||
|
||||
the_content(); ?>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
the_content(); ?>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
} ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue