Move static content
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Jul 2014 17:32:25 +0000 (13:32 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Jul 2014 17:32:25 +0000 (13:32 -0400)
putting the static content under the listing part

Toolkit/Template/Page/Toolbox.php
static/10.phtml [new file with mode: 0644]
static/9.phtml

index 1e50f90..b6f282c 100644 (file)
@@ -167,8 +167,8 @@ class Toolkit_Template_Page_Toolbox implements Toolkit_Template_Page_IBody
 
                return $breadCrumbs .
                           $primaryParagraph .
-                          $staticPageContent .
                           $secondaryParagraphs .
+               $staticPageContent .
                           $coupons .
                           $photoGalleryContent;
        }
diff --git a/static/10.phtml b/static/10.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 e3e5c2a..b41e366 100644 (file)
@@ -780,5 +780,5 @@ $wizard->addAction('display', new ActionDisplay());
 $wizard->addAction('process', new ActionProcess());
 
 echo $wizard->run();
-$form = '<pre>'.print_r($_SESSION, true).'</pre>';
+//$form = '<pre>'.print_r($_SESSION, true).'</pre>';
 echo $form;