tag for the user's avatar */ function get_avatar( $id_or_email, $size = '96', $default = '' ) { if ( !is_numeric($size) ) $size = '96'; $email = ''; if ( is_numeric($id_or_email) ) { $id = (int) $id_or_email; $user = get_userdata($id); if ( $user ) $email = $user->user_email; } elseif ( is_object($id_or_email) ) { if ( !empty($id_or_email->user_id) ) { $id = (int) $id_or_email->user_id; $user = get_userdata($id); if ( $user) $email = $user->user_email; } elseif ( !empty($id_or_email->comment_author_email) ) { $email = $id_or_email->comment_author_email; } } else { $email = $id_or_email; } if ( empty($default) ) { $avatar_default = get_option('avatar_default'); if ( empty($avatar_default) ) $default = 'mystery'; else $default = $avatar_default; } if ( 'custom' == $default ) $default = add_query_arg( 's', $size, $defaults[$avatar_default][1] ); elseif ( 'mystery' == $default ) $default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com') elseif ( 'blank' == $default ) $default = includes_url('images/blank.gif'); elseif ( !empty($email) && 'gravatar_default' == $default ) $default = ''; elseif ( 'gravatar_default' == $default ) $default = "http://www.gravatar.com/avatar/s={$size}"; elseif ( empty($email) ) $default = "http://www.gravatar.com/avatar/?d=$default&s={$size}"; if ( !empty($email) ) { $out = 'http://www.gravatar.com/avatar/'; $out .= md5( strtolower( $email ) ); $out .= '?s='.$size; $out .= '&d=' . urlencode( $default ); $rating = get_option('avatar_rating'); if ( !empty( $rating ) ) $out .= "&r={$rating}"; $avatar = ""; } else { $avatar = ""; } return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default); } endif; if(get_option('peersing_theme_description')==""){ update_option('peersing_theme_description', 'This widget will appear if you set in wigdet with name notitle', 'For web description', 'yes'); } if ( function_exists('register_sidebars') ) register_sidebars(1,array( 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); // widget to notitle if ( function_exists('register_sidebar_widget') ) register_sidebar_widget(__('NoTitle'), 'andre_notitle'); function andre_notitle() { echo stripslashes(get_option('peersing_theme_description')); } if ( function_exists('register_sidebar_widget') ) register_sidebar_widget(__('Search'), 'widget_peersing_search'); // WP-anthosias Search Box function widget_peersing_search() { ?>
  • Search

  • get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved='1' ORDER BY comment_date_gmt DESC LIMIT 5") ) : ?>
  • Settings saved.

    '; } else if ( $_REQUEST['reset'] ) { echo '

    Settings reset.

    '; } ?>

    Theme Options: WinterCol3 Theme

    Designed by: WinterCol3 Theme Designs

    Theme Settings

    These options allow you to modify the look and feel of the WinterCol3 theme.

    get_results("SELECT ID, post_title from $wpdb->posts WHERE post_type='page' or post_status='static' AND post_parent=0 ORDER BY post_title"); $hiddenpages = explode(',', get_settings('timeless_hiddenpages')); if($results) { echo "
    The Following Pages will be hidden from the Top Navigation Links

    "; foreach($results as $page) { echo 'ID, $hiddenpages)) { echo ' checked="checked"'; } echo ' /> ' . $page->post_title . '
    '; } } echo "
    "; ?>
    Reset

    If for some reason you want to uninstall WinterCol3 then press the reset button to clean options in the database.

    You then must delete the the theme folder, if you want to completely remove the theme.

    "; break; case "submit": echo "

    "; break; case "option": if( $selected == $value ) { $extra = "selected=\"true\""; } echo ""; break; case "radio": if( $selected == $value ) { $extra = "checked=\"true\""; } echo "
    "; break; case "checkbox": if( $selected == $value ) { $extra = "checked=\"true\""; } echo "
    "; break; case "textarea": echo ""; break; } } function tl_option_heading( $title ) { // ----------------------- // Echo the option heading // ----------------------- echo "

    " .$title . "

    "; } define('HEADER_TEXTCOLOR', ''); define('HEADER_IMAGE', '%s/images/header.jpg'); // %s is theme dir uri define('HEADER_IMAGE_WIDTH', 850); define('HEADER_IMAGE_HEIGHT', 168); define( 'NO_HEADER_TEXT', true ); function tl_header2_style() { ?>
    Upload photo