page-desk.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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-lg-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-sm-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-sm-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. <ul class="tags">
  65. <li><u>Tags</u></li>
  66. <?php $tags = get_tags(); if ( $tags ) : foreach ( $tags as $tag ) : ?>
  67. <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>,
  68. <?php endforeach; endif; ?>
  69. </ul>
  70. </div>
  71. <div class="row">
  72. <div class="col-md-12 studio-tools">
  73. <h5><u>Today I Learned</u></h5>
  74. <ul>
  75. <?php pull_til(); ?>
  76. </ul>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="float-end mt-n3">
  81. <a href="/archive/" type="button" class="btn btn-dark float-end">View Archives</a>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="container">
  86. <div id="content" role="main">
  87. <main id="main" class="site-main" role="main">
  88. <?php query_posts('showposts=10'); ?>
  89. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  90. <article id="content" class="single" role="main">
  91. <div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  92. <div class="entry-content">
  93. <div class="date">
  94. <time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_date('n/j/Y'); ?></time>
  95. </div>
  96. <span class="author vcard"><span class="fn">David A. Windham</span></span>
  97. <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>
  98. <?php the_content(); ?>
  99. <div class="clear">&nbsp;</div>
  100. </div>
  101. </div>
  102. </article>
  103. <?php endwhile; ?>
  104. </main>
  105. </div>
  106. </div>
  107. <?php get_footer('home'); ?>