Advertisement
alchymyth

styles

Mar 5th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <?php $hlincolr = ''; //start with empty color code//
  2. if (is_page(55)|| '55' == $post->post_parent)
  3. {$hlincolr='#B81761';}
  4. if (is_page(2)|| '2' == $post->post_parent)
  5. {$hlincolr='#661347';}
  6. if (is_page(36)|| '36' == $post->post_parent)
  7. {$hlincolr='#033e6d';}
  8. if (is_page(46)|| '46' == $post->post_parent)
  9. {$hlincolr='#3c5d2f';}
  10. if (is_page(48)|| '48' == $post->post_parent)
  11. {$hlincolr='#bf9d08';}
  12. if (is_page(50)|| '50' == $post->post_parent)
  13. {$hlincolr='#b8330e';}
  14. if (is_page(66)|| '66' == $post->post_parent)
  15. {$hlincolr='#9f0c1b';}
  16. if (is_page(165)|| '165' == $post->post_parent)
  17. {$hlincolr='#636161';}
  18. //if a color code was found, output embedded styles//
  19. if( $hlincolr ) echo '<style type="text/css">
  20. #wrapper {
  21. -moz-box-shadow: 0 0 20px 20px '.$hlincolr.';
  22. -webkit-box-shadow: 0 0 20px 20px '.$hlincolr.';
  23. box-shadow: 0 0 20px 20px '.$hlincolr.';
  24. }
  25. </style>'; ?>
  26.  
  27.  
  28. style declar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement