Setup nav and contact form
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 24 Apr 2014 14:52:47 +0000 (14:52 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 24 Apr 2014 14:52:47 +0000 (14:52 +0000)
Setting up navigation
Setting up Contact Form
Setting up link to contact form

12 files changed:
Toolkit/Page.php
Toolkit/RotatingImages/config.ini
Toolkit/Template/Navigation/AllInOneSideNav.php
Toolkit/Template/Navigation/Factory.php
Toolkit/Template/Navigation/MainNavigationAbstract.php
Toolkit/Template/Navigation/MainNavigationAllInOne.php
Toolkit/Template/Navigation/MainNavigationDynamic.php
admin/nav.phtml
config/application.ini
static/8.phtml [new file with mode: 0644]
styles.css
templates/template.html

index 5e4cfa3..c2b95ad 100755 (executable)
@@ -565,10 +565,14 @@ class Toolkit_Page
      */
     private function _getMainNav($catid)
     {
-        $nav          = $this->_navigationFactory->createMainNav();
-        $mainNavArray = $nav->getNavStructure($this->_pageGateway, $catid);
-
-        return $nav->renderPageNav($mainNavArray, 'tree');
+        $sideNav = new Toolkit_Template_Navigation_AllInOneSideNav(
+            $this->_pageGateway
+        );
+        $nav  = $sideNav->getNavigation();
+        unset($nav[HOME_ID]);
+        //var_dump($nav);exit;
+        $html = $sideNav->arrayToListHTML($nav);
+        return ($html) ? $html : '';
     }
 
     /**
index d5d582d..9988590 100644 (file)
@@ -3,8 +3,8 @@
 applicationName = "Homepage Slideshow"
 useTitles = On
 hasPrevNextLinks = Off
-width = 505
-height = 303
+width = 903
+height = 330
 
 ; time between the fades in milliseconds
 [rotation time]
index 2f2df53..1a72fc0 100755 (executable)
@@ -85,7 +85,7 @@ class Toolkit_Template_Navigation_AllInOneSideNav
                 } else {
                     $class = '';
                 }
-                $navArray[] = array(
+                $navArray[$row['id']] = array(
                     'id'     => $row['id'],
                     'parent' => $row['parent'],
                     'label'  => $row['navigation_name'],
@@ -124,5 +124,44 @@ class Toolkit_Template_Navigation_AllInOneSideNav
             Toolkit_Common::handleError($e);
         }
     }
+    /**
+     * arrayToListHTML
+     *
+     * @param mixed $array
+     * @param int $level
+     * @access public
+     * @return void
+     */
+    function arrayToListHTML($array, $level = 0)
+    {
+        static $tab = "\t", $format = '<a href="%s"%s>%s</a>';
+        if (empty($array)) {
+            return;
+        }
+        $tabs = str_repeat($tab, $level * 2);
+        $result = "{$tabs}<ul>\n";
+        foreach ($array as $i => $node) {
+            $class
+                = ($node['class'] == 'current')
+                ? ' class="'.$node['class'].'"'
+                : '';
+            $parent
+                = ($node['class'] == 'parent')
+                ? ' class="'.$node['class'].'"'
+                : '';
+            $link = sprintf(
+                $format,
+                $node['uri'],
+                $class,
+                $node['label']
+            );
+            $result .= "{$tabs}{$tab}<li{$parent}>\n{$tabs}{$tab}{$tab}"
+                . "{$link}\n"
+                . $this->arrayToListHTML($node['pages'], $level + 1)
+                . "{$tabs}{$tab}</li>\n";
+        }
+        $result .= "{$tabs}</ul>\n";
+        return $result;
+    }
 }
 
index 52c76e5..b918b34 100644 (file)
@@ -27,7 +27,7 @@
  * @link      <>
  */
 class Toolkit_Template_Navigation_Factory
