Browse Source

old products

windhamdavid 2 years ago
parent
commit
4b7c6571cf
6 changed files with 467 additions and 0 deletions
  1. 78 0
      offerpage.php
  2. 42 0
      page.php
  3. 65 0
      product-detail.php
  4. 65 0
      product-list.php
  5. 169 0
      products.css
  6. 48 0
      products.php

+ 78 - 0
offerpage.php

@@ -0,0 +1,78 @@
+<?php
+/*
+Template Name: Offer Page
+*/
+?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Default_Theme
+ */
+
+get_header(); ?>
+<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+       <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_directory' ); ?>/products.css" />
+       
+       <h2>Special Offers</h2>
+       
+      <p>&nbsp;</p>
+	   
+	   <?php //echo do_shortcode("[coupon couponid=163]"); ?>
+       
+        <hr style="border: none;border-top: dashed 2px #000000;" />
+       
+       <p>&nbsp;</p>
+       
+   
+              
+       <?php
+include "servervars.php";
+$ch = curl_init();
+			$timeout = 5;
+			$url="http://www.".$serverone."/central/getoffer.php?guid=$guid&width=$width&s=$serverone";
+			curl_setopt($ch,CURLOPT_URL,$url);
+			curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
+			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
+			$data = curl_exec($ch);
+			curl_close($ch);
+$offertext= $data;
+if($offertext!="")
+	{
+		echo $offertext;
+	}
+	else
+	{
+?>
+ <!-- Enter Offer Text html here -->
+        <?php	 		 		 	 if(have_posts()): ?>
+        <?php	 		 		 	 while(have_posts()): the_post() ?>
+            <div id="holder">
+                <!--<h1><?php	 		 		 	 the_title() ?></h1>-->
+                <?php	 		 		 	 if(is_page() or is_single()): ?>
+                <?php	 		 		 	 the_content() ?>
+                <?php	 		 		 	 else: ?>
+                <?php	 		 		 	 the_excerpt() ?>
+                <a href="<?php	 		 		 	 the_permalink() ?>">Read More</a>
+                <?php	 		 		 	 endif ?>
+                <div class="meta">
+                    <p><?php	 		 		 	 edit_post_link(__('Edit This')); ?></p>
+                </div>
+            </div><!-- holder -->
+            <?php	 		 		 	 endwhile ?>
+        <?php	 		 		 	 endif ?>
+
+
+<!-- End Offer Text html here --> 
+	<?php }?>
+    
+    
+ <div id="clear"></div>
+     
+      </div>
+       </div>
+        </div>
+            
+
+<?php get_footer(); ?>

+ 42 - 0
page.php

@@ -0,0 +1,42 @@
+<?php
+/**
+ * The template for displaying all pages
+ *
+ * This is the template that displays all pages by default.
+ * Please note that this is the WordPress construct of pages and that
+ * other 'pages' on your WordPress site will use a different template.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 1.0
+ */
+
+get_header(); ?>
+<?php if ( is_front_page() ) { ?>
+	<div class="slider">
+		<div class="bg-color">
+			<div class="inner-wrapper">
+				<?php 
+    echo do_shortcode("[metaslider id=130]"); 
+?>
+			</div>
+		</div>
+	</div>
+<?php } ?>
+
+<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+			<?php
+				// Start the Loop.
+				while ( have_posts() ) : the_post();
+					// Include the page content template.
+					get_template_part( 'content', 'page' );
+				endwhile;
+			?>
+		</div><!-- #content -->
+	</div><!-- #primary -->
+</div><!-- #main-content -->
+
+<?php
+get_footer();

+ 65 - 0
product-detail.php

@@ -0,0 +1,65 @@
+<?php
+/*
+Template Name: Product Detail
+*/
+/**
+ * The template for displaying all pages.
+ *
+ * This is the template that displays all pages by default.
+ * Please note that this is the WordPress construct of pages
+ * and that other 'pages' on your WordPress site will use a
+ * different template.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Ten
+ * @since Twenty Ten 1.0
+ */
+
+ ?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Default_Theme
+ */
+
+get_header(); ?>
+<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+      <?php
+include "servervars.php";
+$id=$_GET['id'];
+//$producttitle= file_get_contents("http://www.".$serverone."/central/gettitle.php?id=$id");
+$ch = curl_init();
+			$timeout = 5;
+			$url="http://www.".$serverone."/central/gettitledetails.php?id=$id";
+			curl_setopt($ch,CURLOPT_URL,$url);
+			curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
+			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
+			$data = curl_exec($ch);
+			curl_close($ch);
+$producttitle= $data;
+$ch = curl_init();
+			$timeout = 5;
+			$url="http://www.".$serverone."/central/getdetails.php?id=$id&width=$width&guid=$guid&s=$serverone";
+			curl_setopt($ch,CURLOPT_URL,$url);
+			curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
+			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
+			$data = curl_exec($ch);
+			curl_close($ch);
+$data=str_replace('.php', '/', $data); 
+$productcontent= $data;
+//$productcontent= file_get_contents("http://www.".$serverone."/central/getlisting.php?id=$id&width=$width&guid=$guid&s=$serverone");
+?>
+
+<link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_directory' ); ?>/products.css" />
+
+
+<?php echo $productcontent; ?>
+ <div id="clear"></div>
+     
+      </div>   
+      </div>  
+      </div>    
+
+<?php get_footer(); ?>

