diff -rc mandigo-1.33/404.php mandigo-1.32/404.php *** mandigo-1.33/404.php 2008-04-27 17:20:08.000000000 -0400 --- mandigo-1.32/404.php 2008-03-09 14:47:33.000000000 -0400 *************** *** 3,8 **** --- 3,9 ---- get_header(); + $tag_posttitle_single = get_option('mandigo_tag_posttitle_single'); ?> *************** *** 14,26 **** ! ! < class="pagetitle">> ! !
! !
! ! ! ! ! ! ! < class="posttitle posttitle-archive">> ! ! ', ! $dirs['www']['scheme'], ! __('Edit this post', 'mandigo') ! ), ! '' ! ); ! ?> ! !
-
-
!

! Comments ! !

!
! ! ! ! < class="center">> !

- ! ! ! ! < class="pagetitle">>
! ! ! < class="pagetitle">> ! ! ! < class="pagetitle">> ! ! ! < class="pagetitle">> ! ! ! < class="pagetitle">> ! ! ! < class="pagetitle">> ! ! ! < class="pagetitle">> ! ! ! < class="pagetitle">> ! ! ! !
! ! ! ! ! ! < class="posttitle posttitle-archive">> ! ! '. __('Edit','mandigo'), ' - ', ''); ?> ! !
! !
! ! !
!

Comments

! ! ! < class="pagetitle">> !

.

! ! !
! ! ! ! ! ! ! < class="pagetitle">:> ! ! ! < class="pagetitle">:> ! ! ! < class="pagetitle">:> ! ! !
! !
! ! ! ! ! ! ! < class="pagetitle">:> ! ! ! < class="pagetitle">:> ! ! ! < class="pagetitle">:> ! !
! ID, ! true, ! array(450, 800) ! ); // This also populates the iconsize for the next line ! ! $_post = &get_post($post->ID); ! ! $classname = ( ! $_post->iconsize[0] <= 128 ! ? 'small' ! : '' ! ); ! $classname .= 'attachment'; ! ?> !
! ! ! ! ! < class="pagetitle">post_parent); ?> » > -


guid); ?>

! '. __('Pages', 'mandigo') .': ', ! '

', ! 'number' ! ); ! ?>
! ! <>> ! ! ! ID, true, array(450, 800)); // This also populates the iconsize for the next line ?> ! ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> !
< class="pagetitle">post_parent); ?> » >


guid); ?>

! '. __('Read the rest of this entry','mandigo') .' »

'); ?> ! '. __('Pages','mandigo') .': ', '

', 'number'); ?> +
! ! !

