Changeset 13668 for trunk/wp-includes/theme.php
- Timestamp:
- 03/11/2010 08:21:58 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r13574 r13668 1437 1437 function _custom_background_cb() { 1438 1438 $background = get_background_image(); 1439 1440 if ( !$background )1439 $color = get_background_color(); 1440 if ( !$background && !$color ) 1441 1441 return; 1442 1442 … … 1458 1458 else 1459 1459 $attachment = 'background-attachment: fixed;'; 1460 1461 if ( !empty($background ) ) 1462 $image = "background-image: url('$background');"; 1463 else 1464 $image = ''; 1465 1466 if ( !empty($background ) ) 1467 $image = "background-image: url('$background');"; 1468 else 1469 $image = ''; 1470 1471 if ( !empty($color) ) 1472 $color = "background-color: #$color;"; 1473 else 1474 $color = ''; 1460 1475 ?> 1461 1476 <style type="text/css"> 1462 1477 body { 1463 background-color: #<?php background_color(); ?>;1464 background-image: url('<?php background_image(); ?>');1478 <?php echo $image; ?> 1479 <?php echo $color; ?> 1465 1480 <?php echo $repeat; ?> 1466 1481 <?php echo $position; ?>
Note: See TracChangeset
for help on using the changeset viewer.