{layout='layouts/_contact-layout'} {!-- 404 Redirect ============ This is a single entry channel page, it only needs a second segment when the form has been successfully submitted. So we use the following code to make sure the page sends a 404 if someone types in an incorrect URL in the browser address bar. i.e. http://example.com/page/nothing --} {if segment_2 AND segment_2 != 'thanks'} {redirect='404'} {/if} {!-- page vars (prefix p_) --} {preload_replace:p_title='contact {site_name}'} {preload_replace:p_description='contact {site_name}'} {preload_replace:p_url='contact'} {!-- channel vars (prefix ch_) --} {preload_replace:ch='contact'} {preload_replace:ch_disable='categories|category_fields|member_data|pagination'} {!-- layout vars, channel/page related --} {layout:set name='ch' value='{ch}'} {layout:set name='p_url' value='{p_url}'} {layout:set name='p_title' value='{p_title}'} {layout:set name='ch_disable' value='{ch_disable}'} {exp:channel:entries channel='{ch}' disable='{ch_disable}' limit='1'} {!-- layout vars, dynamic, not output --} {layout:set name='title' value='{seo_title}{gv_sep}'} {layout:set name='description' value='{seo_desc}'} {!-- OpenGraph meta output --} {layout:set name='og_title' value='{seo_title}'} {layout:set name='og_url'}{path='{p_url}'}{/layout:set} {layout:set name='og_description' value='{seo_desc}'} {!-- /layout vars, dynamic, not output --} {!-- content output --}

{title} Required Fields ✱

{!-- page_content is a textarea with HTML output we don't need to wrap this tag with HTML as that is already included in it's output. --} {page_content} {!-- /content output --} {!-- no results redirect =================== If the page doesn't exist, we redirect to 404. --} {if no_results} {redirect='404'} {/if} {/exp:channel:entries}
{!-- only show this thank you message if segment_2 is thanks --} {if segment_2 == 'thanks'}

email sent

Thanks, your email was sent, we'll respond in 48 hours or less.

✕ Close
{/if} {!-- email contact form --} {exp:email:contact_form form_class='contact-form' return='{site_url}index.php/{p_url}/thanks' redirect='0'}
What do you want to be called?
How do we contact you?
What did you want to discuss?
Please keep it kind, brief and courteous.
{/exp:email:contact_form}