page-desk.php 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /*
  3. Template Name: Desk
  4. */
  5. get_header(); ?>
  6. <?php get_template_part( 'underscore' ); ?>
  7. <div class="container leader">
  8. <div class="row">
  9. <div class="col-md-12">
  10. <h1 id="desk" class="cm-sans fs-2 animate__animated animate__fadeInLeft">Desk</h1>
  11. </div>
  12. </div>
  13. <div class="row desk pt-5">
  14. <div class="col-md-5">
  15. <div class="entry-content">
  16. <h5 class="georgia spread"><span class="firstcharacter">T</span>he internet is ok if you <a href="<?php echo get_template_directory_uri() . '/img/desk.png'; ?>">look in the right places</a>. It's also awash with nonsense. I'm just hoping not to contribute to the nonsense. I publish little essays, notes, ideas, images, or pretty much anything else I want to share here. This site started with mostly computer related ramblings, but I went elsewhere with it after I quit the social networks. I wrote a <a href="/my-personal-website/">post about this website</a>. The easiest way to quickly scan everything on it is through the <a href="/archive/">archive</a> or <a href="/sitemap/">sitemap</a> pages.
  17. Feel free to <a href="/contact/">contact me</a> if you have any feedback, questions, or just want to say hello. <br /><br />Thanks for the visit,</h5>
  18. <img src="<?php echo get_template_directory_uri() . '/img/dw_signature.png'; ?>" alt="David Windham Signature"/>
  19. <!--<img src="<?php echo get_template_directory_uri() . '/img/desk.png'; ?>" alt="Who Needs a Computer Anyway?" width="90%" style="margin:50px 10px 20px;border:3px solid #cecece"/>-->
  20. </div>
  21. <div class="studio-tools d-lg-block">
  22. <p><u>Today I Learned</u></p>
  23. <ul>
  24. <?php pull_til(); ?>
  25. </ul>
  26. </div>
  27. </div>
  28. <div class="col-md-4 studio-tools">
  29. <ul>
  30. <li><u>Recent Posts</u></li>
  31. <?php $recentposts = get_posts('numberposts=71'); foreach ($recentposts as $post) : setup_postdata($post); ?>
  32. <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  33. <?php endforeach; ?>
  34. </ul>
  35. </div>
  36. <div class="col-lg-3">
  37. <div class="row"style="padding:20px 0 20px 0;">
  38. <?php get_search_form(); ?>
  39. </div>
  40. <br>
  41. <div class="row">
  42. <ul>
  43. <?php $sticky = get_option('sticky_posts');?>
  44. <?php if( !empty($sticky) ){ ?>
  45. <?php $args = array('post_type' => 'post', 'orderby' => 'modified', 'posts_per_page' => 5,'post__in' => $sticky);?>
  46. <?php $stickyposts = get_posts($args); ?>
  47. <li><u>Recently ( Edited )</u></li>
  48. <?php foreach ($stickyposts as $post) : setup_postdata($post); ?>
  49. <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>
  50. <?php endforeach; ?>
  51. <?php } ?>
  52. </ul>
  53. <div class="col-sm-6 studio-tools">
  54. <ul>
  55. <li>Year</li>
  56. <?php wp_get_archives( array( 'type' => 'yearly') ); ?>
  57. </ul>
  58. </div>
  59. <div class="col-sm-6 studio-tools">
  60. <ul>
  61. <?php wp_list_categories('orderby=name&exclude=1,7,44&title_li=Topics'); ?>
  62. </ul>
  63. </div>
  64. </div>
  65. <div class="row">
  66. <ul class="tags">
  67. <li><u>Tags</u></li>
  68. <?php $tags = get_tags(); if ( $tags ) : foreach ( $tags as $tag ) : ?>
  69. <a href="<?php echo esc_url( get_tag_link( $tag->term_id ) ); ?>" title="<?php echo esc_attr( $tag->name ); ?>"><?php echo esc_html( $tag->name ); ?></a>,
  70. <?php endforeach; endif; ?>
  71. </ul>
  72. </div>
  73. <div class="row">
  74. <div class="col-md-12 studio-tools">
  75. <ul>
  76. <li><u>Recent Bookmarks</u></li>
  77. <?php bookmarks_pull(); ?>
  78. </ul>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="float-end mt-3">
  83. <a href="/desk/posts/" type="button" class="btn btn-dark" style="margin-right:.5rem">Feed</a>
  84. <a href="/archive/" type="button" class="btn btn-dark">👉🏼 The Archive</a>
  85. </div>
  86. </div>
  87. </div>
  88. <?php get_footer('home'); ?>