Browse Source

update forms

windhamdavid 3 years ago
parent
commit
7183785cea
4 changed files with 56 additions and 3 deletions
  1. 30 1
      css/form.css
  2. 24 1
      functions.php
  3. 1 0
      inc/form.php
  4. 1 1
      inc/tweaks.php

+ 30 - 1
css/form.css

@@ -27,10 +27,39 @@ body .gform_wrapper.gf_reset_wrapper :focus { outline: 0 }
 	padding-left:20px !important;
 }
 
+.gform_button {
+  color: #0275d8;
+  background-image: none;
+  background-color: transparent;
+  border-color: #0275d8;
+}
 
+.gform_button:hover {
+  color: #fff;
+  background-color: #0275d8;
+  border-color: #0275d8;
+}
 
+.gform_right {
+	float:right;
+}
+.gform_left {
+	float:left;
+}
+.gf_total {
+	font-size:23px;
+	padding: 0 0 25px 0;
 
-
+}
+.gf_stripe {
+	background:url("../img/stripe_outline.png") no-repeat right top;
+}
+#gform_submit_button_5 {
+	font-size:23px;
+}
+.gform_spinner {
+	
+}
 
 /*
 ----------------------------------------------------------------

+ 24 - 1
functions.php

@@ -90,7 +90,7 @@ function dw_scripts() {
 		//wp_enqueue_script( 'offcanvas', get_template_directory_uri() . '/js/jasny-bootstrap.js', 'jquery', '', true );
 		//wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/scripts.js', 'jquery', '', true );
 		wp_enqueue_script( 'scriptmin', get_template_directory_uri() . '/js/script.min.js', '', '', true );
-		wp_enqueue_script( 'last-fm', get_template_directory_uri() . '/js/art.js', 'jquery', '', true );
+		wp_enqueue_script( 'art', get_template_directory_uri() . '/js/art.js', 'jquery', '', true );
 	}
 	
 	elseif ( is_page('contact') ) {
@@ -103,6 +103,29 @@ function dw_scripts() {
 		wp_enqueue_script('stripe', 'https://js.stripe.com/v2/', array(), '3', true);
 		wp_enqueue_script( 'form', get_template_directory_uri() . '/js/contact.js', '', '', true );	
 	}
+	
+	elseif ( is_page('guests') ) {
+		require( get_template_directory() . '/inc/form.php' );
+		//gravity_form_enqueue_scripts(1, false);
+		wp_enqueue_style( 'gforms', get_template_directory_uri() . '/css/form.css');
+		wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-3.1.0.min.js', array(), false, true);
+		//wp_enqueue_script( 'scriptmin', get_template_directory_uri() . '/js/script.min.js', 'jquery', '', true );
+		//wp_enqueue_script( 'script-o', get_template_directory_uri() . '/js/script-o.js', '', '', true );
+		//wp_enqueue_script('stripe', 'https://js.stripe.com/v2/', array(), '3', true);
+		wp_enqueue_script( 'form', get_template_directory_uri() . '/js/contact.js', '', '', true );	
+	}
+	
+	elseif ( is_page('pay') ) {
+		require( get_template_directory() . '/inc/form.php' );
+		//gravity_form_enqueue_scripts(1, false);
+		wp_enqueue_style( 'gforms', get_template_directory_uri() . '/css/form.css');
+		wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-3.1.0.min.js', array(), false, true);
+		wp_enqueue_script( 'scriptmin', get_template_directory_uri() . '/js/script.min.js', 'jquery', '', true );
+		//wp_enqueue_script( 'script-o', get_template_directory_uri() . '/js/script-o.js', '', '', true );
+		//wp_enqueue_script('stripe', 'https://js.stripe.com/v2/', array(), '3', true);
+		//wp_enqueue_script( 'form', get_template_directory_uri() . '/js/contact.js', '', '', true );	
+	}
+	
 	elseif ( is_page('analytics') ) {
 		require( get_template_directory() . '/inc/analytics.php' );
 		//wp_enqueue_style( 'dashboard', get_template_directory_uri() . '/css/analytics.css');

+ 1 - 0
inc/form.php

@@ -1,5 +1,6 @@
 <?php 
 
+
 add_filter('gform_field_content', 'boot_gf', 10, 5);
 function boot_gf ($content, $field, $value, $lead_id, $form_id) {
 	if($field["type"] != 'hidden' && $field["type"] != 'list' && $field["type"] != 'multiselect' && $field["type"] != 'checkbox' && $field["type"] != 'fileupload' && $field["type"] != 'date' && $field["type"] != 'html' && $field["type"] != 'address') {

+ 1 - 1
inc/tweaks.php

@@ -172,5 +172,5 @@ function dw_deliver_form_mail() {
 	}
 }
 
-
+add_shortcode('dwsearch', 'get_search_form');
 ?>