X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/022dfbbbe3215917d84708eb09acca93b21ae9e0..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-content/themes/default/images/header-img.php?ds=sidebyside diff --git a/wp-content/themes/default/images/header-img.php b/wp-content/themes/default/images/header-img.php index 65a9e875..c54491a3 100644 --- a/wp-content/themes/default/images/header-img.php +++ b/wp-content/themes/default/images/header-img.php @@ -1,11 +1,11 @@ array('r1', 'g1', 'b1'), 'lower'=>array('r2', 'g2', 'b2')); @@ -23,17 +23,17 @@ foreach ( $vars as $var => $subvars ) { $default = true; } } - + if ( $default ) list ( $r1, $g1, $b1, $r2, $g2, $b2 ) = array ( 105, 174, 231, 65, 128, 182 ); - + // Create the image $im = imagecreatefromjpeg($img); - + // Get the background color, define the rectangle height $white = imagecolorat( $im, 15, 15 ); $h = 182; - + // Define the boundaries of the rounded edges ( y => array ( x1, x2 ) ) $corners = array( 0 => array ( 25, 734 ), @@ -47,14 +47,14 @@ $corners = array( 180 => array ( 23, 736 ), 181 => array ( 25, 734 ), ); - + // Blank out the blue thing for ( $i = 0; $i < $h; $i++ ) { $x1 = 19; $x2 = 740; imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); } - + // Draw a new color thing for ( $i = 0; $i < $h; $i++ ) { $x1 = 20; @@ -69,7 +69,7 @@ for ( $i = 0; $i < $h; $i++ ) { } imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color ); } - + //die; header("Content-Type: image/jpeg"); imagejpeg($im, '', 92);