Skip to content

Commit

Permalink
Tweaking regional contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
damsean102 committed Mar 25, 2015
1 parent f2d23c2 commit 3f8e859
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 75 deletions.
10 changes: 10 additions & 0 deletions wp-content/themes/krunch/css/includes/_general_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,16 @@ a {
text-align: center;
}

&.regional-contact {
h1, h2, h3, h4, h5, h6 {
text-align: left;
}

p {
text-align: left;
}
}

#gform_wrapper_2 {
margin: 50px 0;
}
Expand Down
4 changes: 4 additions & 0 deletions wp-content/themes/krunch/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ a {
text-align: center; }
.contact p {
text-align: center; }
.contact.regional-contact h1, .contact.regional-contact h2, .contact.regional-contact h3, .contact.regional-contact h4, .contact.regional-contact h5, .contact.regional-contact h6 {
text-align: left; }
.contact.regional-contact p {
text-align: left; }
.contact #gform_wrapper_2 {
margin: 50px 0; }
.contact .keyContacts img {
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/krunch/css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-content/themes/krunch/js/krunch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 0 additions & 72 deletions wp-content/themes/krunch/tpl-contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,77 +34,5 @@
</div><!-- END OF container DIV -->
</div><!-- END OF content DIV -->

<?php

$bgImgID = get_field('region_bg_image');
$bgImgSRC = wp_get_attachment_image_src($bgImgID, 'full');

?>

<!-- <div class="regions regions-contact">
<div class="container">

<div class="row-fluid">
<div class="span12">
<h3>Contact Us</h3>
</div>
</div>

<div class="row-fluid">

<div class="span6">
<div class="region region-wm">

<div class="regionContent">
<h3>Krunch West Midlands</h3>
<?php echo get_field('kwm_address', 'option'); ?>
<p><?php echo get_field('kwm_phone', 'option'); ?></p>
<p><a href="mailto:<?php echo get_field('kwm_email', 'option'); ?>"><?php echo get_field('kwm_email', 'option'); ?></a></p>
</div>

</div>
</div>
<div class="span6">
<div class="region region-sw">

<div class="regionContent">
<h3>Krunch South West</h3>
<?php echo get_field('ksw_address', 'option'); ?>
<p><?php echo get_field('ksw_phone', 'option'); ?></p>
<p><a href="mailto:<?php echo get_field('ksw_email', 'option'); ?>"><?php echo get_field('ksw_email', 'option'); ?></a></p>
</div>

</div>
</div>

</div>
</div>
</div> -->

<!-- <div class="content contact">
<div class="container">
<div class="row-fluid">
<div class="span12">
<h3 class="centered">Key Contacts</h3>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<h4 class="centered"><?php echo get_field('key_contacts_title_left'); ?></h4>
<div class="keyContacts kwm">
<?php echo get_field('key_contacts_left_content'); ?>
</div>

</div>
<div class="span6">
<h4 class="centered"><?php echo get_field('key_contacts_title_right'); ?></h4>
<div class="keyContacts ksw">
<?php echo get_field('key_contacts_right_content'); ?>
</div>

</div>
</div>
</div>
</div> -->

<?php get_footer(); ?>
58 changes: 58 additions & 0 deletions wp-content/themes/krunch/tpl-regional-contact.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
//Template Name: Regional Contact Page
?>

<?php get_header(); ?>

<?php get_template_part('blocks/breadcrumbs'); ?>

<div class="content regional-contact contact">
<div class="container">
<div class="row-fluid">

<div class="span6">
<h1><?php the_title(); ?></h1>

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<?php the_content(); ?>

<?php endwhile; else: ?>
<p><?php _e('Sorry, no content has been found'); ?></p>
<?php endif; ?>
</div>


<div class="span6">
<?php
$form = get_field('select_a_form');
gravity_form_enqueue_scripts($form->id, true);
gravity_form($form->id, false, true, false, '', true, 1);
?>
</div>

</div>

</div><!-- END OF container DIV -->
</div><!-- END OF content DIV -->

<?php get_template_part('blocks/maps'); ?>

<div class="content contact">
<div class="container">
<div class="row-fluid">
<div class="span12">
<h3 class="centered">Key Contacts</h3>
</div>
</div>
<div class="row-fluid">
<div class="span6 offset3">
<div class="keyContacts">
<?php echo get_field('key_contacts_content'); ?>
</div>
</div>
</div>
</div>
</div>

<?php get_footer(); ?>
2 changes: 1 addition & 1 deletion wp-content/themes/krunch/tpl-regional-news.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
//Template Name: Region News Template
//Template Name: Regional News Template
get_header(); ?>

<?php get_template_part('blocks/banners'); ?>
Expand Down

0 comments on commit 3f8e859

Please sign in to comment.