Browse Source

contract/sitemap

windhamdavid 2 years ago
parent
commit
862ec359e3
2 changed files with 10 additions and 1 deletions
  1. 8 0
      functions.php
  2. 2 1
      page-sitemap.php

+ 8 - 0
functions.php

@@ -115,6 +115,14 @@ function dw_scripts() {
 		wp_enqueue_script( 'form', get_template_directory_uri() . '/js/contact.js', '', '', true );	
 	}
 	
+	elseif ( is_page('contract') ) {
+		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( '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);

+ 2 - 1
page-sitemap.php

@@ -57,6 +57,7 @@ get_header(); ?>
 								<li><a href="https://davidawindham.com" title="Client" ><span class="fa fa-users fa-fw"></span> Client</a>
 									<ul>
 										<a href="https://sandbox.davidawindham.com/project/" title="Projects" ><span class="fa fa-cogs fa-fw"></span> Projects</a>
+										&nbsp; | <a href="../contract" title="Contract" ><span class="fa fa-pencil-square-o fa-fw"></span> Contract</a>
 										&nbsp; | <a href="../contact" title="Support" ><span class="fa fa-support fa-fw"></span> Support</a>
 										&nbsp; | <a href="https://sandbox.davidawindham.com/invoice/" title="Billing" ><span class="fa fa-calculator fa-fw"></span> Billing</a>
 										&nbsp; | <a href="../pay" title="Payments" ><span class="fa fa-credit-card fa-fw"></span> Payments</a>
@@ -67,7 +68,7 @@ get_header(); ?>
 									<ul>
 										<a href="../contact" title="Inquiry" ><span class="fa fa-question-circle fa-fw"></span> Inquiry</a>
 										&nbsp; | <a href="../mail" title="Subscribe" ><span class="fa fa-inbox fa-fw"></span> Mailing List</a>
-										&nbsp; | <a href="../contact/guestbook" title="Guestbook" ><span class="fa fa-pencil-square-o fa-fw"></span> Guest Book</a>
+										&nbsp; | <a href="../contact/guests" title="Guestbook" ><span class="fa fa-pencil-square fa-fw"></span> Guest Book</a>
 									</ul>
 								</li>
 								<br />