-       extends Toolkit_NavigationFactoryAbstract
+    extends Toolkit_NavigationFactoryAbstract
 {
     /**
      * Description for $_gateway
@@ -35,7 +35,7 @@ class Toolkit_Template_Navigation_Factory
      * @var Toolkit_Toolbox_PageGatewayAbstract
      * @access private
      */
-       private $_gateway;
+    private $_gateway;
 
     /**
      * Sets gateway
@@ -45,10 +45,10 @@ class Toolkit_Template_Navigation_Factory
      * @access public
      * @return void
      */
-       public function setGateway(Toolkit_Toolbox_PageGatewayAbstract $gateway)
-       {
-               $this->_gateway = $gateway;
-       }
+    public function setGateway(Toolkit_Toolbox_PageGatewayAbstract $gateway)
+    {
+        $this->_gateway = $gateway;
+    }
 
     /**
      * NOTE: You have different renderers that you can choose for the main
@@ -66,14 +66,14 @@ class Toolkit_Template_Navigation_Factory
      * @access public
      * @return Toolkit_Template_Navigation_SideNavigation
      */
-       public function createSideNav(
-               Toolkit_Toolbox_PageGatewayAbstract $gateway = null
-       ) {
-               return new Toolkit_Template_Navigation_SideNavigation(
-                       new HTML_Menu(),
-                       new Toolkit_Template_Navigation_Renderer_DirectTreeSideNavTitle($this->_gateway)
-               );
-       }
+    public function createSideNav(
+        Toolkit_Toolbox_PageGatewayAbstract $gateway = null
+    ) {
+        return new Toolkit_Template_Navigation_SideNavigation(
+            new HTML_Menu(),
+            new Toolkit_Template_Navigation_Renderer_DirectTreeSideNavTitle($this->_gateway)
+        );
+    }
 
     /**
      * New main nav added can use
@@ -97,20 +97,23 @@ class Toolkit_Template_Navigation_Factory
      * @access public
      * @return Toolkit_Template_Navigation_MainNavigationDynamic
      */
-       public function createMainNav()
-       {
-               return new Toolkit_Template_Navigation_MainNavigationDynamic(
-                       new HTML_Menu(),
-            /**
-             * new Toolkit_Template_Navigation_Renderer_DirectTreeLiId(
-             * $this->_gateway,
-             * 'current'
-             * )
-             */
-                       new Toolkit_Template_Navigation_Renderer_DirectTreeLastLi(
-                               'lastli'
-                       )
-               );
-       }
+    public function createMainNav()
+    {
+        return new Toolkit_Template_Navigation_MainNavigationAllInOne(
+            new HTML_Menu(),
+            new Toolkit_Template_Navigation_Renderer_DirectTreeLiId(
+                $this->_gateway,
+                'current'
+            )
+        );
+        /*
+        return new Toolkit_Template_Navigation_MainNavigationDynamic(
+            new HTML_Menu(),
+            new Toolkit_Template_Navigation_Renderer_DirectTreeLastLi(
+                'lastli'
+            )
+        );
+         */
+    }
 }
 ?>
index 69accb3..c8f0f8c 100644 (file)
@@ -15,9 +15,9 @@
 
 /**
  * Toolkit_Template_Navigation_MainNavigationAbstract
- * 
+ *
  * Description of Toolkit_Template_Navigation_MainNavigationAbstract
- * 
+ *
  * @category  Toolkit
  * @package   Template/Navigation
  * @author    Jamie Kahgee <steve@gaslightmedia.com>
  * @link      <>
  */
 abstract class Toolkit_Template_Navigation_MainNavigationAbstract
