page-desk.php 4.7 KB

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