From: Steve Sutton Date: Thu, 16 Oct 2014 13:14:18 +0000 (-0400) Subject: Plugin for QuickSites X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d50c980a227013b0ab3732d8b238c6dc7559b873;p=WP-Plugins%2FGlmQuickSite.git Plugin for QuickSites Holds states array Holds the data from the quicksite address phone numbers --- d50c980a227013b0ab3732d8b238c6dc7559b873 diff --git a/GlmQuickSite.php b/GlmQuickSite.php new file mode 100644 index 0000000..3c4d0e6 --- /dev/null +++ b/GlmQuickSite.php @@ -0,0 +1,292 @@ + 'businessName', + 'label' => 'Business Name', + 'type' => 'text' + ), + array( + 'name' => 'address', + 'label' => 'Address', + 'type' => 'text' + ), + array( + 'name' => 'city', + 'label' => 'City', + 'type' => 'text' + ), + array( + 'name' => 'state', + 'label' => 'State', + 'type' => 'state' + ), + array( + 'name' => 'zip', + 'label' => 'Zip', + 'type' => 'text' + ), + array( + 'name' => 'address2', + 'label' => 'Address 2', + 'type' => 'text' + ), + array( + 'name' => 'city2', + 'label' => 'City 2', + 'type' => 'text' + ), + array( + 'name' => 'state2', + 'label' => 'State 2', + 'type' => 'state' + ), + array( + 'name' => 'zip2', + 'label' => 'Zip 2', + 'type' => 'text' + ), + array( + 'name' => 'phone', + 'label' => 'Phone', + 'type' => 'text' + ), + array( + 'name' => 'fax', + 'label' => 'Fax', + 'type' => 'text' + ), + array( + 'name' => 'extra', + 'label' => 'Extra Content', + 'type' => 'textarea' + ), + ); + + foreach ($fieldNames as $field) { + glmQuickSiteAddSettingTextField($field['name'], $field['label'], $field['type']); + } + +} + +function glmQuickSiteRenderText($fieldName) { + static $options; + if (!$options) { + $options = get_option( 'glmQuickSite_settings' ); + } +?> + + + + + + +
+ +
+ +

glmQuickSite

+ + + +
+
+