Main nav dropdown styles
authorLaury GvR <laury@gaslightmedia.com>
Wed, 13 Aug 2014 18:49:21 +0000 (14:49 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 13 Aug 2014 19:01:49 +0000 (15:01 -0400)
Also minor edit to importHtImages which was still
referencing PetoskeyArea. A js for videos added.

Toolkit/CKImages/Database/importHtImages.php
Toolkit/Page.php
Toolkit/Videos/libjs/thickbox.js [new file with mode: 0644]
styles.css
templates/template.html

index 5aaa481..3aa5b5b 100755 (executable)
@@ -3,7 +3,7 @@ require_once '../../../setup.phtml';
 // set this to the real sites url
 // is0.gaslightmedia.com will only fetch the images if
 // it has access and it cannot do http auth
-define('HT_IMAGES_URL', 'http://www.petoskeyarea.com/images/ht_images/');
+define('HT_IMAGES_URL', 'http://www.keweenaw.info/images/ht_images/');
 $dbh = Toolkit_Database::getInstance();
 $import = new Toolkit_CKImages_Database_Import($dbh);
 $import->runImport();
index 9eb526a..bf05339 100755 (executable)
@@ -173,12 +173,12 @@ class Toolkit_Page
 
     private function _video()
     {
-        //$GLOBALS['styleSheets'][]
-        //   = GLM_APP_BASE_URL . 'gallery/colorbox/colorbox.css';
-        //$GLOBALS['bottomScripts'][]
-        //    = GLM_APP_BASE_URL . 'libjs/plugins/colorbox/1.3.15/jquery.colorbox-min.js';
-        //$GLOBALS['bottomScripts'][]
-        //    = BASE_URL . 'Toolkit/Videos/libjs/thickbox.js';
+        $GLOBALS['styleSheets'][]
+           = GLM_APP_BASE_URL . 'gallery/colorbox/colorbox.css';
+        $GLOBALS['bottomScripts'][]
+            = GLM_APP_BASE_URL . 'libjs/plugins/colorbox/1.3.15/jquery.colorbox-min.js';
+        $GLOBALS['bottomScripts'][]
+            = BASE_URL . 'Toolkit/Videos/libjs/thickbox.js';
         $GLOBALS['bottomScripts'][]
             = BASE_URL . 'Toolkit/Videos/libjs/videos.js';
         $dbh = Toolkit_Database::getInstance();
diff --git a/Toolkit/Videos/libjs/thickbox.js b/Toolkit/Videos/libjs/thickbox.js
new file mode 100644 (file)
index 0000000..3a52e5f
--- /dev/null
@@ -0,0 +1,14 @@
+var ThickBox = {
+    init: function() {
+        $('a.colorbox').colorbox({iframe: true, innerWidth:425, innerHeight:344});
+        $('select.posSelect').each(function () {
+            $(this).change(function(){
+                var id = $(this).attr('rel');
+                var newpos = $(this).attr('value');
+                window.location.href = '../video-move/' + id + '/' + newpos + '/';
+            });
+        });
+    }
+};
+
+$(document).ready(ThickBox.init);
\ No newline at end of file
index 7599213..ead61bc 100644 (file)
@@ -18,6 +18,14 @@ time, mark, audio, video {
   font-size: 100%;
 /*  vertical-align: baseline;*/
 }
+
+nav.top-bar .top-bar-section > ul > li.shopping ul.dropdown,
+nav.top-bar .top-bar-section > ul > li.calendar ul.dropdown,
+                                    .restaurants .dropdown {
+    right: -1% !important;
+    left: auto !important;
+} 
+
 .glmCheckBox {
     width: auto;
     margin-bottom: 1rem;
index ac81654..ea165e0 100644 (file)
                     <p>Get the Keweenaw Adventure Guide and Others!</p>
                     <ul>
                       <li><a href="#">View Online</a></li>
-                      <li><a href="#">Request by mail</a></li>
+                      <li><a href="{mediaBaseURL:h}request-guides-&-maps-20">Request by mail</a></li>
                     </ul>
                   </div>
                 </div>
               </div>
               <div class="small-12 medium-6 large-4 columns text-center video">
                 <a href="#"><img src="{mediaBaseURL:h}assets/video_image.png" /></a>
-                <p>View our Videos</p>
+                <a href="{mediaBaseURL:h}videos-37"><p>View our Videos</p></a>
               </div>
               <div class="small-12 medium-6 large-3 columns weather">
                 <div class="right">