page-desk.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 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 awash with nonsense and people that really want to be heard</em>. That's not entirely the case for me and I'm not planning on adding to the nonsense. I've spent too much time working on websites for other folks to really concern myself with my own. However, I've grown really tired of communicating using third party websites and I wanted to use this as a way to archive any notes, ideas, or anything I want to share. Right now, this site is clogged up with lots of old posts about mostly computer related ramblings, but I'll clean that up over time. I mostly leave commenting off, but please feel free to <a href="https://davidawindham.com/contact/">contact me</a> if you have any feedback, questions, or just want to say hello. <br />Thanks for visiting,</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. <h5>Search</h5>
  33. <?php get_search_form(); ?>
  34. </div>
  35. <div class="row">
  36. <div class="col-xs-6 studio-tools">
  37. <ul>
  38. <?php wp_list_categories('orderby=name&exclude=1,7,44&title_li=Topics'); ?>
  39. </ul>
  40. </div>
  41. <div class="col-xs-6 studio-tools">
  42. <ul>
  43. <li>Year</li>
  44. <?php wp_get_archives( array( 'type' => 'yearly') ); ?>
  45. </ul>
  46. </div>
  47. </div>
  48. <div class="row">
  49. <div class="col-xs-12 studio-tools">
  50. <ul>
  51. <li>Tags</li>
  52. <?php $tags = get_tags(); if ( $tags ) : foreach ( $tags as $tag ) : ?>
  53. <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>,
  54. <?php endforeach; endif; ?>
  55. </ul>
  56. </div>
  57. </div>
  58. <div class="row">
  59. <div class="col-xs-12 studio-tools">
  60. <h5>Today I Learned</h5>
  61. <ul>
  62. <?php pull_til(); ?>
  63. <li class="pull-right"><a href="https://davidawindham.com/til/til.html"><b>All TIL -></b></a></li>
  64. </ul>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="container">
  71. <div id="content" role="main">
  72. <main id="main" class="site-main" role="main">
  73. <?php query_posts('showposts=10'); ?>
  74. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  75. <article id="content" class="single" role="main">
  76. <div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  77. <div class="entry-content">
  78. <div class="date">
  79. <time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_date('n/j/Y'); ?></time>
  80. </div>
  81. <span class="author vcard"><span class="fn">David A. Windham</span></span>
  82. <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>
  83. <?php the_content(); ?>
  84. <div class="clear">&nbsp;</div>
  85. </div>
  86. </div>
  87. </article>
  88. <?php endwhile; ?>
  89. </main>
  90. </div>
  91. </div>
  92. <?php get_footer('home'); ?>