page-desk.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <div class="row mb-3">
  84. </div>
  85. <a href="/archive/" type="button" class="btn btn-dark float-end">👉🏼 The Archive</a>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="container">
  90. <div id="content" role="main">
  91. <main id="main" class="site-main" role="main">
  92. <?php query_posts('showposts=10'); ?>
  93. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  94. <article id="content" class="single" role="main">
  95. <div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  96. <div class="entry-content">
  97. <div class="date">
  98. <time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_date('n/j/Y'); ?></time>
  99. </div>
  100. <span class="author vcard"><span class="fn">David A. Windham</span></span>
  101. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  102. <?php the_content(); ?>
  103. <div class="clear">&nbsp;</div>
  104. </div>
  105. </div>
  106. </article>
  107. <?php endwhile; ?>
  108. </main>
  109. </div>
  110. </div>
  111. <?php get_footer('home'); ?>