コード例 #1
0
ファイル: design_options.php プロジェクト: billerby/Surdeg
    echo $teasers['date']['custom'];
    ?>
" /> <a href="http://us.php.net/manual/en/function.date.php" target="_blank" title="See the full list of PHP date formats">[?]</a></label></li>
					</ul>
				</div>
				<div class="module_subsection" id="teaser_link">
					<h4><a href="" title="<?php 
    _e('Show/hide additional information', 'thesis');
    ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
    _e('Link to Full Article', 'thesis');
    ?>
</h4>
					<p class="more_info form_input">
						<input type="text" id="teasers[link_text]" name="teasers[link_text]" value="<?php 
    echo thesis_teaser_link_text();
    ?>
" />
						<label for="teasers[link_text]"><?php 
    _e('link display text', 'thesis');
    ?>
</label>
					</p>
				</div>
				<div class="module_subsection" id="teaser_fonts">
					<h4><a href="" title="<?php 
    _e('Show/hide additional information', 'thesis');
    ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
    _e('Teaser Font Sizes', 'thesis');
    ?>
コード例 #2
0
ファイル: teasers.php プロジェクト: JGrubb/Almond-Tree
function thesis_teaser_link($post_count, $post_image)
{
    echo '<a class="teaser_link" href="' . get_permalink() . '" rel="nofollow">' . thesis_teaser_link_text() . "</a>\n";
}
コード例 #3
0
    function options_page()
    {
        global $thesis_site, $thesis_design, $thesis_data;
        $thesis_javascript = new thesis_javascript();
        $stacks = new thesis_fonts();
        $fonts = $thesis_design->fonts;
        $colors = $thesis_design->colors;
        $borders = $thesis_design->borders;
        $nav = $thesis_design->nav;
        $layout = $thesis_design->layout;
        $display = $thesis_design->display;
        $image = $thesis_design->image;
        $comments = $thesis_design->comments;
        $teasers = $thesis_design->teasers;
        $home = $thesis_design->home;
        $feature_box = $thesis_design->feature_box;
        $multimedia_box = $thesis_design->multimedia_box;
        $javascript = $thesis_design->javascript;
        ?>

<div id="thesis_options" class="wrap<?php 
        if (get_bloginfo('text_direction') == 'rtl') {
            echo ' rtl';
        }
        ?>
">
<?php 
        thesis_version_indicator();
        thesis_options_title(__('Thesis Design Options', 'thesis'));
        thesis_options_nav();
        thesis_options_status_check();
        if (version_compare($thesis_site->version, thesis_version()) < 0) {
            ?>
	<form id="upgrade_needed" action="<?php 
            echo admin_url('admin-post.php?action=thesis_upgrade');
            ?>
" method="post">
		<h3><?php 
            _e('Oooh, Exciting!', 'thesis');
            ?>
</h3>
		<p><?php 
            _e('It&#8217;s time to upgrade your Thesis, which means there&#8217;s new awesomeness in your immediate future. Click the button below to fast-track your way to the awesomeness!', 'thesis');
            ?>
</p>
		<p><input type="submit" class="upgrade_button" id="teh_upgrade" name="upgrade" value="<?php 
            esc_attr_e('Upgrade Thesis', 'thesis');
            ?>
" /></p>
	</form>
<?php 
        } else {
            thesis_is_css_writable();
            ?>

	<form class="thesis" action="<?php 
            echo admin_url('admin-post.php?action=thesis_design_options');
            ?>
" method="post">
		<div class="options_column">
			<div class="options_module" id="layout-constructor">
				<h3><?php 
            _e('Site Layout', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Columns', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Select the number of columns you want in your layout:', 'thesis');
            ?>
</p>
						<p class="form_input add_margin" id="num_columns">
							<select id="layout[columns]" name="layout[columns]" size="1">
								<option value="3"<?php 
            if ($layout['columns'] == 3) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('3 columns', 'thesis');
            ?>
</option>
								<option value="2"<?php 
            if ($layout['columns'] == 2) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('2 columns', 'thesis');
            ?>
</option>
								<option value="1"<?php 
            if ($layout['columns'] == 1) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('1 column', 'thesis');
            ?>
</option>
							</select>
						</p>
						<p><?php 
            _e('Enter a width between 300 and 934 pixels for your <strong>content column</strong>:', 'thesis');
            ?>
</p>
						<p id="width_content" class="form_input">
							<input type="text" class="short" id="layout[widths][content]" name="layout[widths][content]" value="<?php 
            esc_attr_e($layout['widths']['content']);
            ?>
" />
							<label for="layout[widths][content]" class="inline"><?php 
            _e('px', 'thesis');
            ?>
</label>
						</p>
						<div id="width_sidebar_1">
							<p><?php 
            _e('Enter a width between 60 and 500 pixels for <strong>sidebar 1</strong>:', 'thesis');
            ?>
</p>
							<p class="form_input add_margin">
								<input type="text" class="short" id="layout[widths][sidebar_1]" name="layout[widths][sidebar_1]" value="<?php 
            esc_attr_e($layout['widths']['sidebar_1']);
            ?>
" />
								<label for="layout[widths][sidebars_1]" class="inline"><?php 
            _e('px (default is 195)', 'thesis');
            ?>
</label>
							</p>
						</div>
						<div id="width_sidebar_2">
							<p><?php 
            _e('Enter a width between 60 and 500 pixels for <strong>sidebar 2</strong>:', 'thesis');
            ?>
</p>
							<p class="form_input add_margin">
								<input type="text" class="short" id="layout[widths][sidebar_2]" name="layout[widths][sidebar_2]" value="<?php 
            esc_attr_e($layout['widths']['sidebar_2']);
            ?>
" />
								<label for="layout[widths][sidebar_2]" class="inline"><?php 
            _e('px (default is 195)', 'thesis');
            ?>
</label>
							</p>
						</div>
					</div>
				</div>
				<div class="module_subsection" id="column_order">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Column Order', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<ul class="column_structure" id="order_3_col">
							<li>
								<input type="radio" name="layout[order]" value="normal" <?php 
            if ($layout['order'] == 'normal' && $layout['columns'] == 3) {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Content, Sidebar 1, Sidebar 2 <span>&darr;</span>', 'thesis');
            ?>
</label>
								<p><span class="col_content">Content</span><span class="col_sidebar">S1</span><span class="col_sidebar no_margin">S2</span></p>
							</li>
							<li>
								<input type="radio" name="layout[order]" value="invert" <?php 
            if ($layout['order'] == 'invert') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Sidebar 1, Content, Sidebar 2 <span>&darr;</span>', 'thesis');
            ?>
</label>
								<p><span class="col_sidebar">S1</span><span class="col_content">Content</span><span class="col_sidebar no_margin">S2</span></p>
							</li>
							<li>
								<input type="radio" name="layout[order]" value="0" <?php 
            if (!$layout['order'] && $layout['columns'] == 3) {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Sidebar 1, Sidebar 2, Content <span>&darr;</span>', 'thesis');
            ?>
</label>
								<p><span class="col_sidebar">S1</span><span class="col_sidebar">S2</span><span class="col_content no_margin">Content</span></p>
							</li>
						</ul>
						<ul class="column_structure" id="order_2_col">
							<li>
								<input type="radio" name="layout[order]" value="normal" <?php 
            if ($layout['order'] == 'normal' && $layout['columns'] == 2) {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Content, Sidebar 1 <span>&darr;</span>', 'thesis');
            ?>
</label>
								<p><span class="col_content">Content</span><span class="col_sidebar">S1</span></p>
							</li>
							<li>
								<input type="radio" name="layout[order]" value="0" <?php 
            if (!$layout['order'] && $layout['columns'] == 2) {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Sidebar 1, Content <span>&darr;</span>', 'thesis');
            ?>
</label>
								<p><span class="col_sidebar">S1</span><span class="col_content no_margin">Content</span></p>
							</li>
						</ul>
					</div>
				</div>
				<div class="module_subsection" id="html-framework">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('<acronym title="HyperText Markup Language">HTML</acronym> Framework', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('If you&#8217;re customizing your Thesis design, you may wish to employ a different <acronym title="HyperText Markup Language">HTML</acronym> framework in order to better suit your design needs. There are two primary types of frameworks that should accommodate just about any type of design&#8212;<strong>page</strong> and <strong>full-width</strong>. By default, Thesis uses the page framework, but you can change that below.', 'thesis');
            ?>
</p>
						<ul>
							<li><input type="radio" name="layout[framework]" value="page" <?php 
            if ($layout['framework'] != 'full-width') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Page framework', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="layout[framework]" value="full-width" <?php 
            if ($layout['framework'] == 'full-width') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Full-width framework', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Outer Page Padding', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('By default, Thesis adds whitespace around your layout for styling purposes. One unit of whitespace is equal to the line height of the text in your content area, and by default, Thesis adds one unit of whitespace around your layout. How many units of whitespace would you like around your layout?', 'thesis');
            ?>
</p>
						<p class="form_input">
							<select id="layout[page_padding]" name="layout[page_padding]" size="1">
<?php 
            for ($k = 0; $k <= 8; $k++) {
                $padding = $k / 2;
                $selected = $layout['page_padding'] == $padding ? ' selected="selected"' : '';
                echo "\t\t\t\t\t\t\t\t<option value=\"{$padding}\"{$selected}>" . number_format($padding, 1) . "</option>\n";
            }
            ?>
							</select>
						</p>
					</div>
				</div>
			</div>
			<div class="options_module" id="display-options">
				<h3><?php 
            _e('Display Options', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Header', 'thesis');
            ?>
</h4>
					<ul class="more_info">
						<li><input type="checkbox" id="display[header][title]" name="display[header][title]" value="1" <?php 
            if ($display['header']['title']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[header][title]"><?php 
            _e('Show site name in header', 'thesis');
            ?>
</label></li>
						<li><input type="checkbox" id="display[header][tagline]" name="display[header][tagline]" value="1" <?php 
            if ($display['header']['tagline']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[header][tagline]"><?php 
            _e('Show site tagline in header', 'thesis');
            ?>
</label></li>
					</ul>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Bylines', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<div class="control_box">
							<ul class="control no_margin">
								<li><input type="checkbox" id="display[byline][author][show]" name="display[byline][author][show]" value="1" <?php 
            if ($display['byline']['author']['show']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][author][show]"><?php 
            _e('Show author name in <strong>post</strong> byline', 'thesis');
            ?>
</label></li>
							</ul>
							<ul class="dependent">
								<li><input type="checkbox" id="display[byline][author][link]" name="display[byline][author][link]" value="1" <?php 
            if ($display['byline']['author']['link']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][author][link]"><?php 
            _e('Link author names to archives', 'thesis');
            ?>
</label></li>
								<li><input type="checkbox" id="display[byline][author][nofollow]" name="display[byline][author][nofollow]" value="1" <?php 
            if ($display['byline']['author']['nofollow']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][author][nofollow]"><?php 
            _e('Add <code>nofollow</code> to author links', 'thesis');
            ?>
</label></li>
							</ul>
						</div>
						<ul>
							<li><input type="checkbox" id="display[byline][date][show]" name="display[byline][date][show]" value="1" <?php 
            if ($display['byline']['date']['show']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][date][show]"><?php 
            _e('Show published-on date in <strong>post</strong> byline', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="display[byline][page][author]" name="display[byline][page][author]" value="1" <?php 
            if ($display['byline']['page']['author']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][page][author]"><?php 
            _e('Show author name in <strong>page</strong> byline', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="display[byline][page][date]" name="display[byline][page][date]" value="1" <?php 
            if ($display['byline']['page']['date']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][page][date]"><?php 
            _e('Show published-on date in <strong>page</strong> byline', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="display[byline][num_comments][show]" name="display[byline][num_comments][show]" value="1" <?php 
            if ($display['byline']['num_comments']['show']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][num_comments][show]"><?php 
            _e('Show number of comments in byline', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="display[byline][categories][show]" name="display[byline][categories][show]" value="1" <?php 
            if ($display['byline']['categories']['show']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[byline][categories][show]"><?php 
            _e('Show <strong>post</strong> categories', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Posts', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('The display setting you select below only affects your <strong>features</strong>; teasers (if you&#8217;re using them) are always displayed in excerpt format.', 'thesis');
            ?>
</p>
						<ul class="add_margin">
							<li><input type="radio" name="display[posts][excerpts]" value="0" <?php 
            if (!$display['posts']['excerpts']) {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Display full post content', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="display[posts][excerpts]" value="1" <?php 
            if ($display['posts']['excerpts']) {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Display post excerpts', 'thesis');
            ?>
</label></li>
						</ul>
						<p class="label_note"><?php 
            _e('&#8220;Read More&#8221; link', 'thesis');
            ?>
</p>
						<p><?php 
            _e('This is the clickthrough text on home and archive pages that appears on any post where you use the <code>&lt;!--more--&gt;</code> tag:', 'thesis');
            ?>
</p>
						<p class="form_input add_margin">
							<input type="text" class="text_input" id="display[posts][read_more_text]" name="display[posts][read_more_text]" value="<?php 
            echo thesis_read_more_text(true);
            ?>
" />
							<label for="display[posts][read_more_text]"><?php 
            _e('clickthrough text', 'thesis');
            ?>
</label>
						</p>
						<p class="label_note"><?php 
            _e('Single entry pages', 'thesis');
            ?>
</p>
						<ul>
							<li><input type="checkbox" id="display[posts][nav]" name="display[posts][nav]" value="1" <?php 
            if ($display['posts']['nav']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[posts][nav]"><?php 
            _e('Show previous/next post links', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Archives', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Select a display format for your archive pages:', 'thesis');
            ?>
</p>
						<ul>
							<li><input type="radio" name="display[archives][style]" value="titles" <?php 
            if ($display['archives']['style'] == 'titles') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Titles only', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="display[archives][style]" value="teasers" <?php 
            if ($display['archives']['style'] == 'teasers') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Everything&#8217;s a teaser!', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="display[archives][style]" value="content" <?php 
            if ($display['archives']['style'] == 'content') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Same as your home page', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="display[archives][style]" value="excerpts" <?php 
            if ($display['archives']['style'] == 'excerpts') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Post excerpts', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Comments', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<ul>
							<li><input type="checkbox" id="display[comments][disable_pages]" name="display[comments][disable_pages]" value="1" <?php 
            if ($display['comments']['disable_pages']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[comments][disable_pages]"><?php 
            _e('Disable comments on all <strong>pages</strong>', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="display[comments][show_closed]" name="display[comments][show_closed]" value="1" <?php 
            if ($display['comments']['show_closed']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[comments][show_closed]"><?php 
            _e('If comments are closed, display a message', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Tagging', 'thesis');
            ?>
</h4>
					<ul class="more_info">
						<li><input type="checkbox" id="display[tags][single]" name="display[tags][single]" value="1" <?php 
            if ($display['tags']['single']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[tags][single]"><?php 
            _e('Show tags on single entry pages', 'thesis');
            ?>
</label></li>
						<li><input type="checkbox" id="display[tags][index]" name="display[tags][index]" value="1" <?php 
            if ($display['tags']['index']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[tags][index]"><?php 
            _e('Show tags on index and archives pages', 'thesis');
            ?>
</label></li>
						<li><input type="checkbox" id="display[tags][nofollow]" name="display[tags][nofollow]" value="1" <?php 
            if ($display['tags']['nofollow']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[tags][nofollow]"><?php 
            _e('Add <code>nofollow</code> to tag links', 'thesis');
            ?>
</label></li>
					</ul>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Sidebars', 'thesis');
            ?>
</h4>
					<ul class="more_info">
						<li><input type="checkbox" id="display[sidebars][default_widgets]" name="display[sidebars][default_widgets]" value="1" <?php 
            if ($display['sidebars']['default_widgets']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[sidebars][default_widgets]"><?php 
            _e('Show default sidebar widgets', 'thesis');
            ?>
</label></li>
					</ul>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Administration', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<ul>
							<li><input type="checkbox" id="display[admin][edit_post]" name="display[admin][edit_post]" value="1" <?php 
            if ($display['admin']['edit_post']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[admin][edit_post]"><?php 
            _e('Show edit post links', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="display[admin][link]" name="display[admin][link]" value="1" <?php 
            if ($display['admin']['link']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="display[admin][link]"><?php 
            _e('Show admin link in footer', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
			</div>
			<div class="options_module" id="home-page-options">
				<h3><?php 
            _e('Home Page Display Options', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Features &amp; Teasers', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            __('Below, you can select the number of &#8220;featured&#8221; posts to show (normal format) on your home page, and the rest of your posts will be displayed as teasers. In this context, teasers are simply boxes that take up half the width of your content area and contain whatever you specify in your <a href="#teaser-options">Teaser Display Options</a>.', 'thesis');
            ?>
</p>
						<p class="label_note"><?php 
            _e('Number of featured posts to show', 'thesis');
            ?>
</p>
						<p class="form_input add_margin">
							<select id="home[body][content][features]" name="home[body][content][features]" size="1">
<?php 
            $posts_per_page = get_option('posts_per_page');
            if ($home['body']['content']['features'] > $posts_per_page) {
                $home['body']['content']['features'] = $posts_per_page;
            }
            for ($i = 0; $i <= $posts_per_page; $i++) {
                $selected = $home['body']['content']['features'] == $i ? ' selected="selected"' : '';
                echo "\t\t\t\t\t\t\t\t\t<option value=\"{$i}\"{$selected}>{$i}</option>\n";
            }
            ?>
							</select>
						</p>
						<p class="tip"><?php 
            _e('<strong>Tip:</strong> To turn off teasers entirely, simply choose the largest value from the dropdown list above&#8212;that way, <em>all</em> your posts will be shown as features.', 'thesis');
            ?>
</p>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('JavaScript', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<ul class="add_margin">
<?php 
            foreach ($thesis_javascript->libs as $lib_name => $lib) {
                $checked = $home['javascript']['libs'][$lib_name] && !$thesis_design->javascript['libs'][$lib_name] || !isset($home['javascript']['libs'][$lib_name]) && $thesis_design->javascript['libs'][$lib_name] || $home['javascript']['libs'][$lib_name] && $thesis_design->javascript['libs'][$lib_name] ? ' checked="checked" ' : '';
                echo "\t\t\t\t\t\t\t\t\t" . '<li><input type="checkbox" id="home[javascript][libs][' . $lib_name . ']" name="home[javascript][libs][' . $lib_name . ']" value="1"' . $checked . '/><label>' . sprintf(__('%1$s library <a href="%2$s" target="_blank">[?]</a>', 'thesis'), $lib['name'], $lib['info_url']) . "</label></li>\n";
            }
            ?>
						</ul>
						<p class="form_input">
							<label for="home[javascript][scripts]"><?php 
            _e('JavaScripts (include <code>&lt;script&gt;</code> tags!)', 'thesis');
            ?>
</label>
							<textarea class="scripts" id="home[javascript][scripts]" name="home[javascript][scripts]"><?php 
            if ($home['javascript']['scripts']) {
                echo $thesis_data->o_htmlentities($home['javascript']['scripts']);
            }
            ?>
</textarea>
						</p>
					</div>
				</div>
			</div>
		</div>

		<div class="options_column">
			<div class="options_module button_module">
				<?php 
            wp_nonce_field('thesis-update-design', '_wpnonce-thesis-update-design');
            ?>
				<input type="submit" class="save_button" id="design_submit" name="submit" value="<?php 
            thesis_save_button_text();
            ?>
" />
			</div>
			<div class="options_module" id="font-selector">
				<h3><?php 
            _e('Fonts, Colors, and More!', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Body (and Content Area)', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('The font you select here will be the main font on your site. You can tweak individual fonts and sizes below.', 'thesis');
            ?>
</p>
						<p class="form_input add_margin">
							<select id="fonts[families][body]" name="fonts[families][body]" size="1">
<?php 
            foreach ($stacks->fonts as $font_key => $font) {
                $selected = $fonts['families']['body'] == $font_key ? ' selected="selected"' : '';
                $web_safe = $font['web_safe'] ? ' *' : '';
                $google = $font['google'] ? ' G' : '';
                echo "<option{$selected} value=\"{$font_key}\">" . $font['name'] . "{$web_safe}{$google}</option>\n";
            }
            ?>
							</select>
						</p>
						<p class="tip add_margin"><?php 
            _e("* denotes a web-safe font.<br />G denotes a Google Font Directory font.", 'thesis');
            ?>
</p>
						<p><?php 
            _e('Add some personal flair to your design by using the controls below. You&#8217;ll find even more controls in the other boxes in this section, so you&#8217;ve got lots of ways to let your creativity flow!', 'thesis');
            ?>
</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="colors[background]" name="colors[background]" value="<?php 
            echo $colors['background'];
            ?>
" maxlength="6" />
							<label class="inline" for="colors[background]"><?php 
            _e('site background color', 'thesis');
            ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="colors[page]" name="colors[page]" value="<?php 
            echo $colors['page'];
            ?>
" maxlength="6" />
							<label class="inline" for="colors[page]"><?php 
            _e('page background color', 'thesis');
            ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="colors[text]" name="colors[text]" value="<?php 
            echo $colors['text'];
            ?>
" maxlength="6" />
							<label class="inline" for="colors[text]"><?php 
            _e('primary text color', 'thesis');
            ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="colors[link]" name="colors[link]" value="<?php 
            echo $colors['link'];
            ?>
" maxlength="6" />
							<label class="inline" for="colors[link]"><?php 
            _e('primary link color', 'thesis');
            ?>
</label>
						</p>
						<p>
						<ul>
							<li><input type="checkbox" id="colors[shadow]" name="colors[shadow]" value="1" <?php 
            if ($colors['shadow']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="colors[shadow]"><?php 
            _e('Add a cool shadow effect to your layout', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="borders[show]" name="borders[show]" value="1" <?php 
            if ($borders['show']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="borders[show]"><?php 
            _e('Show interior layout borders', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
<?php 
            $layout_areas = thesis_layout_areas();
            foreach ($layout_areas as $area_key => $area) {
                ?>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
                _e('Show/hide additional information', 'thesis');
                ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
                echo $area['name'];
                ?>
</h4>
					<div class="more_info">
						<p><?php 
                echo $area['intro_text'];
                ?>
</p>
<?php 
                if ($area['define_font']) {
                    ?>
						<p class="form_input add_margin">
							<select id="fonts[families][<?php 
                    echo $area_key;
                    ?>
]" name="fonts[families][<?php 
                    echo $area_key;
                    ?>
]" size="1">
<?php 
                    $selected = !$fonts['families'][$area_key] ? ' selected="selected"' : '';
                    echo "<option{$selected} value=\"\">Inherited from Body</option>\n";
                    foreach ($stacks->fonts as $font_key => $font) {
                        $selected = $fonts['families'][$area_key] == $font_key ? ' selected="selected"' : '';
                        $web_safe = $font['web_safe'] ? ' *' : '';
                        $google = $font['google'] ? ' G' : '';
                        if ($area_key == 'code') {
                            if ($font['monospace']) {
                                echo "<option{$selected} value=\"{$font_key}\">" . $font['name'] . "{$web_safe}{$google}</option>\n";
                            }
                        } else {
                            echo "<option{$selected} value=\"{$font_key}\">" . $font['name'] . "{$web_safe}{$google}</option>\n";
                        }
                    }
                    ?>
							</select>
						</p>
<?php 
                }
                ?>
						<p class="form_input add_margin">
							<select id="fonts[sizes][<?php 
                echo $area_key;
                ?>
]" name="fonts[sizes][<?php 
                echo $area_key;
                ?>
]" size="1">
<?php 
                foreach ($area['font_sizes'] as $size) {
                    $selected = $fonts['sizes'][$area_key] == $size ? ' selected="selected"' : '';
                    echo "<option{$selected} value=\"{$size}\">{$size} pt.</option>\n";
                }
                ?>
							</select>
						</p>
<?php 
                $has_secondary = $area['secondary_font'] ? ' add_margin' : '';
                if ($area_key != 'content' && $area_key != 'nav_menu' && $area_key != 'multimedia_box') {
                    echo "<p class=\"form_input{$has_secondary}\">\n\t<input class=\"short color\" type=\"text\" id=\"colors[{$area_key}]\" name=\"colors[{$area_key}]\" value=\"" . $colors[$area_key] . "\" />\n\t<label class=\"inline\" for=\"colors[{$area_key}]\">" . $area['name'] . ' ' . __('text color', 'thesis') . "</label>\n</p>\n";
                }
                if ($area_key == 'nav_menu') {
                    ?>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[link][color]" name="nav[link][color]" value="<?php 
                    echo $nav['link']['color'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[link][color]"><?php 
                    _e('link text color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[link][hover]" name="nav[link][hover]" value="<?php 
                    echo $nav['link']['hover'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[link][hover]"><?php 
                    _e('link text hover color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[link][current]" name="nav[link][current]" value="<?php 
                    echo $nav['link']['current'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[link][current]"><?php 
                    _e('current link text color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[link][parent]" name="nav[link][parent]" value="<?php 
                    echo $nav['link']['parent'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[link][parent]"><?php 
                    _e('current parent link text color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[background][link]" name="nav[background][link]" value="<?php 
                    echo $nav['background']['link'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[background][link]"><?php 
                    _e('link background color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[background][hover]" name="nav[background][hover]" value="<?php 
                    echo $nav['background']['hover'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[background][hover]"><?php 
                    _e('hover background color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[background][current]" name="nav[background][current]" value="<?php 
                    echo $nav['background']['current'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[background][current]"><?php 
                    _e('current background color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[background][parent]" name="nav[background][parent]" value="<?php 
                    echo $nav['background']['parent'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[background][parent]"><?php 
                    _e('current parent background color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short" type="text" id="nav[border][width]" name="nav[border][width]" value="<?php 
                    echo $nav['border']['width'];
                    ?>
" />
							<label class="inline" for="nav[border][width]"><?php 
                    _e('nav border width (px)', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="nav[border][color]" name="nav[border][color]" value="<?php 
                    echo $nav['border']['color'];
                    ?>
" maxlength="6" />
							<label class="inline" for="nav[border][color]"><?php 
                    _e('nav border color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input">
							<input class="short" type="text" id="nav[submenu_width]" name="nav[submenu_width]" value="<?php 
                    echo $nav['submenu_width'];
                    ?>
" />
							<label class="inline" for="nav[submenu_width]"><?php 
                    _e('submenu width (px)', 'thesis');
                    ?>
</label>
						</p>
<?php 
                } elseif ($area_key == 'multimedia_box') {
                    ?>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="multimedia_box[color]" name="multimedia_box[color]" value="<?php 
                    echo $multimedia_box['color'];
                    ?>
" maxlength="6" />
							<label class="inline" for="multimedia_box[color]"><?php 
                    _e('text color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="multimedia_box[background][image]" name="multimedia_box[background][image]" value="<?php 
                    echo $multimedia_box['background']['image'];
                    ?>
" maxlength="6" />
							<label class="inline" for="multimedia_box[background][image]"><?php 
                    _e('image box background color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input add_margin">
							<input class="short color" type="text" id="multimedia_box[background][video]" name="multimedia_box[background][video]" value="<?php 
                    echo $multimedia_box['background']['video'];
                    ?>
" maxlength="6" />
							<label class="inline" for="multimedia_box[background][video]"><?php 
                    _e('video box background color', 'thesis');
                    ?>
</label>
						</p>
						<p class="form_input">
							<input class="short color" type="text" id="multimedia_box[background][code]" name="multimedia_box[background][code]" value="<?php 
                    echo $multimedia_box['background']['code'];
                    ?>
" maxlength="6" />
							<label class="inline" for="multimedia_box[background][code]"><?php 
                    _e('custom box background color', ' thesis');
                    ?>
</label>
						</p>
<?php 
                }
                if ($area['secondary_font']) {
                    ?>
						<p class="label_note"><?php 
                    echo $area['secondary_font']['item_name'];
                    ?>
</p>
						<p><?php 
                    echo $area['secondary_font']['item_intro'];
                    ?>
</p>
						<p class="form_input add_margin">
							<select id="fonts[families][<?php 
                    echo $area['secondary_font']['item_reference'];
                    ?>
]" name="fonts[families][<?php 
                    echo $area['secondary_font']['item_reference'];
                    ?>
]" size="1">
<?php 
                    $selected = !$fonts['families'][$area['secondary_font']['item_reference']] ? ' selected="selected"' : '';
                    echo "<option{$selected} value=\"\">Inherited from " . $area['name'] . "</option>\n";
                    foreach ($stacks->fonts as $font_key => $font) {
                        $selected = $fonts['families'][$area['secondary_font']['item_reference']] == $font_key ? ' selected="selected"' : '';
                        $web_safe = $font['web_safe'] ? ' *' : '';
                        $google = $font['google'] ? ' G' : '';
                        echo "<option{$selected} value=\"{$font_key}\">" . $font['name'] . "{$web_safe}{$google}</option>\n";
                    }
                    ?>
							</select>
						</p>
<?php 
                    if ($area['secondary_font']['item_sizes']) {
                        ?>
						<p class="form_input add_margin">
							<select id="fonts[sizes][<?php 
                        echo $area['secondary_font']['item_reference'];
                        ?>
]" name="fonts[sizes][<?php 
                        echo $area['secondary_font']['item_reference'];
                        ?>
]" size="1">
<?php 
                        foreach ($area['secondary_font']['item_sizes'] as $size) {
                            $selected = $fonts['sizes'][$area['secondary_font']['item_reference']] == $size ? ' selected="selected"' : '';
                            echo "<option{$selected} value=\"{$size}\">{$size} pt.</option>\n";
                        }
                        ?>
							</select>
						</p>
<?php 
                    }
                    echo "<p class=\"form_input\">\n\t<input class=\"short color\" type=\"text\" id=\"colors[" . $area['secondary_font']['item_reference'] . ']" name="colors[' . $area['secondary_font']['item_reference'] . ']" value="' . $colors[$area['secondary_font']['item_reference']] . "\" />\n\t<label class=\"inline\" for=\"colors[" . $area['secondary_font']['item_reference'] . ']">' . $area['secondary_font']['item_name'] . ' ' . __('text color', 'thesis') . "</label>\n</p>\n";
                }
                ?>
					</div>
				</div>
<?php 
            }
            ?>
			</div>
			<div class="options_module" id="teaser-options">
				<h3><?php 
            _e('Teasers', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Teaser Display Options');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Pick and choose what you want your teasers to display! Drag and drop the elements to change the order in which they appear on your site.', 'thesis');
            ?>
</p>
						<ul id="teaser_content" class="sortable">
<?php 
            foreach ($teasers['options'] as $teaser_item => $teaser) {
                $checked = $teaser['show'] ? ' checked="checked"' : '';
                if ($teaser_item == 'date') {
                    $id = 'teasers_date_show';
                } elseif ($teaser_item == 'link') {
                    $id = 'teasers_link_show';
                } else {
                    $id = "teasers[options][{$teaser_item}][show]";
                }
                echo "\t\t\t\t\t\t\t\t<li><input type=\"checkbox\" class=\"checkbox\" id=\"{$id}\" name=\"teasers[options][{$teaser_item}][show]\" value=\"1\"{$checked} /> " . $teaser['name'] . "<input type=\"hidden\" name=\"teasers[options][{$teaser_item}][name]\" value=\"" . $teaser['name'] . "\" /></li>\n";
            }
            ?>
						</ul>
					</div>
				</div>
				<div class="module_subsection" id="teaser_date_format">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Teaser Date Format', 'thesis');
            ?>
</h4>
					<ul class="more_info">
						<li><input type="radio" name="teasers[date][format]" value="standard" <?php 
            if ($teasers['date']['format'] == 'standard') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            echo date('F j, Y');
            ?>
</label></li>
						<li><input type="radio" name="teasers[date][format]" value="no_comma" <?php 
            if ($teasers['date']['format'] == 'no_comma') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            echo date('j F Y');
            ?>
</label></li>
						<li><input type="radio" name="teasers[date][format]" value="numeric" <?php 
            if ($teasers['date']['format'] == 'numeric') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            echo date('m.d.Y');
            ?>
</label></li>
						<li><input type="radio" name="teasers[date][format]" value="reversed" <?php 
            if ($teasers['date']['format'] == 'reversed') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            echo date('d.m.Y');
            ?>
</label></li>
						<li><input type="radio" name="teasers[date][format]" value="custom" <?php 
            if ($teasers['date']['format'] == 'custom') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Custom: ', 'thesis');
            ?>
 <input type="text" class="date_entry" name="teasers[date][custom]" value="<?php 
            echo $thesis_data->o_htmlspecialchars($teasers['date']['custom'], true);
            ?>
" /> <a href="http://us.php.net/manual/en/function.date.php" target="_blank" title="See the full list of PHP date formats">[?]</a></label></li>
					</ul>
				</div>
				<div class="module_subsection" id="teaser_link">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Link to Full Article', 'thesis');
            ?>
</h4>
					<p class="more_info form_input">
						<input type="text" id="teasers[link_text]" name="teasers[link_text]" value="<?php 
            echo thesis_teaser_link_text(true);
            ?>
" />
						<label for="teasers[link_text]"><?php 
            _e('link display text', 'thesis');
            ?>
</label>
					</p>
				</div>
				<div class="module_subsection" id="teaser_fonts">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Teaser Font Sizes', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Use the controls below to fine-tune the font sizes of your teaser elements.', 'thesis');
            ?>
</p>
<?php 
            $teaser_areas = thesis_teaser_areas();
            $area_count = 1;
            foreach ($teaser_areas as $teaser_area => $available_sizes) {
                $add_margin = $area_count == count($teaser_areas) ? '' : ' add_margin';
                ?>
						<p class="form_input<?php 
                echo $add_margin;
                ?>
">
							<select id="teasers[font_sizes][<?php 
                echo $teaser_area;
                ?>
]" name="teasers[font_sizes][<?php 
                echo $teaser_area;
                ?>
]" size="1">
<?php 
                foreach ($available_sizes as $available_size) {
                    $selected = $teasers['font_sizes'][$teaser_area] == $available_size ? ' selected="selected"' : '';
                    echo "\t\t\t\t\t\t\t\t\t<option value=\"{$available_size}\"{$selected}>{$available_size} pt.</option>\n";
                }
                ?>
							</select>
							<label for="teasers[font_sizes][<?php 
                echo $teaser_area;
                ?>
]"><?php 
                _e($teasers['options'][$teaser_area]['name'] . ' font size', 'thesis');
                ?>
</label>
						</p>
<?php 
                $area_count++;
            }
            ?>
					</div>
				</div>
			</div>
		</div>

		<div class="options_column">
			<div class="options_module" id="post-image-options">
				<h3><?php 
            _e('Post Images and Thumbnails', 'thesis');
            ?>
</h3>
				<div class="module_subsection" id="post-images">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Default Post Image Settings', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Post images are a perfect way to add more visual punch to your site. To use them, simply specify a post image in the appropriate field on the post editing screen. During the normal stream of content, post images will display full-size, and by default, they will be automatically cropped into smaller thumbnail images for use in other areas (like teasers and excerpts).', 'thesis');
            ?>
</p>
						<p><?php 
            _e('Don&#8217;t want Thesis to auto-crop your thumbnails? No worries&#8212;you can override this by uploading your own thumbnail image on <em>any</em> post or page. Also, it&#8217;s worth noting that you can override <em>all</em> of the settings below on the post editing screen.', 'thesis');
            ?>
</p>
						<p class="label_note"><?php 
            _e('Horizontal position', 'thesis');
            ?>
</p>
						<ul class="add_margin">
							<li><input type="radio" name="image[post][x]" value="flush" <?php 
            if ($image['post']['x'] == 'flush') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Flush left with no text wrap', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[post][x]" value="left" <?php 
            if ($image['post']['x'] == 'left') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Left with text wrap', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[post][x]" value="right" <?php 
            if ($image['post']['x'] == 'right') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Right with text wrap', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[post][x]" value="center" <?php 
            if ($image['post']['x'] == 'center') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Centered (no wrap)', 'thesis');
            ?>
</label></li>
						</ul>
						<p class="label_note"><?php 
            _e('Vertical position', 'thesis');
            ?>
</p>
						<ul class="add_margin">
							<li><input type="radio" name="image[post][y]" value="before-headline" <?php 
            if ($image['post']['y'] == 'before-headline') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Above headline', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[post][y]" value="after-headline" <?php 
            if ($image['post']['y'] == 'after-headline') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Below headline', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[post][y]" value="before-post" <?php 
            if ($image['post']['y'] == 'before-post') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Before post/page content', 'thesis');
            ?>
</label></li>
						</ul>
						<ul>
							<li><input type="checkbox" id="image[post][frame]" name="image[post][frame]" value="1" <?php 
            if ($image['post']['frame'] == 'on') {
                echo 'checked="checked" ';
            }
            ?>
/><label for="image[post][frame]"><?php 
            _e('Add a frame to post images', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="image[post][single]" name="image[post][single]" value="1" <?php 
            if ($image['post']['single']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="image[post][single]"><?php 
            _e('Show images on single entry pages', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="image[post][archives]" name="image[post][archives]" value="1" <?php 
            if ($image['post']['archives']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="image[post][archives]"><?php 
            _e('Show images on archives pages', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
				<div class="module_subsection" id="thumbnail-images">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Default Thumbnail Settings', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p class="label_note"><?php 
            _e('Horizontal position', 'thesis');
            ?>
</p>
						<ul class="add_margin">
							<li><input type="radio" name="image[thumb][x]" value="flush" <?php 
            if ($image['thumb']['x'] == 'flush') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Flush left with no text wrap', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[thumb][x]" value="left" <?php 
            if ($image['thumb']['x'] == 'left') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Left with text wrap', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[thumb][x]" value="right" <?php 
            if ($image['thumb']['x'] == 'right') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Right with text wrap', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[thumb][x]" value="center" <?php 
            if ($image['thumb']['x'] == 'center') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Centered (no wrap)', 'thesis');
            ?>
</label></li>
						</ul>
						<p class="label_note"><?php 
            _e('Vertical position', 'thesis');
            ?>
</p>
						<ul class="add_margin">
							<li><input type="radio" name="image[thumb][y]" value="before-headline" <?php 
            if ($image['thumb']['y'] == 'before-headline') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Above headline', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[thumb][y]" value="after-headline" <?php 
            if ($image['thumb']['y'] == 'after-headline') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Below headline', 'thesis');
            ?>
</label></li>
							<li><input type="radio" name="image[thumb][y]" value="before-post" <?php 
            if ($image['thumb']['y'] == 'before-post') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('Before post/page content', 'thesis');
            ?>
</label></li>
						</ul>
						<ul class="add_margin">
							<li><input type="checkbox" id="image[thumb][frame]" name="image[thumb][frame]" value="1" <?php 
            if ($image['thumb']['frame'] == 'on') {
                echo 'checked="checked" ';
            }
            ?>
/><label for="image[thumb][frame]"><?php 
            _e('Add a frame to thumbnail images', 'thesis');
            ?>
</label></li>
						</ul>
						<p><?php 
            _e('If you do not supply a thumbnail image on a particular post (in addition to or in place of a post image), the post image that you upload will be auto-cropped to these dimensions and re-saved for use as a thumbnail:', 'thesis');
            ?>
</p>
						<p class="form_input add_margin">
							<input type="text" class="short" id="image[thumb][width]" name="image[thumb][width]" value="<?php 
            if ($image['thumb']['width']) {
                echo esc_attr($image['thumb']['width']);
            }
            ?>
" />
							<label for="image[thumb][width]" class="inline"><?php 
            _e('default thumbnail width', 'thesis');
            ?>
</label>
						</p>
						<p class="form_input">
							<input type="text" class="short" id="image[thumb][height]" name="image[thumb][height]" value="<?php 
            if ($image['thumb']['height']) {
                echo esc_attr($image['thumb']['height']);
            }
            ?>
" />
							<label for="image[thumb][height]" class="inline"><?php 
            _e('default thumbnail height', 'thesis');
            ?>
</label>
						</p>
					</div>
				</div>
			</div>
			<div class="options_module" id="comment-options">
				<h3><?php 
            _e('Comment Options', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Display Settings', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Select the elements that you&#8217;d like to display, and then drag and drop them into the order that you want!', 'thesis');
            ?>
</p>
						<ul id="comment_elements" class="sortable">
<?php 
            foreach ($comments as $element_name => $element) {
                $checked = $element['show'] ? ' checked="checked"' : '';
                echo "\t\t\t\t\t\t\t\t<li><input type=\"checkbox\" class=\"checkbox\" id=\"comments[{$element_name}][show]\" name=\"comments[{$element_name}][show]\" value=\"1\"{$checked} /> " . $element['title'] . "<input type=\"hidden\" name=\"comments[{$element_name}][title]\" value=\"" . $element['title'] . "\" /></li>\n";
            }
            ?>
						</ul>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Comments', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<div class="mini_module indented_module" id="comment_meta_module">
							<h5 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Comment Meta', 'thesis');
            ?>
</h5>
							<div class="more_info">
								<ul id="comment_meta_elements" class="sortable add_margin">
<?php 
            foreach ($comments['comments']['options']['meta'] as $element_name => $element) {
                $checked = $element['show'] ? ' checked="checked"' : '';
                echo "\t\t\t\t\t\t\t\t<li><input type=\"checkbox\" class=\"checkbox\" id=\"comments[comments][options][meta][{$element_name}][show]\" name=\"comments[comments][options][meta][{$element_name}][show]\" value=\"1\"{$checked} /> " . $element['title'] . "<input type=\"hidden\" name=\"comments[comments][options][meta][{$element_name}][title]\" value=\"" . $element['title'] . "\" /></li>\n";
            }
            ?>
								</ul>
								<p class="form_input add_margin">
									<input type="text" class="short" id="comments[comments][options][meta][avatar][options][size]" name="comments[comments][options][meta][avatar][options][size]" value="<?php 
            echo esc_attr($comments['comments']['options']['meta']['avatar']['options']['size']);
            ?>
" />
									<label for="comments[comments][options][meta][avatar][options][size]"><?php 
            _e('Set your avatar size (between 1 and 96 px)', 'thesis');
            ?>
</label>
								</p>
								<ul class="add_margin">
									<li><input type="checkbox" id="comments[comments][options][meta][date][options][time]" name="comments[comments][options][meta][date][options][time]" value="1" <?php 
            if ($comments['comments']['options']['meta']['date']['options']['time']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="comments[comments][options][meta][date][options][time]"><?php 
            _e('Show comment time', 'thesis');
            ?>
</label></li></li>
								</ul>
								<p class="form_input add_margin">
									<input type="text" class="short" id="comments[comments][options][meta][date][options][date_format]" name="comments[comments][options][meta][date][options][date_format]" value="<?php 
            echo $thesis_data->o_htmlspecialchars($comments['comments']['options']['meta']['date']['options']['date_format'], true);
            ?>
" />
									<label for="comments[comments][options][meta][date][options][date_format]"><?php 
            _e('Comment date format', 'thesis');
            ?>
 <a href="http://us.php.net/manual/en/function.date.php" target="_blank" title="See the full list of PHP date formats">[?]</a></label>
								</p>
								<p class="tip"><?php 
            printf(__('<strong>Note:</strong> Comment numbers will not display if you have threading <em>and</em> pagination enabled in your <a href="%s">comment settings</a>.', 'thesis'), admin_url('options-discussion.php'));
            ?>
</p>
							</div>
						</div>
						<div class="mini_module indented_module" id="comment_body_module">
							<h5 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Comment Body', 'thesis');
            ?>
</h5>
							<div class="more_info">
								<ul id="comment_body_elements" class="sortable">
<?php 
            foreach ($comments['comments']['options']['body'] as $element_name => $element) {
                $checked = $element['show'] ? ' checked="checked"' : '';
                echo "\t\t\t\t\t\t\t\t<li><input type=\"checkbox\" class=\"checkbox\" id=\"comments[comments][options][body][{$element_name}][show]\" name=\"comments[comments][options][body][{$element_name}][show]\" value=\"1\"{$checked} /> " . $element['title'] . "<input type=\"hidden\" name=\"comments[comments][options][body][{$element_name}][title]\" value=\"" . $element['title'] . "\" /></li>\n";
            }
            ?>
								</ul>
							</div>
						</div>
					</div>
				</div>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Trackbacks', 'thesis');
            ?>
</h4>
					<div class="control_box more_info">
						<ul class="control">
							<li><input type="checkbox" id="comments[trackbacks][options][date]" name="comments[trackbacks][options][date]" value="1" <?php 
            if ($comments['trackbacks']['options']['date']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="comments[trackbacks][options][date]"><?php 
            _e('Show trackback date', 'thesis');
            ?>
</label></li>
						</ul>
						<div class="dependent">
							<p class="form_input">
								<input type="text" class="short" id="comments[trackbacks][options][date_format]" name="comments[trackbacks][options][date_format]" value="<?php 
            echo $thesis_data->o_htmlspecialchars($comments['trackbacks']['options']['date_format'], true);
            ?>
" />
								<label for="comments[trackbacks][options][date_format]"><?php 
            _e('Trackback date format', 'thesis');
            ?>
 <a href="http://us.php.net/manual/en/function.date.php" target="_blank" title="See the full list of PHP date formats">[?]</a></label>
							</p>
						</div>
					</div>
				</div>
			</div>
			<div class="options_module" id="thesis-multimedia-box">
				<h3><?php 
            _e('Multimedia Box', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Default Settings', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('The default multimedia box setting applies to your home page, archive pages (category, tag, date-based, and author-based), search pages, and 404 pages. You can override the default setting on any individual post or page by utilizing the multimedia box controls on the post editing screen.', 'thesis');
            ?>
</p>
						<p class="form_input" id="multimedia_select">
							<select id="multimedia_box[status]" name="multimedia_box[status]" size="1">
								<option value="0"<?php 
            if (!$multimedia_box['status']) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Do not show box', 'thesis');
            ?>
</option>
								<option value="image"<?php 
            if ($multimedia_box['status'] == 'image') {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Rotating images', 'thesis');
            ?>
</option>
								<option value="video"<?php 
            if ($multimedia_box['status'] == 'video') {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Embed a video', 'thesis');
            ?>
</option>
								<option value="custom"<?php 
            if ($multimedia_box['status'] == 'custom') {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Custom code', 'thesis');
            ?>
</option>
							</select>
						</p>
						<p class="tip" id="no_box_tip"><?php 
            _e('Remember, even though you&#8217;ve disabled the multimedia box here, you can activate it on single posts or pages by using the multimedia box options on the post editing screen.', 'thesis');
            ?>
</p>
						<p class="tip" id="image_tip"><?php 
            printf(__('Any images you upload to your <a href="%s">rotator folder</a> will automatically appear in the list below.', 'thesis'), THESIS_ROTATOR_FOLDER);
            ?>
</p>
						<div class="mini_module" id="image_alt_module">
							<h5><?php 
            _e('Define Image Alt Tags and Links', 'thesis');
            ?>
</h5>
							<p><?php 
            _e('It&#8217;s a good practice to add descriptive alt tags to every image you place on your site. Use the input fields below to add customized alt tags to your rotating images.', 'thesis');
            ?>
</p>
	<?php 
            $rotator_dir = opendir(THESIS_ROTATOR);
            while (($file = readdir($rotator_dir)) !== false) {
                if (strpos($file, '.jpg') || strpos($file, '.jpeg') || strpos($file, '.png') || strpos($file, '.gif')) {
                    $images[$file] = THESIS_ROTATOR_FOLDER . '/' . $file;
                }
            }
            $image_count = 1;
            if ($images) {
                foreach ($images as $image => $image_url) {
                    ?>
							<div class="toggle_box">
								<p class="form_input add_margin">
									<input type="text" class="text_input" id="multimedia_box[alt_tags][<?php 
                    echo $image;
                    ?>
]" name="multimedia_box[alt_tags][<?php 
                    echo $image;
                    ?>
]" value="<?php 
                    if ($multimedia_box['alt_tags'][$image]) {
                        echo $thesis_data->o_htmlspecialchars($multimedia_box['alt_tags'][$image], true);
                    }
                    ?>
" />
									<label for="multimedia_box[alt_tags][<?php 
                    echo $image;
                    ?>
]"><?php 
                    _e('alt text for ' . $image . ' &nbsp; <a href="' . esc_url($image_url) . '" target="_blank">view</a>', 'thesis');
                    ?>
 &nbsp; <a class="switch" href=""><?php 
                    _e('[+] add link', 'thesis');
                    ?>
</a></label>
								</p>
								<p class="form_input dependent indented<?php 
                    if ($image_count < count($images)) {
                        echo ' add_margin';
                    }
                    ?>
">
									<input type="text" class="text_input" id="multimedia_box[link_urls][<?php 
                    echo $image;
                    ?>
]" name="multimedia_box[link_urls][<?php 
                    echo $image;
                    ?>
]" value="<?php 
                    if ($multimedia_box['link_urls'][$image]) {
                        echo $thesis_data->o_htmlspecialchars($multimedia_box['link_urls'][$image]);
                    }
                    ?>
" />
									<label for="multimedia_box[link_urls][<?php 
                    echo $image;
                    ?>
]"><?php 
                    _e('link <acronym title="Uniform Resource Locator">URL</acronym> for ' . $image . ' (including &#8216;http://&#8217;)', 'thesis');
                    ?>
</label>
								</p>
							</div>
	<?php 
                    $image_count++;
                }
            } else {
                ?>
							<p class="form_input"><?php 
                printf(__('You don&#8217;t have any images to rotate! Try adding some images to your <a href="%s">rotator folder</a>, and then come back here to edit your alt tags.', 'thesis'), THESIS_ROTATOR_FOLDER);
                ?>
</p>
	<?php 
            }
            ?>
						</div>
						<div class="mini_module" id="video_code_module">
							<h5><?php 
            _e('Embedded Video Code', 'thesis');
            ?>
</h5>
							<p><?php 
            _e('Place your video embed code in the box below, and it will appear in the multimedia box by default.', 'thesis');
            ?>
</p>
							<p class="form_input">
								<label for="multimedia_box[video]"><?php 
            _e('Video embed code', 'thesis');
            ?>
</label>
								<textarea id="multimedia_box[video]" name="multimedia_box[video]"><?php 
            if ($multimedia_box['video']) {
                echo $thesis_data->o_htmlentities($multimedia_box['video']);
            }
            ?>
</textarea>
							</p>
						</div>
						<div class="mini_module" id="custom_code_module">
							<h5><?php 
            _e('Custom Multimedia Box Code', 'thesis');
            ?>
</h5>
							<p><?php 
            _e('You&#8217;ve now activated the special multimedia box hook, <code>thesis_hook_multimedia_box</code>, and you can use this to make the multimedia box do just about anything via your custom functions file, <code>custom_functions.php</code>.', 'thesis');
            ?>
</p>
							<p><?php 
            _e('If you like, you can override this hook by placing your own custom <acronym title="HyperText Markup Language">HTML</acronym> in the box below. Even if you do this, you can still access the hook on any post or page by selecting the &#8220;Access the Multimedia Box Hook&#8221; checkbox on the post editing screen.', 'thesis');
            ?>
</p>
							<p class="form_input">
								<label for="multimedia_box[code]"><?php 
            _e('Custom multimedia box code', 'thesis');
            ?>
</label>
								<textarea id="multimedia_box[code]" name="multimedia_box[code]"><?php 
            if ($multimedia_box['code']) {
                echo $thesis_data->o_htmlentities($multimedia_box['code']);
            }
            ?>
</textarea>
							</p>
						</div>
					</div>
				</div>
			</div>
			<div class="options_module" id="feature-box">
				<h3><?php 
            _e('Feature Box', 'thesis');
            ?>
</h3>
				<div class="module_subsection">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Placement', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Select a placement setting below, and then depending on your site&#8217;s configuration, you&#8217;ll be presented with different options for managing your feature box.', 'thesis');
            ?>
</p>
						<p class="form_input" id="feature_select">
							<select id="feature_box[position]" name="feature_box[position]" size="1">
								<option value="0"<?php 
            if (!$feature_box['position']) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Do not use feature box', 'thesis');
            ?>
</option>
								<option value="content"<?php 
            if ($feature_box['position'] == 'content') {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('In your content column', 'thesis');
            ?>
</option>
								<option value="full-content"<?php 
            if ($feature_box['position'] == 'full-content') {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Full-width above content and sidebars', 'thesis');
            ?>
</option>
								<option value="full-header"<?php 
            if ($feature_box['position'] == 'full-header') {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Full-width above header area', 'thesis');
            ?>
</option>
							</select>
						</p>
						<div id="feature_box_radio">
							<p class="label_note"><?php 
            _e('Show feature box&hellip;', 'thesis');
            ?>
</p>
							<ul>
<?php 
            if (get_option('show_on_front') == 'page') {
                ?>
								<li><input type="radio" name="feature_box[status]" value="front" <?php 
                if ($feature_box['status'] == 'front') {
                    echo 'checked="checked" ';
                }
                ?>
/><label><?php 
                _e('on front page <em>only</em>', 'thesis');
                ?>
</label></li>
								<li><input type="radio" name="feature_box[status]" value="0" <?php 
                if (!$feature_box['status']) {
                    echo 'checked="checked" ';
                }
                ?>
/><label><?php 
                _e('on blog page <em>only</em>', 'thesis');
                ?>
</label></li>
								<li><input type="radio" name="feature_box[status]" value="front-and-blog" <?php 
                if ($feature_box['status'] == 'front-and-blog') {
                    echo 'checked="checked" ';
                }
                ?>
/><label><?php 
                _e('on front page and blog page', 'thesis');
                ?>
</label></li>
<?php 
            } else {
                ?>
								<li><input type="radio" name="feature_box[status]" value="0" <?php 
                if (!$feature_box['status']) {
                    echo 'checked="checked" ';
                }
                ?>
/><label><?php 
                _e('on home page <em>only</em>', 'thesis');
                ?>
</label></li>
<?php 
            }
            ?>
								<li><input type="radio" name="feature_box[status]" value="sitewide" <?php 
            if ($feature_box['status'] == 'sitewide') {
                echo 'checked="checked" ';
            }
            ?>
/><label><?php 
            _e('sitewide', 'thesis');
            ?>
</label></li>
							</ul>
						</div>
						<div id="feature_box_content_position">
							<p class="label_note"><?php 
            _e('Display feature box after post&hellip;', 'thesis');
            ?>
</p>
							<p class="form_input">
								<select id="feature_box[after_post]" name="feature_box[after_post]" size="1">
									<option value="0"<?php 
            if (!$feature_box['after_post']) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Above all posts');
            ?>
</option>
<?php 
            $available_posts = $home['body']['content']['features'];
            for ($j = 1; $j <= $available_posts; $j++) {
                $selected = $feature_box['after_post'] == $j ? ' selected="selected"' : '';
                echo "\t\t\t\t\t\t\t\t<option value=\"{$j}\"{$selected}>{$j}</option>\n";
            }
            ?>
								</select>
							</p>
						</div>
					</div>
				</div>
				<div class="module_subsection" id="feature_box_display">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Display Options', 'thesis');
            ?>
</h4>
					<p class="more_info"><?php 
            _e('Right now, the only thing you can do with your shiny new feature box is access a hook, <code>thesis_hook_feature_box</code>. Expect your display options to improve dramatically in a future release!', 'thesis');
            ?>
</p>
				</div>
			</div>
			<div class="options_module" id="javascript-options">
				<h3><?php 
            _e('JavaScript', 'thesis');
            ?>
</h3>
				<div class="module_subsection" id="javascript-libs">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Sitewide <acronym title="JavaScript">JS</acronym> Libraries', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Include cached versions of the most popular <acronym title="JavaScript">JS</acronym> libraries by selecting from the list below. These libraries will be served sitewide, but you can fine-tune your <acronym title="JavaScript">JS</acronym> libraries on any post or page and on your home page.', 'thesis');
            ?>
</p>
						<ul>
<?php 
            $thesis_javascript = new thesis_javascript();
            foreach ($thesis_javascript->libs as $lib_name => $lib) {
                $checked = $javascript['libs'][$lib_name] ? ' checked="checked" ' : '';
                echo "\t\t\t\t\t\t\t" . '<li><input type="checkbox" id="javascript[libs][' . $lib_name . ']" name="javascript[libs][' . $lib_name . ']" value="1"' . $checked . '/><label>' . sprintf(__('%1$s <a href="%2$s" target="_blank">[?]</a>', 'thesis'), $lib['name'], $lib['info_url']) . "</label></li>\n";
            }
            ?>
						</ul>
					</div>
				</div>
				<div class="module_subsection" id="javascript-scripts">
					<h4 class="module_switch"><a href="" title="<?php 
            _e('Show/hide additional information', 'thesis');
            ?>
"><span class="pos">+</span><span class="neg">&#8211;</span></a><?php 
            _e('Embedded Scripts', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('The scripts you add here will be served after the <acronym title="HyperText Markup Language">HTML</acronym> on <em>every page of your site</em>. This is the preferred position because it prevents the scripts from interrupting the page load.', 'thesis');
            ?>
</p>
						<p class="form_input">
							<label for="javascript[scripts]"><?php 
            _e('JavaScripts (include <code>&lt;script&gt;</code> tags!)', 'thesis');
            ?>
</label>
							<textarea class="scripts" id="javascript[scripts]" name="javascript[scripts]"><?php 
            if ($javascript['scripts']) {
                echo $thesis_data->o_htmlentities($javascript['scripts']);
            }
            ?>
</textarea>
						</p>
					</div>
				</div>
			</div>
		</div>
	</form>
<?php 
        }
        ?>
</div>
<?php 
    }