<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Line In Web Design</title>
	
	<link>http://line-in.co.uk</link>
	<description>Semantic, Responsive WordPress sites</description>
	<lastBuildDate>Sun, 29 Jan 2012 16:00:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/LineInWebDesign" /><feedburner:info uri="lineinwebdesign" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Sketchbook Sunday: Bears</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/9VlEHE3czPE/</link>
		<comments>http://line-in.co.uk/sketchbook-sunday-bears/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 16:00:49 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Sketchbook Sunday]]></category>
		<category><![CDATA[bears]]></category>
		<category><![CDATA[sketchbook sunday]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1327</guid>
		<description><![CDATA[<p><img width="620" height="248" src="http://line-in.co.uk/wp-content/uploads/2011/04/sketchbook-sunday-620x248.png" class="attachment-large wp-post-image" alt="Sketchbook Sunday Title" title="Sketchbook Sunday Title" /></p>First one of the new year! And I did it before the end of January! Go me! Related posts:Sketchbook Sunday: A Year In Review Sketchbook Sunday — Boots and Suitcases Sketchbook Sunday: Japan]]></description>
			<content:encoded><![CDATA[<p><img width="620" height="248" src="http://line-in.co.uk/wp-content/uploads/2011/04/sketchbook-sunday-620x248.png" class="attachment-large wp-post-image" alt="Sketchbook Sunday Title" title="Sketchbook Sunday Title" /></p><p>First one of the new year! And I did it before the end of January! Go me!</p>
<p><span id="more-1327"></span></p>
<p style="text-align: center;"><a href="http://line-in.co.uk/wp-content/uploads/2012/01/sketchbook-sunday-bears.png"><img class="aligncenter size-large wp-image-1328" title="Sketchbook Sunday: Bears" src="http://line-in.co.uk/wp-content/uploads/2012/01/sketchbook-sunday-bears-620x885.png" alt="A pair of bears" width="434" height="620" /></a></p>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1327&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/sketchbook-sunday-a-year-in-review/' rel='bookmark' title='Sketchbook Sunday: A Year In Review'>Sketchbook Sunday: A Year In Review</a></li>
<li><a href='http://line-in.co.uk/sketchbook-sunday-%e2%80%94-boots-and-suitcases/' rel='bookmark' title='Sketchbook Sunday — Boots and Suitcases'>Sketchbook Sunday — Boots and Suitcases</a></li>
<li><a href='http://line-in.co.uk/sketchbook-sunday-japan/' rel='bookmark' title='Sketchbook Sunday: Japan'>Sketchbook Sunday: Japan</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/9VlEHE3czPE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/sketchbook-sunday-bears/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/sketchbook-sunday-bears/</feedburner:origLink></item>
		<item>
		<title>Sketchbook Sunday: A Year In Review</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/Xa3kUkUEVWk/</link>
		<comments>http://line-in.co.uk/sketchbook-sunday-a-year-in-review/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 16:00:14 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Sketchbook Sunday]]></category>
		<category><![CDATA[End of Year Review]]></category>
		<category><![CDATA[sketchbook sunday]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1314</guid>
		<description><![CDATA[<p><img width="620" height="248" src="http://line-in.co.uk/wp-content/uploads/2011/04/sketchbook-sunday-620x248.png" class="attachment-large wp-post-image" alt="Sketchbook Sunday Title" title="Sketchbook Sunday Title" /></p>Happy New Year (that&#8217;s if the Gregorian calendar is your thing, otherwise Happy Sunday)! It&#8217;s been an exciting year here at Line In HQ (current location: Chiang Mai, Thailand). As well as travelling to some really neat places and meeting [...]]]></description>
			<content:encoded><![CDATA[<p><img width="620" height="248" src="http://line-in.co.uk/wp-content/uploads/2011/04/sketchbook-sunday-620x248.png" class="attachment-large wp-post-image" alt="Sketchbook Sunday Title" title="Sketchbook Sunday Title" /></p><p>Happy New Year (that&#8217;s if the Gregorian calendar is your thing, otherwise Happy Sunday)!</p>
<p>It&#8217;s been an exciting year here at Line In HQ (current location: <a href="http://www.neverendingvoyage.com/the-search-for-an-apartment-in-chiang-mai/" title="That's Where I'm Livin'">Chiang Mai, Thailand</a>). As well as travelling to some <a href='http://www.neverendingvoyage.com/never-ending-voyage-best-posts-of-2011/'>really neat places</a> and meeting some <a href="http://globetrottergirls.com/" title="Dani and Jess">thoroughly</a> <a href='http://www.marriedwithluggage.com/' title='Warren and Betsy'>excellent</a> <a href='http://goseewrite.com' title='Mike'>people</a>, I&#8217;ve been involved in a number of exciting projects, both personal and as a Professional Inter Web Page Maker.<br />
<span id="more-1314"></span><br />
One of these personal projects was an attempt, started at my busiest time (naturally), to draw <a href="http://line-in.co.uk/category/illustration-156/" title="Illustration 156">3 new illustrations a week for an entire year</a>. </p>
<p>I don&#8217;t know why I&#8217;m speaking of it in the past tense, as it only began in September. Perhaps it&#8217;s because, of late, I&#8217;ve been involved in an even bigger and more exciting project (more details coming soon) so I haven&#8217;t been able to dedicate as much time to this as I&#8217;d like</p>
<p>However, I definitely don&#8217;t want to be Announces Internet Project Then Never Completes It Guy, so I do intend to get back on the drunk, three-legged horse and force the hoary ol&#8217; mare over the finish line by the 1st September 2012. </p>
<p>But in order to do that, I&#8217;m going to need to get better, faster.</p>
<p>Which brings us, in a most roundabout fashion, to the point of this post. In pursuit of this noble ambition, my sketchery output has increased dramatically since I began. Recently I revisited some of these sketches and there were some very obvious lessons to be taken from what was (and wasn&#8217;t) there on the page. </p>
<p>Being in a particularly reflective mood, I decided it would be a good idea to note down some of these lessons lest I make the same mistakes for a whole another year.</p>
<p>Then I went one further and thought it would be nice if I <em>drew</em> out the lessons.</p>
<p>Here&#8217;s what I learned.</p>
<h3>1) Choose A Path</h3>
<p><a href="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-1.jpg"><img class="aligncenter size-large wp-image-1315" title="Sketchbook Review Page 1" src="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-1-620x498.jpg" alt="A page from my sketchbook" width="620" height="498" /></a></p>
<p>The Page that Started It All. </p>
<p>I found that it was important not to get hung up on the first draft. Choose a path and commit to it 100%. Sketch to the page, loose and quick, then work at it to make it better.</p>
<h3>2) Tell A Story</h3>
<div id="attachment_1316" class="wp-caption aligncenter" style="width: 630px"><a href="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-2.jpg"><img class="size-large wp-image-1316" title="Sketchbook Review Page 2" src="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-2-620x466.jpg" alt="Another page from my sketchbook" width="620" height="466" /></a><p class="wp-caption-text">Vision: Have a Story To Tell</p></div>
<p>The greatest technical chops in the world are useless if you&#8217;ve got nothing to say. These two bland and unexciting chaps exist in the ether, with no point or purpose to their existence. As such, they lack the punch of some of my more <a href="http://line-in.co.uk/illustration-14-steam-powered-servers/">successful</a> <a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>illustrative</a> <a href='http://line-in.co.uk/illustration-19-i-heart-mooses/'>attempts</a>.</p>
<p>It&#8217;s important for me to know <em>what</em> I want to say first. Then I can worry about <em>how</em> to say it.</p>
<h3>3) Put My Everything into Everything</h3>
<div id="attachment_1317" class="wp-caption aligncenter" style="width: 630px"><a href="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-3.jpg"><img class="size-large wp-image-1317" title="Sketchbook Review Page 3" src="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-3-620x462.jpg" alt="A third page from my sketchbook" width="620" height="462" /></a><p class="wp-caption-text">Make Beautiful Thumbnails</p></div>
<p>Thumbnails can be loose, sketchy and quick or they can be carefully crafted. They can be vague approximations or precise considerations. </p>
<p>But whatever they are, they deserve my attention. I&#8217;ve been guilty of doing thumbnails distracted when they require as much focus as any other part of a project. </p>
<p>Every time I draw a line on a page, I want to be fully committed to that experience. Not rushed or distracted, simply aware of the pleasure of pencil on paper (or stylus on graphics tablet).</p>
<h3>4) Finish It Up</h3>
<div id="attachment_1318" class="wp-caption aligncenter" style="width: 630px"><a href="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-4.jpg"><img class="size-large wp-image-1318" title="Sketchbook Review Page 1" src="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-4-620x493.jpg" alt="A fourth page, all about getting things finished." width="620" height="493" /></a><p class="wp-caption-text">Finish It Up (however bad it seems)</p></div>
<p>I originally abandoned my <a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>Robots vs Tentacles</a> sketch because the very early version was a horrible mess and I got frustrated. </p>
<p>It&#8217;s only when I was flicking back through the book a few weeks later that I saw how close it was to being something useable. I worked at just a little bit more (it really was only like 5 minutes) and it turned into one of my <a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>favourite pieces of the year</a>.</p>
<p>What struck me was how close I was when I gave up: Darkest before dawn and all that, I guess. </p>
<h3>5) Plan My Sketches</h3>
<div id="attachment_1319" class="wp-caption aligncenter" style="width: 630px"><a href="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-5.jpg"><img class="size-large wp-image-1319" title="Sketchbook Review Page 5" src="http://line-in.co.uk/wp-content/uploads/2011/12/sketchbook-5-620x495.jpg" alt="A fifth page, all about planning and filling the space" width="620" height="495" /></a><p class="wp-caption-text">Plan My Sketches (and fill the space)</p></div>
<p>This is one mistake I would definitely like to stop in 2012. I&#8217;m forever just opening up a new page and starting bang in the middle. </p>
<p>It&#8217;s always worth taking a few moments to think about what it is I&#8217;m drawing and plan accordingly. A few super-light lines to block stuff out is also a good idea.</p>
<h3>2012</h3>
<p>Turns out that Learning From Your Mistakes is a super useful exercise! </p>
<p>I&#8217;m hoping that taking this time to recognise the mistakes that I&#8217;m repeatedly making will hopefully go a long way to stopping them from happening again. </p>
<p>I wouldn&#8217;t, like, <em>bet</em> on it or anything. </p>
<p>But I&#8217;m hopeful.</p>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1314&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/sketchbook-sunday-bears/' rel='bookmark' title='Sketchbook Sunday: Bears'>Sketchbook Sunday: Bears</a></li>
<li><a href='http://line-in.co.uk/sketchbook-sunday-%e2%80%94-boots-and-suitcases/' rel='bookmark' title='Sketchbook Sunday — Boots and Suitcases'>Sketchbook Sunday — Boots and Suitcases</a></li>
<li><a href='http://line-in.co.uk/sketchbook-sunday-airport-faces/' rel='bookmark' title='Sketchbook Sunday—Airport Faces'>Sketchbook Sunday—Airport Faces</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/Xa3kUkUEVWk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/sketchbook-sunday-a-year-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/sketchbook-sunday-a-year-in-review/</feedburner:origLink></item>
		<item>
		<title>Wrap Form Elements To Maintain Vertical Rhythm</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/A3-aD2_LohM/</link>
		<comments>http://line-in.co.uk/wrap-form-elements-to-maintain-vertical-rhythm/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 08:45:42 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Typography]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1307</guid>
		<description><![CDATA[It&#8217;s easy to get obsessive about typography and vertical rhythm, especially when using my plugin that shows you exactly how close to the lines you are. One of the biggest challenges in maintaining a solid vertical rhythm is form elements. [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s easy to get obsessive about typography and vertical rhythm, especially when using <a href="http://wordpress.org/extend/plugins/line-in-typography">my plugin that shows you exactly how close to the lines you are</a>.</p>
<p>One of the biggest challenges in maintaining a solid vertical rhythm is form elements. I have tried too many different ways to get them to fit into the flow of text&#8211;including countless combinations of padding, margins, borders, line-heights and font-sizes&#8211;but unfortunately they simply do not behave themselves consistently cross-browser.</p>
<p>Which is why I had a bit of a double facepalm moment when I realised exactly how easy it could be. Simply wrap them in a containing element and give that element a minimum height:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;form-container&quot;&gt;
	&lt;label for=&quot;input-element&quot;&gt;My Label&lt;/label&gt;
	&lt;input type=&quot;text&quot; id='input-element'&gt;
&lt;/div&gt;
</pre>
<p>Usually I just go for double the line height:</p>
<pre class="brush: css; title: ; notranslate">
.form-container {
	min-height: 3em; /* Assuming line-height of 1.5 */
}

/* If you're using LESS/SASS, it's even easier */
.form-container {
	min-height: @lineHeight * 2;
}
</pre>
<p>Obviously, if you change the font-size of the containing element, this will break your vertical rhythm (you&#8217;ll have to re-calculate the min-height based on the new line-height, itself based on the new font-size).</p>
<p>But if you&#8217;re using the same font-size, then this is all you need to make sure that everything sits vertically where it should.</p>
<p>If you want more space underneath or above your form container, you could simply use another line-height unit:</p>
<pre class="brush: css; title: ; notranslate">
.form-container {
	min-height: @lineHeight * 2;
	margin: 0.75em 0;  /* Assume 1.5 line height, divided by 2 */
}
</pre>
<p>Everything that comes after it will sit on the same line as everything that comes before it.</p>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1307&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/ie-image-fixer-upper/' rel='bookmark' title='IE Image Fixer Upper'>IE Image Fixer Upper</a></li>
<li><a href='http://line-in.co.uk/getting-more-control-from-the-wordpress-settings-api/' rel='bookmark' title='Getting More Control from the WordPress Settings API'>Getting More Control from the WordPress Settings API</a></li>
<li><a href='http://line-in.co.uk/illustrator-crystallize-tool/' rel='bookmark' title='Create a Quick Grassy Hill in Illustrator with the Crystallize Tool'>Create a Quick Grassy Hill in Illustrator with the Crystallize Tool</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/A3-aD2_LohM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/wrap-form-elements-to-maintain-vertical-rhythm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/wrap-form-elements-to-maintain-vertical-rhythm/</feedburner:origLink></item>
		<item>
		<title>Illustration 19: I Heart Mooses</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/qyysqMYjMaU/</link>
		<comments>http://line-in.co.uk/illustration-19-i-heart-mooses/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 12:50:58 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Illustration 156]]></category>
		<category><![CDATA[Illustrations]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Mooses]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1297</guid>
		<description><![CDATA[<p><img width="620" height="620" src="http://line-in.co.uk/wp-content/uploads/2011/11/moose-illo-156-620x620.png" class="attachment-large wp-post-image" alt="An illustrated picture of a Moose" title="Moose Portrait" /></p>This was a piece I did for a client. And, yes, the misspelling of the plural of Moose is deliberate. Last 5 Illustrations Related posts:Illustration 17: Robots vs Tentacles 2 Illustration 15: Life Is But A Joke Illustration 9: Plural [...]]]></description>
			<content:encoded><![CDATA[<p><img width="620" height="620" src="http://line-in.co.uk/wp-content/uploads/2011/11/moose-illo-156-620x620.png" class="attachment-large wp-post-image" alt="An illustrated picture of a Moose" title="Moose Portrait" /></p><p>This was a piece I did for a client.</p>
<p>And, yes, the misspelling of the plural of Moose is deliberate. </p>
<p><strong>Last 5 Illustrations</strong></p>
<ul><li><a href='http://line-in.co.uk/illustration-18-cow-icon/'>Illustration 18: Cow Icon</a></li><li><a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>Illustration 17: Robots vs Tentacles 2</a></li><li><a href='http://line-in.co.uk/illustration-16-more-jesters/'>Illustration 16: More Jesters</a></li><li><a href='http://line-in.co.uk/illustration-15-life-is-but-a-joke/'>Illustration 15: Life Is But A Joke</a></li><li><a href='http://line-in.co.uk/illustration-14-steam-powered-servers/'>Illustration 14: Steam-Powered Servers</a></li></ul>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1297&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/' rel='bookmark' title='Illustration 17: Robots vs Tentacles 2'>Illustration 17: Robots vs Tentacles 2</a></li>
<li><a href='http://line-in.co.uk/illustration-15-life-is-but-a-joke/' rel='bookmark' title='Illustration 15: Life Is But A Joke'>Illustration 15: Life Is But A Joke</a></li>
<li><a href='http://line-in.co.uk/illustration-9-plural-of-anecdote/' rel='bookmark' title='Illustration 9: Plural of Anecdote'>Illustration 9: Plural of Anecdote</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/qyysqMYjMaU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/illustration-19-i-heart-mooses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/illustration-19-i-heart-mooses/</feedburner:origLink></item>
		<item>
		<title>Illustration 18: Cow Icon</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/7L2jE_LEM58/</link>
		<comments>http://line-in.co.uk/illustration-18-cow-icon/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 18:19:30 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Illustration 156]]></category>
		<category><![CDATA[Cows]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Illustrations]]></category>
		<category><![CDATA[Illustrator]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1288</guid>
		<description><![CDATA[<p><img width="312" height="195" src="http://line-in.co.uk/wp-content/uploads/2011/11/cow-icon.png" class="attachment-large wp-post-image" alt="It&#039;s a set of icons. Of a cow." title="My Cow Icon" /></p>First attempt at creating an icon. It&#8217;s a cow. After my extensive research (all of 10 seconds on IconFinder), I concluded that there was a shortage of cow icons in the world. This is my attempt to help fill that [...]]]></description>
			<content:encoded><![CDATA[<p><img width="312" height="195" src="http://line-in.co.uk/wp-content/uploads/2011/11/cow-icon.png" class="attachment-large wp-post-image" alt="It&#039;s a set of icons. Of a cow." title="My Cow Icon" /></p><p>First attempt at creating an icon. It&#8217;s a cow. </p>
<p>After my extensive research (all of 10 seconds on <a href='http://iconfinder.com'>IconFinder</a>), I concluded that there was a shortage of cow icons in the world. This is my attempt to help fill that void.</p>
<p>It comes in 16, 24, 32, 48, 64 and 128px sizes, both matt and glossy, and I&#8217;ve included the original vector .AI file as well.</p>
<p>You can <a href='http://line-in.co.uk/wp-content/uploads/2011/11/cow-icon.zip'>download this veritable bovine bonanza here</a>.</p>
<p><strong>Last 5 Illustrations</strong></p>
<ul><li><a href='http://line-in.co.uk/illustration-18-cow-icon/'>Illustration 18: Cow Icon</a></li><li><a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>Illustration 17: Robots vs Tentacles 2</a></li><li><a href='http://line-in.co.uk/illustration-16-more-jesters/'>Illustration 16: More Jesters</a></li><li><a href='http://line-in.co.uk/illustration-15-life-is-but-a-joke/'>Illustration 15: Life Is But A Joke</a></li><li><a href='http://line-in.co.uk/illustration-14-steam-powered-servers/'>Illustration 14: Steam-Powered Servers</a></li></ul>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1288&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/illustration-8-melt/' rel='bookmark' title='Illustration 8: Melt'>Illustration 8: Melt</a></li>
<li><a href='http://line-in.co.uk/illustration-9-plural-of-anecdote/' rel='bookmark' title='Illustration 9: Plural of Anecdote'>Illustration 9: Plural of Anecdote</a></li>
<li><a href='http://line-in.co.uk/illustration-13-technical-difficulties/' rel='bookmark' title='Illustration 13: Technical Difficulties'>Illustration 13: Technical Difficulties</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/7L2jE_LEM58" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/illustration-18-cow-icon/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/illustration-18-cow-icon/</feedburner:origLink></item>
		<item>
		<title>Getting More Control from the WordPress Settings API</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/vzsH-Ae6gUY/</link>
		<comments>http://line-in.co.uk/getting-more-control-from-the-wordpress-settings-api/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 11:41:32 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Settings API]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1282</guid>
		<description><![CDATA[<p><img width="620" height="310" src="http://line-in.co.uk/wp-content/uploads/2011/11/Firefox-620x310.jpg" class="attachment-large wp-post-image" alt="A picture of tabbed settings using the WordPress Settings API" title="WordPress Settings API" /></p>No Sketchbook Sunday this week as I&#8217;ve been busy coding some new tools to help speed up my WordPress development. I&#8217;ve been developing a class-based Base Plugin environment that allows me to quickly create new settings pages (on both themes [...]]]></description>
			<content:encoded><![CDATA[<p><img width="620" height="310" src="http://line-in.co.uk/wp-content/uploads/2011/11/Firefox-620x310.jpg" class="attachment-large wp-post-image" alt="A picture of tabbed settings using the WordPress Settings API" title="WordPress Settings API" /></p><p>No <a href='http://line-in.co.uk/category/sketchbook-sunday/'>Sketchbook Sunday</a> this week as I&#8217;ve been busy coding some new tools to help speed up my WordPress development.</p>
<p>I&#8217;ve been developing a class-based Base Plugin environment that allows me to quickly create new settings pages (on both themes and plugins) and focus on form creating, validation and program logic (I can&#8217;t wait until PHP5.3 is more widespread. So many times I could have used Late Static Bindings and proper Namespacing&#8230;)</p>
<p>I&#8217;ve been using the Settings API but I also wanted to be able to switch between Tabs, Meta boxes and vanilla HTML simply by changing one class variable. </p>
<p>In order for this to work, I needed more control over how the Settings are displayed. The default WordPress function is the <code>do_settings_sections();</code> but this simply dumps out all of the sections in one go—no good if you&#8217;re trying to separate out individual sections on one page in order to use JavaScript-based tabs or individual Meta Boxes.</p>
<p>Digging through the core, I had a look over the Settings API functions. The <code>do_settings_sections();</code> is actually pretty straightforward. It basically just loops through a huge array of all of the pre-defined section areas. So I adapted it and came up with this single version:</p>
<pre class="brush: php; title: ; notranslate">
if ( !function_exists('line_in_do_settings_section') ) {
	function line_in_do_settings_section($page, $section) {
		global $wp_settings_sections, $wp_settings_fields;

		if ( !isset($wp_settings_sections) || !isset($wp_settings_sections[$page]) )
			return;

		echo &quot;&lt;h3&gt;{$wp_settings_sections[$page][$section]['title']}&lt;/h3&gt;\n&quot;;
		call_user_func($wp_settings_sections[$page][$section]['callback'], $wp_settings_sections[$page][$section]);
		if ( !isset($wp_settings_fields) ||
			!isset($wp_settings_fields[$page]) ||
			!isset($wp_settings_fields[$page][$wp_settings_sections[$page][$section]['id']]) )
		return;
		echo '&lt;table class=&quot;form-table&quot;&gt;';
		do_settings_fields($page, $wp_settings_sections[$page][$section]['id']);
		echo '&lt;/table&gt;';
	}
}
</pre>
<p>Now all I need to do is pass the <code>$page</code> and <code>$section</code> that I want to display, and it&#8217;ll only display that section. With this level of control, it&#8217;s trivial to set up a looping system (for example with tabs):</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// A bunch of pre-defined setting section ids
$tabs = array(
	'default-settings',
	'advanced-settings'
);

&lt;div class='wrap line-in-plugin'&gt;
	&lt;?php screen_icon( 'plugin' ); ?&gt;
	&lt;h2 class='lif-title'&gt;
		&lt;span&gt;&lt;?php _e( 'My Example Plugin', $this-&gt;lang ); ?&gt;&lt;/span&gt;
		&lt;?php
		$i = 1;
		foreach ( $tabs as $tab ) { ?&gt;
			&lt;a class=&quot;nav-tab hidden&quot; href='#tab-&lt;?php echo $i; ?&gt;'&gt;&lt;?php _e( 'Tab ' . $i, $this-&gt;lang ); ?&gt;&lt;/a&gt;
		&lt;?php
		$i++;
		} ?&gt;
	&lt;/h2&gt;
	&lt;form action=&quot;options.php&quot; method=&quot;post&quot;&gt;
	&lt;?php $this-&gt;settings-&gt;get_settings_fields('my-settings-page'); ?&gt;

		&lt;?php
		$i = 1;
		foreach ( $tabs as $tab ) { ?&gt;
			&lt;div id='tab-&lt;?php echo $i; ?&gt;' class='lif-tab'&gt;
				&lt;?php line_in_do_settings_section('my-settings-page', $tab); ?&gt;
			&lt;/div&gt;
		&lt;?php
		$i++;
		} ?&gt;	

	 &lt;p class='submit'&gt;
	 	&lt;?php submit_button(); ?&gt;
	 &lt;/p&gt;

	&lt;/form&gt;
&lt;/div&gt;
</pre>
<p>Instant tabbed settings pages!</p>
<p><a href="http://line-in.co.uk/wp-content/uploads/2011/11/Firefox.jpg"><img src="http://line-in.co.uk/wp-content/uploads/2011/11/Firefox-620x310.jpg" alt="A picture of tabbed settings using the WordPress Settings API" title="WordPress Settings API" width="620" height="310" class="aligncenter size-large wp-image-1285" /></a></p>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1282&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/upgrade-wordpress-3/' rel='bookmark' title='How To Upgrade To WordPress 3 Safely'>How To Upgrade To WordPress 3 Safely</a></li>
<li><a href='http://line-in.co.uk/optimize-wordpress-database/' rel='bookmark' title='Optimize Your WordPress Database'>Optimize Your WordPress Database</a></li>
<li><a href='http://line-in.co.uk/wordpress-sites/' rel='bookmark' title='Why WordPress Sites?'>Why WordPress Sites?</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/vzsH-Ae6gUY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/getting-more-control-from-the-wordpress-settings-api/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/getting-more-control-from-the-wordpress-settings-api/</feedburner:origLink></item>
		<item>
		<title>Illustration 17: Robots vs Tentacles 2</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/uWh2O_tHwtA/</link>
		<comments>http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 15:04:37 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Illustration 156]]></category>
		<category><![CDATA[Illustrations]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Robots]]></category>
		<category><![CDATA[Tentacles]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1272</guid>
		<description><![CDATA[<p><img width="595" height="842" src="http://line-in.co.uk/wp-content/uploads/2011/11/robots-vs-tentacles-2.png" class="attachment-large wp-post-image" alt="More Robots vs Tentacles" title="Robots vs Tentacles" /></p>I finally got around to finishing up the sketch I posted a few weeks back. The logo is a previously completed piece, but the rest of it is new. This one actually marks the third in a series of experiments [...]]]></description>
			<content:encoded><![CDATA[<p><img width="595" height="842" src="http://line-in.co.uk/wp-content/uploads/2011/11/robots-vs-tentacles-2.png" class="attachment-large wp-post-image" alt="More Robots vs Tentacles" title="Robots vs Tentacles" /></p><p>I finally got around to finishing up the <a href="http://line-in.co.uk/sketchbook-sunday-robots-vs-tentacles/" title="Sketchbook Sunday: Robots vs Tentacles">sketch I posted</a> a few weeks back.</p>
<p>The logo is a <a href="http://line-in.co.uk/illustration-12-robots-vs-tentacles-logo/" title="Illustration 12: Robots vs Tentacles Logo">previously completed piece</a>, but the rest of it is new.</p>
<p>This one actually marks the third in a series of experiments with lines. Number 1 has big <a href="http://line-in.co.uk/illustration-15-life-is-but-a-joke/" title="Illustration 15: Life Is But A Joke">thick black lines</a>, number 2 has more <a href="http://line-in.co.uk/illustration-16-more-jesters/" title="Illustration 16: More Jesters">subtle lines</a> and this one has no lines at all.</p>
<p><strong>Last 5 Illustrations</strong></p>
<ul><li><a href='http://line-in.co.uk/illustration-18-cow-icon/'>Illustration 18: Cow Icon</a></li><li><a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>Illustration 17: Robots vs Tentacles 2</a></li><li><a href='http://line-in.co.uk/illustration-16-more-jesters/'>Illustration 16: More Jesters</a></li><li><a href='http://line-in.co.uk/illustration-15-life-is-but-a-joke/'>Illustration 15: Life Is But A Joke</a></li><li><a href='http://line-in.co.uk/illustration-14-steam-powered-servers/'>Illustration 14: Steam-Powered Servers</a></li></ul>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1272&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/sketchbook-sunday-robots-vs-tentacles/' rel='bookmark' title='Sketchbook Sunday: Robots vs Tentacles'>Sketchbook Sunday: Robots vs Tentacles</a></li>
<li><a href='http://line-in.co.uk/illustration-12-robots-vs-tentacles-logo/' rel='bookmark' title='Illustration 12: Robots vs Tentacles Logo'>Illustration 12: Robots vs Tentacles Logo</a></li>
<li><a href='http://line-in.co.uk/illustration-16-more-jesters/' rel='bookmark' title='Illustration 16: More Jesters'>Illustration 16: More Jesters</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/uWh2O_tHwtA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/</feedburner:origLink></item>
		<item>
		<title>Sketchbook Sunday: Fridge Tossing</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/2mYZl0kvzdE/</link>
		<comments>http://line-in.co.uk/sketchbook-sunday-fridge-tossing/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 16:00:56 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Illustrations]]></category>
		<category><![CDATA[Sketchbook Sunday]]></category>
		<category><![CDATA[sketchbook sunday]]></category>
		<category><![CDATA[sketches]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1263</guid>
		<description><![CDATA[<p><img width="620" height="248" src="http://line-in.co.uk/wp-content/uploads/2011/04/sketchbook-sunday-620x248.png" class="attachment-large wp-post-image" alt="Sketchbook Sunday Title" title="Sketchbook Sunday Title" /></p>This was a sketch I did for a thread on the DrawSpace forums a while back. Related posts:Sketchbook Sunday: Tsumago Sketchbook Sunday: Rustic Houses Sketchbook Sunday: Robots vs Tentacles]]></description>
			<content:encoded><![CDATA[<p><img width="620" height="248" src="http://line-in.co.uk/wp-content/uploads/2011/04/sketchbook-sunday-620x248.png" class="attachment-large wp-post-image" alt="Sketchbook Sunday Title" title="Sketchbook Sunday Title" /></p><p>This was a sketch I did for a thread on the DrawSpace forums a while back.</p>
<p><span id="more-1263"></span></p>
<p><a href="http://line-in.co.uk/wp-content/uploads/2011/10/FridgeThrowing.jpg"><img class="aligncenter size-full wp-image-1265" title="Fridge Tossing" src="http://line-in.co.uk/wp-content/uploads/2011/10/FridgeThrowing.jpg" alt="A sketch of that most popular of sports, Fridge Tossing" width="500" height="834" /></a></p>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1263&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/sketchbook-sunday-tsumago/' rel='bookmark' title='Sketchbook Sunday: Tsumago'>Sketchbook Sunday: Tsumago</a></li>
<li><a href='http://line-in.co.uk/sketchbook-sunday-rustic-houses/' rel='bookmark' title='Sketchbook Sunday: Rustic Houses'>Sketchbook Sunday: Rustic Houses</a></li>
<li><a href='http://line-in.co.uk/sketchbook-sunday-robots-vs-tentacles/' rel='bookmark' title='Sketchbook Sunday: Robots vs Tentacles'>Sketchbook Sunday: Robots vs Tentacles</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/2mYZl0kvzdE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/sketchbook-sunday-fridge-tossing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/sketchbook-sunday-fridge-tossing/</feedburner:origLink></item>
		<item>
		<title>Illustration 16: More Jesters</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/wi0A79LMelI/</link>
		<comments>http://line-in.co.uk/illustration-16-more-jesters/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 14:04:45 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Illustration 156]]></category>
		<category><![CDATA[Illustrations]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Jester]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1268</guid>
		<description><![CDATA[<p><img width="595" height="842" src="http://line-in.co.uk/wp-content/uploads/2011/10/jester.png" class="attachment-large wp-post-image" alt="jester" title="jester" /></p>I&#8217;m not quite done with Jesters, mysterious creatures that they are. I wanted to explore different ways of creating line work. The colours are the same on this one as the last one except this time I&#8217;m not using pure [...]]]></description>
			<content:encoded><![CDATA[<p><img width="595" height="842" src="http://line-in.co.uk/wp-content/uploads/2011/10/jester.png" class="attachment-large wp-post-image" alt="jester" title="jester" /></p><p>I&#8217;m not quite done with <a href="http://line-in.co.uk/illustration-15-life-is-but-a-joke/" title="Illustration 15: Life Is But A Joke">Jesters</a>, mysterious creatures that they are. </p>
<p>I wanted to explore different ways of creating line work. The colours are the same on this one as the last one except this time I&#8217;m not using pure black lines. I think I prefer this method. </p>
<p><strong>Last 5 Illustrations</strong></p>
<ul><li><a href='http://line-in.co.uk/illustration-18-cow-icon/'>Illustration 18: Cow Icon</a></li><li><a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>Illustration 17: Robots vs Tentacles 2</a></li><li><a href='http://line-in.co.uk/illustration-16-more-jesters/'>Illustration 16: More Jesters</a></li><li><a href='http://line-in.co.uk/illustration-15-life-is-but-a-joke/'>Illustration 15: Life Is But A Joke</a></li><li><a href='http://line-in.co.uk/illustration-14-steam-powered-servers/'>Illustration 14: Steam-Powered Servers</a></li></ul>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1268&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/' rel='bookmark' title='Illustration 17: Robots vs Tentacles 2'>Illustration 17: Robots vs Tentacles 2</a></li>
<li><a href='http://line-in.co.uk/illustration-19-i-heart-mooses/' rel='bookmark' title='Illustration 19: I Heart Mooses'>Illustration 19: I Heart Mooses</a></li>
<li><a href='http://line-in.co.uk/illustration-15-life-is-but-a-joke/' rel='bookmark' title='Illustration 15: Life Is But A Joke'>Illustration 15: Life Is But A Joke</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/wi0A79LMelI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/illustration-16-more-jesters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/illustration-16-more-jesters/</feedburner:origLink></item>
		<item>
		<title>Illustration 15: Life Is But A Joke</title>
		<link>http://feedproxy.google.com/~r/LineInWebDesign/~3/oGjrJiP47Hg/</link>
		<comments>http://line-in.co.uk/illustration-15-life-is-but-a-joke/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 16:54:26 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Illustration 156]]></category>
		<category><![CDATA[Illustrations]]></category>
		<category><![CDATA[Bob Dylan]]></category>
		<category><![CDATA[Characters]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Jimi Hendrix]]></category>

		<guid isPermaLink="false">http://line-in.co.uk/?p=1257</guid>
		<description><![CDATA[<p><img width="595" height="842" src="http://line-in.co.uk/wp-content/uploads/2011/10/Life-Is-But-A-Joke.png" class="attachment-large wp-post-image" alt="An illustration of a jester with the lyric &quot;There are many here among us who feel that life is but a joke&quot;" title="Illustration 15: Life Is But A Joke" /></p>Listening to Hendrix and suddenly felt like drawing a Jester. Last 5 Illustrations Related posts:Illustration 6: A Haunted Look Illustration 10: Under A Deadline Illustration 11: Sometimes Done Is Good Enough]]></description>
			<content:encoded><![CDATA[<p><img width="595" height="842" src="http://line-in.co.uk/wp-content/uploads/2011/10/Life-Is-But-A-Joke.png" class="attachment-large wp-post-image" alt="An illustration of a jester with the lyric &quot;There are many here among us who feel that life is but a joke&quot;" title="Illustration 15: Life Is But A Joke" /></p><p>Listening to Hendrix and suddenly felt like drawing a Jester.</p>
<p><strong>Last 5 Illustrations</strong></p>
<ul><li><a href='http://line-in.co.uk/illustration-18-cow-icon/'>Illustration 18: Cow Icon</a></li><li><a href='http://line-in.co.uk/illustration-17-robots-vs-tentacles-2/'>Illustration 17: Robots vs Tentacles 2</a></li><li><a href='http://line-in.co.uk/illustration-16-more-jesters/'>Illustration 16: More Jesters</a></li><li><a href='http://line-in.co.uk/illustration-15-life-is-but-a-joke/'>Illustration 15: Life Is But A Joke</a></li><li><a href='http://line-in.co.uk/illustration-14-steam-powered-servers/'>Illustration 14: Steam-Powered Servers</a></li></ul>
<img src="http://line-in.co.uk/?ak_action=api_record_view&id=1257&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://line-in.co.uk/illustration-6-a-haunted-look/' rel='bookmark' title='Illustration 6: A Haunted Look'>Illustration 6: A Haunted Look</a></li>
<li><a href='http://line-in.co.uk/illustration-10-under-a-deadline/' rel='bookmark' title='Illustration 10: Under A Deadline'>Illustration 10: Under A Deadline</a></li>
<li><a href='http://line-in.co.uk/illustration-11-sometimes-done-is-good-enough/' rel='bookmark' title='Illustration 11: Sometimes Done Is Good Enough'>Illustration 11: Sometimes Done Is Good Enough</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/LineInWebDesign/~4/oGjrJiP47Hg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://line-in.co.uk/illustration-15-life-is-but-a-joke/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://line-in.co.uk/illustration-15-life-is-but-a-joke/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: line-in.co.uk @ 2012-01-29 16:51:06 -->