-       extends Toolkit_NavigationAbstract implements Toolkit_INavigation
+    extends Toolkit_NavigationAbstract implements Toolkit_INavigation
 {
-       //      {{{     __construct()
+    //  {{{ __construct()
 
     /**
      * Class constructor
-     * 
+     *
      * @param HTML_Menu $menu
-     * @param HTML_Menu_Renderer $rEngine 
-     * 
+     * @param HTML_Menu_Renderer $rEngine
+     *
      * @access public
      */
-       public function __construct(
-               HTML_Menu $menu,
-               HTML_Menu_Renderer $rEngine
-       ) {
-               $this->menu      = $menu;
-               $this->rEngine   = $rEngine;
-       }
+    public function __construct(
+        HTML_Menu $menu,
+        HTML_Menu_Renderer $rEngine
+    ) {
+        $this->menu      = $menu;
+        $this->rEngine   = $rEngine;
+    }
 
-       //      }}}
-       //      {{{     setNavTemplates()
+    //  }}}
+    //  {{{ setNavTemplates()
 
     /**
      * Set nav templates
-     * 
+     *
      * @return void
-     * @access protected 
+     * @access protected
      */
-       protected function setNavTemplates()
-       {
-               $tpl = '<a href="%s" %s>{Title}</a>';
-               $this->rEngine->setEntryTemplate(
-                       HTML_MENU_ENTRY_INACTIVE,
-                       sprintf($tpl, '{url}', '', '{Title}')
-               );
-               $this->rEngine->setEntryTemplate(
-                       HTML_MENU_ENTRY_ACTIVE,
-                       sprintf($tpl, '{url}', 'id="current"', '{Title}')
-               );
-               $this->rEngine->setEntryTemplate(
-                       HTML_MENU_ENTRY_ACTIVEPATH,
-                       sprintf($tpl, '{url}', '', '{Title}')
-               );
-       }
+    protected function setNavTemplates()
+    {
+        $tpl = '<a href="%s" %s>{Title}</a>';
+        $this->rEngine->setEntryTemplate(
+            HTML_MENU_ENTRY_INACTIVE,
+            sprintf($tpl, '{url}', '', '{Title}')
+        );
+        $this->rEngine->setEntryTemplate(
+            HTML_MENU_ENTRY_ACTIVE,
+            sprintf($tpl, '{url}', 'id="current"', '{Title}')
+        );
+        $this->rEngine->setEntryTemplate(
+            HTML_MENU_ENTRY_ACTIVEPATH,
+            sprintf($tpl, '{url}', '', '{Title}')
+        );
+    }
 
-       //      }}}
-       //      {{{     setCurrentIndex()
+    //  }}}
+    //  {{{ setCurrentIndex()
 
     /**
      * Set current index
-     * 
+     *
      * @access protected
-     * @return void 
+     * @return void
      */
-       protected function setCurrentIndex()
-       {
-               $this->menu->forceCurrentIndex($_GET['catid']);
-       }
+    protected function setCurrentIndex()
+    {
+        $this->menu->forceCurrentIndex($_GET['catid']);
+    }
 
-       //      }}}
-       //      {{{     getNavSructure()
+    //  }}}
+    //  {{{ getNavSructure()
 
     /**
      * Create a static array of nav items to use
-        *
+     *
      * @return array navigational array hash
      * @access public
      */
-       public function getNavStructure() {}
+    public function getNavStructure() {}
 
-       //      }}}
+    //  }}}
 }
 ?>
index 36e45d9..66dbcc4 100644 (file)
  * @link      <>
  */
 class Toolkit_Template_Navigation_MainNavigationAllInOne
