Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
93b1e1ef7c | |||
706c524755 |
7 changed files with 573 additions and 434 deletions
|
@ -32,8 +32,13 @@ namespace WP_73k;
|
||||||
|
|
||||||
<div class="post-date font-monospace text-muted <?php echo (has_tag() ? '' : 'mb-3'); ?>">
|
<div class="post-date font-monospace text-muted <?php echo (has_tag() ? '' : 'mb-3'); ?>">
|
||||||
<?php
|
<?php
|
||||||
|
if (is_author()) {
|
||||||
|
$the_author = get_the_author();
|
||||||
|
} else {
|
||||||
|
$the_author = get_the_author_posts_link();
|
||||||
|
}
|
||||||
echo inline_svg( 'mdi-calendar-clock', array( 'div_class' => 'icon baseline me-2' ) ) . get_the_date('F j, Y');
|
echo inline_svg( 'mdi-calendar-clock', array( 'div_class' => 'icon baseline me-2' ) ) . get_the_date('F j, Y');
|
||||||
echo ' by ' . inline_svg( 'mdi-account', array( 'div_class' => 'icon baseline me-1' ) ) . get_the_author();
|
echo ' by ' . inline_svg( 'mdi-account', array( 'div_class' => 'icon baseline me-1' ) ) . $the_author;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
2
dist/main.min.css
vendored
2
dist/main.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/main.min.js
vendored
2
dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
24
dist/main.min.js.LICENSE.txt
vendored
24
dist/main.min.js.LICENSE.txt
vendored
|
@ -1,71 +1,71 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap alert.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap alert.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap base-component.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap base-component.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap button.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap button.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap collapse.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap collapse.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap component-functions.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap component-functions.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap config.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap config.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap data.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap data.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap dropdown.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap dropdown.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap event-handler.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap event-handler.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap index.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap index.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap manipulator.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap manipulator.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap selector-engine.js v5.2.2 (https://getbootstrap.com/)
|
* Bootstrap selector-engine.js v5.2.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
22
index.php
22
index.php
|
@ -12,7 +12,27 @@ get_header(); ?>
|
||||||
<main class="container d-flex justify-content-center">
|
<main class="container d-flex justify-content-center">
|
||||||
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3">
|
<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_archive()) : ?>
|
|
||||||
|
|
||||||
|
<?php if (is_author()) :
|
||||||
|
// If a user has filled out their description, show a bio on their entries.
|
||||||
|
if ( get_the_author_meta( 'description' ) ) { ?>
|
||||||
|
<div id="author-info" class="d-flex flex-row mb-4 tek-border-bottom-gray-dashed">
|
||||||
|
<div id="author-avatar" class="flex-shrink-0">
|
||||||
|
<?php echo get_avatar( get_the_author_meta( 'user_email' ), $size = '96', $default = '', $alt = '', $args = array( 'class' => 'rounded-3 me-3 pt-1' )); ?>
|
||||||
|
</div><!-- #author-avatar -->
|
||||||
|
<div id="author-description" class="flex-grow-1 mb-2">
|
||||||
|
<h1 class="text-muted fst-italic mb-0"><?php printf( __( 'Author: %s', '' ), get_the_author() ); ?></h1>
|
||||||
|
<?php the_author_meta( 'description' ); ?>
|
||||||
|
</div><!-- #author-description -->
|
||||||
|
</div><!-- #entry-author-info -->
|
||||||
|
<?php } else {
|
||||||
|
// if user does not have description, show standard archive title
|
||||||
|
?>
|
||||||
|
<h1 class="text-muted fst-italic mb-4 tek-border-bottom-gray-dashed"><?= get_the_archive_title(); ?></h1>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php elseif (is_archive()) : ?>
|
||||||
<h1 class="text-muted fst-italic mb-4 tek-border-bottom-gray-dashed"><?= get_the_archive_title(); ?></h1>
|
<h1 class="text-muted fst-italic mb-4 tek-border-bottom-gray-dashed"><?= get_the_archive_title(); ?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
948
package-lock.json
generated
948
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -3,7 +3,7 @@
|
||||||
* Theme URI: https://github.com/apiontek/wp-73k
|
* Theme URI: https://github.com/apiontek/wp-73k
|
||||||
* Author: Adam Piontek
|
* Author: Adam Piontek
|
||||||
* Author URI: https://73k.us
|
* Author URI: https://73k.us
|
||||||
* Version: 1.0.9
|
* Version: 1.1.0
|
||||||
* License: GNU General Public License v3 or later
|
* License: GNU General Public License v3 or later
|
||||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
* Text Domain: wp-73k
|
* Text Domain: wp-73k
|
||||||
|
|
Loading…
Reference in a new issue