function wpex_footer_callout() { // Lets bail if the callout is disabled for this page/post --> see previous function if (wpex_display_callout() == false) { return; } // Get theme options $callout_text = wpex_option('callout_text'); $callout_link = wpex_option('callout_link'); $callout_link_txt = wpex_option('callout_link_txt'); $callout_rel = wpex_option('callout_button_rel', 'dofollow'); $callout_target = wpex_option('callout_button_target', 'blank'); $rel = $callout_rel == 'nofollow' ? 'rel="nofollow"' : ''; ob_start(); ?> <div id="footer-callout-wrap" class="clr"> <div id="footer-callout" class="clr container"> <div id="footer-callout-left" class="clr <?php if (wpex_option('callout_link') == '') { echo 'full-width'; } ?> "> <?php // Echo the footer callout text echo $callout_text; ?> </div><!-- #footer-callout-left --> <?php // Display footer callout button if callout link & text options are not blank in the admin if ($callout_link && $callout_link_txt) { ?> <div id="footer-callout-right" class=""> <a href="<?php echo $callout_link; ?> " class="theme-button" title="<?php echo $callout_link_txt; ?> " target="_<?php echo $callout_target; ?> " <?php echo $rel; ?> ><?php echo $callout_link_txt; ?> </a> </div><!-- #footer-callout-right --> <?php } ?> </div><!-- #footer-callout --> </div><!-- #footer-callout-wrap --> <?php echo ob_get_clean(); }
* @package Total * @subpackage Partials/Footer * @author Alexander Clarke * @copyright Copyright (c) 2014, Symple Workz LLC * @link http://www.wpexplorer.com * @since Total 1.6.0 * @version 1.0.0 */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // Get post id $post_id = wpex_get_the_id(); // Return if disabled if (!wpex_display_callout($post_id)) { return; } // Get Content if ($post_id && ($meta = get_post_meta($post_id, 'wpex_callout_text', true))) { $content = $meta; } else { $content = get_theme_mod('callout_text', 'I am the footer call-to-action block, here you can add some relevant/important information about your company or product. I can be disabled in the theme options.'); } // Bail if content is empty if (!$content) { return; } // Get link if ($post_id && ($meta = get_post_meta($post_id, 'wpex_callout_link', true))) { $link = $meta;