'Three Tabs Sidebar', 'before_widget' => '', // Removes
  • 'after_widget' => '', // Removes
  • 'before_title' => '
    ', 'after_title' => '
    ', )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Under Tabs Sidebar', 'before_widget' => '', // Removes 'before_title' => '

    ', 'after_title' => '

    ', )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Homepage Widget Small Box', 'before_widget' => '
    ', // Removes
  • 'after_widget' => '
  • ', // Removes 'before_title' => '

    ', 'after_title' => '

    ', )); //in more than one category, sometimes you need this by mts function is_in_category( ) { if( func_num_args() > 0 ) { foreach( func_get_args() as $category ) { if( in_category( $category ) ) { return( true ); } } } return( false ); } // create your own excerpt function do_excerpt($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if (count($words) > $word_limit) array_pop($words); return implode(' ', $words).'...'; } /** * Top Authors * Code from elsewhere brought together by Monika aka mts texto.de * Copy this code in the functions.php and rename your textdomain please * Widget, which shows a * list of users sorted descending by number of posts, with avatar and link to author page * css: ul#topauthors username:ul#topauthors li b, avatar: ul#topauthors img.avatar */ class TopAuthors extends WP_Widget { /** constructor */ function TopAuthors() { parent::WP_Widget(false, $name = 'TopAuthors'); } /** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; //my function top authors $mtstuser=array(); $blogusers = get_users_of_blog(); if ($blogusers) { echo''; } //function end echo $after_widget; } /** @see WP_Widget::update */ function update($new_instance, $old_instance) { return $new_instance; } /** @see WP_Widget::form */ function form($instance) { $title = esc_attr($instance['title']); ?>


  • id="comment-">

    user_id === $post->post_author) {echo 'class="mine clearfix">';} else { echo 'class="you clearfix">'; }?>

    user_id === $post->post_author) { echo 'class="mine clearfix">'; echo get_avatar( get_the_author_meta( 'user_email' ), '68' ); } else { echo 'class="you clearfix">'; echo get_avatar( $comment, $size = '68' );} ?> comment_approved == '0') { echo '' . __('Your comment is awaiting moderation.Please be patient.', 'mtsmag') . '
    '; } ?>

    __('Reply','mtsmag'), 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>



  • ID; if ( !$post_id ) return; if ( !isset($cjd_comment_count_cache[$post_id]) ) { $p = get_post($post_id); $p = array($p); fb_update_comment_type_cache($p); } ; if ( $type == 'pingback' || $type == 'trackback' || $type == 'comment' ) $count = $cjd_comment_count_cache[$post_id][$type]; elseif ( $type == 'pings' ) $count = $cjd_comment_count_cache[$post_id]['pingback'] + $cjd_comment_count_cache[$post_id]['trackback']; else $count = array_sum((array) $cjd_comment_count_cache[$post_id]); return apply_filters('fb_get_comment_type_count', $count); } // comment, trackback, pingback, pings, all function fb_comment_type_count( $type='all', $zero = false, $one = false, $more = false, $post_id = 0 ) { $number = fb_get_comment_type_count( $type, $zero, $one, $more, $post_id ); if ($type == 'all') { $type_string_single = __('Comment', 'mtsmag'); $type_string_plural = __('Comments', 'mtsmag'); } elseif ($type == 'pings') { $type_string_single = __('Ping and Trackback', 'mtsmag'); $type_string_plural = __('Pings and Trackbacks', 'mtsmag'); } elseif ($type == 'pingback') { $type_string_single = __('Pingback', 'mtsmag'); $type_string_plural = __('Pingbacks', 'mtsmag'); } elseif ($type == 'trackback') { $type_string_single = __('Trackback', 'mtsmag'); $type_string_plural = __('Trackbacks', 'mtsmag'); } elseif ($type == 'comment') { $type_string_single = __('Comment', 'mtsmag'); $type_string_plural = __('Comments', 'mtsmag'); } if ( $number > 1 ) $output = str_replace('%', number_format_i18n($number), ( false === $more ) ? __('%', 'mtsmag') . ' ' . $type_string_plural : $more); elseif ( $number == 0 ) $output = ( false === $zero ) ? __('No', 'mtsmag') . ' ' . $type_string_plural : $zero; else // must be one $output = ( false === $one ) ? __('1', 'mtsmag') . ' ' . $type_string_single : $one; echo apply_filters('fb_comment_type_count', $output, $number); } } if ( !function_exists('fb_update_comment_type_cache') ) { function fb_update_comment_type_cache($queried_posts) { global $cjd_comment_count_cache, $wpdb; if ( !$queried_posts ) return $queried_posts; foreach ( (array) $queried_posts as $post ) if ( !isset($cjd_comment_count_cache[$post->ID]) ) $post_id_list[] = $post->ID; if ( $post_id_list ) { $post_id_list = implode(',', $post_id_list); foreach ( array('', 'pingback', 'trackback') as $type ) { $counts = $wpdb->get_results("SELECT ID, COUNT( comment_ID ) AS ccount FROM $wpdb->posts LEFT JOIN $wpdb->comments ON ( comment_post_ID = ID AND comment_approved = '1' AND comment_type='$type' ) WHERE post_status = 'publish' AND ID IN ($post_id_list) GROUP BY ID"); if ( $counts ) { if ( '' == $type ) $type = 'comment'; foreach ( $counts as $count ) $cjd_comment_count_cache[$count->ID][$type] = $count->ccount; } } } return $queried_posts; } add_filter('the_posts', 'fb_update_comment_type_cache'); } //thanks to frank bueltge change the default gravatar if ( !function_exists('fb_addgravatar') ) { function fb_addgravatar( $avatar_defaults ) { $myavatar = get_bloginfo('template_directory') . '/images/mtsmag-commentauthor.png'; $avatar_defaults[$myavatar] = 'mtsavatar'; return $avatar_defaults; } add_filter( 'avatar_defaults', 'fb_addgravatar' ); } //recent comments function get_recent_comments($args) { global $wpdb, $comments, $comment; extract($args, EXTR_SKIP); $options = get_option('widget_recent_comments'); $title = empty($options['title']) ? __('

    Recent Comments

    ') : apply_filters('widget_title', $options['title']); if ( !$number = (int) $options['number'] ) $number = 5; else if ( $number < 1 ) $number = 1; else if ( $number > 15 ) $number = 15; if ( !$comments = wp_cache_get( 'recent_comments', 'widget' ) ) { $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $number"); wp_cache_add( 'recent_comments', $comments, 'widget' ); } echo $before_widget; echo $before_title . $title . $after_title; echo ''; echo $after_widget; } //my recent comments without widget function mts_recent_comments($src_count=5, $src_length=40, $pre_HTML='', $post_HTML='') { global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT $src_count"; $comments = $wpdb->get_results($sql); echo''.__('

    Recent Comments

    ','mtsmag').''; $output = $pre_HTML; $output .= "\n"; $output .= $post_HTML; echo $output; } //fetch images from a post --medium without a link -so you can set a link function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('//i', $post->post_content, $matches); $first_img = $matches [1] [0]; $huch=get_bloginfo('template_directory'); // no image found display default image instead if(empty($first_img)){ $first_img = "$huch/images/default.jpg"; } return $first_img; } //clean gallery shortcode // Tell WordPress what to do remove_shortcode ( 'gallery_shortcode' ); // Remove included WordPress [gallery] shortcode function add_shortcode ( 'gallery' , 'gallery_shortcode_mts' ); // Add not [gallery] shortcode function function gallery_shortcode_mts($attr) { global $post; static $instance = 0; $instance++; // Allow plugins/themes to override the default gallery template. $output = apply_filters('post_gallery', '', $attr); if ( $output != '' ) return $output; // We're trusting author input, so let's at least make sure it looks like a valid orderby statement if ( isset( $attr['orderby'] ) ) { $attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] ); if ( !$attr['orderby'] ) unset( $attr['orderby'] ); } extract(shortcode_atts(array( 'order' => 'ASC', 'orderby' => 'menu_order ID', 'id' => $post->ID, 'itemtag' => 'dl', 'icontag' => 'dt', 'captiontag' => 'dd', 'columns' => 3, 'size' => 'thumbnail' ), $attr)); $id = intval($id); $attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); if ( empty($attachments) ) return ''; if ( is_feed() ) { $output = "\n"; foreach ( $attachments as $att_id => $attachment ) $output .= wp_get_attachment_link($att_id, $size, true) . "\n"; return $output; } $itemtag = tag_escape($itemtag); $captiontag = tag_escape($captiontag); $columns = intval($columns); $itemwidth = $columns > 0 ? floor(100/$columns) : 100; $selector = "gallery-{$instance}"; $output = apply_filters('gallery_style', " \n"; return $output; } //nofollow free function follow_please($str) { $str = str_replace("rel='external nofollow'","rel='external'", $str); return $str; } add_filter('get_comment_author_link', 'follow_please'); //no anker more add_filter('the_content', 'tguy_less_remove_anchor'); function tguy_less_remove_anchor($content) { global $id; return str_replace('#more-'.$id.'"', '"', $content); } //theme optionspage - $this_theme = "BeMyGuest"; $themeoptionsprefix = "mtsmag"; $options = array(); $sidebarpos=array('1','2'); $singletime=array('1','2'); $singleauthor=array('1','2'); $singlemeta=array('1','2'); $pagetime=array('1','2'); $pageauthor=array('1','2'); $pagecomments=array('1','2'); $pagecommentsid=array(); $feedsubscribe=array('1','2'); $showtwitter=array('1','2'); $idofpages=array(); $mts_categories_obj = get_categories('hide_empty=0'); $mts_categories = array(); foreach ($mts_categories_obj as $mts_cat) { $mts_categories[$mts_cat->cat_ID] = $mts_cat->cat_name; } $categories_tmp = array_unshift($mts_categories, __('Select A Category', 'mtsmag')); $post_entries = array(__('Select number of posts', 'mtsmag'),"1","2","3","4","5","6","7","8","9","10", "12","14", "16", "18", "20" ); $options = array ( array("optionname" => ($menuicomtsmag. ( __('About', 'mtsmag'))), "optiontype" => "heading"), array("optionname" => __('About Box', 'mtsmag'), "optiondescription" => __('

    Enter the code (adsense..)or your text for the content you want to show in the about box.
    html is allowed

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_aboutbox", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Exclude Pages', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Exclude Pages', 'mtsmag'), "optiondescription" => __('

    If you would like to exclude static pages from header navi please type in the IDs in ASC order,koma separeted: 1,45,67.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_idofpages", "selectoptiondef" => "", "optiontype" => "text", "options" => $idofpages), array("optionname" => __('Home Featured Section', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Featured Post Category', 'mtsmag'), "optiondescription" => __('Select the category that you would like to have displayed in the featured section on your homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_featurepostcategory", "selectoptiondef" => "Uncategorized", "optiontype" => "select", "options" => $mts_categories), array("optionname" => __('Number of featured posts', 'mtsmag'), "optiondescription" => __('Select the number of entries that should appear as featured entries on the homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_featurepostcategorynumber", "selectoptiondef" => "1", "optiontype" => "select", "options" => $post_entries), array("optionname" => __('Home Blog Section', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Blog Post Category', 'mtsmag'), "optiondescription" =>__('Select the category that you would like to have displayed in the blog section on your homepage and on static page named "Blog" .', 'mtsmag'), "optionid" => $themeoptionsprefix."_blogppostcategory", "selectoptiondef" => "Uncategorized", "optiontype" => "select", "options" => $mts_categories), array("optionname" => __('Number of Blog posts', 'mtsmag'), "optiondescription" => __('Select the number of entries that should appear as blog entries on the homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_blogppostcategorynumber", "selectoptiondef" => "1", "optiontype" => "select", "options" => $post_entries), array("optionname" => __('Home News Section', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('#1 Category', 'mtsmag'), "optiondescription" => __('Select the #1 category that you would like to have displayed in othernews section on your homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscatone", "selectoptiondef" => "First Child Category", "optiontype" => "select", "options" => $mts_categories), array("optionname" => __('Number of #1 Category posts', 'mtsmag'), "optiondescription" => __('Select the number of entries that should appear in #1 on the homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscatonenumber", "selectoptiondef" => "1", "optiontype" => "select", "options" => $post_entries), array("optionname" => __('#2 Category', 'mtsmag'), "optiondescription" => __('Select the #2 category that you would like to have displayed in othernews section on your homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscattwo", "selectoptiondef" => "Second Child Category", "optiontype" => "select", "options" => $mts_categories), array("optionname" => __('Number of #2 Category posts', 'mtsmag'), "optiondescription" => __('Select the number of entries that should appear in #2 on the homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscattwonumber", "selectoptiondef" => "1", "optiontype" => "select", "options" => $post_entries), array("optionname" => __('#3 Category', 'mtsmag'), "optiondescription" => __('Select the #3 category that you would like to have displayed in othernews section on your homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscatthree", "selectoptiondef" => "Parent", "optiontype" => "select", "options" => $mts_categories), array("optionname" => __('Number of #3 Category ', 'mtsmag'), "optiondescription" => __('Select the number of entries that should appear in #3 on the homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscatthreenumber", "selectoptiondef" => "1", "optiontype" => "select", "options" => $post_entries), array("optionname" => __('#4 Category', 'mtsmag'), "optiondescription" => __('Select the #4 category that you would like to have displayed in othernews section on your homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscatfour", "selectoptiondef" => "One Grandchild Category", "optiontype" => "select", "options" => $mts_categories), array("optionname" => __('Number of #4 Category posts', 'mtsmag'), "optiondescription" => __('Select the number of entries that should appear in #4 on the homepage.', 'mtsmag'), "optionid" => $themeoptionsprefix."_newscatfournumber", "selectoptiondef" => "1", "optiontype" => "select", "options" => $post_entries), array("optionname" => __('Single Article', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Show Time- Yes/NO', 'mtsmag'), "optiondescription" => __('Select 1 for Yes 2 for No', 'mtsmag'), "optionid" => $themeoptionsprefix."_singletime", "selectoptiondef" => "Select a Number:", "optiontype" => "select", "options" => $singletime), array("optionname" => __('Show Author- Yes/NO', 'mtsmag'), "optiondescription" => __('Select 1 for Yes 2 for No', 'mtsmag'), "optionid" => $themeoptionsprefix."_singleauthor", "selectoptiondef" => "Select a Number:", "optiontype" => "select", "options" => $singleauthor), array("optionname" => __('Show Postmeta or Author INFO- Yes/NO', 'mtsmag'), "optiondescription" => __('Select 1 to show postmeta at the end of an article. Select 2 to show Author INFO.', 'mtsmag'), "optionid" => $themeoptionsprefix."_singlemeta", "selectoptiondef" => "Select a Number:", "optiontype" => "select", "options" => $singlemeta), array("optionname" => __('Pages', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Show Time- Yes/NO', 'mtsmag'), "optiondescription" => __('Select 1 for Yes 2 for No', 'mtsmag'), "optionid" => $themeoptionsprefix."_pagetime", "selectoptiondef" => "2", "optiontype" => "select", "options" => $pagetime), array("optionname" => __('Show Author- Yes/NO', 'mtsmag'), "optiondescription" => __('Select 1 for Yes 2 for No', 'mtsmag'), "optionid" => $themeoptionsprefix."_pageauthor", "selectoptiondef" => "2", "optiontype" => "select", "options" => $pageauthor), array("optionname" => __('Comment form on Post Pages', 'mtsmag'), "optiondescription" => __('Select 1 for Yes 2 for No. If you would like to have pages with comments, but some without- select template "Page No Comments"" on the right side of the writing panel.', 'mtsmag'), "optionid" => $themeoptionsprefix."_pagecomments", "selectoptiondef" => " ", "optiontype" => "select", "options" => $pagecomments), array("optionname" => __('Adsense', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Sidebar Ad Code', 'mtsmag'), "optiondescription" => __('

    You can display adds in your sidebar. For best results use 250 pixels wide ad or 280 pixels wide ad

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_sidebarad", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Under The Title Ad Code', 'mtsmag'), "optiondescription" => __('

    You can display adds under your article title. For best results use max.510px .. ads.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_titlead", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Content Ad Code', 'mtsmag'), "optiondescription" => __('

    You can display adds after the 3rd p tag in content.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_contentad", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Under The Content Ad Code', 'mtsmag'), "optiondescription" => __('

    You can display ads below the content.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_undercontentad", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Between Feature And News /Blog At Homepage', 'mtsmag'), "optiondescription" => __('

    You can display ads between feature articles and news/blog section.Max 510px width.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_betweenhomepagead", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('At The End Of Homepage', 'mtsmag'), "optiondescription" => __('

    You can display ads at the end of homepage.Max 510px width.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_belowhomepagead", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Above The First Article On Blog Page', 'mtsmag'), "optiondescription" => __('

    You can display ads above the first article at your Blog Page.Max 510px width.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_aboveblogpagead", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('At The End Of Your Blog Page', 'mtsmag'), "optiondescription" => __('

    You can display ads at the end of your Blog Page.Max 510px width.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_belowblogpagead", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Tracking Code', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Site Tracking Code i.e: Google Analytics,Your Counter', 'mtsmag'), "optiondescription" => __('

    Using your own counter or Goolge Analytics? You can enter your code below.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_sitetrackingcode", "selectoptiondef" => "", "optiontype" => "textarea"), array("optionname" => __('Sidebar Social Accounts', 'mtsmag'), "optiontype" => "heading"), array("optionname" => __('Show Twitter -Yes/No', 'mtsmag'), "optiondescription" => __('Select 1 for Yes 2 for No', 'mtsmag'), "optionid" => $themeoptionsprefix."_showtwitter", "selectoptiondef" => "Select yes or no:", "optiontype" => "select", "options" => $showtwitter), array("optionname" => __('Twitter URL', 'mtsmag'), "optiondescription" => __('

    If you have a twitter account you can enter the URL here and a link will appear on the page

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_twitterurl", "selectoptiondef" => "", "optiontype" => "text"), array("optionname" => __('Header for RSS Subscribe Block', 'mtsmag'), "optiondescription" => __('

    The text to display as the header above the subscribe links in the sidebar.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_rsssubscribeblockh4", "selectoptiondef" => "", "optiontype" => "text"), array("optionname" => __('Subtext for rss subscribe block', 'mtsmag'), "optiondescription" => __('

    The text to display as a short description for why to subscribe to your feed.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_rsssubscribeblocksubtext", "selectoptiondef" => "", "optiontype" => "text"), array("optionname" => __('Show Feedburner- Yes/NO', 'mtsmag'), "optiondescription" => __('Select 1 for Yes 2 for No. "No" shows the default RSS Link.', 'mtsmag'), "optionid" => $themeoptionsprefix."_feedsubscribe", "selectoptiondef" => "Select a Number:", "optiontype" => "select", "options" => $feedsubscribe), array("optionname" => __('Feedburner RSS URL', 'mtsmag'), "optiondescription" => __('

    Your Feedburner URL

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_feedburnerurl", "selectoptiondef" => "", "optiontype" => "text"), array("optionname" => __('Feedburner ID', 'mtsmag'), "optiondescription" => __('

    Your Feedburner ID here.

    ', 'mtsmag'), "optionid" => $themeoptionsprefix."_feedburnerid", "selectoptiondef" => "", "optiontype" => "text"), ); function do_options_update_theme() { global $this_theme, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'updateoptions' == $_REQUEST['action'] ) { foreach ($options as $optionvalue) { update_option( $optionvalue['optionid'], $_REQUEST[ $optionvalue['optionid'] ] ); } foreach ($options as $optionvalue) { if( isset( $_REQUEST[ $optionvalue['optionid'] ] ) ) { update_option( $optionvalue['optionid'], $_REQUEST[ $optionvalue['optionid'] ] ); } else { delete_option( $optionvalue['optionid'] ); } } header("Location: admin.php?page=functions.php&optionsupdated=true"); die; } } //add_menu_page(page_title, menu_title, capability, file, [function], [icon_url]); //add_menu_page($this_theme."", $this_theme." ", 'edit_themes', basename(__FILE__), 'do_page_mtsmag',$iconpath); add_theme_page($this_theme. __('Options', 'mtsmag'), "$this_theme" . __('Options', 'mtsmag'), 'edit_themes', basename(__FILE__), 'do_page_mtsmag'); } function do_page_mtsmag () { global $this_theme, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

    '.$themename.' settings saved.

    '; if ( $_REQUEST['reset'] ) echo '

    '.$themename.' settings reset.

    '; //global $options, $this_theme; ?>

    "heading" ) { ?>
    " />

    "heading" ) { ?>