Exemplo n.º 1
0
function un_get_localization_array()
{
    global $un_settings;
    return apply_filters('un_localization_array', array('text' => (un_get_option(UN_FEEDBACK_BUTTON_ICON) && !un_get_option(UN_DISABLE_ICONS) ? "<i class='" . un_get_option(UN_FEEDBACK_BUTTON_ICON) . "'></i>" : '') . un_get_option(UN_FEEDBACK_BUTTON_TEXT, __('Feedback', 'usernoise')), 'style' => sprintf("background-color: %s; color: %s", un_get_option(UN_FEEDBACK_BUTTON_COLOR), un_get_option(UN_FEEDBACK_BUTTON_TEXT_COLOR)), 'class' => implode(' ', un_button_class()), 'windowUrl' => un_ajax_url('load_window'), 'showButton' => apply_filters('un_show_button', un_get_option(UN_DISABLE_ON_MOBILES) ? !$un_settings->is_mobile() : true)));
}
Exemplo n.º 2
0
<a id="un-button" href="#" style="background-color: <?php 
echo un_get_option(UN_FEEDBACK_BUTTON_COLOR);
?>
; color: <?php 
echo un_get_option(UN_FEEDBACK_BUTTON_TEXT_COLOR);
?>
" <?php 
un_button_class();
?>
>
	<?php 
un_feedback_button_text();
?>
</a>