SHARE
TWEET

Untitled

big_smile Feb 22nd, 2014 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if (isset($fields['field_call_to_action_setting']-> content)): ?>
  2.        
  3.         <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_main')) :?>    
  4.     <?php $cta_prompt = (theme_get_setting('cta_main_prompt_text')); ?>
  5.     <?php $cta_button = (theme_get_setting('cta_main_button_text')); ?>
  6.     <?php $cta_link = (theme_get_setting('cta_main_node')); ?>
  7.     <?php endif ?>
  8.  
  9.         <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_secondary')) :?>    
  10.     <?php $cta_prompt = (theme_get_setting('cta_secondary_prompt_text')); ?>
  11.     <?php $cta_button = (theme_get_setting('cta_secondary_button_text')); ?>
  12.         <?php $cta_link = (theme_get_setting('cta_secondary_node')); ?>
  13.     <?php endif ?>
  14.      
  15.         <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_custom')) :?>    
  16.     <?php $cta_prompt =  $fields['field_call_to_action_prompt']-> content; ?>
  17.     <?php $cta_button =  $fields['field_call_to_action_button']-> content; ?>
  18.     <?php $cta_link =  $fields['field_call_to_action_link']-> content; ?>
  19.     <?php endif ?>
  20.  
  21.  
  22.  
  23. <?php  if (theme_get_setting('admin_second_cta') == 1) :?>    
  24.     <?php if (legendarysettings_views_field_compare_value($fields['field_second_cta_setting'], 'cta_main')) :?>    
  25.     <?php $second_cta_prompt = (theme_get_setting('cta_main_prompt_text')); ?>
  26.     <?php $second_cta_button = (theme_get_setting('cta_main_button_text')); ?>
  27.     <?php $second_cta_link = (theme_get_setting('cta_main_node')); ?>
  28.     <?php endif ?>
  29.  
  30.     <?php if (legendarysettings_views_field_compare_value($fields['field_second_cta_setting'], 'cta_secondary')) :?>    
  31.     <?php $second_cta_button = (theme_get_setting('cta_secondary_button_text')); ?>
  32.         <?php $second_cta_link = (theme_get_setting('cta_secondary_node')); ?>
  33.     <?php endif ?>
  34.  
  35.     <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_custom')) :?>    
  36.         <?php $second_cta_button =  $fields['field_second_custom_button_text']-> content; ?>
  37.     <?php $second_cta_link =  $fields['field_second_cta_link']-> content; ?>
  38.     <?php endif ?>
  39.  
  40. <?php endif ?>
  41.  
  42.  
  43.  
  44.         <?php $cta_enabled = true; ?>
  45.         <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_none')) :?>    
  46.         <?php $cta_enabled = false ?>
  47.     <?php endif ?>
  48.     <?php  if (theme_get_setting('admin_cta') == 0) :?>    
  49.     <?php $cta_enabled = false ?>
  50.     <?php endif ?>
  51.  
  52.     <?php $second_cta_class = ""; ?>
  53.     <?php $second_cta_enabled = false ?>
  54.  
  55.     <?php  if (theme_get_setting('admin_second_cta') == 1)  :?>    
  56. <?php if (!(legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_none')))  :?>
  57.     <?php $second_cta_enabled = true ?>
  58.      <?php $second_cta_class = "second-cta"; ?>
  59.     <?php endif ?>
  60. <?php endif ?>
  61.  
  62.     <?php if ($cta_enabled == true) :?>
  63.     <div class="unit-footer cta-outro <?php print $second_cta_class; ?> ">
  64.     <p><?php print $cta_prompt; ?></p>
  65.     <a href="<?php print $cta_link; ?>" class="cta"><?php print $cta_button; ?></a>
  66.  
  67. <?php if (!(legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_none'))) :?>
  68. <a href="<?php print $cta_link; ?>" class="cta"><?php print $second_cta_button; ?></a>
  69. <?php endif ?>
  70.  
  71.     </div>
  72.  
  73. <?php endif ?>
  74.    
  75. <?php endif ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top