-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-contact.php
More file actions
95 lines (67 loc) · 4.26 KB
/
template-contact.php
File metadata and controls
95 lines (67 loc) · 4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* 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="post page">
<div class="inner">
<?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">
<h3><?php echo esc_html( $woo_options['woo_contact_title'] ); ?></h3>
<div class="col-left col-half">
<?php echo do_shortcode( '[soliloquy id="' . rbm_get_field( 'contact_left_slider' ) . '"]' ); ?>
<ul>
<li><?php echo rbm_get_field( 'contact_left_title' ); ?></li>
<li>
<?php printf( '<div class="address">%s<br> %s, %s %s</div>', rbm_get_field( 'contact_left_street_address' ), rbm_get_field( 'contact_left_city' ), rbm_get_field( 'contact_left_state' ), rbm_get_field( 'contact_left_zip' ) ); ?>
</li>
<li><?php _e('Tel:','woothemes'); ?> <?php echo esc_html( rbm_get_field( 'contact_left_phone' ) ); ?></li>
<li><?php _e('Fax:','woothemes'); ?> <?php echo esc_html( rbm_get_field( 'contact_left_fax' ) ); ?>
</ul>
</div>
<div class="col-right col-half">
<?php echo do_shortcode( '[soliloquy id="' . rbm_get_field( 'contact_right_slider' ) . '"]' ); ?>
<ul>
<li><?php echo rbm_get_field( 'contact_right_title' ); ?></li>
<li>
<?php printf( '<div class="address">%s<br> %s, %s %s</div>', rbm_get_field( 'contact_right_street_address' ), rbm_get_field( 'contact_right_city' ), rbm_get_field( 'contact_right_state' ), rbm_get_field( 'contact_right_zip' ) ); ?>
</li>
<li><?php _e('Tel:','woothemes'); ?> <?php echo esc_html( rbm_get_field( 'contact_right_phone' ) ); ?></li>
<li><?php _e('Fax:','woothemes'); ?> <?php echo esc_html( rbm_get_field( 'contact_right_fax' ) ); ?>
</ul>
</div>
</div><!-- /.location-twitter -->
<?php echo do_shortcode( '[hr]' ); ?>
<div class="col-full contact-below">
<?php echo apply_filters( 'the_content', rbm_get_field( 'contact_content' ) ); ?>
</div>
</section>
<?php
} // End WHILE Loop
}
?>
</div><!-- /.inner -->
</article><!-- /#contact-page -->
</section><!-- /#main -->
<?php woo_main_after(); ?>
<?php get_sidebar(); ?>
</div><!-- /#content -->
<?php get_footer(); ?>