Add streamsend settings and enews form
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 2 May 2014 18:48:23 +0000 (18:48 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 2 May 2014 18:48:23 +0000 (18:48 +0000)
add enews form
setup streamsend account info
setup admin contact app link in nav file

Toolkit/Contacts/ServiceRequest.php
Toolkit/Contacts/TempStorageQuickLaunch.php
Toolkit/Contacts/config.ini
admin/nav.phtml
config/application.ini
static/18.phtml [new file with mode: 0644]

index ceb02b0..175d1b7 100755 (executable)
@@ -56,7 +56,7 @@ class Toolkit_Contacts_ServiceRequest
      * @var string
      * @access protected
      */
-    protected $contactType = '2';
+    protected $contactType = '5';
     /**
      * Email subject and <h1> header in email
      *
index 149bfac..387eeb1 100755 (executable)
@@ -56,7 +56,7 @@ class Toolkit_Contacts_TempStorageQuickLaunch
      * @var string
      * @access protected
      */
-    protected $contactType = '2';
+    protected $contactType = '6';
     /**
      * Email subject and <h1> header in email
      *
index c77d0d2..93f02dd 100644 (file)
@@ -10,5 +10,7 @@ sequence = "contact_id_seq"
 [contact_types]
 1 = "Web Contact"
 2 = "E-News"
-3 = "Travel Planner"
-4 = "Visitor Guide"
+;3 = "Travel Planner"
+;4 = "Visitor Guide"
+5 = "Service Request"
+6 = "Temp Storage and Launch"
index dcff3d6..86816e3 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 88622f6..dd905fd 100644 (file)
@@ -18,15 +18,15 @@ contactdb.html_email = "ON"
 
 ; STREAM SEND API
 ; Turn on the streamsend module to use with our contact application
-contactdb.streamsend.application = Off
+contactdb.streamsend.application = On
 ; Login id for the streamsend account
-contactdb.streamsend.login = Off
+contactdb.streamsend.login = "J01jwSGuu5nK"
 ; Transaction key for the streamsend account
-contactdb.streamsend.key = Off
+contactdb.streamsend.key = "6Te2uojLrWNNezPR"
 ; Streamsend account name
-contactdb.streamsend.account_name = Off
+contactdb.streamsend.account_name = "Cedarville Marine"
 ; Streamsend audience number
-contactdb.streamsend.audience = Off
+contactdb.streamsend.audience = 1
 
 ; CONSTANT CONTACT API
 ; Constant Contact forms
diff --git a/static/18.phtml b/static/18.phtml
new file mode 100644 (file)
index 0000000..951785d
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+if ($catid = filter_input(INPUT_GET, 'catid', FILTER_VALIDATE_INT)) {
+    $cf = new Toolkit_Contacts_ENewsSignup(
+        Toolkit_Database::getInstance(),
+        'contact_form',
+        'post',
+        BASE_URL . "index.php?catid=$catid"
+    );
+    $cf->configureForm();
+    $cf->useCaptcha(true);
+    echo $cf->toHtml();
+}