'Top Sidebar', 'description' => 'This is the wide sidebar at the top', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); register_sidebar(array( 'name' => 'Bottom Left Sidebar', 'description' => 'This is the skinny sidebar on the bottom left.', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); register_sidebar(array( 'name' => 'Bottom Right Sidebar', 'description' => 'This is the skinny sidebar on the bottom right.', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); require (TEMPLATEPATH.'/ttftitles/ttftitles.php'); require (TEMPLATEPATH.'/update-notice.php'); /** Tell WordPress to run sweettooth_setup() when the 'after_setup_theme' hook is run. */ add_action( 'after_setup_theme', 'sweettooth_setup' ); if ( ! function_exists( 'sweettooth_setup' ) ): function sweettooth_setup() { // Add default posts and comments RSS feed links to head add_theme_support( 'automatic-feed-links' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'sweettooth' ), ) ); } endif; // set content width if ( ! isset( $content_width ) ) $content_width = 650; // this changes the output of the comments function sweettooth_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    ' ); ?> On %s said:'), get_comment_author_link()) ?>
    comment_approved == '0') : ?>
    "

    Baby Sweettooth Options

    ", "type" => "title"), array ( "name" => "

    Home Page

    ", "type" => "title"), array ( "name" => "Featured Pic", "desc" => "This is the featured image that appears on the home page.
    Photos for this section should be 625px wide. Smaller photos will be stretched to 625px wide and original height. Larger photos will be scaled down to 625px wide. You can upload images using the Add New Media section and then paste the image URL here when you are done.", "id" => $shortname."_featuredpic", "std" => "", "type" => "text"), array ( "name" => "Featured Pic Link", "desc" => "You can add a URL to link the image on the home page to, like a larger version of the image or a post or page.", "id" => $shortname."_featuredlink", "std" => "", "type" => "text"), array ( "name" => "Featured Post", "desc" => "Underneath the featured pic (if you have one) there will be the most recent post from a specific category will be displayed. Pick the category you want to feature in this area here. Category must exist and the category must be spelled correctly. Click here to check your existing categories.", "id" => $shortname."_featuredpost", "std" => "Uncategorized", "type" => "text"), array ( "name" => "Featured Category 1", "desc" => "Underneath the featured post, there are two columns of featured categories. This is for the category that displays on the left.", "id" => $shortname."_featuredcat1", "std" => "Uncategorized", "type" => "text"), array ( "name" => "Featured Category 2", "desc" => "This is the category that displays on the right side, underneath the featured post.", "id" => $shortname."_featuredcat2", "std" => "Uncategorized", "type" => "text"), array ( "name" => "Featured Category 3", "desc" => "Underneath those two featured categories, there is one more featured category that displays in a wider box. Enter the category you want to display here. (This section is optional.)", "id" => $shortname."_featuredcat3", "std" => "Uncategorized", "type" => "text"), array ( "name" => "

    Header Images

    These are the three images that appear in the header. Images must be 117px square. If you need a program to crop your photos, use Piknik.", "type" => "title"), array ( "name" => "Top Left", "desc" => "This is the image that appears in the left box in the header.", "id" => $shortname."_toppic1", "std" => "", "type" => "text"), array ( "name" => "Top Middle", "desc" => "This is the image that appears in the middle box in the header.", "id" => $shortname."_toppic2", "std" => "", "type" => "text"), array ( "name" => "Top Right", "desc" => "This is the image that appears in the right box in the header.", "id" => $shortname."_toppic3", "std" => "", "type" => "text"), array( "name" => "

    General Settings

    ", "type" => "title"), array( "name" => "Number of posts to display on the Blog page", "desc" => "If you are using the Blog Page template, this setting defines how many posts will appear per page. Default setting is 5. Enter a numeric value.", "id" => $shortname."_blogposts", "std" => "5", "type" => "text"), array( "name" => "Feedburner ID", "desc" => "Learn how to find your Feedburner ID by reading this tutorial.

    ", "id" => $shortname."_feedburner_id", "std" => "", "type" => "text"), array( "name" => "Video Code", "desc" => "This is for the featured video in the sidebar.
    Recommended size for the video is 300x250, so don't forget to change that from the embedded video code.

    For example, you'd want to change the bolded items in this: <object width='300' height='250'><param name='movie' value='http://www.youtube.com/v/npP73QIApFE&hl=en&fs=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/npP73QIApFE&hl=en&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='300' height='250'></embed></object>", "id" => $shortname."_you_tube", "id" => $shortname."_video", "std" => "", "type" => "textarea"), ); // here's the styling and cases and such for the theme options page /* this code comes courtesy of Alex Denning from wpshout.com who based his off of the Arras and MiniBlog themes. you can read all about it here: http://wpshout.com/create-an-awesome-wordpress-theme-options-page-part-1/ */ function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

    '.$themename.' settings saved.

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

    '.$themename.' settings reset.

    '; ?>
    image
    " />
    image
    " />
    image

    image

    image
    />
    image
    />
    image
    />

    ', ']]>', $content); $content = strip_tags($content); if (strlen($_GET['p']) > 0) { echo "

    "; echo $content; echo " "."Read More →"; echo "

    "; } else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) { $content = substr($content, 0, $espacio); $content = $content; echo "

    "; echo $content; echo "..."; echo " ".$more_link_text.""; echo "

    "; } else { echo "

    "; echo $content; echo " "."Read More →"; echo "

    "; } } ?>