Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $options = get_option('responsive_theme_options'); ?>
- <?php if ($options['cta_button'] == 0): ?>
- <div class="call-to-action">
- <?php $options = get_option('responsive_theme_options');
- // First let's check if headline was set
- if (!empty($options['cta_url']) && $options['cta_text']) {
- echo '<a href="'.$options['cta_url'].'" class="blue button">';
- echo $options['cta_text'];
- echo '</a>';
- // If not display dummy headline for preview purposes
- } else {
- echo '<a href="#nogo" class="blue button">';
- echo __('Call to Action','responsive');
- echo '</a>';
- }
- ?>
- <?php
- echo '<a href="http://example.com" class="blue button">';
- echo __('Call to Action 2','responsive');
- echo '</a>';
- ?>
- </div><!-- end of .call-to-action -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement