Exemplo n.º 1
0
    function options_page()
    {
        global $thesis_site, $thesis_design;
        $head = $thesis_site->head;
        $javascript = $thesis_site->javascript;
        $nav = $thesis_site->nav;
        $comments = $thesis_site->comments;
        $display = $thesis_site->display;
        ?>

<div id="thesis_options" class="wrap<?php 
        if (get_bloginfo('text_direction') == 'rtl') {
            echo ' rtl';
        }
        ?>
">
<?php 
        thesis_version_indicator();
        thesis_options_title(__('Thesis Site 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 
            _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_options');
            ?>
" method="post">
		<div class="options_column">
			<div class="options_module" id="document-head">
				<h3><?php 
            _e('Document Head', 'thesis');
            ?>
 <code>&lt;head&gt;</code></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('Title Tag Settings', 'thesis');
            ?>
 <code>&lt;title&gt;</code></h4>
					<div class="more_info">
						<p><?php 
            _e('As far as <acronym title="Search Engine Optimization">SEO</acronym> is concerned, this is the single most important element on your site. For all pages except the home page, Thesis will construct your <code>&lt;title&gt;</code> tags automatically according to the settings below, but you can override these settings by adding a custom <code>&lt;title&gt;</code> to any post or page via the post editing screen.', 'thesis');
            ?>
</p>
						<ul class="add_margin">
							<li><input type="checkbox" id="head[title][branded]" name="head[title][branded]" value="1" <?php 
            if ($head['title']['branded']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="head[title][branded]"><?php 
            _e('Append site name to page titles', 'thesis');
            ?>
</label></li>
						</ul>
						<p class="form_input add_margin">
							<input type="text" class="text_input short" id="head[title][separator]" name="head[title][separator]" value="<?php 
            echo $head['title']['separator'] ? urldecode($head['title']['separator']) : '&#8212;';
            ?>
" />
							<label for="head[title][separator]"><?php 
            _e('Character separator in titles', 'thesis');
            ?>
</label>
						</p>
						<p class="tip"><?php 
            printf(__('To set the <code>&lt;title&gt;</code> tags on your home page, category pages, or tag pages, visit the new <a href="%s">Page Options screen</a>.', 'thesis'), admin_url('admin.php?page=thesis-pages'));
            ?>
</p>
					</div>
				</div>
				<div class="module_subsection" id="robots-meta">
					<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('Robots Meta Tags', 'thesis');
            ?>
 <code>&lt;meta&gt;</code></h4>
					<div class="more_info">
						<div class="mini_module indented_module" id="robots-noindex">
							<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('Noindex Tag', 'thesis');
            ?>
 <code>noindex</code></h5>
							<div class="more_info">
								<p><?php 
            _e('Adding the <code>noindex</code> robot meta tag is a great way to fine-tune your site&#8217;s <acronym title="Search Engine Optimization">SEO</acronym> by streamlining the amount of pages that get indexed by the search engines. The options below will help you prevent the indexing of &#8220;bloat&#8221; pages that do nothing but dilute your search results and keep you from ranking as well as you should.', 'thesis');
            ?>
</p>
								<ul>
<?php 
            foreach ($head['meta']['robots']['noindex'] as $page_type => $value) {
                $checked = $value ? 'checked="checked" ' : '';
                echo "\t\t\t\t\t\t\t\t\t" . '<li><input type="checkbox" id="head[meta][robots][noindex][' . $page_type . ']" name="head[meta][robots][noindex][' . $page_type . ']" value="1" ' . $checked . '/><label for="head[meta][robots][noindex][' . $page_type . ']">' . sprintf(__('Add <code>noindex</code> to %s pages', 'thesis'), $page_type) . '</label></li>' . "\n";
            }
            ?>
								</ul>
							</div>
						</div>
						<div class="mini_module indented_module" id="robots-nofollow">
							<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('Nofollow Tag', 'thesis');
            ?>
 <code>nofollow</code></h5>
							<div class="more_info">
								<p><?php 
            _e('The <code>nofollow</code> robot meta tag is another useful tool for nailing down your site&#8217;s <acronym title="Search Engine Optimization">SEO</acronym>. Links from pages with the <code>nofollow</code> meta tag won&#8217;t pass any juice.', 'thesis');
            ?>
</p>
								<ul>
<?php 
            foreach ($head['meta']['robots']['nofollow'] as $page_type => $value) {
                $checked = $value ? 'checked="checked" ' : '';
                echo "\t\t\t\t\t\t\t\t\t" . '<li><input type="checkbox" id="head[meta][robots][nofollow][' . $page_type . ']" name="head[meta][robots][nofollow][' . $page_type . ']" value="1" ' . $checked . '/><label for="head[meta][robots][nofollow][' . $page_type . ']">' . sprintf(__('Add <code>nofollow</code> to %s pages', 'thesis'), $page_type) . '</label></li>' . "\n";
            }
            ?>
								</ul>
							</div>
						</div>
						<div class="mini_module indented_module" id="robots-noarchive">
							<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('Noarchive Tag', 'thesis');
            ?>
 <code>noarchive</code></h5>
							<div class="more_info">
								<p><?php 
            _e('The <code>noarchive</code> robot meta tag prevents search engines and Internet archive services from saving cached versions of pages on your site. Generally, people use this to protect their privacy, but there are certainly times when having access to archived versions of your pages might prove useful.', 'thesis');
            ?>
</p>
								<ul>
<?php 
            foreach ($head['meta']['robots']['noarchive'] as $page_type => $value) {
                $checked = $value ? 'checked="checked" ' : '';
                echo "\t\t\t\t\t\t\t\t\t" . '<li><input type="checkbox" id="head[meta][robots][noarchive][' . $page_type . ']" name="head[meta][robots][noarchive][' . $page_type . ']" value="1" ' . $checked . '/><label for="head[meta][robots][noarchive][' . $page_type . ']">' . sprintf(__('Add <code>noarchive</code> to %s pages', 'thesis'), $page_type) . '</label></li>' . "\n";
            }
            ?>
								</ul>
							</div>
						</div>
						<div class="mini_module indented_module" id="robots-noodp">
							<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('Directory Tags', 'thesis');
            ?>
 <code>noodp</code> <code>noydir</code></h5>
							<div class="more_info">
								<p><?php 
            _e('Using the <code>noodp</code> robot meta tag will prevent search engines from displaying Open Directory Project (DMOZ) listings in your meta descriptions. The <code>noydir</code> tag is pretty much the same, except that it only affects the Yahoo! Directory. Both of these options are sitewide.', 'thesis');
            ?>
</p>
								<ul>
									<li><input type="checkbox" id="head[meta][robots][noodp]" name="head[meta][robots][noodp]" value="1" <?php 
            if ($head['meta']['robots']['noodp']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="head[meta][robots][noodp]"><?php 
            _e('Add <code>noodp</code> to your site', 'thesis');
            ?>
</label></li>
									<li><input type="checkbox" id="head[meta][robots][noydir]" name="head[meta][robots][noydir]" value="1" <?php 
            if ($head['meta']['robots']['noydir']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="head[meta][robots][noydir]"><?php 
            _e('Add <code>noydir</code> to your site', 'thesis');
            ?>
</label></li>
								</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('Canonical <acronym title="Uniform Resource Locator">URL</acronym>s', 'thesis');
            ?>
</h4>
					<ul class="more_info">
						<li><input type="checkbox" id="head[links][canonical]" name="head[links][canonical]" value="1" <?php 
            if ($head['links']['canonical']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="head[links][canonical]"><?php 
            _e('Add canonical <acronym title="Uniform Resource Locator">URL</acronym>s to your site', 'thesis');
            ?>
</label></li>
					</ul>
				</div>
				<div class="module_subsection" id="syndication">
					<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('Syndication/Feed <acronym title="Uniform Resource Locator">URL</acronym>', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            printf(__('If you&#8217;re using a service like <a href="%s">Feedburner</a> to manage your <acronym title="Really Simple Syndication">RSS</acronym> feed, you should enter the <acronym title="Uniform Resource Locator">URL</acronym> of your feed in the box below. If you&#8217;d prefer to use the default WordPress feed, simply leave this box blank.', 'thesis'), 'http://www.feedburner.com/');
            ?>
</p>
						<p class="form_input">
							<input type="text" class="text_input" id="head[feed][url]" name="head[feed][url]" value="<?php 
            if ($head['feed']['url']) {
                echo $head['feed']['url'];
            }
            ?>
" />
							<label for="head[feed][url]"><?php 
            _e('Feed <acronym title="Uniform Resource Locator">URL</acronym> (including &#8216;http://&#8217;)', 'thesis');
            ?>
</label>
						</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('Additional Scripts', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            printf(__('If you need to add scripts to your document <code>&lt;head&gt;</code>, you should enter them in the box below; however, if you&#8217;re adding stat-tracking code, you should add that to the <a href="%s">Stats and Scripts section below</a>.', 'thesis'), '#javascript-options');
            ?>
</p>
						<p class="form_input">
							<label for="head[scripts]"><?php 
            _e('Additional <code>&lt;head&gt;</code> scripts (code)', 'thesis');
            ?>
</label>
							<textarea class="scripts" id="head[scripts]" name="head[scripts]"><?php 
            if ($head['scripts']) {
                thesis_massage_code($head['scripts']);
            }
            ?>
</textarea>
						</p>
					</div>
				</div>
			</div>
			<div class="options_module" id="javascript-options">
				<h3><?php 
            _e('Stats Software/Scripts', 'thesis');
            ?>
</h3>
				<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('Stat and Tracking Scripts', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('If you&#8217;ve got a stat-tracking script (from, say, Mint or Google Analytics), you&#8217;ll want to place it here. Anything 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('Tracking scripts (include <code>&lt;script&gt;</code> tags!)', 'thesis');
            ?>
</label>
							<textarea class="scripts" id="javascript[scripts]" name="javascript[scripts]"><?php 
            if ($javascript['scripts']) {
                thesis_massage_code($javascript['scripts']);
            }
            ?>
</textarea>
						</p>
					</div>
				</div>
			</div>
		</div>
		
		<div class="options_column">
			<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();
            ?>
" />
							<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="comments[disable_pages]" name="comments[disable_pages]" value="1" <?php 
            if ($comments['disable_pages']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="comments[disable_pages]"><?php 
            _e('Disable comments on all <strong>pages</strong>', 'thesis');
            ?>
</label></li>
							<li><input type="checkbox" id="comments[show_closed]" name="comments[show_closed]" value="1" <?php 
            if ($comments['show_closed']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="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><?php 
            _e('Show admin link in footer', 'thesis');
            ?>
</label></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		
		<div class="options_column">
			<div class="options_module button_module">
				<input type="submit" class="save_button" id="options_submit" name="submit" value="<?php 
            thesis_save_button_text();
            ?>
" />
			</div>
			<div class="options_module" id="thesis-nav-menu">
				<h3><?php 
            _e('Navigation Menu', '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('Pages', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('Start by selecting the pages you want to include in your nav menu. Next, drag and drop the pages to change their display order (topmost item displays first), and if you <em>really</em> want to get crazy, you can even edit the display text on each item. <strong>Try it!</strong>', 'thesis');
            ?>
</p>
						<p><?php 
            _e('Thesis features automatic dropdown menus, so if you have nested pages or categories, you&#8217;ll save space <em>and</em> gain style points with your slick new nav menu!', 'thesis');
            ?>
</p>
						<ul id="nav_pages" class="sortable add_margin">
<?php 
            $pages =& get_pages('sort_column=post_parent,menu_order');
            $active_pages = array();
            if ($nav['pages']) {
                foreach ($nav['pages'] as $id => $nav_page) {
                    $active_page = get_page($id);
                    if (post_exists($active_page->post_title)) {
                        $checked = $nav_page['show'] ? ' checked="checked"' : '';
                        $link_text = $nav['pages'][$id]['text'] != '' ? $nav['pages'][$id]['text'] : $active_page->post_title;
                        echo "\t\t\t\t\t\t\t<li><input class=\"checkbox\" type=\"checkbox\" id=\"nav[pages][{$id}][show]\" name=\"nav[pages][{$id}][show]\" value=\"1\"{$checked} /><input type=\"text\" class=\"text_input\" id=\"nav[pages][{$id}][text]\" name=\"nav[pages][{$id}][text]\" value=\"{$link_text}\" /></li>\n";
                        $active_pages[] = $id;
                    }
                }
            }
            if ($pages) {
                foreach ($pages as $page) {
                    if (!in_array($page->ID, $active_pages)) {
                        $link_text = $nav['pages'][$page->ID]['text'] != '' ? $nav['pages'][$page->ID]['text'] : $page->post_title;
                        echo "\t\t\t\t\t\t\t<li><input class=\"checkbox\" type=\"checkbox\" id=\"nav[pages][{$page->ID}][show]\" name=\"nav[pages][{$page->ID}][show]\" value=\"1\" /><input type=\"text\" class=\"text_input\" id=\"nav[pages][{$page->ID}][text]\" name=\"nav[pages][{$page->ID}][text]\" value=\"{$link_text}\" /></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('Categories', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            _e('If you&#8217;d like to include category pages in your nav menu, simply select the appropriate categories from the list below (you can select more than one).', 'thesis');
            ?>
</p>
						<p class="form_input">
							<select class="select_multiple" id="nav[categories]" name="nav[categories][]" multiple="multiple" size="1">
								<option value="0"><?php 
            _e('No category page links', 'thesis');
            ?>
</option>
<?php 
            $categories =& get_categories('type=post&orderby=name&hide_empty=0');
            if ($categories) {
                $nav_category_pages = explode(',', $nav['categories']);
                foreach ($categories as $category) {
                    $selected = in_array($category->cat_ID, $nav_category_pages) ? ' selected="selected"' : '';
                    echo "\t\t\t\t\t\t\t\t<option value=\"{$category->cat_ID}\"{$selected}>{$category->cat_name}</option>\n";
                }
            }
            ?>
							</select>
						</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('Add More Links', 'thesis');
            ?>
</h4>
					<div class="more_info">
						<p><?php 
            printf(__('You can insert additional navigation links on the <a href="%1$s">Manage Links</a> page. To ensure that things go smoothly, you should first <a href="%2$s">create a link category</a> solely for your navigation menu, and then make sure you place your new links in that category. Once you&#8217;ve done that, you can select your category below to include it in your nav menu.', 'thesis'), get_bloginfo('wpurl') . '/wp-admin/link-manager.php', get_bloginfo('wpurl') . '/wp-admin/edit-link-categories.php#addcat');
            ?>
</p>
						<p class="form_input">
							<select id="nav[links]" name="nav[links]" size="1">
								<option value="0"><?php 
            _e('No additional links', 'thesis');
            ?>
</option>
<?php 
            $link_categories =& get_categories('type=link&hide_empty=0');
            if ($link_categories) {
                foreach ($link_categories as $link_category) {
                    $selected = $nav['links'] == $link_category->cat_ID ? ' selected="selected"' : '';
                    echo "\t\t\t\t\t\t\t\t<option value=\"{$link_category->cat_ID}\"{$selected}>{$link_category->cat_name}</option>\n";
                }
            }
            ?>
							</select>
						</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('Home Link', 'thesis');
            ?>
</h4>
					<div class="control_box more_info">
						<ul class="control">
							<li><input type="checkbox" id="nav[home][show]" name="nav[home][show]" value="1" <?php 
            if ($nav['home']['show']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="nav[home][show]"><?php 
            _e('Show home link in nav menu', 'thesis');
            ?>
</label></li>
						</ul>
						<div class="dependent">
							<p class="form_input add_margin">
								<input type="text" id="nav[home][text]" name="nav[home][text]" value="<?php 
            echo thesis_home_link_text();
            ?>
" />
								<label for="nav[home][text]"><?php 
            _e('home link text', 'thesis');
            ?>
</label>
							</p>
							<ul>
								<li><input type="checkbox" id="nav[home][nofollow]" name="nav[home][nofollow]" value="1" <?php 
            if ($nav['home']['nofollow']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="nav[home][nofollow]"><?php 
            _e('Add <code>nofollow</code> to home link', 'thesis');
            ?>
</label></li>
							</ul>
						</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('Feed Link in Nav Menu', 'thesis');
            ?>
</h4>
					<div class="control_box more_info">
						<ul class="control">
							<li><input type="checkbox" id="nav[feed][show]" name="nav[feed][show]" value="1" <?php 
            if ($nav['feed']['show']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="nav[feed][show]"><?php 
            _e('Show feed link in nav menu', 'thesis');
            ?>
</label></li>
						</ul>
						<div class="dependent">
							<p class="form_input add_margin">
								<input type="text" class="text_input" id="nav[feed][text]" name="nav[feed][text]" value="<?php 
            echo thesis_feed_link_text();
            ?>
" />
								<label for="nav[feed][text]"><?php 
            _e('Change your feed link text', 'thesis');
            ?>
</label>
							</p>
							<ul>
								<li><input type="checkbox" id="nav[feed][nofollow]" name="nav[feed][nofollow]" value="1" <?php 
            if ($nav['feed']['nofollow']) {
                echo 'checked="checked" ';
            }
            ?>
/><label for="nav[feed][nofollow]"><?php 
            _e('Add <code>nofollow</code> to feed link', 'thesis');
            ?>
</label></li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="options_module" id="save_button_control">
				<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('Change Save Button Text', 'thesis');
            ?>
</h4>
					<p class="form_input more_info">
						<input type="text" id="save_button_text" name="save_button_text" value="<?php 
            if ($thesis_site->save_button_text) {
                echo $thesis_site->save_button_text;
            }
            ?>
" />
						<label for="save_button_text"><?php 
            _e('not recommended (heh)', 'thesis');
            ?>
</label>
					</p>
				</div>
			</div>
		</div>
	</form>
<?php 
        }
        ?>
</div>
<?php 
    }
Exemplo n.º 2
0
function thesis_post_content($post_count = false, $post_image = false)
{
    global $wp_query, $post, $thesis_design;
    thesis_hook_before_post($post_count);
    if ($post_image['show'] && $post_image['y'] == 'before-post') {
        echo $post_image['output'];
    }
    if ($wp_query->is_page && get_post_meta($post->ID, '_wp_page_template', true) == 'archives.php') {
        thesis_hook_archives_template();
    } elseif (($wp_query->is_home || $wp_query->is_archive || $wp_query->is_search) && $thesis_design->display['posts']['excerpts'] || ($wp_query->is_archive || $wp_query->is_search) && $thesis_design->display['archives']['style'] == 'excerpts') {
        the_excerpt();
    } else {
        the_content(thesis_read_more_text());
    }
    if ($wp_query->is_single || $wp_query->is_page) {
        link_pages('<p><strong>Pages:</strong> ', '</p>', 'number');
    }
    thesis_hook_after_post($post_count);
}
Exemplo n.º 3
0
/><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();
    ?>
" />
							<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" ';
Exemplo n.º 4
0
function thesis_post_content($post_count = false, $post_image = false)
{
    global $thesis;
    thesis_hook_before_post($post_count);
    if ($post_image['show'] && $post_image['y'] == 'before-post') {
        echo $post_image['output'];
    }
    if ((is_home() || is_archive() || is_search()) && $thesis['display']['posts']['excerpts'] || (is_archive() || is_search()) && $thesis['display']['archives']['style'] == 'excerpts') {
        the_excerpt();
    } else {
        the_content(thesis_read_more_text());
    }
    if (is_single() || is_page()) {
        link_pages('<p><strong>Pages:</strong> ', '</p>', 'number');
    }
    thesis_hook_after_post($post_count);
}
Exemplo n.º 5
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 
    }