{"id":2515,"date":"2009-12-05T17:47:58","date_gmt":"2009-12-05T22:47:58","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=2515"},"modified":"2009-12-05T17:47:58","modified_gmt":"2009-12-05T22:47:58","slug":"on-afternoon-coding","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=2515","title":{"rendered":"On Afternoon Coding"},"content":{"rendered":"<p>The snow continues to fall.<\/p>\n<p>I spent part of the day working on PHP and CSS code for the website.  I have the first segment of the design coded and the graphics made.  I&#8217;ve done a test to make sure the code works, and it does.  It looks like I want it to look.  I&#8217;m content with that.<\/p>\n<p>I&#8217;m moving on to the next coding challenge &mdash; multiple WordPress loops.  The &#8220;loop&#8221; is what calls the content from the WP database and puts it on the screen.  It&#8217;s completely invisible to you, the reader.  It&#8217;s completely invisible to me, the writer and sometimes coder.  Fortunately, the WordPress Codex article on <a href=\"http:\/\/codex.wordpress.org\/The_Loop\">the Loop<\/a> has provided me with sample code to look at.<\/p>\n<p>The next step is to code the CSS to handle the formatting and the PHP to call a specific category.  Wait, I should probably figure out what kind of information I wanted outputted <i>first<\/i>&#8230;<\/p>\n<p>I&#8217;ve also realized that one of my initial thoughts &mdash; serve this &#8220;front page&#8221; as a WordPress page isn&#8217;t going to work, as doing so will play havoc with people on mobile devices, like the iPhone or the Droid phone.<\/p>\n<p>Which reminds me.<\/p>\n<p>As near as I can tell, I&#8217;ve had my first visitor to my website from a Droid phone.<\/p>\n<p>I have no idea who it is; it may have been a one-shot reader from Paris, who surfed in through a Google search.  The user-agent string in amusing; the phone names itself as &#8220;Cupcake.&#8221; \ud83d\ude06<\/p>\n<p>In any event, I have no set timetable for finishing up the website redesign.  It&#8217;s not urgent.<\/p>\n<hr width=\"70%\" \/>\n<p>In other technogeekery, pointless to anyone but myself, I&#8217;ve worked up a print stylesheet.<\/p>\n<p>I&#8217;ve always preferred having a print stylesheet, on the off-chance that anyone wished to print something out they read on this website.  Fancy sidebars and dropdown menus may look fantastic on the screen, but they&#8217;re of no use whatsoever on the page.  The important thing is the <i>content<\/i>, and the print stylesheet strips everything down, and outputs something that&#8217;s designed for the screen in a format that&#8217;s better suited for the page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The snow continues to fall. I spent part of the day working on PHP and CSS code for the website. I have the first segment of the design coded and the graphics made. I&#8217;ve done a test to make sure the code works, and it does. It looks like I want it to look. I&#8217;m<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=2515\">Continue reading <span class=\"screen-reader-text\">&#8220;On Afternoon Coding&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4095],"tags":[351,4096],"class_list":["post-2515","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-meta","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2515"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2515\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2515"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}