Advertisement
Guest User

home.php

a guest
May 30th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.94 KB | None | 0 0
  1.             <?php $options = get_option('responsive_theme_options'); ?>
  2.             <?php if ($options['cta_button'] == 0): ?>    
  3.             <div class="call-to-action">
  4.  
  5.             <?php $options = get_option('responsive_theme_options');
  6.             // First let's check if headline was set
  7.                 if (!empty($options['cta_url']) && $options['cta_text']) {
  8.                     echo '<a href="'.$options['cta_url'].'" class="blue button">';
  9.                     echo $options['cta_text'];
  10.                     echo '</a>';
  11.             // If not display dummy headline for preview purposes
  12.                   } else {
  13.                     echo '<a href="#nogo" class="blue button">';
  14.                     echo __('Call to Action','responsive');
  15.                     echo '</a>';
  16.                   }
  17.             ?>
  18.            
  19.             <?php
  20.                     echo '<a href="http://example.com" class="blue button">';
  21.                     echo __('Call to Action 2','responsive');
  22.                     echo '</a>';
  23.             ?>
  24.            
  25.             </div><!-- end of .call-to-action -->
  26.             <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement