page-desk.php 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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-sm-12">
  10. <h1 id="desk" class="cm-sans wow fadeInLeft">Desk</h1>
  11. </div>
  12. </div>
  13. <div class="row desk">
  14. <div class="col-sm-5">
  15. <div class="entry-content">
  16. <h4 class="georgia spread"><em><span class="firstcharacter">T</span>he internet is ok if you look in the right places. It's also awash with nonsense</em>. 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 once I quit the social networks. I wrote a <a href="/my-personal-website/">post about this site</a> in 2020. Feel free to <a href="/contact/">contact me</a> if you have any feedback, questions, or just want to say hello. <br />Thanks for the visit,</h4>
  17. <img src="<?php echo get_template_directory_uri() . '/img/dw_signature.png'; ?>" alt="David Windham Signature"/>
  18. <img src="<?php echo get_template_directory_uri() . '/img/desk.png'; ?>" alt="Who Needs a Computer Anyway?" width="90%" style="margin:100px 10px;border:3px solid #cecece"/>
  19. </div>
  20. </div>
  21. <div class="col-sm-4 studio-tools">
  22. <ul>
  23. <li>Recent Posts</li>
  24. <?php $recentposts = get_posts('numberposts=50'); foreach ($recentposts as $post) : setup_postdata($post); ?>
  25. <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  26. <?php endforeach; ?>
  27. <li class="pull-right"><a href="<?php echo site_url(); ?>/archive/"><b>All Posts -></b></a></li>
  28. </ul>
  29. </div>
  30. <div class="col-sm-3">
  31. <div class="row"style="padding:20px 0 0 0;">
  32. <?php get_search_form(); ?>
  33. </div>
  34. <div class="row">
  35. <div class="col-xs-6 studio-tools">
  36. <ul>
  37. <?php wp_list_categories('orderby=name&exclude=1,7,44&title_li=Topics'); ?>
  38. </ul>
  39. </div>
  40. <div class="col-xs-6 studio-tools">
  41. <ul>
  42. <li>Year</li>
  43. <?php wp_get_archives( array( 'type' => 'yearly') ); ?>
  44. </ul>
  45. </div>
  46. </div>
  47. <div class="row">
  48. <div class="col-xs-12 studio-tools">
  49. <ul>
  50. <li>Tags</li>
  51. <?php $tags = get_tags(); if ( $tags ) : foreach ( $tags as $tag ) : ?>
  52. <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>,
  53. <?php endforeach; endif; ?>
  54. </ul>
  55. </div>
  56. </div>
  57. <div class="row">
  58. <div class="col-xs-12 studio-tools">
  59. <h5>Today I Learned</h5>
  60. <ul>
  61. <?php pull_til(); ?>
  62. <li class="pull-right"><a href="https://davidawindham.com/til/til.html"><b>All TIL -></b></a></li>
  63. </ul>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="container">
  70. <div id="content" role="main">
  71. <main id="main" class="site-main" role="main">
  72. <?php query_posts('showposts=10'); ?>
  73. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  74. <article id="content" class="single" role="main">
  75. <div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  76. <div class="entry-content">
  77. <div class="date">
  78. <time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_date('n/j/Y'); ?></time>
  79. </div>
  80. <span class="author vcard"><span class="fn">David A. Windham</span></span>
  81. <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>
  82. <?php the_content(); ?>
  83. <div class="clear">&nbsp;</div>
  84. </div>
  85. </div>
  86. </article>
  87. <?php endwhile; ?>
  88. </main>
  89. </div>
  90. </div>
  91. <?php get_footer('home'); ?>