! ! post_password)) { ! // and it doesn't match the cookie ! if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { ! ?> !

This post is password protected. Enter the password to view comments.

! !

! ! “” !
items, and separate real comments from trackbacks ! // we will display them later according to the chosen options ! foreach ($comments as $comment) { ! // the comment id ! $id = get_comment_ID(); ! ! // echo get_avatar( 't0m@gawd.net' , $size = '48', $default = $dirs['www']['images'] .'1x1.gif' ); ! ! ! // a BIG sprintf, not for the faint of heart ! $comment_list_item = sprintf(' !
  • ! ! ! ! %s ! %s !
    ! %s ! ! %s !
    !
  • ! ', ! ! ( // first %s, whether it's an odd/even comment ! ++$oddcomment%2 ! ? 'alt' ! : '' ! ), ! ! ( // second %s, highlight author comment ! $authorcomments && get_comment_author() == $the_author ! ? ' authorcomment' ! : '' ! ), ! ! $id, // 3rd 4th and 5th %s, the comment id ! $id, ! $id, ! ! ( // 6th %s, gravatar ! !get_option('mandigo_disable_comment_gravatars') ! ? ( ! function_exists('get_avatar') && function_exists('get_comment_author_email') ! ? get_avatar(get_comment_author_email(), '36') ! : '' ! ) ! : '' ! ), ! ! sprintf( // 7th %s, the user name ! __('%s says:', 'mandigo'), ! get_comment_author_link() ! ), ! ! ( // 8th %s, whether the comment is pending moderation or not ! $comment->comment_approved == '0' ! ? ''. __('Your comment is awaiting moderation.', 'mandigo') .'
    ' ! : '' ! ), ! ! $id, // 9th %s, the comment id again ! ! sprintf( // 10th %s, "which date at what time" ! __('%s at %s', 'mandigo'), ! get_comment_date(__('F jS, Y', 'mandigo')), ! get_comment_time() ! ), ! ! ( // 11th %s, the edit comment link, if appropriate ! function_exists('get_edit_comment_link') && current_user_can('edit_post', $post->ID) ! ? ' - '. apply_filters( ! 'edit_comment_link', ! ''. __('Edit', 'mandigo') .'', ! $comment->comment_ID ! ) ! : '' ! ), ! ! apply_filters('comment_text', get_comment_text()) // 11th %s, the comment itself ! ); // end of big sprintf, phew! ! ! ! // if this is a trackback ! if ($comment->comment_type == 'trackback') { ! ! // and we chose to not display them along regular comments ! if (get_option('mandigo_trackbacks') == 'above' || get_option('mandigo_trackbacks') == 'below') { ! // put them in a separate list ! $trackback_list[] = $comment_list_item; ! } ! ! // otherwise ! elseif (get_option('mandigo_trackbacks') == 'along') { ! $comment_list[] = $comment_list_item; ! } ! } ! ! else { ! $comment_list[] = $comment_list_item; ! } ! } // end of foreach loop ! // if we have trackbacks and we chose to display them above comments ! if (get_option('mandigo_trackbacks') == 'above' && $trackback_list) { ?>
    !
      !
    !
    !
      !
    ! !
      !
    comment_status == 'open') { ! } ! ! // if comments are closed ! else { ?> !

    comment_status == 'open') { ?> !
    ! !

    »

    ! !
    ! !

    '. $user_identity .''); ?>. »

    ! !

    !

    !

    !

    !

    !

    ! !

    XHTML:

    ! !

    -

    - - -

    - ID); - ?>
    ! --- 1,144 ---- ! post_password)) { // if there's a password ! if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie ! ?> !

    This post is password protected. Enter the password to view comments.

    ! ! ! ! ! !

    ! ! ! ! %s !
    ! %s
    ! %s %s ! %s !
    ! ', ! ! $oddcomment, ($authorcomments && get_comment_author() == $the_author ? ' authorcomment' : ''), $id, ! $id, $id, ! sprintf(__('%s says:','mandigo'),get_comment_author_link()), ! ($comment->comment_approved == '0' ? ''. __('Your comment is awaiting moderation.','mandigo') .'' : ''), ! $id, sprintf(__('%s at %s','mandigo'),get_comment_date(__('F jS, Y','mandigo')),get_comment_time()), function_exists('get_edit_comment_link') && current_user_can( 'edit_post', $post->ID ) ? ' - '. apply_filters('edit_comment_link', ''. __('Edit','mandigo') .'', $comment->comment_ID) : '', ! apply_filters('comment_text', get_comment_text()) ! ); ! ! if ($comment->comment_type == 'trackback'): ! if (get_option('mandigo_trackbacks') == 'above' || get_option('mandigo_trackbacks') == 'below'): ! $trackback_list .= $comment_list_item; ! elseif (get_option('mandigo_trackbacks') == 'along'): ! $comment_list .= $comment_list_item; ! endif; ! else: ! $comment_list .= $comment_list_item; ! endif; ! if ('alt' == $oddcomment) $oddcomment = ''; ! else $oddcomment = 'alt'; ! endforeach; ! ! if (get_option('mandigo_trackbacks') == 'above' && $trackback_list): ?>
    !
      !
    !
    !
      !
    ! !
    !
      !
    comment_status): // If comments are open, but there are no comments. ! else : // if comments are closed ?> !

    comment_status): ?> !
    ! !

    »

    ! !
    ! !

    '. $user_identity .''); ?>. »

    ! !

    !

    !

    !

    !

    !

    ! ! !

    XHTML:

    ! !

    !

    ! !

    ! ID); ?>
    ! ! ! diff -rc mandigo-1.33/footer.php mandigo-1.32/footer.php *** mandigo-1.33/footer.php 2008-04-27 17:20:08.000000000 -0400 --- mandigo-1.32/footer.php 2008-03-09 14:47:33.000000000 -0400 *************** *** 1,68 **** ! ! - ! --- 57,174 ---- diff -rc mandigo-1.33/functions.php mandigo-1.32/functions.php *** mandigo-1.33/functions.php 2008-04-27 17:20:08.000000000 -0400 --- mandigo-1.32/functions.php 2008-03-09 14:47:33.000000000 -0400 *************** *** 1,507 **** "<$tag_sidebar class=\"widgettitle\">", ! 'after_title' => "\n", ! ) ! ); ! ! // sidebar #2 ! register_sidebar( ! array( ! 'before_title' => "<$tag_sidebar class=\"widgettitle\">", ! 'after_title' => "\n", ! ) ! ); ! ! // top sidebar ! register_sidebar( ! array( ! 'before_title' => "<$tag_sidebar class=\"widgettitle\">", ! 'after_title' => "\n", ! 'name' => 'Mandigo Top', ! ) ! ); ! ! // bottom sidebar ! register_sidebar( ! array( ! 'before_title' => "<$tag_sidebar class=\"widgettitle\">", ! 'after_title' => "\n", ! 'name' => 'Mandigo Bottom', ! ) ! ); ! } ! /* ------------------------------------------------- ! SEARCH WIDGET ! -------------------------------------------------- */ ! // define the widget ! function widget_mandigo_search() { ! global $tag_sidebar; ?>
  • < class="widgettitle">>
  • < class="widgettitle"> >
  • !
  • ! < class="widgettitle">> ! ! ! Entries (RSS) ! ! ! -
  • - %s', - get_author_posts_url($author_id), - sprintf( - __("Posts by %s"), - attribute_escape($author_nicename) - ), - $author_nicename - ); - } - return $author_nicename; - } - - - // this one build the 'date stamps' - function mandigo_date_icon($date) { - // split the supplied argument into (year, month_name, month_number, day) - list($y, $mn, $m, $d) = explode(' ', $date); - - switch (get_option('mandigo_date_format')) { - case 'MdY': - $l = array($mn, $d, $y); - $x = array(1, 0, 0); - break; - case 'dmY': - $l = array($d, $m, $y); - $x = array(1, 0, 0); - break; - } - - echo ' -
    -
    - '. $l[0] .' - '. $l[1] .' - '. $l[2] .' -
    -
    - '; - } - - - - // add the links to the theme options pages, and required files - add_action('admin_menu', 'add_mandigo_options_page'); - add_action('admin_menu', 'add_mandigo_inserts_page'); - add_action('admin_menu', 'add_mandigo_readme_page'); - add_action('admin_menu', 'add_mandigo_farbtastic_js'); - add_action('admin_head', 'add_mandigo_options_css'); - add_action('admin_head', 'add_mandigo_farbtastic_css'); - - // the functions that load the theme options and readme pages - function add_mandigo_options_page() { - global $dirs; - add_theme_page( - 'Theme Options', - ' Theme Options', - 'edit_themes', - basename(__FILE__), - 'mandigo_options_page' - ); - } - function add_mandigo_inserts_page() { - global $dirs; - add_theme_page( - 'HTML Inserts', - ' HTML Inserts', - 'edit_themes', - 'Inserts', - 'mandigo_inserts_page' - ); - } - function add_mandigo_readme_page() { - add_theme_page( - 'README', - 'README', - 'switch_themes', - 'README', - 'mandigo_readme_page' - ); - } - function add_mandigo_options_css() { - global $dirs; - echo ''; - } - - // these two functions include the required files for the colorpicker to work - function add_mandigo_farbtastic_js() { - global $dirs; - wp_enqueue_script('jquery', $dirs['www']['theme'] .'js/jquery.js'); - wp_enqueue_script('farbtastic', $dirs['www']['theme'] .'js/farbtastic.js'); - } - function add_mandigo_farbtastic_css() { - global $dirs; - echo ''; - } - - // a few functions to help us with redundant work - function mandigo_set_var($var, $value) { - update_option('mandigo_'. $var, $value); - } - // this one validate hex color codes - function mandigo_color($value, $default) { - if (!preg_match("/^#/", $value)) - $value = '#'. $value; - if (!preg_match("/^#([0-9A-F]{3}){1,2}$/i", $value)) - $value = $default; - return $value; - } - // this one escapes strings - function mandigo_escape($string) { - $string = str_replace('\\"','"', $string); - $string = str_replace("\\'",''', $string); - return $string; - } - - - // the BIG page - function mandigo_options_page() { - global $dirs, $schemes; - - $ct = current_theme_info(); - - // process the submitted form if any, prior to displaying the options page - if (isset($_POST['updated'])) { - // build an array of pages to exclude - $exclude[] = ''; - foreach ($_POST as $field => $value) { - if (preg_match("/exclude_(\d+)/", $field, $id)) - $exclude[] = $id[1]; - } - - mandigo_set_var('exclude_pages' ,implode(",",$exclude) ); - mandigo_set_var('bgcolor' ,mandigo_color($_POST['bgcolor'] ,'#44484F')); - mandigo_set_var('posts_bgcolor' ,mandigo_color($_POST['posts_bgcolor'] ,'#FAFAFA')); - mandigo_set_var('posts_bdcolor' ,mandigo_color($_POST['posts_bdcolor'] ,'#EEEEEE')); - mandigo_set_var('sidebars_bgcolor' ,mandigo_color($_POST['sidebars_bgcolor'],'#EEEEEE')); - mandigo_set_var('sidebars_bdcolor' ,mandigo_color($_POST['sidebars_bdcolor'],'#DDDDDD')); - mandigo_set_var('scheme' ,$_POST['scheme'] ); - mandigo_set_var('wp' ,$_POST['wp'] ); - mandigo_set_var('scheme_random' ,$_POST['random'] ); - mandigo_set_var('headoverlay' ,$_POST['headoverlay'] ); - mandigo_set_var('bold_links' ,$_POST['boldlinks'] ); - mandigo_set_var('1024' ,$_POST['wide'] ); - mandigo_set_var('nofloat' ,$_POST['nofloat'] ); - mandigo_set_var('footer_stats' ,$_POST['footstats'] ); - mandigo_set_var('nosidebars' ,($_POST['sidebars'] == 0 ? 1:0)); - mandigo_set_var('3columns' ,($_POST['sidebars'] == 2 ? 1:0)); - mandigo_set_var('sidebar1_left' ,$_POST['sidebar1'] ); - mandigo_set_var('sidebar2_left' ,$_POST['sidebar2'] ); - mandigo_set_var('always_show_sidebars' ,$_POST['alwayssidebars'] ); - mandigo_set_var('em_italics' ,$_POST['em'] ); - mandigo_set_var('stroke' ,$_POST['stroke'] ); - mandigo_set_var('headers_random' ,$_POST['randomheaders'] ); - mandigo_set_var('slim_header' ,$_POST['slimheader'] ); - mandigo_set_var('hide_blogname' ,$_POST['hideblogname'] ); - mandigo_set_var('hide_blogdesc' ,$_POST['hideblogdesc'] ); - mandigo_set_var('noborder' ,$_POST['noborder'] ); - mandigo_set_var('small_title' ,$_POST['smalltitle'] ); - mandigo_set_var('wp_fixed' ,$_POST['wpfixed'] ); - mandigo_set_var('wp_repeat' ,$_POST['wprepeat'] ); - mandigo_set_var('wp_position' ,$_POST['wpposition'] ); - mandigo_set_var('number_comments' ,$_POST['numbercomments'] ); - mandigo_set_var('full_search_results' ,$_POST['fullsearchresults'] ); - mandigo_set_var('drop_shadow' ,$_POST['dropshadow'] ); - mandigo_set_var('author_comments' ,$_POST['authorcomments'] ); - mandigo_set_var('floatright' ,$_POST['floatright'] ); - mandigo_set_var('xhtml_comments' ,$_POST['xhtmlcomments'] ); - mandigo_set_var('nojustify' ,$_POST['nojustify'] ); - mandigo_set_var('title_scheme_index' ,mandigo_escape($_POST['title_scheme_index'] )); - mandigo_set_var('title_scheme_single' ,mandigo_escape($_POST['title_scheme_single'] )); - mandigo_set_var('title_scheme_page' ,mandigo_escape($_POST['title_scheme_page'] )); - mandigo_set_var('title_scheme_category' ,mandigo_escape($_POST['title_scheme_category'])); - mandigo_set_var('title_scheme_date' ,mandigo_escape($_POST['title_scheme_date'] )); - mandigo_set_var('title_scheme_search' ,mandigo_escape($_POST['title_scheme_search'] )); - mandigo_set_var('tag_blogname' ,$_POST['tag_blogname'] ); - mandigo_set_var('tag_blogdesc' ,$_POST['tag_blogdesc'] ); - mandigo_set_var('tag_posttitle_multi' ,$_POST['tag_posttitle_multi'] ); - mandigo_set_var('tag_posttitle_single' ,$_POST['tag_posttitle_single'] ); - mandigo_set_var('tag_pagetitle' ,$_POST['tag_pagetitle'] ); - mandigo_set_var('tag_sidebar' ,$_POST['tag_sidebar'] ); - mandigo_set_var('tags_after' ,$_POST['tags_after'] ); - mandigo_set_var('no_animations' ,$_POST['no_animations'] ); - mandigo_set_var('trackbacks' ,$_POST['trackbacks'] ); - mandigo_set_var('fixes_comments_1' ,$_POST['fixes_comments_1'] ); - mandigo_set_var('fixes_comments_2' ,$_POST['fixes_comments_2'] ); - mandigo_set_var('fixes_whitespace_pre' ,$_POST['fixes_whitespace_pre'] ); - mandigo_set_var('fixes_touch_content' ,$_POST['fixes_touch_content'] ); - mandigo_set_var('collapse_posts' ,$_POST['collapse_posts'] ); - mandigo_set_var('headnav_alignment' ,$_POST['headnav_alignment'] ); - mandigo_set_var('date_format' ,$_POST['date_format'] ); - mandigo_set_var('no_submenus' ,$_POST['no_submenus'] ); - mandigo_set_var('disable_comment_gravatars' ,$_POST['comment_gravatars'] ); - } - - // store some of the options in variables (some = the ones we will use more than once) - $exclude = split(',', get_option('mandigo_exclude_pages')); - $scheme = get_option('mandigo_scheme' ); - $headoverlay = get_option('mandigo_headoverlay' ); - $date_format = get_option('mandigo_date_format' ); - $sidebar1 = get_option('mandigo_sidebar1_left' ); - $sidebar2 = get_option('mandigo_sidebar2_left' ); - $headnav_alignment = get_option('mandigo_headnav_alignment' ); - $wp = get_option('mandigo_wp' ); - $stroke = get_option('mandigo_stroke' ); - $wp_fixed = get_option('mandigo_wp_fixed' ); - $wp_repeat = get_option('mandigo_wp_repeat' ); - $trackbacks = get_option('mandigo_trackbacks' ); - - $tag_blogname = get_option('mandigo_tag_blogname' ); - $tag_blogdesc = get_option('mandigo_tag_blogdesc' ); - $tag_posttitle_multi = get_option('mandigo_tag_posttitle_multi' ); - $tag_posttitle_single = get_option('mandigo_tag_posttitle_single' ); - $tag_pagetitle = get_option('mandigo_tag_pagetitle' ); - $tag_sidebar = get_option('mandigo_tag_sidebar' ); - - // this remote path to the current scheme needs to be reset in some cases - $dirs['www']['scheme'] = $dirs['www']['scheme'] . "$scheme/"; - - // build a list of selectable schemes from the array we built earlier - foreach ($schemes as $i) { - $select_schemes .= sprintf( - '%s  ', - $i, - ( - $scheme == $i - ? 'checked="checked"' - : '' - ), - $dirs['www']['schemes'] . $i, - $i - ); - } - - // browse through the images/patterns/ dir for image files and build a stack of option fields - $patternsdir = opendir($dirs['loc']['patterns']); - $select_patterns = ''; - while (false !== ($i = readdir($patternsdir))) { - if (preg_match("/\.(?:jpe?g|png|gif|bmp)$/i",$i)) - $select_patterns .= sprintf( - '', - $i, - ( - $i == $wp - ? ' selected="selected"' - : '' - ), - $i - ); - } - - // build the list of pages, for the 'pages to be excluded' part - $pages = &get_pages('sort_column=menu_order'); - foreach ($pages as $i) { - if (!$i->post_parent) - $select_pages .= sprintf( - ' %s
    ', - $i->ID, - ( - array_search($i->ID, $exclude) - ? ' checked' - : '' - ), - $i->post_title - ); - } ! // output the beast ! echo '

    Are you using the latest version? - If you enjoy Mandigo, please consider '. (rand(0,1) ? 'making a donation' : 'making a donation') .'.

    Mandigo Options

    -
    - Color Scheme | - Layout | - Header | - Posts | - Comments | - SEO | - Layout Fixes | - Miscellaneous -

    - - !
    Color Scheme '.$select_schemes.'

    --- 1,353 ---- "<$tag_sidebar class=\"widgettitle\">", 'after_title' => "\n")); ! register_sidebar(array('before_title' => "<$tag_sidebar class=\"widgettitle\">", 'after_title' => "\n")); ! register_sidebar(array('before_title' => "<$tag_sidebar class=\"widgettitle\">", 'after_title' => "\n", 'name' => 'Mandigo Top')); ! register_sidebar(array('before_title' => "<$tag_sidebar class=\"widgettitle\">", 'after_title' => "\n", 'name' => 'Mandigo Bottom')); ! } ! /* ------------------------------------------------- ! SEARCH WIDGET ! -------------------------------------------------- */ ! function widget_mandigo_search() { ! global $tag_sidebar; ?>
  • < class="widgettitle">>
  • < class="widgettitle"> >
  • !
  • < class="widgettitle">> ! Entries (RSS) ! !
  • '. $author_nicename .''; + } + return $author_nicename; + } + function mandigo_date_icon($date) { + list($y, $mn, $m, $d) = explode(' ', $date); + switch (get_option('mandigo_date_format')) { + case 'MdY': $l = array($mn, $d, $y); $x = array(1, 0, 0); break; + case 'dmY': $l = array($d, $m, $y); $x = array(1, 0, 0); break; + } + echo ' +
    +
    + '. $l[0] .' + '. $l[1] .' + '. $l[2] .' +
    +
    + '; + } ! /* ------------------------------------------------- ! THEME OPTIONS PAGES ! -------------------------------------------------- */ ! add_action('admin_menu', 'add_mandigo_options_page'); ! add_action('admin_menu', 'add_mandigo_inserts_page'); ! add_action('admin_menu', 'add_mandigo_readme_page'); ! add_action('admin_menu', 'add_mandigo_farbtastic_js'); ! add_action('admin_head', 'add_mandigo_farbtastic_css'); ! ! function add_mandigo_options_page() { ! global $dirs; ! add_theme_page( ! 'Theme Options', ! ' Theme Options', ! 'edit_themes', ! basename(__FILE__), ! 'mandigo_options_page' ! ); ! } ! function add_mandigo_inserts_page() { ! global $dirs; ! add_theme_page( ! 'HTML Inserts', ! ' HTML Inserts', ! 'edit_themes', ! 'Inserts', ! 'mandigo_inserts_page' ! ); ! } ! function add_mandigo_readme_page() { ! add_theme_page( ! 'README', ! 'README', ! 'switch_themes', ! 'README', ! 'mandigo_readme_page' ! ); ! } ! ! function add_mandigo_farbtastic_js() { ! global $dirs; ! wp_enqueue_script('jquery', $dirs['www']['theme'] .'js/jquery.js'); ! wp_enqueue_script('farbtastic', $dirs['www']['theme'] .'js/farbtastic.js'); ! } ! ! function add_mandigo_farbtastic_css() { ! global $dirs; ! echo ''; ! } ! ! function mandigo_set_var($var,$value) { update_option('mandigo_'. $var, $value); } ! function mandigo_color($value,$default) { ! if (!preg_match("/^#/",$value)) $value = '#'. $value; ! if (!preg_match("/^#([0-9A-F]{3}){1,2}$/i",$value)) $value = $default; ! return $value; ! } ! function mandigo_escape($string) { ! $string = str_replace('\\"','"',$string); ! $string = str_replace("\\'",''',$string); ! return $string; ! } ! ! function mandigo_options_page() { ! global $dirs, $schemes; ! ! if ( $_GET['page'] == basename(__FILE__) ) { ! $ct = current_theme_info(); ! ! if (isset($_POST['updated'])) { ! $exclude[] = ''; ! foreach ($_POST as $field => $value) { ! if (preg_match("/exclude_(\d+)/",$field,$id)) { $exclude[] = $id[1]; } ! } ! mandigo_set_var('exclude_pages' ,implode(",",$exclude) ); ! mandigo_set_var('bgcolor' ,mandigo_color($_POST['bgcolor'] ,'#44484F')); ! mandigo_set_var('posts_bgcolor' ,mandigo_color($_POST['posts_bgcolor'] ,'#FAFAFA')); ! mandigo_set_var('posts_bdcolor' ,mandigo_color($_POST['posts_bdcolor'] ,'#EEEEEE')); ! mandigo_set_var('sidebars_bgcolor' ,mandigo_color($_POST['sidebars_bgcolor'],'#EEEEEE')); ! mandigo_set_var('sidebars_bdcolor' ,mandigo_color($_POST['sidebars_bdcolor'],'#DDDDDD')); ! mandigo_set_var('scheme' ,$_POST['scheme'] ); ! mandigo_set_var('wp' ,$_POST['wp'] ); ! mandigo_set_var('scheme_random' ,$_POST['random'] ); ! mandigo_set_var('headoverlay' ,$_POST['headoverlay'] ); ! mandigo_set_var('bold_links' ,$_POST['boldlinks'] ); ! mandigo_set_var('1024' ,$_POST['wide'] ); ! mandigo_set_var('nofloat' ,$_POST['nofloat'] ); ! mandigo_set_var('footer_stats' ,$_POST['footstats'] ); ! mandigo_set_var('nosidebars' ,($_POST['sidebars'] == 0 ? 1:0)); ! mandigo_set_var('3columns' ,($_POST['sidebars'] == 2 ? 1:0)); ! mandigo_set_var('sidebar1_left' ,$_POST['sidebar1'] ); ! mandigo_set_var('sidebar2_left' ,$_POST['sidebar2'] ); ! mandigo_set_var('always_show_sidebars' ,$_POST['alwayssidebars'] ); ! mandigo_set_var('em_italics' ,$_POST['em'] ); ! mandigo_set_var('stroke' ,$_POST['stroke'] ); ! mandigo_set_var('headers_random' ,$_POST['randomheaders'] ); ! mandigo_set_var('slim_header' ,$_POST['slimheader'] ); ! mandigo_set_var('hide_blogname' ,$_POST['hideblogname'] ); ! mandigo_set_var('hide_blogdesc' ,$_POST['hideblogdesc'] ); ! mandigo_set_var('noborder' ,$_POST['noborder'] ); ! mandigo_set_var('small_title' ,$_POST['smalltitle'] ); ! mandigo_set_var('wp_fixed' ,$_POST['wpfixed'] ); ! mandigo_set_var('wp_repeat' ,$_POST['wprepeat'] ); ! mandigo_set_var('wp_position' ,$_POST['wpposition'] ); ! mandigo_set_var('number_comments' ,$_POST['numbercomments'] ); ! mandigo_set_var('full_search_results' ,$_POST['fullsearchresults'] ); ! mandigo_set_var('drop_shadow' ,$_POST['dropshadow'] ); ! mandigo_set_var('author_comments' ,$_POST['authorcomments'] ); ! mandigo_set_var('floatright' ,$_POST['floatright'] ); ! mandigo_set_var('xhtml_comments' ,$_POST['xhtmlcomments'] ); ! mandigo_set_var('nojustify' ,$_POST['nojustify'] ); ! mandigo_set_var('title_scheme_index' ,mandigo_escape($_POST['title_scheme_index'] )); ! mandigo_set_var('title_scheme_single' ,mandigo_escape($_POST['title_scheme_single'] )); ! mandigo_set_var('title_scheme_page' ,mandigo_escape($_POST['title_scheme_page'] )); ! mandigo_set_var('title_scheme_category' ,mandigo_escape($_POST['title_scheme_category'])); ! mandigo_set_var('title_scheme_date' ,mandigo_escape($_POST['title_scheme_date'] )); ! mandigo_set_var('title_scheme_search' ,mandigo_escape($_POST['title_scheme_search'] )); ! mandigo_set_var('tag_blogname' ,$_POST['tag_blogname'] ); ! mandigo_set_var('tag_blogdesc' ,$_POST['tag_blogdesc'] ); ! mandigo_set_var('tag_posttitle_multi' ,$_POST['tag_posttitle_multi'] ); ! mandigo_set_var('tag_posttitle_single' ,$_POST['tag_posttitle_single'] ); ! mandigo_set_var('tag_pagetitle' ,$_POST['tag_pagetitle'] ); ! mandigo_set_var('tag_sidebar' ,$_POST['tag_sidebar'] ); ! mandigo_set_var('tags_after' ,$_POST['tags_after'] ); ! mandigo_set_var('no_animations' ,$_POST['no_animations'] ); ! mandigo_set_var('trackbacks' ,$_POST['trackbacks'] ); ! mandigo_set_var('fixes_comments_1' ,$_POST['fixes_comments_1'] ); ! mandigo_set_var('fixes_comments_2' ,$_POST['fixes_comments_2'] ); ! mandigo_set_var('fixes_whitespace_pre' ,$_POST['fixes_whitespace_pre'] ); ! mandigo_set_var('fixes_touch_content' ,$_POST['fixes_touch_content'] ); ! mandigo_set_var('collapse_posts' ,$_POST['collapse_posts'] ); ! mandigo_set_var('headnav_alignment' ,$_POST['headnav_alignment'] ); ! mandigo_set_var('date_format' ,$_POST['date_format'] ); ! } ! $exclude = split(",",get_option('mandigo_exclude_pages')); ! $scheme = get_option('mandigo_scheme' ); ! $headoverlay = get_option('mandigo_headoverlay' ); ! $date_format = get_option('mandigo_date_format' ); ! $sidebar1 = get_option('mandigo_sidebar1_left' ); ! $sidebar2 = get_option('mandigo_sidebar2_left' ); ! $headnav_alignment = get_option('mandigo_headnav_alignment' ); ! $wp = get_option('mandigo_wp' ); ! $stroke = get_option('mandigo_stroke' ); ! $wp_fixed = get_option('mandigo_wp_fixed' ); ! $wp_repeat = get_option('mandigo_wp_repeat' ); ! $trackbacks = get_option('mandigo_trackbacks' ); ! ! $tag_blogname = get_option('mandigo_tag_blogname' ); ! $tag_blogdesc = get_option('mandigo_tag_blogdesc' ); ! $tag_posttitle_multi = get_option('mandigo_tag_posttitle_multi' ); ! $tag_posttitle_single = get_option('mandigo_tag_posttitle_single' ); ! $tag_pagetitle = get_option('mandigo_tag_pagetitle' ); ! $tag_sidebar = get_option('mandigo_tag_sidebar' ); ! ! $dirs['www']['scheme'] = $dirs['www']['scheme'] . "$scheme/"; ! ! foreach ($schemes as $i) { ! $select_schemes .= ''. $i .'  '; ! } ! ! $patternsdir = opendir($dirs['loc']['patterns']); ! $select_patterns = ''; ! while (false !== ($i = readdir($patternsdir))) { ! if (preg_match("/\.(?:jpe?g|png|gif|bmp)$/i",$i)) { ! $select_patterns .= ''; ! } ! } ! ! $pages = &get_pages('sort_column=menu_order'); ! foreach ($pages as $i) { ! if (!$i->post_parent) { ! $select_pages .= 'ID, $exclude) ? ' checked' : '') .' /> '. $i->post_title . '
    '; ! } ! } ! ! echo '

    Are you using the latest version? - If you enjoy Mandigo, please consider '. (rand(0,1) ? 'making a donation' : 'making a donation') .'.

    Mandigo Options

    !
    Color Scheme '.$select_schemes.'

    *************** *** 517,523 **** jQuery(".colorpicker").each(function () { f.linkTo(this); }).focus(function() { f.linkTo(this); jQuery("#picker").fadeIn(); }); }); defaultColor = function(e,v) { ! var f = eval(\'document.forms.mandigo_options_form.\'+e); f.value = v; f.focus(); } --- 363,369 ---- jQuery(".colorpicker").each(function () { f.linkTo(this); }).focus(function() { f.linkTo(this); jQuery("#picker").fadeIn(); }); }); defaultColor = function(e,v) { ! var f = document.forms.mandigo_options_form.eval(e); f.value = v; f.focus(); } *************** *** 583,593 ****

    ! ! !
    Layout Options Use the 1024px theme look instead of the default 800px one
    Show sidebars even in single post view
    --- 429,438 ----
    +
    !
    Layout Options Use the 1024px theme look instead of the default 800px one
    Show sidebars even in single post view
    *************** *** 616,626 ****

    ! ! !
    Header Use slim (100px smaller) headers
    Use random images from the images/headers/ subfolder
    --- 461,470 ----
    +
    !
    Header Use slim (100px smaller) headers
    Use random images from the images/headers/ subfolder
    *************** *** 636,642 **** on


    - Disable submenus
    Navigation position : Automatically collapse posts in archives & categories
    Display tags after the content instead of next to categories (WP2.3+)
    --- 492,501 ----
    '. $select_pages .'
    +
    !
    Posts Automatically collapse posts in archives & categories
    Display tags after the content instead of next to categories (WP2.3+)
    *************** *** 662,681 ****



    ! ! !
    Comments Highlight comments made by the author of the current post
    Number comments
    ! Display allowed XHTML tags above the comment field
    ! Do not display gravatars
    Display trackbacks: !

    +
    !
    Comments Highlight comments made by the author of the current post
    Number comments
    ! Display allowed XHTML tags above the comment field
    Display trackbacks:

    -
    - ! !
    SEO Options
    --- 523,532 ----

    !
    ! !
    SEO Options
    *************** *** 726,737 **** Blog name: --- 565,576 ---- Blog name: *************** *** 740,751 **** Blog description (tagline): --- 579,590 ---- Blog description (tagline): *************** *** 754,765 **** Post title (when showing multiple posts): --- 593,604 ---- Post title (when showing multiple posts): *************** *** 768,779 **** Post title (single post view): --- 607,618 ---- Post title (single post view): *************** *** 782,793 **** Page title (\'Archives\', \'Search Results\'): --- 621,632 ---- Page title (\'Archives\', \'Search Results\'): *************** *** 796,818 **** Widget title:

    ! ! !
    Layout Fixes You may want to experiment with these settings if you encounter problems with the columns showing up wider than they normally should:
    Fix elements which use a "white-space: pre" style (prevents lines from being wrapped in IE)
    --- 635,656 ---- Widget title:
    +
    !
    Layout Fixes You may want to experiment with these settings if you encounter problems with the columns showing up wider than they normally should:
    Fix elements which use a "white-space: pre" style (prevents lines from being wrapped in IE)
    *************** *** 820,830 **** Replace long urls in users comments with "link"
    Force the browser to re-render the content column

    ! ! !
    Miscellaneous Options
    --- 658,667 ---- Replace long urls in users comments with "link"
    Force the browser to re-render the content column
    +
    !
    Miscellaneous Options
    *************** *** 848,883 ****
    - -

    Version Checker

    - -

    Preview (updated when options are saved)

    '; ! } // end of mandigo_options_page() ! function mandigo_set_insert($key, $value) { ! update_option('mandigo_inserts_'.$key, str_replace("\\", "", $value)); ! } ! // the HTML inserts page ! function mandigo_inserts_page() { ! if (isset($_POST['updated'])) { ! mandigo_set_insert('header',$_POST['header']); ! mandigo_set_insert('body' ,$_POST['body'] ); ! mandigo_set_insert('top' ,$_POST['top'] ); ! mandigo_set_insert('footer',$_POST['footer']); ! } ! echo '

    Mandigo Options

    --- 685,714 ----

    Version Checker

    Preview (updated when options are saved)

    '; ! } ! } ! function mandigo_set_insert($key,$value) { update_option('mandigo_inserts_'.$key,str_replace("\\","",$value)); } ! function mandigo_inserts_page() { ! if (isset($_POST['updated'])) { ! mandigo_set_insert('header',$_POST['header']); ! mandigo_set_insert('body' ,$_POST['body'] ); ! mandigo_set_insert('top' ,$_POST['top'] ); ! mandigo_set_insert('footer',$_POST['footer']); ! } ! echo '

    Mandigo Options

    *************** *** 889,913 ****
    HTML Inserts !

    The fields on this page allow you to save pieces of code required by third-party plugins and widgets. You can also use them to save Google Maps/Analytics/AdSense javascript snippets, or whatever you want.

    ! !

    This way you will never have to edit the source files manually each time you update Mandigo.

    NO validation is made on the field values, so be careful not to paste invalid code. Also note that backslashes will be stripped.


    ! right before </HEAD> (useful for links to external stylesheets, javascript files. This is also the best place for your css rules):
    !

    custom <BODY> tag (useful for onload actions):
    !

    right before the content and sidebars area. This differs from the top widget container in that it displays on all pages, and it spans the whole layout width.
    !


    before the "Powered by WordPress" credits, still inside the #main div. This differs from the bottom widget container in that it displays on all pages, and it spans the whole layout width.
    !

    --- 720,742 ----
    HTML Inserts !

    The fields on this page allow you to save pieces of code required by third-party plugins and widgets. You can also use them to save Google Maps/Analytics/AdSense javascript snippets, or whatever you want. This way you will never have to insert code manually each time you update Mandigo.

    NO validation is made on the field values, so be careful not to paste invalid code. Also note that backslashes will be stripped.


    ! right before </HEAD> (useful for links to external stylesheets, javascript files, or inline CSS):
    !

    custom <BODY> tag (useful for onload actions):
    !

    right before the content and sidebars area. This differs from the top widget container in that it displays on all pages, and it spans the whole layout width.
    !


    before the "Powered by WordPress" credits, still inside the #main div. This differs from the bottom widget container in that it displays on all pages, and it spans the whole layout width.
    !

    *************** *** 916,927 **** } ! // the readme page ! function mandigo_readme_page() { ! echo '
    '; ! echo '
    ';
    ! 		echo htmlspecialchars(file_get_contents(TEMPLATEPATH.'/README.txt'));
    ! 		echo '
    '; ! echo '
    '; ! } ?> --- 745,756 ---- } ! ! function mandigo_readme_page() { ! echo '
    '; ! echo '
    ';
    !     echo htmlspecialchars(file_get_contents(TEMPLATEPATH.'/README.txt'));
    !     echo '
    '; ! echo '
    '; ! } ?> diff -rc mandigo-1.33/header.php mandigo-1.32/header.php *** mandigo-1.33/header.php 2008-04-27 17:20:08.000000000 -0400 --- mandigo-1.32/header.php 2008-03-09 14:47:33.000000000 -0400 *************** *** 5,220 **** <?php ! $title = ''; ! // get the appropriate title scheme depending on the type of page ! if (is_single()) $title = get_option('mandigo_title_scheme_single'