Update theme for proxy files
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 7 Jan 2016 21:17:23 +0000 (16:17 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 7 Jan 2016 21:17:23 +0000 (16:17 -0500)
Getting the navigation from the live keweenaw site.

assets/block-img-1.jpeg [new file with mode: 0644]
assets/block-img-2.jpeg [new file with mode: 0644]
functions.php
header.php
parts/off-canvas-menu.php
parts/top-bar.php

diff --git a/assets/block-img-1.jpeg b/assets/block-img-1.jpeg
new file mode 100644 (file)
index 0000000..007c1fa
Binary files /dev/null and b/assets/block-img-1.jpeg differ
diff --git a/assets/block-img-2.jpeg b/assets/block-img-2.jpeg
new file mode 100644 (file)
index 0000000..a96c1c6
Binary files /dev/null and b/assets/block-img-2.jpeg differ
index bef0cd2..91e4e23 100644 (file)
@@ -75,6 +75,25 @@ function glm_site_scripts()
 
 }
 
+function keweenaw_get_season()
+{
+    // create curl resource
+    $ch = curl_init();
+
+    // set url
+    curl_setopt($ch, CURLOPT_URL, "http://www.keweenaw.info/season.php");
+
+    //return the transfer as a string
+    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+
+    // $output contains the output string
+    $output = curl_exec($ch);
+
+    // close curl resource to free up system resources
+    curl_close($ch);
+    return $output;
+}
+
 
 /* Header for posts*/
 function glm_get_header() {
index fbd1cee..8b1481f 100644 (file)
@@ -11,7 +11,7 @@
         <link rel="stylesheet" href="http://www.keweenaw.info/css/foundation.min.css">
         <link rel="stylesheet" href="http://www.keweenaw.info/css/normalize.css">
         <link rel="stylesheet" href="http://www.keweenaw.info/styles.css?v=1">
-        <link rel="stylesheet" href="http://www.keweenaw.info/css/winter.css">
+        <link rel="stylesheet" href="http://www.keweenaw.info/css/<?php echo keweenaw_get_season();?>">
         <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/appblog.css">
         <script src="http://www.keweenaw.info/js/vendor/modernizr.js"></script>
         <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
@@ -61,7 +61,7 @@
             <div class="row collapse header-content">
                 <div class="small-12 medium-7 columns header-image">
                     <div class="center-image">
-                        <img src="http://is0.gaslightmedia.com/keweenawconventionvisitorsbureau/headline/is03-1447080902-50344.jpeg" />
+                        <img src="<?php echo get_stylesheet_directory_uri() ; ?>/assets/block-img-1.jpeg" />
                     </div>
                 </div>
                 <div class="small-12 medium-5 columns content">
@@ -69,7 +69,7 @@
                     <hr />
                     <p>Objibwa for &ldquo;to portage&rdquo;, Keweenaw&#39;s name is attributed to the route the natives used when paddling birch bark canoes. The Keweenaw Peninsula is technically an island, separated from the rest of the UP by the Portage Canal at it&#39;s sister cities of Houghton and Hancock (50 miles south of Copper Harbor).</p>
                     <div class="north"></div>
-                    <img src="http://is0.gaslightmedia.com/keweenawconventionvisitorsbureau/headline2/is63-1447080969-55212.jpeg" />
+                    <img src="<?php echo get_stylesheet_directory_uri() ; ?>/assets/block-img-2.jpeg" />
                 </div>
             </div>
             <ul class="breadcrumbs opensearchserver.ignore">
index 7d00f4e..ffe997c 100644 (file)
@@ -10,7 +10,6 @@
     <?php
     // create curl resource
     $ch = curl_init();
-    $option = filter_input(INPUT_GET, 's');
 
     // set url
     curl_setopt($ch, CURLOPT_URL, "http://www.keweenaw.info/off-canvas-nav.php");
index c3ab6f8..9523e24 100644 (file)
@@ -11,7 +11,6 @@
     <?php
     // create curl resource
     $ch = curl_init();
-    $option = filter_input(INPUT_GET, 's');
 
     // set url
     curl_setopt($ch, CURLOPT_URL, "http://www.keweenaw.info/nav.php");