<?php dynamic_sidebar('sidebar-f');?>
<?php endif;?>
<div class="row">
- <div id="footer_address" class="row small-centered small-11 medium-6 columns">
- <h2>{%= title %}</h2>
- <span>{%= street %}</span>
- <span class="bullet"> • </span>
- <span>{%= city %}, {%= state %} {%= zip %}</span>
- <span class="bullet"> • </span>
- <span>{%= phone %}</span>
- </div>
+ <?php get_template_part('parts/client-info-footer');?>
</div>
</footer>
</main><!--End of main-->
echo '</ul><!-- end -->'."\n";
}
+/**
+ * Return the client info option for the given key
+ *
+ * @param type $name Name of the client info option to return
+ *
+ * @return string Option
+ */
+if (!function_exists('glm_get_clientinfo_option')) {
+ function glm_get_clientinfo_option($name)
+ {
+ $settings = get_option('glmclientinfo_settings');
+ $states = get_option('glmclientinfo_states');
+ if ($name == 'stateFull' && $settings['state']) {
+ return $states[$settings['state']];
+ }
+ if ($name == 'state2Full' && $settings['state2']) {
+ return $states[$settings['state2']];
+ }
+ return ($settings && $settings[$name])
+ ? $settings[$name]
+ : null;
+ }
+}
function SearchFilter($query) {
if(isset($_GET['searchType'])) {
} else {
$ID = $parent->ID;
}
- echo '<h1>'.get_the_title($ID).'</h1>';
+ echo '<h1>'.get_the_title($ID).'</h1>';
echo '<ul class="sidebar"><!-- begin -->'."\n";
echo wp_list_pages( 'child_of='.$ID.'&title_li=&depth=1&echo=0');
echo '</ul><!-- end -->'."\n";
--- /dev/null
+<div id="footer_address" class="row small-centered small-11 medium-6 columns">
+ <?php if (function_exists('glm_get_clientinfo_option')) :?>
+ <h2><?php echo glm_get_clientinfo_option('businessName');?></h2>
+ <?php if (glm_get_clientinfo_option('address')):?>
+ <span><?php echo glm_get_clientinfo_option('address');?></span>
+ <span class="bullet"> • </span>
+ <span><?php echo glm_get_clientinfo_option('city');?>, <?php echo glm_get_clientinfo_option('state');?>
+ <?php echo glm_get_clientinfo_option('zip');?></span>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('address2')):?>
+ <span class="bullet"> • </span>
+ <span><?php echo glm_get_clientinfo_option('address2');?></span>
+ <span class="bullet"> • </span>
+ <span><?php echo glm_get_clientinfo_option('city2');?>, <?php echo glm_get_clientinfo_option('state2');?>
+ <?php echo glm_get_clientinfo_option('zip2');?></span>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('phone')) :?>
+ <span class="bullet"> • </span><span><?php echo glm_get_clientinfo_option('phone');?></span>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('fax')) :?>
+ <span class="bullet"> • </span><span><?php echo glm_get_clientinfo_option('fax');?></span>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('extra')) :?>
+ <span class="bullet"> • </span><span><?php echo glm_get_clientinfo_option('extra');?></span>
+ <?php endif;?>
+ <?php endif;?>
+</div>
+
--- /dev/null
+<?php if (function_exists('glm_get_clientinfo_option')) :?>
+<ul>
+ <li><?php echo glm_get_clientinfo_option('businessName');?></li>
+ <?php if (glm_get_clientinfo_option('address')):?>
+ <li><?php echo glm_get_clientinfo_option('address');?></li>
+ <li><?php echo glm_get_clientinfo_option('city');?>, <?php echo glm_get_clientinfo_option('state');?>
+ <?php echo glm_get_clientinfo_option('zip');?></li>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('address2')):?>
+ <li><?php echo glm_get_clientinfo_option('address2');?></li>
+ <li><?php echo glm_get_clientinfo_option('city2');?>, <?php echo glm_get_clientinfo_option('state2');?>
+ <?php echo glm_get_clientinfo_option('zip2');?></li>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('phone')) :?>
+ <li><?php echo glm_get_clientinfo_option('phone');?></li>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('fax')) :?>
+ <li><?php echo glm_get_clientinfo_option('fax');?></li>
+ <?php endif;?>
+ <?php if (glm_get_clientinfo_option('extra')) :?>
+ <li><?php echo glm_get_clientinfo_option('extra');?></li>
+ <?php endif;?>
+</ul>
+<?php endif;?>
<aside class="left-off-canvas-menu hide-for-large-up">
<?php glm_offcanvas_menu(); ?>
+ <?php get_template_part('parts/client-info-offcanvas');?>
</aside>
-/***
- * Excerpted from "Automate with Grunt",
- * published by The Pragmatic Bookshelf.
- * Copyrights apply to this code. It may not be used to create training material,
- * courses, books, articles, and the like. Contact us if you are in doubt.
- * We make no guarantees that this code is fit for any purpose.
- * Visit http://www.pragmaticprogrammer.com/titles/bhgrunt for more book information.
-***/
exports.description = 'Creates Foundation template with SASS';
exports.notes = 'This project includes a default JavaScript and CSS file';
exports.template = function(grunt, init, done) {
init.process({}, [
// input prompts go here
-
+
// Prompt for these values.
init.prompt('name' , 'ProjectNameNoSpaces'),
- init.prompt('title', 'Site Name'),
- init.prompt('street', 'Street'),
- init.prompt('city', 'City'),
- init.prompt('state', 'State'),
- init.prompt('zip', 'ZIP'),
- init.prompt('phone', 'Phone Number'),
], function(err, props) {
// processing section
var files = init.filesToCopy(props);
- init.copyAndProcess(files, props);
-
+ init.copyAndProcess(files, props);
+
init.writePackageJSON('package.json', {
name: props.name,
description: "Gaslight Media",