-       extends Toolkit_Template_Navigation_MainNavigationAbstract
+    extends Toolkit_Template_Navigation_MainNavigationAbstract
 {
 
     /**
      * Recursive function to create a multi dimensional array for sub nav
-        *
-        * create tree (A) at the starting page level, pass the tree up to
-        * parent page, where tree (B) is created for that level. append
-        * tree A to tree B as a sub under the correct parent
-        *
-        * @param Toolkit_Toolbox_GatewayAbstract $gateway  Toolbox gateway
-        * @param integer                         $id       id to get subtree for
-        * @param array                           $tree     subtree created to be
-        *                                                  passed up to the parent
-        *                                                  level
-        * @param integer                         $appendTo pageId to append the
-        *                                                  passed up subtree to
-        *
+     *
+     * create tree (A) at the starting page level, pass the tree up to
+     * parent page, where tree (B) is created for that level. append
+     * tree A to tree B as a sub under the correct parent
+     *
+     * @param Toolkit_Toolbox_GatewayAbstract $gateway  Toolbox gateway
+     * @param integer                         $id       id to get subtree for
+     * @param array                           $tree     subtree created to be
+     *                                                  passed up to the parent
+     *                                                  level
+     * @param integer                         $appendTo pageId to append the
+     *                                                  passed up subtree to
+     *
      * @return array navigational array hash
      * @access public
      */
-       public function getNavStructure(
-               Toolkit_Toolbox_GatewayAbstract $gateway,
-               $id
-       ) {
+    public function getNavStructure(
+        Toolkit_Toolbox_GatewayAbstract $gateway,
+        $id
+    ) {
         static $currentPage;
         if (!$currentPage) {
-               $currentPage = $gateway->findNavItem($id);
+            $currentPage = $gateway->findNavItem($id);
             $this->_currentPage = $currentPage['navigation_name'];
             $subPages = $gateway->findAllByParent(0);
         } else {
             $subPages = $gateway->findAllByParent($id);
         }
-               $nav = array();
-               foreach ($subPages as $subPage) {
-                       // no home page in sub nav
-                       if (defined('MEMBERS_CATEGORY') && MEMBERS_CATEGORY) {
-                               if (  ($subPage['parent'] != MEMBERS_CATEGORY)
-                                       && $subPage['active']
-                               ) {
-                                       $nav[$subPage['id']] = array(
-                                               'Title' => htmlspecialchars($subPage['navigation_name']),
-                                               'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
-                                       );
-                               }
-                       } else {
-                               if ($subPage['active']) {
-                                       $nav[$subPage['id']] = array(
-                                               'Title' => htmlspecialchars($subPage['navigation_name']),
-                                               'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
-                                       );
-                               }
-                       }
+        $nav = array();
+        foreach ($subPages as $subPage) {
+            // no home page in sub nav
+            if (defined('MEMBERS_CATEGORY') && MEMBERS_CATEGORY) {
+                if (  ($subPage['parent'] != MEMBERS_CATEGORY)
+                    && $subPage['active']
+                ) {
+                    $nav[$subPage['id']] = array(
+                        'Title' => htmlspecialchars($subPage['navigation_name']),
+                        'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
+                    );
+                }
+            } else {
+                if ($subPage['active']) {
+                    $nav[$subPage['id']] = array(
+                        'Title' => htmlspecialchars($subPage['navigation_name']),
+                        'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
+                    );
+                }
+            }
             $isSubPage = $this->isSubOfPage($currentPage['id'], $subPage['id']);
             if ($isSubPage) {
                 $nav[$subPage['id']]['sub']
                     = $this->getNavStructure($gateway, $subPage['id']);
             }
-               }
+        }
         return $nav;
-       }
+    }
 
     /**
      * Checks to see if the given $id is a sub page of the $parent
index 8e3c079..117b5b1 100644 (file)
@@ -15,9 +15,9 @@
 
 /**
  * Toolkit_Template_Navigation_MainNavigationDynamic
- * 
+ *
  * Description of Toolkit_Template_Navigation_MainNavigationDynamic
- * 
+ *
  * @category  Toolkit
  * @package   Template/Navigation
  * @author    Jamie Kahgee <steve@gaslightmedia.com>
  * @link      <>
  */
 class Toolkit_Template_Navigation_MainNavigationDynamic
-       extends Toolkit_Template_Navigation_MainNavigationAbstract
+    extends Toolkit_Template_Navigation_MainNavigationAbstract
 {
-       //      {{{     getNavSructure()
+    //  {{{ getNavSructure()
 
     /**
      * Recursive function to create a multi dimensional array for sub nav
-        *
-        * create tree (A) at the starting page level, pass the tree up to
-        * parent page, where tree (B) is created for that level. append
-        * tree A to tree B as a sub under the correct parent
-        *
-        * @param Toolkit_Toolbox_GatewayAbstract $gateway  Toolbox gateway
-        * @param integer                         $id       id to get subtree for
-        * @param array                           $tree     subtree created to be
-        *                                                  passed up to the parent
-        *                                                  level
-        * @param integer                         $appendTo pageId to append the
-        *                                                  passed up subtree to
-        *
+     *
+     * create tree (A) at the starting page level, pass the tree up to
+     * parent page, where tree (B) is created for that level. append
+     * tree A to tree B as a sub under the correct parent
+     *
+     * @param Toolkit_Toolbox_GatewayAbstract $gateway  Toolbox gateway
+     * @param integer                         $id       id to get subtree for
+     * @param array                           $tree     subtree created to be
+     *                                                  passed up to the parent
+     *                                                  level
+     * @param integer                         $appendTo pageId to append the
+     *                                                  passed up subtree to
+     *
      * @return array navigational array hash
      * @access public
      */
-       public function getNavStructure(
-               Toolkit_Toolbox_GatewayAbstract $gateway,
-               $id,
-               array $tree = null,
-               $appendTo = null
-       ) {
+    public function getNavStructure(
+        Toolkit_Toolbox_GatewayAbstract $gateway,
+        $id,
+        array $tree = null,
+        $appendTo = null
+    ) {
         $id                 = 0;
-               $currentPage        = $gateway->findNavItem($id);
-               $this->_currentPage = $currentPage['navigation_name'];
+        $currentPage        = $gateway->findNavItem($id);
+        $this->_currentPage = $currentPage['navigation_name'];
 
-               $subPages = $gateway->findAllByParent($id);
+        $subPages = $gateway->findAllByParent($id);
 
-               $nav = array();
-               foreach ($subPages as $subPage) {
-                       // no home page in sub nav
-                       if (defined('MEMBERS_CATEGORY') && MEMBERS_CATEGORY) {
-                               if (  ($subPage['parent'] != MEMBERS_CATEGORY)
-                                       && $subPage['active']
-                               ) {
-                                       $nav[$subPage['id']] = array(
-                                               'Title' => htmlspecialchars($subPage['navigation_name']),
-                                               'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
-                                       );
-                               }
-                       } else {
-                               if ($subPage['active']) {
-                                       $nav[$subPage['id']] = array(
-                                               'Title' => htmlspecialchars($subPage['navigation_name']),
-                                               'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
-                                       );
-                               }
-                       }
-               }
+        $nav = array();
+        foreach ($subPages as $subPage) {
+            // no home page in sub nav
+            if (defined('MEMBERS_CATEGORY') && MEMBERS_CATEGORY) {
+                if (  ($subPage['parent'] != MEMBERS_CATEGORY)
+                    && $subPage['active']
+                ) {
+                    $nav[$subPage['id']] = array(
+                        'Title' => htmlspecialchars($subPage['navigation_name']),
+                        'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
+                    );
+                }
+            } else {
+                if ($subPage['active']) {
+                    $nav[$subPage['id']] = array(
+                        'Title' => htmlspecialchars($subPage['navigation_name']),
+                        'url' => Toolkit_Template_Page::getSeoUrl($gateway, $subPage['id'])
+                    );
+                }
+            }
+        }
 
-               if (is_array($tree) && array_key_exists($appendTo, $nav)) {
-                       $nav[$appendTo]['sub'] = $tree;
-               }
+        if (is_array($tree) && array_key_exists($appendTo, $nav)) {
+            $nav[$appendTo]['sub'] = $tree;
+        }
 
-               if ($currentPage['parent'] != 0) {
-                       return $this->getNavStructure(
-                               $gateway,
-                               $currentPage['parent'],
-                               $nav,
-                               $id
-                       );
-               } else {
-                       return $nav;
-               }
-       }
+        if ($currentPage['parent'] != 0) {
+            return $this->getNavStructure(
+                $gateway,
+                $currentPage['parent'],
+                $nav,
+                $id
+            );
+        } else {
+            return $nav;
+        }
+    }
 
-       //      }}}
+    //  }}}
 }
 ?>
index 86816e3..dcff3d6 100644 (file)
@@ -85,7 +85,7 @@ if (defined('BANNERS') && BANNERS) {
     $nav['Banners'] = MEDIA_BASE_URL.'admin/banners.php';
 }
 if (defined('CONTACT_DB') && CONTACT_DB) {
-    $nav['Contacts'] = MEDIA_BASE_URL.'admin/Contact/';
+    //$nav['Contacts'] = MEDIA_BASE_URL.'admin/Contact/';
 }
 if (defined('EVENT_DB') && EVENT_DB) {
     $nav['Events']
index 1de01fc..f6ef5cb 100644 (file)
@@ -126,7 +126,7 @@ ticketing.cat_seo = Off
 employment.application = Off
 videos.application = On
 seasons.application = Off
-blocks.application = Off
+blocks.application = On
 ; development server configuration data inherits from production and
 ; overrides values as necessary
 [development : production]
diff --git a/static/8.phtml b/static/8.phtml
new file mode 100644 (file)
index 0000000..705e836
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+if ($catid = filter_input(INPUT_GET, 'catid', FILTER_VALIDATE_INT)) {
+       $cf = new Toolkit_Contacts_ContactUs(
+               Toolkit_Database::getInstance(),
+               'contact_form',
+               'post',
+               BASE_URL . "index.php?catid=$catid"
+       );
+       $cf->configureForm();
+       $cf->useCaptcha(true);
+       echo $cf->toHtml();
+}
index 5afd020..2b00b51 100644 (file)
@@ -34,13 +34,13 @@ body {
 }
 
 h1:empty, h2:empty, h3:empty {
-       display: none;
+    display: none;
 }
 a img {
-       border: 0 none;
-       display: block;
-       margin: 0;
-       padding: 0;
+    border: 0 none;
+    display: block;
+    margin: 0;
+    padding: 0;
 }
 #toolbox #category, #toolbox.listing {
     display:block;
@@ -50,28 +50,28 @@ a img {
 
 
 #toolbox #category img, #toolbox .listing img {
-       display: block;
-       border: 0;
-       max-width: 100%;
-       height: auto;
+    display: block;
+    border: 0;
+    max-width: 100%;
+    height: auto;
 }
 
 input[type="radio"], input[type="checkbox"] {
-       line-height: normal;
+    line-height: normal;
 }
 .webform table {
-       margin: 10px 0 0 0;
-       clear: both;
+    margin: 10px 0 0 0;
+    clear: both;
 }
 .req {
-       clear: both !important;
+    clear: both !important;
 }
 .tooltip {
-       padding: 0 0 0 5px;
+    padding: 0 0 0 5px;
 }
 .file-download {
-       padding: 0;
-       margin:0;
+    padding: 0;
+    margin:0;
 }
 .avi  { background-image: url(images/file-ext/avi.gif); }
 .doc  { background-image: url(images/file-ext/doc.gif); }
@@ -88,10 +88,10 @@ input[type="radio"], input[type="checkbox"] {
 .zip  { background-image: url(images/file-ext/zip.png); }
 .download {  background-image: url(images/file-ext/download.gif); clear: none;}
 *:focus {
-       outline: none;
+    outline: none;
 }
 .nobreak {
-       white-space: nowrap;
+    white-space: nowrap;
 }
 /********************************************************************** HEADER */
 header {
@@ -205,9 +205,19 @@ header a:active {
 /********************************************************************** HERO */
 #hero {
     width: 100%;
-    height: 525px;
     background-image: url(img/hero_bg.jpg);
 }
+#home #hero {
+    /* height: 350px; */
+    height: auto;
+}
+#inside #hero {
+    /* height: 100px; */
+    height: auto;
+}
+#slider-wrapper {
+    height: 330px;
+}
 #hero_wrap {
     width: 1070px;
     margin: 0 auto;
@@ -295,26 +305,26 @@ header a:active {
 }
 #toolbox .imageright  {
     display: block;
-       float: right;
-       margin: 15px0;
-       width: auto;
-       max-width: 50%;
-       position: relative;
-       border: 0;
-       padding: 10px;
-       background: #FFF;
+    float: right;
+    margin: 15px0;
+    width: auto;
+    max-width: 50%;
+    position: relative;
+    border: 0;
+    padding: 10px;
+    background: #FFF;
     overflow:hidden;
 }
 #toolbox .imageleft {
     display: block;
