';
the_widget('WP_Widget_Search', $instance, $rightargs);
$rightargs['before_widget'] = '
';
$instance['display_featured_image']=1;
$instance['title']='Recent Posts';
$instance['display_title']=1;
$instance['excerpt_length']=120;
the_widget('Posts', $instance, $rightargs);
$rightargs['before_widget'] = '
", $out ); $out = str_replace( "\n", "
"; } if($echo) return print $out; return $out; } function smt_menu($a) { $a=preg_replace("/", $out )."
/", "", $a);
$a=preg_replace('/
/', "
- class="current_page_item">_( 'homelink' );?>
'' ), $atts));
return '
'; } add_shortcode('youtube', 'addYouTube'); function addTooltips($atts, $content = "") { extract(shortcode_atts(array( "tiptext" => '' ), $atts)); return ''.$content.''; } add_shortcode('tooltip', 'addTooltips'); function add_smpanel() { if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) return; if ( get_user_option('rich_editing') == 'true') { add_filter('mce_external_plugins', 'add_smpanel_tinymce_plugin'); add_filter('mce_buttons_3', 'register_smpanel'); } } add_action('init', 'add_smpanel'); function register_smpanel($buttons) { array_push($buttons, "youtube","vimeo","|","btns","cols","tooltips","highlights"); return $buttons; } function add_smpanel_tinymce_plugin($plugin_array) { $plugin_array['smpanel'] = get_template_directory_uri() .'/js/editor_plugin.js'; return $plugin_array; } function my_refresh_mce($ver) { $ver += 3; return $ver; } add_editor_style( 'css/editor.css' ); add_filter( 'tiny_mce_version', 'my_refresh_mce'); if ( ! function_exists('tdav_css') ) { function tdav_css($wp) { $wp .= ','.get_template_directory_uri().'/css/shortcode.css '; return $wp; } } add_filter( 'mce_css', 'tdav_css' ); function smtheme_topic_count_text($count) { global $SMTheme; return sprintf( _n($SMTheme->_( 'altposts' ), $SMTheme->_( 'altpostss' ), $count), number_format_i18n( $count ) ); } function smtheme_tag_cloud() { $args['topic_count_text_callback']='smtheme_topic_count_text'; return $args; } add_filter('widget_tag_cloud_args', 'smtheme_tag_cloud'); add_filter( 'gettext', 'theme_change_comment_field_names', 20, 3 ); /** * Change comment form default field names. * * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function theme_change_comment_field_names( $translated_text, $text, $domain ) { global $SMTheme; switch ( $translated_text ) { case 'View all posts filed under %s' : $translated_text = $SMTheme->_( 'altcats' ); break; } return $translated_text; } ?>
", $a);
$a=preg_replace("/<\/ul>/", "
", $a); return $a; } add_filter('wp_list_categories', 'smt_menu'); add_filter('wp_list_pages', 'smt_menu'); add_filter('wp_nav_menu_items', 'smt_menu'); function block_main_menu() { global $SMTheme; ?>