Version 1.2.3 (18.03.2010 09:11:28)
A simple Theme to start a new WordPress Themes
I work a lot and quite often on this theme to keep it up to date. I invest a lot of my precious leisure time in projects like this to provide solutions for WordPress. Please show me your appreciation and give a contribution to support my work on free software. Further projects and solutions can be find on my blog bueltge.de. Alternatively, you can show your appreciation if you send me a gift from my Amazon wishlist.
I am very grateful for your support! Thank you very much!
Basis has been built to make theme development for WordPress easier. If you are an experienced theme developer or a total beginner, Basis provides a highly customizable starting point for your theme development.
Basis comes with a pre-defined set of templates. The otherwise empty stylesheet provides a list of IDs und class-names which have already been used in the templates. The theme is widget-ready and introduces a number of custom functions in functions.php
. Here are some details:
You can also use the Basis-Theme with xHTML5 Markup. Please see the SVN of the project for more source.
define( 'FB_BASIS_TEXTDOMAIN', 'basis' );
. All other keys are being pulled automatically through the constant.fb_get_related_posts()
fb_get_related_posts()
fb_custom_login()
add_action('login_head', 'fb_custom_login');The required file and directory are included in the theme-directory.
fb_breadcrumb_nav()
if ( function_exists('fb_breadcrumb_nav') ) fb_breadcrumb_nav();
fb_example_link()
fb_get_posts()
[posts num="5" cat="1"]
fb_secure_mail()
[sm mailto="foo@bar.com" txt="here is my mail"]
fb_kill_shortcodes()
[KSC][/KSC]
add_filter('widget_text', 'do_shortcode');
fb_getUserCountry()
fb_css_cache_buster()
fb_dropdown_tag_cloud()
fb_exclude_category()
/category/
for better search engine optimization fb_fix_slash()
/category/
from permalinksfb_add_thickbox()
fb_pulish_later_on_feed()
fb_noself_ping()
fb_theme_comment()
fb_comment_type_count()
fb_comment_paging_noindex_meta()
fb_fromasearchengine()
fb_fromasearchengine()
evaluates the referrer of each visitor. To add more search go to functions.php.if ( function_exists('fb_fromasearchengine') ) { if ( fb_fromasearchengine() ) { PLATZHALTER FÜR HTML-/BANNER-CODE etc. } }
fb_remove_more_anchor()
functions.php
and activate the hook add_filter('the_content', 'fb_remove_more_anchor');
$more
to do the same thing within your template. Just add: global $more; $more = 1;
fb_delete_comments_data()
fb_delete_comments_data()
all comment data of the last 15 days are deleted. The automatism saves database file size and protects you from future legal issues if you are a German resident.fb_alternate_doctype()
$newdoctype
as the new doctype.if ( is_page('about') ) fb_alternate_doctype();
fb_gettinyurl()
fb_filter_rewrite_attachment()
var_dump( get_option('rewrite_rules') );
.fb_agent()
if ( (fb_agent("iPhone") != FALSE) || (fb_agent("iPod") != FALSE) ) { ... }
fb_meta_tags()
<?php if (function_exists('fb_meta_tags') ) { fb_meta_tags(); } ?>
<meta name="keywords" content="test,bueltge," />
fb_clean_excerpt()
fb_trim_excerpt()
fb_strip_nofollow()
rel="nofollow"
from the comment author linkfb_has_parent()
if ( function_exists('fb_has_parent') ) { if ( fb_has_parent($wp_query->post, 3) ) { ... } } ;
template_redirect
fb_add_twitter_contactmethod
add_filter( 'user_contactmethods', 'fb_add_twitter_contactmethod', 10, 1 )
fb_getUsersByRole
$userid = fb_getUsersByRole( 'author' )
fb_getUsersByRole
insteadFor an easy and safe installation the WordPress Basis Theme comes with a modified
Make your own choice which ideas and solutions you would like to use. Search the web for explanations.
This theme provides multiple options to reset the CSS styles to a common standard for all browsers. Choose one option and use the linked ressources to retrieve deeper information on the matter.
To standardize the interpretation of CSS attributes within browsers from Internet Explorer 5 up to Firefox 3, the WordPress Basis Theme comes with an included CSS Framework Tripoli. The idea has been realized by David Hellsing.
The CSS reset by Eric Meyer resets all internal browser styles and requires a complete re-definition of all styles.
"The reset styles given here are intentionally very generic. There isn't any default color or background set for the body element, for example. I don't particularly recommend that you just use this in its unaltered state in your own projects. It should be tweaked, edited, extended, and otherwise tuned to match your specific reset baseline. Fill in your preferred colors for the page, links, and so on."
The foundational YUI Reset CSS file removes and neutralizes the inconsistent default styling of HTML elements, creating a level playing field across A-grade browsers and providing a sound foundation upon which you can explicitly declare your intentions.
Many CSS resets just go too far. Eliot´s solution only regards a selection of elements that are used more often.
* { margin: 0; padding: 0; }
Basis Theme © 2007 – 2009 has been published under the GNU General Public License:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.