-       float: left;
-       margin: 15px0;
-       width: auto;
-       max-width: 50%;
-       position: relative;
-       border: 0;
-       padding: 10px;
-       background: #FFF;
+    float: left;
+    margin: 15px0;
+    width: auto;
+    max-width: 50%;
+    position: relative;
+    border: 0;
+    padding: 10px;
+    background: #FFF;
     overflow:hidden;
 }
 .imagecaption {
index 06d1ad6..599ef2e 100644 (file)
             <div id="header_wrap"> <img id="logo" src="{mediaBaseURL:h}img/logo.png" width="140" height="165" alt="Cedarville Marine Logo" />
                 <h1><img src="{mediaBaseURL:h}img/wordmark.jpg" width="550" height="85" alt="Cedarville Marine - Serving the Les Cheneaux Islands recreational boating industry since 1984" /><!-- image is temporary - waiting for font from client --></h1>
                 <p class="tel">906.484.2815</p>
-                <ul>
-                    <li><a href="#" title="Services">Services</a>
-                    <ul>
-                        <li><a href="#" title="Capabilities">Capabilities</a></li>
-                        <li><a href="#" title="Service Forms">Service Forms</a>
-                        <ul>
-                            <li><a href="#" title="Service Request">Service Request</a></li>
-                            <li><a href="#" title="Launch Request">Launch Request</a></li>
-                            <li><a href="#" title="Temporary Storage">Temporary Storage</a></li>
-                        </ul>
-                        </li>
-                        <li><a href="#" title="Seaweed Removal">Seaweed Removal</a></li>
-                    </ul>
-                    </li>
-                    <li><a href="#" title="Store">Store</a>
-                    <ul>
-                        <li><a href="#" title="Summer Gear">Summer Gear</a>
-                        <ul>
-                            <li><a href="#" title="Apparel">Apparel</a></li>
-                            <li><a href="#" title="Tubes & Rafts">Tubes &amp; Rafts</a></li>
-                            <li><a href="#" title="Boating Accessories">Boating Accessories</a></li>
-                        </ul>
-                        </li>
-                        <li><a href="#" title="Winter Gear">Winter Gear</a>
-                        <ul>
-                            <li><a href="#" title="Apparel">Apparel</a></li>
-                            <li><a href="#" title="Snowmobile Accessories">Snowmobile Accessories</a></li>
-                        </ul>
-                        </li>
-                        <li><a href="#" title="Snowmobile & ATV's">Snowmobile &amp; ATV's</a></li>
-                    </ul>
-                    </li>
-                    <li><a href="#" title="Facilities">Facilities</a>
-                    <ul>
-                        <li><a href="#" title="Marina">Marina</a></li>
-                        <li><a href="#" title="Snow Shop">Snow Shop</a></li>
-                        <li><a href="#" title="Rates">Rates</a></li>
-                    </ul>
-                    </li>
-                    <li><a href="#" title="Storage">Storage</a>
-                    <ul>
-                        <li><a href="#" title="Facility">Facility</a></li>
-                        <li><a href="#" title="Storage Agreement">Storage Agreement</a></li>
-                    </ul>
-                    </li>
-                    <li><a href="#" title="Area Information">Area Information</a>
-                    <ul>
-                        <li><a href="#" title="Area Weather">Area Weather</a>
-                        <ul>
-                            <li><a href="#" title="Cedarville">Cedarville</a></li>
-                            <li><a href="#" title="DeTour">DeTour</a></li>
-                            <li><a href="#" title="Mackinac Island">Mackinac Island</a></li>
-                        </ul>
-                        </li>
-                        <li><a href="#" title="Local Attractions">Local Attractions</a></li>
-                        <li><a href="#" title="Events">Events</a></li>
-                        <li><a href="#" title="Organizations">Organizations</a></li>
-                    </ul>
-                    </li>
-                    <li><a href="#" title="About Us">About Us</a>
-                    <ul>
-                        <li><a href="#" title="History">History</a></li>
-                        <li><a href="#" title="Staff">Staff</a></li>
-                        <li><a href="#" title="Hours of Operation">Hours of Operation</a></li>
-                    </ul>
-                    </li>
-                    <li><a href="#" title="Contact">Contact</a></li>
-                </ul>
+                {mainNav:h}
             </div><!-- header_wrap -->
             </header>
             <section id="hero">
             <div id="hero_wrap">
+                {if:rotatingImages}
+                    {rotatingImages:h}
+                {end:}
                 <!-- slideshow -->
-                <div id="quicklink_wrap">
-                    <div class="quicklink_block">
-                        <h2>Summer Gear</h2>
-                        <ul>
-                            <li>Apparel</li>
-                            <li>Tubes &amp; Rafts</li>
-                            <li>Boat Accessories</li>
-                        </ul>
-                    </div>
-                    <div class="quicklink_block">
-                        <h2>Docks Available</h2>
-                    </div>
-                    <div class="quicklink_block">
-                        <h2>Seaweed Removal</h2>
-                    </div>
-                    <div class="quicklink_block last_q_block">
-                        <h2>Boat &amp; Engine Repair</h2>
-                    </div>
-                </div><!-- quicklink_wrap -->
             </div>
             <!-- hero_wrap -->
             </section>
                         {toolboxContent:h}
                     </div><!-- toolbox -->
 
-                    <!-- **************************************************************************** GLM Blocks from another web site... ******************************************* -->
-
                     <section flexy:if="hasHeadlines" id="hHlines" class="opensearchserver.ignore">
                     <h2>Headlines</h2><!-- this is not needed and is set to display:none; in the css -->
                     <ul>
                     <li><img src="{mediaBaseURL:h}img/footer_elipse.png" alt="graphic element" /></li>
                     <li class="tel">906.484.2815</li>
                     <li><img src="{mediaBaseURL:h}img/footer_elipse.png" alt="graphic element" /></li>
-                    <li><a href="#" >Contact Us</a></li>
+                    <li><a href="{baseURLDefined:h}contact-8/" >Contact Us</a></li>
                 </ul>
             </address>
-            <p class="copyright">Copyright &copy;i<?php echo date('Y');?>, Cedarville Marine.  Produced by Gaslight Media, All Rights Reserved</p>
+            <p class="copyright">Copyright &copy;<?php echo date('Y');?>, Cedarville Marine.  Produced by Gaslight Media, All Rights Reserved</p>
             </footer>
         </div>
         <!-- container -->