Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $hlincolr = ''; //start with empty color code//
- if (is_page(55)|| '55' == $post->post_parent)
- {$hlincolr='#B81761';}
- if (is_page(2)|| '2' == $post->post_parent)
- {$hlincolr='#661347';}
- if (is_page(36)|| '36' == $post->post_parent)
- {$hlincolr='#033e6d';}
- if (is_page(46)|| '46' == $post->post_parent)
- {$hlincolr='#3c5d2f';}
- if (is_page(48)|| '48' == $post->post_parent)
- {$hlincolr='#bf9d08';}
- if (is_page(50)|| '50' == $post->post_parent)
- {$hlincolr='#b8330e';}
- if (is_page(66)|| '66' == $post->post_parent)
- {$hlincolr='#9f0c1b';}
- if (is_page(165)|| '165' == $post->post_parent)
- {$hlincolr='#636161';}
- //if a color code was found, output embedded styles//
- if( $hlincolr ) echo '<style type="text/css">
- #wrapper {
- -moz-box-shadow: 0 0 20px 20px '.$hlincolr.';
- -webkit-box-shadow: 0 0 20px 20px '.$hlincolr.';
- box-shadow: 0 0 20px 20px '.$hlincolr.';
- }
- </style>'; ?>
- style declar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement