'. __('RSS Feeds',THEME_NS) .''; } // ads function art_advertisment($atts){ extract(shortcode_atts(array( 'code' => 1, 'align' => 'left', 'inline' => 0 ), $atts)); $ad = art_get_option('art_ad_code_'.$code); if(!empty($ad)): $ad = '
[ad] '.sprintf(__("Empty ad slot (#%s)!",THEME_NS),esc_attr($code)).'
'; endif; } function art_go_to_top(){ return sprintf(''.__('Top',THEME_NS).''); } // login function art_login_link(){ if (is_user_logged_in()) return sprintf('%2$s',admin_url(),__('Site Admin')); else return sprintf('%2$s',wp_login_url(),__('Log in')); } // blog title function art_blog_title(){ return '' . get_bloginfo('name') . ''; } // validate xhtml function art_validate_xhtml(){ return 'XHTML 1.1'; } // validate css function art_validate_css(){ return 'CSS 3.0'; } // current year function art_current_year(){ return date('Y'); } add_shortcode('year', 'art_current_year'); add_shortcode('rss', 'art_subscribe_rss'); add_shortcode('ad', 'art_advertisment'); add_shortcode('top', 'art_go_to_top'); add_shortcode('login-link', 'art_login_link'); add_shortcode('blog-title', 'art_blog_title'); add_shortcode('xhtml', 'art_validate_xhtml'); add_shortcode('css', 'art_validate_css'); add_filter('widget_text', 'do_shortcode'); // Allow [SHORTCODES] in Widgets ?>