<?php /* Template name: Sale */ get_header(); ?> <div id="content" class="page col-full"> <div id="main" class="col-left"> <?php if (wootique_get_woo_option('woo_breadcrumbs_show') == 'true') { ?> <?php woo_breadcrumbs(); ?> <?php } ?> <?php if (have_posts()) { $count = 0; ?> <?php while (have_posts()) { the_post(); $count++;
</div><!-- /#logo --> <?php woo_nav_before(); ?> <div id="navigation" class="col-full"> <?php if (function_exists('has_nav_menu') && has_nav_menu('primary-menu')) { wp_nav_menu(array('depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'primary-menu')); } else { ?> <ul id="main-nav" class="nav fl"> <?php if (wootique_get_woo_option('woo_custom_nav_menu') == 'true') { if (function_exists('woo_custom_navigation_output')) { woo_custom_navigation_output(); } } else { ?> <?php if (is_page()) { $highlight = "page_item"; } else { $highlight = "page_item current_page_item"; } ?> <li class="<?php echo $highlight; ?>
</div> <div id="credit" class="col-right"> <?php if (wootique_get_woo_option('woo_footer_right') == 'true') { echo stripslashes(wootique_get_woo_option('woo_footer_right_text')); } else { ?> <p><?php _e('Powered by', 'woothemes'); ?> <a href="http://www.wordpress.org">WordPress</a>. <?php _e('Designed by', 'woothemes'); ?> <a href="<?php echo wootique_get_woo_option('woo_footer_aff_link') ? esc_url(wootique_get_woo_option('woo_footer_aff_link')) : 'http://www.woothemes.com'; ?> "><img src="<?php echo get_template_directory_uri(); ?> /images/woothemes.png" width="74" height="19" alt="Woo Themes" /></a></p> <?php } ?> </div> </div><!-- /#footer --> </div><!-- /#wrapper --> <?php wp_footer();
<h1><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h1> </header> <section class="entry"> <?php if (wootique_get_woo_option('woo_post_content') == 'content') { the_content(__('Continue Reading →', 'woothemes')); } else { the_excerpt(); } ?> </section> </article><!-- /.post --> <?php } ?> </div> <?php
if (wootique_get_woo_option('woo_post_content') == 'content') { the_content(__('Read More...', 'woothemes')); } else { the_excerpt(); } ?> </div> <div class="fix"></div> <div class="post-more"> <span class="comments"><?php comments_popup_link(__('Leave a comment', 'woothemes'), __('1 Comment', 'woothemes'), __('% Comments', 'woothemes')); ?> </span> <?php if (wootique_get_woo_option('woo_post_content') == "excerpt") { ?> <span class="post-more-sep">•</span> <span class="read-more"><a href="<?php the_permalink(); ?> " title="<?php esc_attr_e('Continue Reading →', 'woothemes'); ?> "><?php _e('Continue Reading →', 'woothemes'); ?> </a></span> <?php } ?>
<?php // Don't display sidebar if full width if (wootique_get_woo_option('woo_layout') != "layout-full") { ?> <div id="sidebar" class="col-right"> <?php if (woo_active_sidebar('primary')) { ?> <div class="primary"> <?php woo_sidebar('primary'); ?> </div> <?php } ?> </div><!-- /#sidebar --> <?php }
function woo_subscribe_connect($widget = 'false', $title = '', $form = '', $social = '') { // Setup title if ($widget != 'true') { $title = wootique_get_woo_option('woo_connect_title'); } // Setup related post (not in widget) $related_posts = ''; if (wootique_get_woo_option('woo_connect_related') == "true" and $widget != "true") { $related_posts = do_shortcode('[related_posts limit="5"]'); } ?> <?php if (wootique_get_woo_option('woo_connect') == "true" or $widget == 'true') { ?> <div id="connect"> <h3><?php if ($title) { echo apply_filters('widget_title', $title); } else { _e('Subscribe', 'woothemes'); } ?> </h3> <div <?php if ($related_posts != '') { echo 'class="col-left"'; } ?> > <p><?php if (wootique_get_woo_option('woo_connect_content') != '') { echo stripslashes(wootique_get_woo_option('woo_connect_content')); } else { _e('Subscribe to our e-mail newsletter to receive updates.', 'woothemes'); } ?> </p> <?php if (wootique_get_woo_option('woo_connect_newsletter_id') != "" and $form != 'on') { ?> <form class="newsletter-form<?php if ($related_posts == '') { echo ' fl'; } ?> " action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open( 'http://feedburner.google.com/fb/a/mailverify?uri=<?php echo wootique_get_woo_option('woo_connect_newsletter_id'); ?> ', 'popupwindow', 'scrollbars=yes,width=550,height=520' );return true"> <input class="email" type="text" name="email" value="<?php esc_attr_e('E-mail', 'woothemes'); ?> " onfocus="if (this.value == '<?php _e('E-mail', 'woothemes'); ?> ') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('E-mail', 'woothemes'); ?> ';}" /> <input type="hidden" value="<?php echo wootique_get_woo_option('woo_connect_newsletter_id'); ?> " name="uri"/> <input type="hidden" value="<?php bloginfo('name'); ?> " name="title"/> <input type="hidden" name="loc" value="en_US"/> <input class="submit" type="submit" name="submit" value="<?php _e('Submit', 'woothemes'); ?> " /> </form> <?php } ?> <?php if (wootique_get_woo_option('woo_connect_mailchimp_list_url') != "" and $form != 'on' and wootique_get_woo_option('woo_connect_newsletter_id') == "") { ?> <!-- Begin MailChimp Signup Form --> <div id="mc_embed_signup"> <form class="newsletter-form<?php if ($related_posts == '') { echo ' fl'; } ?> " action="<?php echo wootique_get_woo_option('woo_connect_mailchimp_list_url'); ?> " method="post" target="popupwindow" onsubmit="window.open('<?php echo wootique_get_woo_option('woo_connect_mailchimp_list_url'); ?> ', 'popupwindow', 'scrollbars=yes,width=650,height=520');return true"> <input type="text" name="EMAIL" class="required email" value="<?php _e('E-mail', 'woothemes'); ?> " id="mce-EMAIL" onfocus="if (this.value == '<?php _e('E-mail', 'woothemes'); ?> ') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('E-mail', 'woothemes'); ?> ';}"> <input type="submit" value="<?php _e('Submit', 'woothemes'); ?> " name="subscribe" id="mc-embedded-subscribe" class="btn submit button"> </form> </div> <!--End mc_embed_signup--> <?php } ?> <?php if ($social != 'on') { ?> <div class="social<?php if ($related_posts == '' and wootique_get_woo_option('woo_connect_newsletter_id') != "") { echo ' fr'; } ?> "> <?php if (wootique_get_woo_option('woo_connect_rss') == "true") { ?> <a href="<?php if (wootique_get_woo_option('woo_feed_url')) { echo esc_url(wootique_get_woo_option('woo_feed_url')); } else { echo get_bloginfo_rss('rss2_url'); } ?> " class="subscribe"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-rss.png" title="<?php _e('Subscribe to our RSS feed', 'woothemes'); ?> " alt=""/></a> <?php } if (wootique_get_woo_option('woo_connect_twitter') != "") { ?> <a href="<?php echo esc_url(wootique_get_woo_option('woo_connect_twitter')); ?> " class="twitter"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-twitter.png" title="<?php _e('Follow us on Twitter', 'woothemes'); ?> " alt=""/></a> <?php } if (wootique_get_woo_option('woo_connect_facebook') != "") { ?> <a href="<?php echo esc_url(wootique_get_woo_option('woo_connect_facebook')); ?> " class="facebook"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-facebook.png" title="<?php _e('Connect on Facebook', 'woothemes'); ?> " alt=""/></a> <?php } if (wootique_get_woo_option('woo_connect_youtube') != "") { ?> <a href="<?php echo esc_url(wootique_get_woo_option('woo_connect_youtube')); ?> " class="youtube"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-youtube.png" title="<?php _e('Watch on YouTube', 'woothemes'); ?> " alt=""/></a> <?php } if (wootique_get_woo_option('woo_connect_flickr') != "") { ?> <a href="<?php echo esc_url(wootique_get_woo_option('woo_connect_flickr')); ?> " class="flickr"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-flickr.png" title="<?php _e('See photos on Flickr', 'woothemes'); ?> " alt=""/></a> <?php } if (wootique_get_woo_option('woo_connect_linkedin') != "") { ?> <a href="<?php echo esc_url(wootique_get_woo_option('woo_connect_linkedin')); ?> " class="linkedin"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-linkedin.png" title="<?php _e('Connect on LinkedIn', 'woothemes'); ?> " alt=""/></a> <?php } if (wootique_get_woo_option('woo_connect_delicious') != "") { ?> <a href="<?php echo esc_url(wootique_get_woo_option('woo_connect_delicious')); ?> " class="delicious"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-delicious.png" title="<?php _e('Discover on Delicious', 'woothemes'); ?> " alt=""/></a> <?php } if (wootique_get_woo_option('woo_connect_googleplus') != "") { ?> <a href="<?php echo esc_url(wootique_get_woo_option('woo_connect_googleplus')); ?> " class="googleplus"><img src="<?php echo get_template_directory_uri(); ?> /images/ico-social-googleplus.png" title="<?php _e('View Google+ profile', 'woothemes'); ?> " alt=""/></a> <?php } ?> </div> <?php } ?> </div><!-- col-left --> <?php if (wootique_get_woo_option('woo_connect_related') == "true" and $related_posts != '') { ?> <div class="related-posts col-right"> <h4><?php _e('Related Posts:', 'woothemes'); ?> </h4> <?php echo $related_posts; ?> </div><!-- col-right --> <?php wp_reset_query(); } ?> <div class="fix"></div> </div> <?php } }
function woostore_breadcrumb() { if (wootique_get_woo_option('woo_breadcrumbs_show') == 'true') { woo_breadcrumbs(); } }
?> <div id="post-entries"> <div class="nav-prev fl"><?php previous_post_link('%link', '<span class="meta-nav">←</span> %title'); ?> </div> <div class="nav-next fr"><?php next_post_link('%link', '%title <span class="meta-nav">→</span>'); ?> </div> <div class="fix"></div> </div><!-- #post-entries --> <?php $comm = wootique_get_woo_option('woo_comments'); if ($comm == "post" || $comm == "both") { ?> <?php comments_template('', true); ?> <?php } ?> <?php } } else { ?> <div <?php post_class();
function woo_feedburner_link($output, $feed = null) { $default = get_default_feed(); if (!$feed) { $feed = $default; } if (wootique_get_woo_option('woo_feed_url') && $feed == $default && !stristr($output, 'comments')) { $output = esc_url(wootique_get_woo_option('woo_feed_url')); } return $output; }