diff -c mandigo-1.18/README.txt mandigo-1.19/README.txt *** mandigo-1.18/README.txt 2007-04-29 17:57:46.000000000 -0400 --- mandigo-1.19/README.txt 2007-05-08 18:13:10.000000000 -0400 *************** *** 46,52 **** The theme is available in seven different color schemes, which you can select from the Presentation, Theme Options subpanel in the Administration interface. ! * Header Images: If none of the headers satisfy your needs, just replace the contents of head.jpg in the images/ subfolder that corresponds to your current color scheme (i.e. the one you have set on the Theme Options page) with your own image. For best results, the image should --- 46,70 ---- The theme is available in seven different color schemes, which you can select from the Presentation, Theme Options subpanel in the Administration interface. ! * Image Classes: ! - Images in posts are surrounded by a border by default. To override this behaviour, ! simply add the 'noborder' class to your img tags. ! - Images are also left-floated by default. To override this, add the 'nofloat' class to ! your img tags. ! ! * Widgets Support: ! Mandigo supports up to four widgets bars: two on the sides, one at the top and one at ! the bottom. The sidebars can be displayed on either side of the reading area. The ! top/bottom bars are most useful to display some kind of static content (using text ! widgets), or recent posts/comments. ! ! If you're still not using widgets (you should!), you can find more information about ! them here: http://automattic.com/code/widgets/ ! ! ! === HEADER IMAGES ====================================================================== ! ! * Replacing Default Header Images If none of the headers satisfy your needs, just replace the contents of head.jpg in the images/ subfolder that corresponds to your current color scheme (i.e. the one you have set on the Theme Options page) with your own image. For best results, the image should *************** *** 63,82 **** a page (default view, archives, search, ...), the ID of the first post to appear on the page will be used to look for a header. ! * Image Classes: ! - Images in posts are surrounded by a border by default. To override this behaviour, ! simply add the 'noborder' class to your img tags. ! - Images are also left-floated by default. To override this, add the 'nofloat' class to ! your img tags. ! ! * Widgets Support: ! Mandigo supports up to four widgets bars: two on the sides, one at the top and one at ! the bottom. The sidebars can be displayed on either side of the reading area. The ! top/bottom bars are most useful to display some kind of static content (using text ! widgets), or recent posts/comments. ! ! If you're still not using widgets (you should!), you can find more information about ! them here: http://automattic.com/code/widgets/ === LOCALIZATION ======================================================================= --- 81,90 ---- a page (default view, archives, search, ...), the ID of the first post to appear on the page will be used to look for a header. ! * Random Header Images: ! If the "Use random header images" option is enabled in the Theme Options page, AND a ! per-page header could not be found, Mandigo will use a random file from the ! images/headers/ folder. Valid file types are JPG, GIF, PNG and BMP. === LOCALIZATION ======================================================================= *************** *** 147,152 **** --- 155,165 ---- === CHANGELOG ========================================================================== + 1.19 + + added an option to use random header images + * fixed an incompatibility with older versions of MySQL + * fixed an incompatibility with WordPress-MU + 1.18 + per-page headers: you can now have a different header image on each page, see README + added an option to apply a black stroke to blog title and description for better diff -c mandigo-1.18/functions.php mandigo-1.19/functions.php *** mandigo-1.18/functions.php 2007-04-29 17:47:52.000000000 -0400 --- mandigo-1.19/functions.php 2007-05-08 18:10:50.000000000 -0400 *************** *** 123,128 **** --- 123,129 ---- mandigo_set_bool('mandigo_always_show_sidebars',$_POST['alwayssidebars']); mandigo_set_bool('mandigo_em_italics' ,$_POST['em'] ); mandigo_set_bool('mandigo_stroke' ,$_POST['stroke'] ); + mandigo_set_bool('mandigo_headers_random' ,$_POST['randomheaders'] ); } $current = get_option('mandigo_scheme' ); $headoverlay = get_option('mandigo_headoverlay' ); *************** *** 142,147 **** --- 143,149 ---- $alwayssidebars = get_option('mandigo_always_show_sidebars' ); $em = get_option('mandigo_em_italics' ); $stroke = get_option('mandigo_stroke' ); + $randomheaders = get_option('mandigo_headers_random' ); $pages = & get_pages('sort_column=menu_order'); foreach ( $pages as $page ) { *************** *** 158,169 ****

Mandigo Options

!
! Color Schemes blue   red   green   --- 160,171 ----

Mandigo Options

!
! Color Scheme blue   red   green   *************** *** 171,179 **** purple   orange   teal

! I like them all, change schemes randomly!
!

If you prefer to use your own header image with one of the color schemes, please consult the README page for instructions on how to do so.

!

NEW: As of 1.18, it is also possible to use per-page header images. Consult the README page for more information.


Background color: restore default

Use the following file as the background pattern:
--- 173,184 ---- purple   orange   teal

! I like them all, change schemes randomly!

! !
! Use random images from the images/headers/ folder

! It is also possible to use a different image on each page (per-page header images). Please consult the README page for more information.

!
Background color: restore default

Use the following file as the background pattern:
diff -c mandigo-1.18/header.php mandigo-1.19/header.php *** mandigo-1.18/header.php 2007-04-29 17:43:54.000000000 -0400 --- mandigo-1.19/header.php 2007-05-08 18:08:54.000000000 -0400 *************** *** 16,22 **** if (get_option('mandigo_bold_links')) { $lastminutecss .= " a { font-weight: bold; }\n"; }; if (file_exists(TEMPLATEPATH.'/images/headers/'. $post->ID .'.jpg')) { $noheaderimg = 1; ! $lastminutecss .= " #headerimg { background: url('". get_bloginfo('stylesheet_directory') ."/images/headers/". $post->ID .".jpg') bottom center no-repeat; }\n"; } $stroke = get_option('mandigo_stroke'); ?> --- 16,32 ---- if (get_option('mandigo_bold_links')) { $lastminutecss .= " a { font-weight: bold; }\n"; }; if (file_exists(TEMPLATEPATH.'/images/headers/'. $post->ID .'.jpg')) { $noheaderimg = 1; ! $lastminutecss .= " #headerimg { background: url(". get_bloginfo('stylesheet_directory') ."/images/headers/". $post->ID .".jpg) bottom center no-repeat; }\n"; ! } ! elseif (get_option('mandigo_headers_random')) { ! $headersdir = opendir(TEMPLATEPATH.'/images/headers/'); ! while (false !== ($file = readdir($headersdir))) { ! if (preg_match("/\.(?:jpe?g|png|gif|bmp)$/",$file)) $headers[] = $file; ! } ! if (sizeof($headers)) { ! $noheaderimg = 1; ! $lastminutecss .= " #headerimg { background: url(". get_bloginfo('stylesheet_directory') ."/images/headers/". $headers[array_rand($headers,1)] .") bottom center no-repeat; }\n"; ! } } $stroke = get_option('mandigo_stroke'); ?> Common subdirectories: mandigo-1.18/images and mandigo-1.19/images diff -c mandigo-1.18/style.css mandigo-1.19/style.css *** mandigo-1.18/style.css 2007-04-28 10:22:20.000000000 -0400 --- mandigo-1.19/style.css 2007-05-07 18:58:28.000000000 -0400 *************** *** 2,8 **** Theme Name: Mandigo Theme URI: http://www.onehertz.com/portfolio/wordpress/ Description: Mandigo is an elegant widget-ready two/three-column Wordpress theme, available in two widths, SEVEN color schemes and 22 languages! ! Version: 1.18 Author: t0mmmmmmm Author URI: http://www.onehertz.com/portfolio/ */ --- 2,8 ---- Theme Name: Mandigo Theme URI: http://www.onehertz.com/portfolio/wordpress/ Description: Mandigo is an elegant widget-ready two/three-column Wordpress theme, available in two widths, SEVEN color schemes and 22 languages! ! Version: 1.19 Author: t0mmmmmmm Author URI: http://www.onehertz.com/portfolio/ */ diff -c mandigo-1.18/style.css.php mandigo-1.19/style.css.php *** mandigo-1.18/style.css.php 2007-04-29 17:51:56.000000000 -0400 --- mandigo-1.19/style.css.php 2007-05-07 18:56:38.000000000 -0400 *************** *** 1,22 **** /','',file_get_contents('../../../wp-config.php'))); if (defined('DB_USER')) { $dbh = @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); @mysql_select_db(DB_NAME,$dbh); ! $r = @mysql_query("SELECT option_name,option_value FROM ". $table_prefix ."options WHERE (SELECT option_name REGEXP '^mandigo_(1024|sidebar[12]_left|3columns|wp(tog)?|em_italics|bgcolor|nofloat|headnav_left|scheme)|stylesheet|siteurl');",$dbh); while ($a = @mysql_fetch_row($r)) { if ($a[1] == 'on') $a[1] = 1; if ($a[1] == 'off') $a[1] = 0; $$a[0] = $a[1]; } @mysql_free_result($r); $stylesheet_directory = $siteurl . '/wp-content/themes/'. $stylesheet; } ! else { ! if (defined('ABSPATH')) if (is_file('wp-blog-header.php')) { require('./wp-blog-header.php'); } else { require('../../../wp-blog-header.php'); } $mandigo_em_italics = get_option('mandigo_em_italics'); --- 1,25 ---- /','',file_get_contents('../../../wp-config.php'))); if (defined('DB_USER')) { $dbh = @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); @mysql_select_db(DB_NAME,$dbh); ! $r = @mysql_query("SELECT option_name,option_value FROM ". $table_prefix ."options WHERE option_name REGEXP '^mandigo_(1024|sidebar[12]_left|3columns|wp(tog)?|em_italics|bgcolor|nofloat|headnav_left|scheme)|stylesheet|siteurl';",$dbh); while ($a = @mysql_fetch_row($r)) { if ($a[1] == 'on') $a[1] = 1; if ($a[1] == 'off') $a[1] = 0; $$a[0] = $a[1]; } @mysql_free_result($r); + if (!$mandigo_scheme) $fb++; $stylesheet_directory = $siteurl . '/wp-content/themes/'. $stylesheet; } + else $fb++; ! if ($fb) { if (is_file('wp-blog-header.php')) { require('./wp-blog-header.php'); } else { require('../../../wp-blog-header.php'); } $mandigo_em_italics = get_option('mandigo_em_italics');