<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>library/helpers/page_template_helper.php</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,8 +2,8 @@
 /*
 Template Name: Archives
 */
-?&gt;
-&lt;?php get_header(); ?&gt;
+
+get_header(); ?&gt;
 
 
 
@@ -32,7 +32,7 @@ Template Name: Archives
 &lt;?php } } ?&gt;
 
 	&lt;div class=&quot;secondary&quot;&gt;
-	&lt;?php if(!get_tarski_option('hide_categories')) { ?&gt;
+	&lt;?php if(get_tarski_option('show_categories')) { ?&gt;
 		&lt;h3&gt;&lt;?php _e('Category Archives', 'tarski'); ?&gt;&lt;/h3&gt;
 		&lt;ul class=&quot;archivelist xoxo&quot;&gt;
 			&lt;?php wp_list_cats('sort_column=name&amp;sort_order=desc'); ?&gt;</diff>
      <filename>archives.php</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@ include_once(TARSKIHELPERS . '/hooks.php');
 include_once(TARSKIHELPERS . '/admin_helper.php');
 include_once(TARSKIHELPERS . '/template_helper.php');
 include_once(TARSKIHELPERS . '/content_helper.php');
+include_once(TARSKIHELPERS . '/page_template_helper.php');
 include_once(TARSKIHELPERS . '/author_helper.php');
 include_once(TARSKIHELPERS . '/tag_helper.php');
 include_once(TARSKIHELPERS . '/constants_helper.php');</diff>
      <filename>functions.php</filename>
    </modified>
    <modified>
      <diff>@@ -46,20 +46,20 @@ class Options {
 	 * @since 2.0
 	 */
 	function tarski_options_defaults() {
-		$this-&gt;installed = theme_version(&quot;current&quot;);
+		$this-&gt;installed = theme_version('current');
 		$this-&gt;update_notification = true;
-		$this-&gt;blurb = __(&quot;This is the about text.&quot;,&quot;tarski&quot;);
+		$this-&gt;blurb = __('This is the default Tarski blurb: you can edit or remove it on the Tarski Options page.','tarski');
 		$this-&gt;footer_recent = true;
-		$this-&gt;sidebar_type = &quot;tarski&quot;;
-		$this-&gt;sidebar_pp_type = &quot;main&quot;;
+		$this-&gt;sidebar_type = 'tarski';
+		$this-&gt;sidebar_pp_type = 'main';
 		$this-&gt;sidebar_pages = true;
 		$this-&gt;sidebar_links = true;
 		$this-&gt;sidebar_custom = false;
-		$this-&gt;header = &quot;greytree.jpg&quot;;
+		$this-&gt;header = 'greytree.jpg';
 		$this-&gt;display_title = true;
 		$this-&gt;display_tagline = true;
 		$this-&gt;nav_pages = false;
-		$this-&gt;home_link_name = __(&quot;Home&quot;,&quot;tarski&quot;);
+		$this-&gt;home_link_name = __('Home','tarski');
 		$this-&gt;nav_extlinkcat = 0;
 		$this-&gt;style = false;
 		$this-&gt;asidescategory = 0;
@@ -69,7 +69,7 @@ class Options {
 		$this-&gt;tags_everywhere = false;
 		$this-&gt;show_categories = true;
 		$this-&gt;use_pages = false;
-		$this-&gt;feed_type = &quot;rss2&quot;;
+		$this-&gt;feed_type = 'rss2';
 	}
 	
 	/**
@@ -78,13 +78,13 @@ class Options {
 	 * @since 2.0
 	 */
 	function tarski_options_get() {
-		$array = unserialize(get_option(&quot;tarski_options&quot;));
+		$array = unserialize(get_option('tarski_options'));
 		if(!empty($array)) {
 			foreach($array as $name =&gt; $value) {
 				$this-&gt;$name = $value;
 			}
 
-			if(empty($this-&gt;installed) || ($this-&gt;installed != theme_version(&quot;current&quot;))) {
+			if(empty($this-&gt;installed) || ($this-&gt;installed != theme_version('current'))) {
 				// We had some Tarski preferences, but the preferences were from a different version, so we need to update them
 				
 				// Get our defaults, so we can merge them in
@@ -98,7 +98,7 @@ class Options {
 				
 				// If they had hidden the sidebar previously for non-index pages, preserve that setting
 				if(empty($this-&gt;sidebar_pp_type) &amp;&amp; isset($this-&gt;sidebar_onlyhome) &amp;&amp; $this-&gt;sidebar_onlyhome == 1) {
-					$this-&gt;sidebar_pp_type = &quot;none&quot;;
+					$this-&gt;sidebar_pp_type = 'none';
 				}
 				
 				// If update notification was off, leave it off, otherwise turn it on</diff>
      <filename>library/classes/options.php</filename>
    </modified>
    <modified>
      <diff>@@ -32,7 +32,7 @@ function tarski_output_headinclude() {
 }
 
 /**
- * tarski_output_navbarinclude() - Outputs $navbarInclude variable from constants.php.
+ * tarski_output_navbarinclude() - Adds $navbarInclude variable from constants.php to navbar.
  * 
  * @since 1.5
  * @global string $navbarInclude
@@ -108,11 +108,10 @@ function tarski_output_commentsforminclude() {
  * 
  * @since 1.5
  * @global string $sidebarTopInclude
- * @global object $post
  * @return string $sidebarTopInclude
  */
 function tarski_output_sidebartopinclude() {
-	global $sidebarTopInclude, $post;
+	global $sidebarTopInclude;
 	if(get_tarski_option('sidebar_onlyhome')) { // Sidebar only on index pages
 		if(!(is_page() || is_single())) {
 			tarski_output_constant($sidebarTopInclude);
@@ -120,7 +119,7 @@ function tarski_output_sidebartopinclude() {
 	} else { // Sidebar everywhere
 		if(!(is_page() || is_single())) {
 			tarski_output_constant($sidebarTopInclude);
-		} elseif(get_post_meta($post-&gt;ID, '_wp_page_template', true) != 'archives.php') {
+		} elseif(is_archives_template()) {
 			tarski_output_constant($sidebarTopInclude);
 		}
 	}
@@ -131,11 +130,10 @@ function tarski_output_sidebartopinclude() {
  * 
  * @since 2.0
  * @global string $sidebarBottomInclude
- * @global object $post
  * @return string $sidebarBottomInclude
  */
 function tarski_output_sidebarbottominclude() {
-	global $sidebarBottomInclude, $post;
+	global $sidebarBottomInclude;
 	if(get_tarski_option('sidebar_onlyhome')) { // Sidebar only on index pages
 		if(!(is_page() || is_single())) {
 			tarski_output_constant($sidebarBottomInclude);
@@ -143,7 +141,7 @@ function tarski_output_sidebarbottominclude() {
 	} else { // Sidebar everywhere
 		if(!(is_page() || is_single())) {
 			tarski_output_constant($sidebarBottomInclude);
-		} elseif(get_post_meta($post-&gt;ID, '_wp_page_template', true) != 'archives.php') {
+		} elseif(is_archives_template()) {
 			tarski_output_constant($sidebarBottomInclude);
 		}
 	}
@@ -154,13 +152,12 @@ function tarski_output_sidebarbottominclude() {
  * 
  * @since 1.5
  * @global string $noSidebarInclude
- * @global object $post
  * @return string $noSidebarInclude
  */
 function tarski_output_nosidebarinclude() {
-	global $noSidebarInclude, $post;
+	global $noSidebarInclude;
 	if(get_tarski_option('sidebar_onlyhome') &amp;&amp; (is_single() || is_page())) {
-		if(get_post_meta($post-&gt;ID, '_wp_page_template', true) != 'archives.php') {
+		if(is_archives_template()) {
 			tarski_output_constant($noSidebarInclude);
 		}
 	}
@@ -171,12 +168,11 @@ function tarski_output_nosidebarinclude() {
  * 
  * @since 1.5
  * @global string $archivesPageInclude
- * @global object $post
  * @return string $archivesPageInclude
  */
 function tarski_output_archivesinclude() {
-	global $archivesPageInclude, $post;
-	if(get_post_meta($post-&gt;ID, '_wp_page_template', true) == 'archives.php') {
+	global $archivesPageInclude;
+	if(is_archives_template()) {
 		tarski_output_constant($archivesPageInclude);
 	}
 }</diff>
      <filename>library/helpers/constants_helper.php</filename>
    </modified>
    <modified>
      <diff>@@ -23,9 +23,11 @@ if(!function_exists('is_active_sidebar')) {
  * tarski_sidebar() - Outputs Tarski's sidebar.
  * 
  * @since 2.0
+ * @global object $post
  * @return mixed
  */
 function tarski_sidebar() {
+	global $post;
 
 	// Default Tarski sidebar
 	$sidebar_file = TARSKIDISPLAY . '/sidebar/tarski_sidebar.php';
@@ -51,7 +53,9 @@ function tarski_sidebar() {
 	}
 	
 	$sidebar_file = apply_filters('tarski_sidebar', $sidebar_file);
-	include($sidebar_file);
+	
+	if(is_string($sidebar_file))
+		include($sidebar_file);
 }
 
 /**</diff>
      <filename>library/helpers/content_helper.php</filename>
    </modified>
    <modified>
      <diff>@@ -62,6 +62,8 @@ add_action('th_postend', 'add_post_tags', 10);
 add_action('th_postend', 'tarski_link_pages', 11);
 
 // Sidebar
+add_filter('tarski_sidebar', 'hide_sidebar_for_archives');
+
 add_action('th_sidebar', 'tarski_sidebar', 10);
 
 // Comments</diff>
      <filename>library/launcher.php</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,8 @@
 /*
 Template Name: Links
 */
-?&gt;
-&lt;?php get_header(); ?&gt;
+
+get_header(); ?&gt;
 
 
 </diff>
      <filename>links.php</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>screenshot.gif</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ Theme URI: http://tarskitheme.com/
 Description: An elegant, flexible theme developed by &lt;a href=&quot;http://extralogical.net/&quot;&gt;Ben Eastaugh&lt;/a&gt; and &lt;a href=&quot;http://ceejayoz.com/&quot;&gt;Chris Sternal-Johnson&lt;/a&gt;.
 Author: Benedict Eastaugh and Chris Sternal-Johnson
 Author URI: http://tarskitheme.com/
-Version: 2.0 RC
+Version: 2.0
 .
 Released under the &lt;a href=&quot;http://www.opensource.org/licenses/gpl-license.php&quot;&gt;GPL&lt;/a&gt;.
 .</diff>
      <filename>style.css</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,8 @@
 /*
 Template Name: Tags
 */
-?&gt;
-&lt;?php get_header(); ?&gt;
+
+get_header(); ?&gt;
 
 
 </diff>
      <filename>tags.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d7aea4ee4278dc24d31319ed2345ea192db1dcee</id>
    </parent>
  </parents>
  <author>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </author>
  <url>http://github.com/ionfish/tarski/commit/cec9441f5baa56eae768adaea9c018df26e0e127</url>
  <id>cec9441f5baa56eae768adaea9c018df26e0e127</id>
  <committed-date>2007-11-05T08:49:25-08:00</committed-date>
  <authored-date>2007-11-05T08:49:25-08:00</authored-date>
  <message>More tweaks, new screenshot, moved archives template check to a function, probably 2.0 release

git-svn-id: https://tarski.googlecode.com/svn/trunk@326 8ec1c81d-c82d-0410-ab24-9d07384f4a97</message>
  <tree>5f1f6ded2f6d8f166740e905e58bb4e40802365a</tree>
  <committer>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </committer>
</commit>
