<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Thoughts on WordPress &#187; jQuery UI</title>
	<atom:link href="http://wp.michaelwalsh.org/tag/jquery-ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.michaelwalsh.org</link>
	<description>Stuff of interest to me for WordPress developers</description>
	<lastBuildDate>Thu, 11 Mar 2010 03:13:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sandbox LEGO Theme beta</title>
		<link>http://wp.michaelwalsh.org/2009/10/22/sandbox-lego-theme-beta/</link>
		<comments>http://wp.michaelwalsh.org/2009/10/22/sandbox-lego-theme-beta/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 12:55:13 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[LEGO]]></category>

		<guid isPermaLink="false">http://wp.michaelwalsh.org/2009/10/22/sandbox-lego-theme-beta/</guid>
		<description><![CDATA[Off an on I have been working on a new Sandbox based LEGO theme for a while.&#160; I wanted something I could use for my own LEGO blog as well as the NCLUG and NCLTC sites and possibly the ILTCO site as well.&#160; I wanted to make it fairly easy to customize it by selecting [...]]]></description>
			<content:encoded><![CDATA[<p>Off an on I have been working on a new Sandbox based LEGO theme for a while.&#160; I wanted something I could use for my own LEGO blog as well as the <a href="http://www.nclug.us">NCLUG</a> and <a href="http://www.ncltc.us">NCLTC</a> sites and possibly the <a href="http://www.iltco.org">ILTCO</a> site as well.&#160; I wanted to make it fairly easy to customize it by selecting a color scheme and allowing custom header images.</p>
<p>Color schemes were pretty straight forward.&#160; I wanted to base them on the <a href="http://www.lugnet.com/fibblesnork/lego/backgrounds/">Fibblesnork Backgrounds</a> which I like a lot.&#160; The Fibblesnork backgrounds are very small images designed to tile across a web page.&#160; In my case, I wanted to use them to frame the content area.&#160; There are 18 different colors and two sizes for a total of 36 different background color choices.&#160; At some point I plan to support all 18 colors but initially I am only offering three:&#160; Red, Green, and Blue.&#160; Setting up a theme options page to select a color scheme was pretty straight forward, I had done that previously with my Soccer Theme.</p>
<p>WordPress has some built in functionality to do custom header images but it didn’t really do what I wanted.&#160; I wanted to allow a fair amount of control over the look and layout of the header.&#160; I decided to support three header images:&#160; Left, center, and right.&#160; I didn’t want to manage the header images so I decided to leverage the built in media management capability.</p>
<p>The theme options page will present any image that is in the media library as a potential header image.&#160; But how?&#160; I wanted to make it fairly simple to use.&#160; I decided to implement a drag and drop scheme based on the jQuery UI and discussed it in detail in a <a href="http://wp.michaelwalsh.org/2009/09/17/header-image-options-in-lego-theme/">prior post</a>.&#160; It took a little while to work it all out as I had done very little with jQuery previously.</p>
<p>The last thing I wanted to allow was the ability to tweak the header layout with CSS.&#160; For this I added what I referred to as “CSS Overrides” for the blog title, blog tagline, and the three header images.&#160; The combination of color schemes, custom header images, and CSS Overrides allows the Sandbox LEGO theme to take on a fairly distinct look.</p>
<p><a href="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image_thumb.png" width="478" height="484" /></a> </p>
<p><a href="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image5.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image_thumb1.png" width="478" height="484" /></a> </p>
<p><a href="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image_thumb2.png" width="478" height="484" /></a> </p>
<p><a href="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image7.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://wp.michaelwalsh.org/wp-content/uploads/2009/10/image_thumb3.png" width="478" height="484" /></a> </p>
<p>The theme is currently in use on three blogs, I expect to make it available for download in the next few days.&#160; There are a couple issues I know of that need some styling help and I want to get two more color schemes finished before I release it.&#160; Color schemes aren’t too bad – I just need to pick the proper values.&#160; I have a script that actually generates the CSS files.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.michaelwalsh.org/2009/10/22/sandbox-lego-theme-beta/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Header Image Options in LEGO Theme</title>
		<link>http://wp.michaelwalsh.org/2009/09/17/header-image-options-in-lego-theme/</link>
		<comments>http://wp.michaelwalsh.org/2009/09/17/header-image-options-in-lego-theme/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 18:32:20 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[draggable]]></category>
		<category><![CDATA[droppable]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[LEGO]]></category>
		<category><![CDATA[Sandbox]]></category>

		<guid isPermaLink="false">http://wp.michaelwalsh.org/2009/09/17/header-image-options-in-lego-theme/</guid>
		<description><![CDATA[I have been working on a re-write of the Sandbox LEGO WordPress theme.&#160; It is taking a lot longer than I thought it would, mostly because I have made the problem more complicated than I initially thought it would be.
One of the main things I wanted to offer in this theme was the ability to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on a re-write of the Sandbox LEGO WordPress theme.&#160; It is taking a lot longer than I thought it would, mostly because I have made the problem more complicated than I initially thought it would be.</p>
<p>One of the main things I wanted to offer in this theme was the ability to choose a color scheme from an pre-set offering of about 8-10 choices.&#160; This wasn’t too hard, I had done some similar in the original Sandbox Soccer theme.</p>
<p>As I worked on it I decided it would be nice to allow the user to define what the header should look like including their own image.&#160; WordPress offers the ability to upload and use a custom theme header but this didn’t do quite what I wanted.&#160; I decided to let the user choose a header image from the media library.&#160; But what if the user wants multiple header images?&#160; Hmmm.&#160; This problem could get very complicate very quickly.&#160; I decided to constrain the problem by providing the ability to define up to three (3) header images:&#160; Left, center, and right.&#160; Doing this would support the 3-4 sites I expect to use this theme on (my own <a href="http://www.carolinatrainbuilders.com">CarolinaTrainBuiders.com</a> site, <a href="http://www.nclug.us">NCLUG</a>, <a href="http://www.ncltc.us">NCLTC</a>, and <a href="http://www.iltco.org">ILTCO</a>).</p>
<p>Now that I knew what I wanted, how to implement it.&#160; Simply showing the image options on a Theme Options page could potentially result in an enormous page.&#160; I mentioned <a href="http://jqueryui.com/demos/accordion/">jQuery Accordion</a> in a prior post, dividing the various options into sections using the <a href="http://jqueryui.com/demos/accordion/">Accordion</a> made sense and was pretty straightforward once I upgrade to WordPress 2.8.4.</p>
<p>Once the Accordion was working I decided I wanted an elegant way to select the images.&#160; Since this effort is a hobby and I largely do projects likes this to learn something, I decided I wanted to use a drag and drop mechanism to select the images.&#160; Again, jQuery to the rescue, namely the <a href="http://jqueryui.com/demos/draggable/">jQuery draggable</a> and <a href="http://jqueryui.com/demos/droppable">jQuery droppable</a> plugins.&#160; In particular, the <a href="http://jqueryui.com/demos/droppable/#photo-manager">Simple Photo Manager</a> demo was very close to what I had envisioned.</p>
<p>It has taken me a little while, mostly because I haven’t had a lot of time to work on it but I finally have a pretty slick theme options page working where the header images can be selected from the media library using drag and drop.&#160; I am by no means a jQuery guru but I have learned a fair amount working this problem out.&#160; The code I have isn’t ideal and I’ll continue to refine it but it is working so I can continue to develop the theme.&#160; Once I get it running and released I will go back and clean up the jQuery code.&#160; For now, getting it working and doing what I wanted was the primary task.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.michaelwalsh.org/2009/09/17/header-image-options-in-lego-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery, jQueryUI, jQuery UI widgets and theme options</title>
		<link>http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/</link>
		<comments>http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 19:25:57 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Accordion]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/</guid>
		<description><![CDATA[Over the past few days I have been dinking around with jQuery, in particular some of the jQuery UI widgets.&#160; I am working on a revamp of a LEGO WordPress theme and I wanted to allow the theme to support multiple color schemes and custom headers.&#160; This is a learning project for some other themes [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few days I have been dinking around with <a href="http://www.jquery.com">jQuery</a>, in particular some of the <a href="http://www.jqueryui.com">jQuery UI</a> widgets.&#160; I am working on a revamp of a LEGO WordPress theme and I wanted to allow the theme to support multiple color schemes and custom headers.&#160; This is a learning project for some other themes I want to update (e.g. Swim Team and Soccer).</p>
<p>For the header I wanted the user to select 1-3 images from the media library to use in the header.&#160; I also wanted to allow some styling control over the blog title and tagline and lastly choose a color scheme from a selection of 10-12 choices.&#160; All of this information would make for a very busy theme options page so I decided to make use of the <a href="http://jqueryui.com/demos/accordion/">jQuery UI Accordion widget</a> to logically group information into sections.</p>
<p>My theme development area was still running on WordPress 2.7.1 which includes jQuery 1.6 which is not the most recent version.&#160; I should have upgraded WordPress before embarking on my Accordion experiments, I would have saved myself a bunch of time!</p>
<p>As it turns out, Accordion isn’t shipped with WordPress so I have to download it and install it as part of my theme and then load it.&#160; This isn’t a big deal, there are lots of posts across numerous blogs that explain how to load Javascript correctly.&#160; No matter what I did, I couldn’t get it to work.&#160; I played around with jQuery UI Accordion and half a dozen similar solutions trying to get it to work but I could only get one solution partially working.&#160; In the end, I decided to try updating WordPress and start with the latest and greatest.</p>
<p>What do you know?&#160; My Accordion worked perfectly!&#160; So after wasting the better part of two days trying to work with what I had installed, simply updating WordPress was the right answer.&#160; I think the real change was in the jQuery UI ui-core component as at one point I had Accordion working in the older version but only when I loaded the custom packed jQuery download.&#160; When I loaded just the Accordion source file it wouldn’t work.&#160; The custom packed file included something out of jQuery UI ui-core, what I don’t know but it made a difference.&#160; When I looked at the jQuery code in the 2.8.4 release I noticed the ui-core component also had this function where as the 2.7.1 did not.&#160; So something was definitely different and it make a big difference.</p>
<p>Now that I have the Accordion working I am back to making progress on my theme options page.&#160;&#160; I have played with jQuery just a bit, this is the first real jQuery application I have worked on.&#160; It is pretty powerful, I can see why it has gotten so much traction.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
