page-desk.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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>Recently Edited</li>
  25. <?php $args = array('post_type' => 'post','posts_per_page' => 5,'post__in' => get_option('sticky_posts'));?>
  26. <?php $stickyposts = get_posts($args); foreach ($stickyposts as $post) : setup_postdata($post); ?>
  27. <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  28. <?php endforeach; ?>
  29. <br>
  30. <li>Recent Posts</li>
  31. <?php $recentposts = get_posts('numberposts=54'); foreach ($recentposts as $post) : setup_postdata($post); ?>
  32. <li style="color:#777"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  33. <?php endforeach; ?>
  34. <li class="pull-right"><a href="<?php echo site_url(); ?>/archive/"><b>All Posts -></b></a></li>
  35. </ul>
  36. </div>
  37. <div class="col-md-3">
  38. <div class="row"style="padding:20px 0 0 0;">
  39. <?php get_search_form(); ?>
  40. </div>
  41. <div class="row">
  42. <div class="col-md-6 studio-tools">
  43. <ul>
  44. <?php wp_list_categories('orderby=name&exclude=1,7,44&title_li=Topics'); ?>
  45. </ul>
  46. </div>
  47. <div class="col-xs-6 studio-tools">
  48. <ul>
  49. <li>Year</li>
  50. <?php wp_get_archives( array( 'type' => 'yearly') ); ?>
  51. </ul>
  52. </div>
  53. </div>
  54. <div class="row">
  55. <div class="col-xs-12 studio-tools">
  56. <ul class="tags">
  57. <li>Tags</li>
  58. <?php $tags = get_tags(); if ( $tags ) : foreach ( $tags as $tag ) : ?>
  59. <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>,
  60. <?php endforeach; endif; ?>
  61. </ul>
  62. </div>
  63. </div>
  64. <div class="row">
  65. <div class="col-md-12 studio-tools">
  66. <h5>Today I Learned</h5>
  67. <ul>
  68. <?php pull_til(); ?>
  69. <li class="pull-right"><a href="https://davidawindham.com/til/til.html"><b>All TIL -></b></a></li>
  70. </ul>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="container">
  77. <div id="content" role="main">
  78. <main id="main" class="site-main" role="main">
  79. <?php query_posts('showposts=10'); ?>
  80. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  81. <article id="content" class="single" role="main">
  82. <div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  83. <div class="entry-content">
  84. <div class="date">
  85. <time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_date('n/j/Y'); ?></time>
  86. </div>
  87. <span class="author vcard"><span class="fn">David A. Windham</span></span>
  88. <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>
  89. <?php the_content(); ?>
  90. <div class="clear">&nbsp;</div>
  91. </div>
  92. </div>
  93. </article>
  94. <?php endwhile; ?>
  95. </main>
  96. </div>
  97. </div>
  98. <?php get_footer('home'); ?>