| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?php
- /*
- Template Name: Desk
- */
- get_header(); ?>
- <?php get_template_part( 'underscore' ); ?>
- <div class="container leader">
- <div class="row">
- <div class="col-md-12">
- <h1 id="desk" class="cm-sans fs-2 animate__animated animate__fadeInLeft">Desk</h1>
- </div>
- </div>
- <div class="desk" role="main">
- <div class="entry-content">
- <div class="row">
- <div class="col-lg-8">
- <h4 class="fw-bold mb-1">Now</h4>
- <ul class="now-doing" style="margin:0">
- <?php now(); ?>
- </ul>
- <div class="row mt-3">
- <div class="col-md-6 studio-tools">
- <h4 class="fw-bold">Posts</h4>
- <ul>
- <?php $recentposts = get_posts('numberposts=21'); foreach ($recentposts as $post) : setup_postdata($post); ?>
- <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
- <?php endforeach; ?>
- </ul>
- </div>
- <div class="col-md-6 studio-tools d-lg-block">
- <h4 class="fw-bold">Today I Learned</h4>
- <ul>
- <?php pull_til(21); ?>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-lg-4 studio-tools desk-meta">
- <?php $sticky = get_option('sticky_posts'); if( !empty($sticky) ){ ?>
- <h4 class="fw-bold">Recently Edited</h4>
- <ul>
- <?php $args = array('post_type' => 'post', 'orderby' => 'modified', 'posts_per_page' => 5,'post__in' => $sticky);?>
- <?php $stickyposts = get_posts($args); foreach ($stickyposts as $post) : setup_postdata($post); ?>
- <li style="color:#777"><?php echo get_the_modified_date('y/m/d'); ?> ( <?php echo get_the_date('y/m/d'); ?> ) - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
- <?php endforeach; ?>
- </ul>
- <?php } ?>
- <h4 class="fw-bold mt-4">Recommended Reading</h4>
- <ul>
- <?php $recposts = get_posts( array( 'category_name' => 'recommended', 'numberposts' => 10 ) ); foreach ( $recposts as $post ) : setup_postdata( $post ); ?>
- <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
- <?php endforeach; wp_reset_postdata(); ?>
- </ul>
- <h4 class="fw-bold mt-4">Recent Bookmarks</h4>
- <ul>
- <?php bookmarks_pull(7); ?>
- </ul>
- <h4 class="fw-bold">By Year</h4>
- <ul class="tags">
- <?php wp_get_archives( array( 'type' => 'yearly', 'format' => 'custom', 'before' => '', 'after' => ', ' ) ); ?>
- </ul>
- </div>
- </div>
- <div class="row mt-3 pb-2">
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Docs</h4>
- <ul style="margin:0">
- <?php docs(); ?>
- </ul>
- </div>
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Notes</h4>
- <ul style="margin:0">
- <?php notes(); ?>
- </ul>
- </div>
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Lists</h4>
- <ul style="margin:0">
- <?php lists(); ?>
- </ul>
- </div>
- </div>
- <div class="row mt-3 pb-2">
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Learning</h4>
- <ul style="margin:0">
- <?php learning(); ?>
- </ul>
- </div>
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Commiting</h4>
- <ul style="margin:0">
- <?php commits(); ?>
- </ul>
- </div>
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Listening <span class="text-muted fw-light"><small>( all @ <a href="https://davidawindham.com/studio/music/">/music )</a></small></span></h4>
- <ul style="margin:0">
- <?php listening(); ?>
- </ul>
- </div>
- </div>
- <div class="row mt-3 pb-2">
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Watching</h4>
- <ul style="margin:0">
- <?php watching(); ?>
- </ul>
- </div>
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Reading</h4>
- <ul style="margin:0">
- <?php reading(); ?>
- </ul>
- </div>
- <div class="col-lg-4">
- <h4 class="fw-bold mt-2">Playing</h4>
- <ul style="margin:0">
- <?php playing(); ?>
- </ul>
- </div>
- </div>
- <div class="d-flex desk-actions" style="width:100%;margin-top:3rem;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:.5rem">
- <div style="flex:0 0 280px"><?php get_search_form(); ?></div>
- <a href="/desk/posts/" type="button" class="btn btn-dark">The Scroll</a>
- <a href="/archive/" type="button" class="btn btn-dark">👉🏼 The Archive</a>
- </div>
- </div>
- </div>
- </div>
- <?php get_footer('home'); ?>
|