+ 65 - 0
product-list.php

@@ -0,0 +1,65 @@
+<?php
+/*
+Template Name: Product List
+*/
+/**
+ * The template for displaying all pages.
+ *
+ * This is the template that displays all pages by default.
+ * Please note that this is the WordPress construct of pages
+ * and that other 'pages' on your WordPress site will use a
+ * different template.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Ten
+ * @since Twenty Ten 1.0
+ */
+
+ ?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Default_Theme
+ */
+
+get_header(); ?>
+<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+      <?php
+include "servervars.php";
+$id=$_GET['id'];
+//$producttitle= file_get_contents("http://www.".$serverone."/central/gettitle.php?id=$id");
+$ch = curl_init();
+			$timeout = 5;
+			$url="http://www.".$serverone."/central/gettitle.php?id=$id";
+			curl_setopt($ch,CURLOPT_URL,$url);
+			curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
+			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
+			$data = curl_exec($ch);
+			curl_close($ch);
+$producttitle= $data;
+$ch = curl_init();
+			$timeout = 5;
+			$url="http://www.".$serverone."/central/getlisting.php?id=$id&width=$width&guid=$guid&s=$serverone";
+			curl_setopt($ch,CURLOPT_URL,$url);
+			curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
+			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
+			$data = curl_exec($ch);
+			curl_close($ch);
+$data=str_replace('.php', '/', $data); 
+$productcontent= $data;
+//$productcontent= file_get_contents("http://www.".$serverone."/central/getlisting.php?id=$id&width=$width&guid=$guid&s=$serverone");
+?>
+
+<link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_directory' ); ?>/products.css" />
+
+
+<?php echo $productcontent; ?>
+ <div id="clear"></div>
+     
+      </div>  
+      </div>  
+      </div>  
+
+<?php get_footer(); ?>

+ 169 - 0
products.css

