diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/thematic/library/extensions/shortcodes.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/themes/thematic/library/extensions/shortcodes.php Fri Mar 12 13:29:04 2010 +0000 @@ -0,0 +1,82 @@ +WordPress'; +} +add_shortcode('wp-link', 'thmfooter_wp_link'); + +function thmfooter_theme_link() { + $themelink = 'Thematic Theme Framework'; + return apply_filters('thematic_theme_link',$themelink); +} +add_shortcode('theme-link', 'thmfooter_theme_link'); + +function thmfooter_login_link() { + if ( ! is_user_logged_in() ) + $link = '' . __('Login','thematic') . ''; + else + $link = '' . __('Logout','thematic') . ''; + return apply_filters('loginout', $link); +} +add_shortcode('loginout-link', 'thmfooter_login_link'); + +function thmfooter_blog_title() { + return '' . get_bloginfo('name') . ''; +} +add_shortcode('blog-title', 'thmfooter_blog_title'); + +function thmfooter_blog_link() { + return '' . get_option('blogname') . ""; +} +add_shortcode('blog-link', 'thmfooter_blog_link'); + +function thmfooter_year() { + return '' . date('Y') . ''; +} +add_shortcode('the-year', 'thmfooter_year'); + +// Providing information about Thematic + +function theme_name() { + return THEMENAME; +} +add_shortcode('theme-name', 'theme_name'); + +function theme_author() { + return THEMEAUTHOR; +} +add_shortcode('theme-author', 'theme_author'); + +function theme_uri() { + return THEMEURI; +} +add_shortcode('theme-uri', 'theme_uri'); + +function theme_version() { + return THEMATICVERSION; +} +add_shortcode('theme-version', 'theme_version'); + +// Providing information about the child theme + +function child_name() { + return TEMPLATENAME; +} +add_shortcode('child-name', 'child_name'); + +function child_author() { + return TEMPLATEAUTHOR; +} +add_shortcode('child-author', 'child_author'); + +function child_uri() { + return TEMPLATEURI; +} +add_shortcode('child-uri', 'child_uri'); + +function child_version() { + return TEMPLATEVERSION; +} +add_shortcode('child-version', 'child_version'); + +?> \ No newline at end of file