diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/thematic/changelog.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/themes/thematic/changelog.html Fri Mar 12 13:29:04 2010 +0000 @@ -0,0 +1,301 @@ +
thematic_comments_template()
Added two new hooks:
+thematic_abovecontainer()
thematic_belowcontainer()
Thematic prevents the creation of the WordPress Generator. This can be filtered using a filter for thematic_hide_generators
. Return TRUE
and the WordPress Generator will be created.
Added some filters to comments.php
:
thematic_singlecomment_text
.thematic_multiplecomments_text
.thematic_postcomment_text
.thematic_postreply_text
.thematic_commentbox_text
.thematic_commentbutton_text
.Split up thematic_postheader()
and thematic_postfooter()
into sub-functions. With these new functions it is easier to rearrange the displayed data.
thematic_postheader()
thematic_postheader_posttitle()
thematic_postheader_postmeta()
thematic_postmeta_authorlink()
thematic_postmeta_entrydate()
thematic_postmeta_editlink()
thematic_postfooter()
thematic_postfooter_posteditlink()
thematic_postfooter_postcategory()
thematic_postfooter_posttags()
thematic_postfooter_postconnect()
thematic_postfooter_postcomments()
The several parts of the body class can be switched off using the following filters:
+thematic_show_bodyclass
(master switch)thematic_show_bc_wordpress
thematic_show_bc_datetime
thematic_show_bc_contenttype
thematic_show_bc_singular
thematic_show_bc_singlepost
thematic_show_bc_authorarchives
thematic_show_bc_categoryarchives
thematic_show_bc_tagarchives
thematic_show_bc_pages
thematic_show_bc_search
thematic_show_bc_loggedin
thematic_show_bc_browser
<head profile="http://gmpg.org/xfn/11">
can be filtered using thematic_head_profile
.
Complete rewrite of the widget areas:
+ +The widget areas are now controlled by the $thematic_widgetized_areas
array. This is the basic layout:
+$thematic_widgetized_areas = array(
+
+ 'Primary Aside' => array(
+
+ 'admin_menu_order' => 100,
+
+ 'args' => array (
+
+ 'name' => 'Primary Aside',
+
+ 'id' => 'primary-aside',
+
+ 'description' => __('The primary widget area, most often used as a sidebar.', 'thematic'),
+
+ 'before_widget' => thematic_before_widget(),
+
+ 'after_widget' => thematic_after_widget(),
+
+ 'before_title' => thematic_before_title(),
+
+ 'after_title' => thematic_after_title(),
+
+ ),
+
+ 'action_hook' => 'widget_area_primary_aside',
+
+ 'function' => 'thematic_primary_aside',
+
+ 'priority' => 10,
+
+ ),
+
+ )
+
+
+ Using this array you can remove unnecessary widget areas with a filter before these are created:
+
+function remove_widget_area($content) {
+
+ unset($content['Primary Aside']);
+
+ return $content;
+
+}
+
+add_filter('thematic_widgetized_areas', 'remove_widget_area');
+
+
+ Note: This will completely remove a widget area. Do not use this functionality with conditional tags to remove a widget area from a certain page / post.
+ +A widget area can be renamed:
+ +
+function rename_widget_area($content) {
+
+ $content['Primary Aside']['args']['name'] = 'My first Sidebar';
+
+ return $content;
+
+}
+
+add_filter('thematic_widgetized_areas', 'rename_widget_area');
+
+
+ Display a widget area based on a conditional tag:
+
+// First we create a new function to display the secondary aside only on pages:
+
+function childtheme_secondary_aside() {
+
+ if (is_page()) {
+
+ if (is_sidebar_active('secondary-aside')) {
+
+ echo thematic_before_widget_area('secondary-aside');
+
+ dynamic_sidebar('secondary-aside');
+
+ echo thematic_after_widget_area('secondary-aside');
+
+ }
+
+ }
+
+}
+
+// ... and then ... without removing an action or so:
+
+function change_secondary_aside($content) {
+
+ $content['Secondary Aside']['function'] = 'childtheme_secondary_aside';
+
+ return $content;
+
+}
+
+add_filter('thematic_widgetized_areas','change_secondary_aside');
+
+
+Create several widget areas that will be displayed on a certain position based on conditional tags:
+ +
+function change_secondary_aside($content) {
+
+ $content['Secondary Aside']['function'] = 'childtheme_secondary_aside';
+
+ $content['Secondary Aside Pages'] = array(
+
+ 'admin_menu_order' => 201,
+
+ 'args' => array (
+
+ 'name' => 'Secondary Aside Pages',
+
+ 'id' => 'secondary-aside-pages',
+
+ 'description' => __('The secondary widget area for pages.', 'childtheme'),
+
+ 'before_widget' => thematic_before_widget(),
+
+ 'after_widget' => thematic_after_widget(),
+
+ 'before_title' => thematic_before_title(),
+
+ 'after_title' => thematic_after_title(),
+
+ ),
+
+ 'action_hook' => 'thematic_secondary_aside',
+
+ 'function' => 'childtheme_secondary_aside',
+
+ 'priority' => 10,
+
+ );
+
+
+
+ return $content;
+
+}
+
+add_filter('thematic_widgetized_areas','change_secondary_aside');
+
+
+
+function childtheme_secondary_aside() {
+
+ if (is_sidebar_active('secondary-aside') && is_sidebar_active('secondary-aside-pages')) {
+
+ echo thematic_before_widget_area('secondary-aside');
+
+ if (is_page()) {
+
+ dynamic_sidebar('secondary-aside-pages');
+
+ } else {
+
+ dynamic_sidebar('secondary-aside');
+
+ }
+
+ echo thematic_after_widget_area('secondary-aside');
+
+ }
+
+}
+
+
+
+
+thematic_page_title()
not displaying a correct title in attachement.phpthematic_create_robots()
.