Created
November 18, 2018 21:12
-
-
Save bulentsakarya/82661aa2081a769284f7c4f0d50ca978 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Contact Form | |
* | |
* The contact form page template displays the a | |
* simple contact form in your website's content area. | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
global $woo_options; | |
get_header(); | |
?> | |
<div id="content" class="col-full"> | |
<?php woo_main_before(); ?> | |
<section id="main" class="col-left"> | |
<article id="contact-page" class="page type-page"> | |
<?php if ( have_posts() ) { ?> | |
<?php while ( have_posts() ) { the_post(); ?> | |
<header> | |
<h1><?php the_title(); ?></h1> | |
</header> | |
<section class="entry"> | |
<?php the_content(); ?> | |
<div class="location-twitter fix"> | |
<?php if ( isset( $woo_options['woo_contact_panel'] ) && $woo_options['woo_contact_panel'] == 'true' ) { ?> | |
<section id="office-location"<?php if ( ( isset( $woo_options['woo_contact_twitter'] ) && $woo_options['woo_contact_twitter'] != '' ) || ( isset($woo_options['woo_contact_subscribe_and_connect']) && $woo_options['woo_contact_subscribe_and_connect'] == 'true' ) ) { ?> class="col-left"<?php } ?>> | |
<?php if (isset($woo_options['woo_contact_title'])) { ?><h3><?php echo $woo_options['woo_contact_title']; ?></h3><?php } ?> | |
<ul> | |
<?php if (isset($woo_options['woo_contact_title']) && $woo_options['woo_contact_title'] != '' ) { ?><li><?php echo $woo_options['woo_contact_address']; ?></li><?php } ?> | |
<?php if (isset($woo_options['woo_contact_number']) && $woo_options['woo_contact_number'] != '' ) { ?><li><?php _e('Tel:','woothemes'); ?> <?php echo $woo_options['woo_contact_number']; ?></li><?php } ?> | |
<?php if (isset($woo_options['woo_contact_fax']) && $woo_options['woo_contact_fax'] != '' ) { ?><li><?php _e('Fax:','woothemes'); ?> <?php echo $woo_options['woo_contact_fax']; ?></li><?php } ?> | |
<?php if (isset($woo_options['woo_contactform_email']) && $woo_options['woo_contactform_email'] != '' ) { ?><li><?php _e('Email:','woothemes'); ?> <a href="mailto:<?php echo $woo_options['woo_contactform_email']; ?>"><?php echo $woo_options['woo_contactform_email']; ?></a></li><?php } ?> | |
</ul> | |
</section> | |
<?php } ?> | |
<div class="contact-social<?php if ( ( isset( $woo_options['woo_contact_panel'] ) && $woo_options['woo_contact_panel'] == 'true' ) && ( ( isset( $woo_options['woo_contact_twitter'] ) && $woo_options['woo_contact_twitter'] != '' ) || ( isset($woo_options['woo_contact_subscribe_and_connect']) && $woo_options['woo_contact_subscribe_and_connect'] == 'true' ) ) ) { ?> col-right<?php } ?>"> | |
<?php if ( isset( $woo_options['woo_contact_twitter'] ) && $woo_options['woo_contact_twitter'] != '' ) { ?> | |
<section id="twitter"> | |
<h3>Twitter</h3> | |
<ul id="twitter_update_list_123"><li></li></ul> | |
<?php echo woo_twitter_script(123, $woo_options['woo_contact_twitter'],1); ?> | |
</section> | |
<?php } ?> | |
<?php if ( isset($woo_options['woo_contact_subscribe_and_connect']) && $woo_options['woo_contact_subscribe_and_connect'] == 'true' ) { woo_subscribe_connect(); } ?> | |
</div> | |
</div><!-- /.location-twitter --> | |
</section> | |
<?php if ( isset($woo_options['woo_contactform_map_coords']) && $woo_options['woo_contactform_map_coords'] != '' ) { $geocoords = $woo_options['woo_contactform_map_coords']; } else { $geocoords = ''; } ?> | |
<?php if ($geocoords != '') { ?> | |
<?php woo_maps_contact_output("geocoords=$geocoords"); ?> | |
<?php echo do_shortcode( '[hr]' ); ?> | |
<?php } ?> | |
<?php if( isset( $hasError ) || isset( $captchaError ) ) { ?> | |
<p class="alert"><?php _e( 'There was an error submitting the form.', 'woothemes' ); ?></p> | |
<?php } ?> | |
<?php if ( get_option( 'woo_contactform_email' ) == '' ) { ?> | |
<?php echo do_shortcode( '[box type="alert"]' . __( 'E-mail has not been setup properly. Please add your contact e-mail!', 'woothemes' ) . '[/box]' ); ?> | |
<?php } ?> | |
<?php | |
} // End WHILE Loop | |
} | |
} | |
?> | |
</article><!-- /#contact-page --> | |
</section><!-- /#main --> | |
<?php woo_main_after(); ?> | |
<?php get_sidebar(); ?> | |
</div><!-- /#content --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment