PHP and Internet Explorer 7 (PC) – Custom Theme
-
I have coded a sidebar for my three-column architect’s custom theme site (www.fullscalearchitecture.com) that displays:
1. Thumbnails when on the children of the Project page.
2. Blog entries if not
3. Blog Archives and categories if on the blog pageI’m proud of myself for getting this far. Trouble is the blog entries do not show up on the sidebar when using IE 7 for PC. It works great in Safari and Firefox on Mac and PC. My code is a mess and I bet it could be finessed to half of its length. Any help would be appreciated. Or you could just go tell me to read the PHP manual and that would be fine too.
The right sidebar is called right.php and looks like this:
<?php global $post; $gallery = nggShowGallery(get_post_meta($post->ID, 'sidebar_gallery', true)); ?> <div id="right"> <?php if($gallery != '') { ?> <div class="thumbs"> <?php echo $gallery; ?> </div> <?php } else { ?> <div class="no_thumbs"> </div> <?php } ?> <?php if (is_home()) { ?> <div class="r_heading">Codex</div> <?php } elseif (is_single()) { ?> <div class="r_heading">Codex</div> <?php } else { ?> <?php $parent = $post->post_parent; ?> <?php $parent_title = get_the_title($post->post_parent); ?> <?php if (is_home()) { ?> <div class="r_heading">Codex</div> <?php } elseif (is_single()) { ?> <div class="r_heading">Codex</div> <?php } else { ?> <div class="r_heading"> <?php $parent_title = get_the_title($post->post_parent); echo ('<a href="' .get_permalink($post->post_parent). '">' .$parent_title. '</a>'); } ?> </div> <?php } ?> <div class="r_sub"> <?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } elseif (is_home()) { query_posts('showposts=20'); ?> <ul> <?php while (have_posts()) : the_post(); ?> <li><a href='<?php the_permalink() ?>'><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <?php } elseif (is_single()) { query_posts('showposts=20'); ?> <ul> <?php while (have_posts()) : the_post(); ?> <li><a href='<?php the_permalink() ?>'><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <?php } else { } ?> </ul> </div> </div> <div id="right_blog"> <?php if (is_page() && ($post->post_parent=="8")==false) { ?> <ul><div class="heading">Codex</div><?php $my_query = new WP_Query('showposts=3'); while ($my_query->have_posts()) : $my_query->the_post(); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php the_excerpt(); ?> </li> <?php endwhile; ?> </ul> <?php } else if (is_page()==false) { ?> <ul><div class="heading">Codex Archives</div><div class="listing"> <?php wp_get_archives('type=monthly'); ?></div> <div class="heading">Categories</div><div class="listing"> <?php wp_list_categories('title_li='); ?></div> </ul> <?php } else { } ?> </div>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP and Internet Explorer 7 (PC) – Custom Theme’ is closed to new replies.