Changeset 561 for trunk/xpressme_integration_kit/wp-content/themes/xpress_default/images/header-img.php
- Timestamp:
- Mar 23, 2010, 11:42:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/images/header-img.php
r1 r561 1 1 <?php 2 2 3 $img = ' kubrickheader.jpg';3 $img = 'xpressheader.jpg'; 4 4 5 5 // If we don't have image processing support, redirect. 6 6 if ( ! function_exists('imagecreatefromjpeg') ) 7 die(header("Location: kubrickheader.jpg"));7 die(header("Location: xpressheader.jpg")); 8 8 9 9 // Assign and validate the color values … … 33 33 // Get the background color, define the rectangle height 34 34 $white = imagecolorat( $im, 15, 15 ); 35 $h = 182;35 $h = 84; 36 36 37 37 // Define the boundaries of the rounded edges ( y => array ( x1, x2 ) ) … … 51 51 // Blank out the blue thing 52 52 for ( $i = 0; $i < $h; $i++ ) { 53 $x1 = 19;54 $x2 = 740;55 imageline( $im, $x1, 18 + $i, $x2, 18 +$i, $white );53 $x1 = 0; 54 $x2 = 800; 55 imageline( $im, $x1, $i, $x2, $i, $white ); 56 56 } 57 57 58 58 // Draw a new color thing 59 59 for ( $i = 0; $i < $h; $i++ ) { 60 $x1 = 20;61 $x2 = 739;60 $x1 = 0; 61 $x2 = 800; 62 62 $r = ( $r2 - $r1 != 0 ) ? $r1 + ( $r2 - $r1 ) * ( $i / $h ) : $r1; 63 63 $g = ( $g2 - $g1 != 0 ) ? $g1 + ( $g2 - $g1 ) * ( $i / $h ) : $g1; 64 64 $b = ( $b2 - $b1 != 0 ) ? $b1 + ( $b2 - $b1 ) * ( $i / $h ) : $b1; 65 65 $color = imagecolorallocate( $im, $r, $g, $b ); 66 if ( array_key_exists($i, $corners) ) {67 imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );68 list ( $x1, $x2 ) = $corners[$i];69 }70 imageline( $im, $x1, 18 + $i, $x2, 18 +$i, $color );66 // if ( array_key_exists($i, $corners) ) { 67 // imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); 68 // list ( $x1, $x2 ) = $corners[$i]; 69 // } 70 imageline( $im, $x1, $i, $x2, $i, $color ); 71 71 } 72 72
Note: See TracChangeset
for help on using the changeset viewer.