/ Published in: PHP
Sets the sidebar photo appropriate for a section of the site by determining the parent Page of the subpage.
Expand |
Embed | Plain Text
/*** file: header.php ******************************/ <link rel="stylesheet" type="text/css" media="screen" href="<?php //Import stylesheet for the different pages } else { print 'blog'; else { $post_parent = get_post($post->post_parent); } } ?>" /> /*** file: sub.css.php ******************************/ div#sidebar_photo { background-image: url("images/sidebar_photo<?php switch ($_REQUEST['p']) { } } ?>.jpg"); }
You need to login to post a comment.
