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-md-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-md-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 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. <br /><br />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,</h4>
  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:100px 10px;border:3px solid #cecece"/>
  20. </div>
  21. </div>
  22. <div class="col-md-4 studio-tools">
  23. <ul>
  24. <li>Recent Posts</li>
  25. <?php $recentposts = get_posts('numberposts=50'); foreach ($recentposts as $post) : setup_postdata($post); ?>
  26. <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  27. <?php endforeach; ?>
  28. <li class="pull-right"><a href="<?php echo site_url(); ?>/archive/"><b>All Posts -></b></a></li>
  29. </ul>
  30. </div>
  31. <div class="col-md-3">
  32. <div class="row"style="padding:20px 0 0 0;">
  33. <?php get_search_form(); ?>
  34. </div>
  35. <div class="row">
  36. <div class="col-md-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 class="tags">
  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-md-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'); ?>