@@ -0,0 +1,169 @@
+/* Main product menu */
+#product-menu {
+	height:244px;
+	width:546px;
+	margin:0 auto;
+	text-align:center;
+}
+a.product-menu-item{
+	float:left;
+	margin-right:10px;
+	width:129px;
+	height:122px;
+	border: none;
+	background:url(../images/product-menu.png) no-repeat;
+	overflow:hidden;
+	text-indent:-9999px;
+	display:block;
+	cursor:pointer;
+}
+#product-menu a.last {
+	margin-right:0;
+}
+
+.typetitle{
+	color:#bb2702;
+}
+a#air-conditioners {background-position:0 0;}
+a#air-conditioners:hover {background-position:0 -244px;}
+a#heat-pumps {background-position:-129px 0;}
+a#heat-pumps:hover {background-position:-129px -244px;}
+a#furnaces {background-position:-258px 0;}
+a#furnaces:hover {background-position:-258px -244px;}
+a#air-handlers {background-position:-387px 0;}
+a#air-handlers:hover {background-position:-387px -244px;}
+a#thermostats {background-position:0 -122px;}
+a#thermostats:hover {background-position:0 -366px;}
+a#indoor-air-quality {background-position:-129px -122px;}
+a#indoor-air-quality:hover {background-position:-129px -366px;}
+a#packaged-units {background-position:-258px -122px;}
+a#packaged-units:hover {background-position:-258px -366px;}
+a#humidifiers {background-position:-387px -122px;}
+a#humidifiers:hover {background-position:-387px -366px;}
+
+#uvaire{
+	width:568px;
+	height:128px;
+	margin:0 auto;	
+}
+#uvaire a{
+	width:568px;
+	height:130px;
+	border: none;
+	background:url(../images/uv-aire-products.jpg) no-repeat 0 0;
+	overflow:hidden;
+	text-indent:-9999px;
+	display:block;
+	cursor:pointer;
+}
+#uvaire a:hover{
+	background:url(../images/uv-aire-products.jpg) no-repeat 0 -126px;
+}
+
+#selectunit{
+	font-size:14px;
+	font-weight:bold;
+	background-color:#000;
+	color:#ffffff;
+	height:25px;
+	line-height:1.8em;
+	vertical-align:middle;
+	border-right:#000 2px solid;
+}
+.typetitle{
+	font-size:14px;
+	font-weight:bold;
+	color:#316cd2;
+
+}
+a.typetitle,a.typetitle:active,a.typetitle:visited{
+	font-size:14px;
+	font-weight:bold;
+	color:#316cd2;
+
+}
+a.typetitle:hover{
+	font-size:14px;
+	font-weight:bold;
+	color:#e84500;
+
+}
+.typetext{
+	font-size:14px;
+	font-weight:normal;
+	float:left;
+}
+#typesholder{
+	background-color:#eeeeee;
+	border:#cccccc 1px solid;
+	/*border-left:#cccccc 1px solid;
+	border-right:#cccccc 1px solid;
+	border-bottom:#cccccc 1px solid;
+	height:100px;*/
+}
+.typeholder{
+	float:left;
+	position:relative;
+	overflow:visible;
+}
+.unitlink{
+	font-size:14px;
+	font-weight:normal;
+	margin-left:0;
+}
+a.return_class {
+	font-size:14px;
+	font-weight:bold;
+	display:block;
+	padding-top:20px;
+	padding-bottom:20px;
+}
+#productimgholder{
+	vertical-align:top;
+	float:left;
+	text-align:center;
+	padding-top:20px;
+
+}
+#productdescrholder{
+	vertical-align:top;
+	float:left;
+	width: 550px;
+
+
+}
+#productdescrholder p {
+line-height:1.2em;
+}
+.clear{
+	clear:both;
+}
+.typeholderinner{
+	padding:5px;
+	min-height:150px;
+	overflow:visible;
+/*	height:100px;*/
+}
+nav ul, nav li, footer ul, footer li { margin: 0; list-style:none; list-style-image: none; }
+
+
+
+
+/* Products Landing */
+.products_landing header {background:#383838 url(/Residential/img/products/bg_hdr_youngcouple_landing.jpg) right top no-repeat;}
+.products_landing .main_content {padding-top:50px;}
+.product_categories {float:left;font-size:0;width:840px;margin:0 auto;text-align:center;}
+.product_categories li {display: inline-block;font-size:18px;margin-top:-1px;margin-right:-1px;position:relative;}
+.product_categories li img {display:block;}
+#product_content {
+    margin-left: 30px;
+}
+#product_content .product_categories li a {display:block;padding:32px 18px 17px 18px;background:#fff url(/Residential/img/products/bg_landing_item.png) bottom left repeat-x;border:1px solid #dedede;text-decoration:none;}
+#product_content .product_categories li a:hover {background:#bcbcbc url(/Residential/img/products/bg_landing_item.png) top left repeat-x;}
+#product_content .product_categories li.subnav a:hover {background:#fff url(/Residential/img/products/bg_landing_item.png) bottom left repeat-x;}
+.product_categories li a, .product_categories li h2 {font-family:'FuturaMdCnBTMedium', Arial, sans-serif;font-size:13px;color:#303030;line-height:16px;font-weight:normal;-webkit-font-smoothing:antialiased;}
+.product_categories li h2 {margin-top:23px;position:relative;z-index:1;}
+.product_categories li ul {display:none;position:absolute;top:0;left:0;width:100%;height:100%;padding-top:25px;background:url(/Residential/img/products/bg_landing_item_overlay.png) top left repeat;}
+.product_categories li ul li {float:none;display:block;margin:0;}
+#product_content .product_categories li ul li a {background:none;padding:5px 0;color:#fff;border:0;font-size:16px;}
+#product_content .product_categories li ul li a:hover, #product_content .product_categories li.subnav ul li a:hover {background:url(/Residential/img/products/bg_landing_text_over.png) top left repeat-x;}

+ 48 - 0
products.php

@@ -0,0 +1,48 @@
+<?php
+/*
+Template Name: Products
+*/
+?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Default_Theme
+ */
+
+get_header(); ?>
+<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+       <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_directory' ); ?>/products.css" />
+       
+      
+       
+      <?php
+				// Start the Loop.
+				while ( have_posts() ) : the_post();
+					// Include the page content template.
+					get_template_part( 'content', 'page' );
+				endwhile;
+			?>
+			<?php
+include "servervars.php";
+
+//echo file_get_contents("http://www.".$serverone."/central/getcats.php?guid=$guid&width=$width&s=$serverone"); 
+$ch = curl_init();
+			$timeout = 5;
+			$url="http://www.".$serverone."/central/getcats.php?guid=$guid&width=$width&s=$serverone";
+			curl_setopt($ch,CURLOPT_URL,$url);
+			curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
+			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
+			$data = curl_exec($ch);
+			curl_close($ch);
+			$data=str_replace('.php', '/', $data); 
+			echo $data;
+?>
+
+  <div id="clear"></div>
+     
+      </div>  
+      </div>  
+      </div>  
+<?php get_footer(); ?>