Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (isset($fields['field_call_to_action_setting']-> content)): ?>
- <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_main')) :?>
- <?php $cta_prompt = (theme_get_setting('cta_main_prompt_text')); ?>
- <?php $cta_button = (theme_get_setting('cta_main_button_text')); ?>
- <?php $cta_link = (theme_get_setting('cta_main_node')); ?>
- <?php endif ?>
- <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_secondary')) :?>
- <?php $cta_prompt = (theme_get_setting('cta_secondary_prompt_text')); ?>
- <?php $cta_button = (theme_get_setting('cta_secondary_button_text')); ?>
- <?php $cta_link = (theme_get_setting('cta_secondary_node')); ?>
- <?php endif ?>
- <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_custom')) :?>
- <?php $cta_prompt = $fields['field_call_to_action_prompt']-> content; ?>
- <?php $cta_button = $fields['field_call_to_action_button']-> content; ?>
- <?php $cta_link = $fields['field_call_to_action_link']-> content; ?>
- <?php endif ?>
- <?php if (theme_get_setting('admin_second_cta') == 1) :?>
- <?php if (legendarysettings_views_field_compare_value($fields['field_second_cta_setting'], 'cta_main')) :?>
- <?php $second_cta_prompt = (theme_get_setting('cta_main_prompt_text')); ?>
- <?php $second_cta_button = (theme_get_setting('cta_main_button_text')); ?>
- <?php $second_cta_link = (theme_get_setting('cta_main_node')); ?>
- <?php endif ?>
- <?php if (legendarysettings_views_field_compare_value($fields['field_second_cta_setting'], 'cta_secondary')) :?>
- <?php $second_cta_button = (theme_get_setting('cta_secondary_button_text')); ?>
- <?php $second_cta_link = (theme_get_setting('cta_secondary_node')); ?>
- <?php endif ?>
- <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_custom')) :?>
- <?php $second_cta_button = $fields['field_second_custom_button_text']-> content; ?>
- <?php $second_cta_link = $fields['field_second_cta_link']-> content; ?>
- <?php endif ?>
- <?php endif ?>
- <?php $cta_enabled = true; ?>
- <?php if (legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_none')) :?>
- <?php $cta_enabled = false ?>
- <?php endif ?>
- <?php if (theme_get_setting('admin_cta') == 0) :?>
- <?php $cta_enabled = false ?>
- <?php endif ?>
- <?php $second_cta_class = ""; ?>
- <?php $second_cta_enabled = false ?>
- <?php if (theme_get_setting('admin_second_cta') == 1) :?>
- <?php if (!(legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_none'))) :?>
- <?php $second_cta_enabled = true ?>
- <?php $second_cta_class = "second-cta"; ?>
- <?php endif ?>
- <?php endif ?>
- <?php if ($cta_enabled == true) :?>
- <div class="unit-footer cta-outro <?php print $second_cta_class; ?> ">
- <p><?php print $cta_prompt; ?></p>
- <a href="<?php print $cta_link; ?>" class="cta"><?php print $cta_button; ?></a>
- <?php if (!(legendarysettings_views_field_compare_value($fields['field_call_to_action_setting'], 'cta_none'))) :?>
- <a href="<?php print $cta_link; ?>" class="cta"><?php print $second_cta_button; ?></a>
- <?php endif ?>
- </div>
- <?php endif ?>
- <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement