123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?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> </p>
-
- <?php //echo do_shortcode("[coupon couponid=163]"); ?>
-
- <hr style="border: none;border-top: dashed 2px #000000;" />
-
- <p> </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(); ?>
|