Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>
- <?php bloginfo('name'); ?>
- <?php wp_title(); ?>
- </title>
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
- <!-- leave this for stats please -->
- <script type="text/javascript" src="wp-content/themes/MyWeddingReviews/js/jquery-1.2.6.min.js"></script>
- <script type="text/javascript" src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/js/cufon-yui.js"></script>
- <script type="text/javascript" src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/js/Gabrielle_400.font.js"></script>
- <script type="text/javascript" src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/js/Antipasto_400.font.js"></script>
- <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4d1ba0f222204517"></script>
- <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <?php wp_get_archives('type=monthly&format=link'); ?>
- <?php //comments_popup_script(); // off by default ?>
- <?php wp_head(); ?>
- <script type="text/javascript">
- function slideSwitch() {
- var $active = $('#slideshow IMG.active');
- if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
- // use this to pull the images in the order they appear in the markup
- var $next = $active.next().length ? $active.next()
- : $('#slideshow IMG:first');
- // uncomment the 3 lines below to pull the images in random order
- // var $sibs = $active.siblings();
- // var rndNum = Math.floor(Math.random() * $sibs.length );
- // var $next = $( $sibs[ rndNum ] );
- $active.addClass('last-active');
- $next.css({opacity: 0.0})
- .addClass('active')
- .animate({opacity: 1.0}, 1000, function() {
- $active.removeClass('active last-active');
- });
- }
- $(function() {
- setInterval( "slideSwitch()", 5000 );
- });
- </script>
- <script type="text/javascript">
- //Nested Side Bar Menu (Mar 20th, 09)
- //By Dynamic Drive: http://www.dynamicdrive.com/style/
- //<![CDATA[
- var menuids=["sidebarmenu1"] //Enter id(s) of each Side Bar Menu's main UL, separated by commas
- function initsidebarmenu(){
- for (var i=0; i<menuids.length; i++){
- var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
- for (var t=0; t<ultags.length; t++){
- ultags[t].parentNode.getElementsByTagName("a")[0].className+=" subfolderstyle"
- if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
- ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
- else //else if this is a sub level submenu (ul)
- ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
- ultags[t].parentNode.onmouseover=function(){
- this.getElementsByTagName("ul")[0].style.display="block"
- }
- ultags[t].parentNode.onmouseout=function(){
- this.getElementsByTagName("ul")[0].style.display="none"
- }
- }
- for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
- ultags[t].style.visibility="visible"
- ultags[t].style.display="none"
- }
- }
- }
- if (window.addEventListener)
- window.addEventListener("load", initsidebarmenu, false)
- else if (window.attachEvent)
- window.attachEvent("onload", initsidebarmenu)
- //]]>
- </script>
- <script type="text/javascript">
- //Tab Titles
- Cufon.replace('.cufonh2', { fontFamily: 'Gabrielle' });
- //Sidebar Titles
- Cufon.replace('h2.widgettitle', { fontFamily: 'Antipasto' });
- </script>
- <?php get_header(); ?>
- </head>
- <body>
- <div id="wraper">
- <div id="spacer">
- <div class="quickselect">
- <form name="jump">
- <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
- <option value="" class="jumpselect">- Wedding Directory Quick Select -</option>
- <optgroup label="Popular Categories">
- <option value="http://www.myweddingreviews.co.uk/photographers">Wedding Photographers</option>
- <option value="http://www.myweddingreviews.co.uk/wedding-cakes/wedding-cakes-wedding-cakes">Wedding Cakes</option>
- <option value="http://www.myweddingreviews.co.uk/video">Wedding Production</option>
- <option value="http://www.myweddingreviews.co.uk/transportation/classic-wedding-cars">Classic Cars</option>
- <option value="http://www.myweddingreviews.co.uk/transportation/luxury-wedding-cars">Luxury Cars</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/beauty-salons">Beauty Salons</option>
- </optgroup>
- <optgroup label="Wedding Accessories">
- <option value="http://www.myweddingreviews.co.uk/accessories/jewellery">Engagement Rings</option>
- <option value="http://www.myweddingreviews.co.uk/accessories/fragrances">Fragrances</option>
- <option value="http://www.myweddingreviews.co.uk/accessories/hats">Hats</option>
- <option value="http://www.myweddingreviews.co.uk/accessories/jewellery">Jewellery</option>
- <option value="http://www.myweddingreviews.co.uk/accessories/shoes-bags">Shoes & Bags</option>
- </optgroup>
- <optgroup label="Music & Entertainment">
- <option value="http://www.myweddingreviews.co.uk/entertainment/live-music">Live Music</option>
- <option value="http://www.myweddingreviews.co.uk/entertainment/djs">Wedding DJ's</option>
- <option value="http://www.myweddingreviews.co.uk/entertainment/creche">Wedding Creche</option>
- </optgroup>
- <optgroup label="For The Bride">
- <option value="http://www.myweddingreviews.co.uk/for-the-bride/bride-dresses">Bridal Dresses</option>
- <option value="http://www.myweddingreviews.co.uk/for-the-bride/lingerie">Bridal Lingerie</option>
- <option value="http://www.myweddingreviews.co.uk/accessories/shoes-bags">Bridal Shoes</option>
- <option value="http://www.myweddingreviews.co.uk/for-the-bride/bridesmaid">Bridesmaids</option>
- <option value="http://www.myweddingreviews.co.uk/for-the-bride/mother-of-the-bride">Mother of the Bride</option>
- <option value="http://www.myweddingreviews.co.uk/for-the-bride/tiara">Tiaras</option>
- <option value="http://www.myweddingreviews.co.uk/for-the-bride/hen-party">Hen Party</option>
- </optgroup>
- <optgroup label="Health & Beauty">
- <option value="http://www.myweddingreviews.co.uk/health-beauty/beauty-salons">Beauty Salons</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/hair-makeup">Hair & Makeup</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/spa">Luxury Spa</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/teeth-whitening">Teeth Whitening</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/fitness-clubs">Fitness Clubs</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/personal-trainer">Personal Trainers</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/golf-clubs">Golf Clubs</option>
- </optgroup>
- <optgroup label="Fashion & Style">
- <option value="http://www.myweddingreviews.co.uk/directory/accessories">Accessories</option>
- <option value="http://www.myweddingreviews.co.uk/accessories/shoes-bags">Shoes & Bags</option>
- <option value="http://www.myweddingreviews.co.uk/fashion-and-style/clothing">Clothing</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/teeth-whitening">Teeth Whitening</option>
- <option value="http://www.myweddingreviews.co.uk/health-beauty/fitness-clubs">Fitness Clubs</option>
- <option value="http://www.myweddingreviews.co.uk/accessories/fragrances">Perfumes</option>
- </optgroup>
- <optgroup label="Gift List Services">
- <option value="http://www.myweddingreviews.co.uk/gift-list-services/bespoke">Bespoke</option>
- <option value="http://www.myweddingreviews.co.uk/favours">Favours & Gifts</option>
- <option value="http://www.myweddingreviews.co.uk/stationery-invitations">Invotations & Stationery</option>
- <option value="http://www.myweddingreviews.co.uk/gift-list-services/luxury-goods">Luxury Goods</option>
- <option value="http://www.myweddingreviews.co.uk/gift-list-services/wedding-gifts">Wedding Gifts</option>
- </optgroup>
- <optgroup label="Luxury Holidays">
- <option value="http://www.myweddingreviews.co.uk/holiday/honeymoon">Honeymoons</option>
- <option value="http://www.myweddingreviews.co.uk/holiday/romantic-weekends">Romantic Weekends</option>
- </optgroup>
- <optgroup label="For The Groom">
- <option value="http://www.myweddingreviews.co.uk/groom/stag-party">Stag Nights</option>
- <option value="http://www.myweddingreviews.co.uk/groom/fashion">Fashion</option>
- </optgroup>
- <optgroup label="Transportation">
- <option value="http://www.myweddingreviews.co.uk/transportation/limo">Limo Hire</option>
- <option value="http://www.myweddingreviews.co.uk/transportation/luxury-wedding-cars">Luxury Wedding Cars</option>
- <option value="http://www.myweddingreviews.co.uk/transportation/sports-cars">Sports Cars</option>
- <option value="http://www.myweddingreviews.co.uk/transportation/classic-wedding-cars">Classic Cars</option>
- </optgroup>
- <optgroup label="Table & Venue Decorations">
- <option value="http://www.myweddingreviews.co.uk/table-venue-decorations/chair-covers">Chair Covers</option>
- <option value="http://www.myweddingreviews.co.uk/table-venue-decorations/lighting-mood-setting">Lighting & Mood Setting</option>
- </optgroup>
- <optgroup label="Wedding Cakes">
- <option value="http://www.myweddingreviews.co.uk/wedding-cakes/wedding-cakes-wedding-cakes">Wedding Cakes</option>
- <option value="http://www.myweddingreviews.co.uk/wedding-cakes/chocolate-fountain">Chocolate Fountains</option>
- <option value="http://www.myweddingreviews.co.uk/wedding-cakes/fairy-cakes">Fairy Cakes</option>
- <option value="http://www.myweddingreviews.co.uk/wedding-cakes/ice-sculptures">Ice Sculptures</option>
- </optgroup>
- <optgroup label="Other">
- <option value="http://www.myweddingreviews.co.uk/flowers">Wedding Flowers</option>
- <option value="http://www.myweddingreviews.co.uk/favours">Wedding Favours</option>
- <option value="http://www.myweddingreviews.co.uk/hotels-venues">Hotels & Venues</option>
- <option value="http://www.myweddingreviews.co.uk/caterers">Food & Caterers</option>
- <option value="http://www.myweddingreviews.co.uk/wedding-planners">Designer Wedding Planners</option>
- <option value="http://www.myweddingreviews.co.uk/stationery-invitations">Stationery & Invitations</option>
- </optgroup>
- </select>
- </form>
- </div>
- <div class="loginpopup">
- <?php if (is_user_logged_in()) {
- $user = wp_get_current_user();
- echo 'Welcome <strong>'.$user->display_name.'</strong> | <a href="http://www.myweddingreviews.co.uk/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fwww.myweddingreviews.co.uk%2F&_wpnonce=4d68bad222">Logout</a>';
- } else { ?>
- <a href="/wp-login.php?redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?>" class="simplemodal-login">Log In</a> <strong>|</strong>
- <a href="/wp-login.php?action=register" class="simplemodal-register">Register</a>
- <?php } ?>
- </div>
- <div style="float:right; width:160px; margin-top:8px; margin-right:-23px;">
- <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
- <a class="addthis_button_preferred_1"></a>
- <a class="addthis_button_preferred_2"></a>
- <a class="addthis_button_compact"></a>
- </div>
- </div>
- <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e1389f6699ee59a"></script>
- </div>
- <div class="slidewrapper">
- <div id="headerslide"> <!--width:560px; x 310px-->
- <img src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/images/weddingsearchslide1.jpg" width="990" height="310" alt="Wedding Directory search" />
- <!--<img src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/images/wedding-slide1.jpg" alt="Slideshow Image 1" class="active" />
- <img src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/images/header-photo3.jpg" alt="Slideshow Image 2" />
- <img src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/images/header-photo1.jpg" alt="Slideshow Image 3" /> -->
- <div class="newsfeeds">
- <a href="http://www.myweddingreviews.co.uk/feed/atom"><img height="16" width="16" src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/images/rss.png" alt="Wedding Directory news feed"></a>
- <a href="http://www.myweddingreviews.co.uk/feed/atom" title="Wedding Directory news feed">news feed</a>
- <a href="http://www.myweddingreviews.co.uk/comments/feed" title="Read The Wedding Directory Reviews" class="pr">
- <img height="16" width="16" src="http://www.myweddingreviews.co.uk/wp-content/themes/MyWeddingReviews/images/rss.png" alt="Wedding Directory Reviews feed"></a>
- <a href="http://www.myweddingreviews.co.uk/comments/feed" title="Wedding Directory Reviews feed">reviews feed</a>
- </div>
- </div>
- <div id="mainsearch">
- <?php if(function_exists('wp_custom_fields_search'))
- wp_custom_fields_search('preset-4'); ?>
- </div>
- </div>
- <div id="nav">
- <ul id="nav">
- <?php wp_list_pages('title_li=&depth=0&sort_column=menu_order&exclude=56'); ?>
- </ul>
- </div>
- <div id="content-wrap">
- <div id="main">
- <div style="float:right;">
- <label>Sort By:</label>
- <?php if (class_exists('WP_Smart_Sort')) { $wpss = new WP_Smart_Sort(); if (method_exists($wpss,'placesort')) { $wpss->placesort(); } } ?>
- </div>
- <div style="float:right;">
- <?php
- $current_cat = get_query_var('cat');
- $tag_slugs = array();
- global $query_string;
- query_posts( $query_string);
- // first loop to get all post tag (area) slugs
- while ( have_posts() ) {
- the_post();
- $tags = get_the_tags();
- if($tags) {
- foreach ($tags as $tag) {
- $tag_slugs[] = $tag->slug;
- }
- }
- }
- // remove duplicate tag slugs and sort them alphabetically
- $tag_slugs = array_unique($tag_slugs);
- sort($tag_slugs);
- ?>
- <?php
- // if there are tags show the form
- if(!empty($tag_slugs)) :
- ?>
- <form method="get" id="tag_order">
- <select name="select_tag">
- <option value="alltags" <?php selected( $_GET['area'],'alltags', 1 ); ?> onClick='window.location = "<?php echo get_category_link( $current_cat ); ?>"' >All Areas</option>
- <?
- foreach ( $tag_slugs as $tag_slug ) {
- $the_tag = get_term_by( 'slug', $tag_slug, 'post_tag' );
- echo '<option value="'.$the_tag->slug.'"'.selected($_GET['area'],$the_tag->slug, 1 );
- echo ' onClick=\'window.location = "'.get_category_link( $current_cat ).'?area='.$the_tag->slug.'"; return false;\'>'.$the_tag->name.'</option>';
- }
- ?>
- </select>
- </form>
- <?php endif; ?>
- <?php
- // very important to reset the query
- wp_reset_query(); ?>
- <?php
- if(isset($_GET['area']) && $_GET['area']) {
- // an areay was selected
- global $query_string;
- query_posts( $query_string.'&tag='.$_GET['area']);
- }
- ?>
- </div>
- <?php if(have_posts()): ?>
- <?php while(have_posts()): the_post(); ?>
- <div id="post-<?php the_ID(); ?>">
- <h2 class="cufonh2"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php the_title(); ?>
- </a> </h2>
- <div class="entry">
- <?php remove_filter('the_content', 'wpautop'); ?>
- <?php the_content(''); ?>
- <div class="clear"></div>
- <p class="postmeta">
- Category : <?php the_category(', ') ?>
- <strong>|</strong>
- Area : <?php the_tags(''); ?>
- <strong>|</strong>
- <?php comments_popup_link('No Reviews »', '1 Review »', '% Reviews »'); ?>
- </p>
- </div>
- </div>
- <?php endwhile; ?>
- <div class="navigation">
- <?php if(function_exists('wp_paginate')) {
- wp_paginate();
- } ?>
- </div>
- <?php else : ?>
- <div class="post">
- <!-- add in custom not found for search results with no listing -->
- <h2>
- <?php _e('Not Found'); ?>
- </h2>
- </div>
- <?php endif; ?>
- </div>
- <?php get_sidebar(); ?>
- </div>
- <div id="footer-wrap">
- <?php get_footer(); ?>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement