settings_obj; $poll_actions = $this->polls_obj; if (isset($_REQUEST['ays_submit'])) { $actions->store_data($_REQUEST); } if (isset($_GET['ays_poll_tab'])) { $ays_poll_tab = sanitize_text_field($_GET['ays_poll_tab']); } else { $ays_poll_tab = 'tab1'; } $db_data = $actions->get_db_data(); global $wp_roles; $ays_users_roles = $wp_roles->role_names; $mailchimp_res = ($actions->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $actions->ays_get_setting('mailchimp'); $mailchimp = json_decode($mailchimp_res, true); $mailchimp_username = isset($mailchimp['username']) ? esc_attr($mailchimp['username']) : ''; $mailchimp_api_key = isset($mailchimp['apiKey']) ? esc_attr($mailchimp['apiKey']) : ''; $option_res = ($actions->ays_get_setting('options') === false) ? json_encode(array()) : $actions->ays_get_setting('options'); $options = json_decode($option_res, true); $answers_sound = isset($options['answers_sound']) ? $options['answers_sound'] : ''; //Poll title length $poll_title_length = (isset($options['poll_title_length']) && intval($options['poll_title_length']) != 0) ? absint(intval($options['poll_title_length'])) : 5; //Poll Category title length $poll_category_title_length = (isset($options['poll_category_title_length']) && intval($options['poll_category_title_length']) != 0) ? absint(intval($options['poll_category_title_length'])) : 5; //Poll Results title length $poll_results_title_length = (isset($options['poll_results_title_length']) && intval($options['poll_results_title_length']) != 0) ? absint(intval($options['poll_results_title_length'])) : 5; // Default Category for poll $ays_default_cat = isset($options['default_category']) && !empty($options['default_category']) ? explode("," , $options['default_category']) : array("1"); $poll_get_all_cats = $poll_actions->get_categories(); // Poll Types $poll_default_types = array( "choosing" => "Choosing", "rating" => "Rating", "voting" => "Voting", "text" => "Text" ); $ays_default_type = isset($options['default_type']) && $options['default_type'] != "" ? esc_attr($options['default_type']) : "choosing"; // Poll expired and unpublished message $all_shortcode_message = isset($options['all_shortcode_message']) && $options['all_shortcode_message'] != '' ? esc_attr($options['all_shortcode_message']) : ''; // Show result view $poll_show_result_view = isset($options['show_result_view']) ? $options['show_result_view'] : 'standart'; // Animation Top $poll_animation_top = (isset($options['poll_animation_top']) && $options['poll_animation_top'] != '') ? absint(intval($options['poll_animation_top'])) : 100 ; $options['poll_enable_animation_top'] = isset($options['poll_enable_animation_top']) ? $options['poll_enable_animation_top'] : 'on'; $poll_enable_animation_top = (isset($options['poll_enable_animation_top']) && $options['poll_enable_animation_top'] == "on") ? true : false; //User History Page shortcode $default_ays_poll_user_page_columns = array( 'poll_name' => 'Poll name', 'vote_date' => 'Vote Date', 'vote_answer'=> 'Vote Answer' ); // Fields placeholders | Start $fields_placeholders_res = ($actions->ays_get_setting('fields_placeholders') === false) ? json_encode(array()) : $actions->ays_get_setting('fields_placeholders'); $fields_placeholders = json_decode( stripcslashes( $fields_placeholders_res ) , true); $poll_fields_placeholder_name = (isset($fields_placeholders['poll_fields_placeholder_name']) && $fields_placeholders['poll_fields_placeholder_name'] != '') ? stripslashes( esc_attr( $fields_placeholders['poll_fields_placeholder_name'] ) ) : 'Name'; $poll_fields_placeholder_email = (isset($fields_placeholders['poll_fields_placeholder_email']) && $fields_placeholders['poll_fields_placeholder_email'] != '') ? stripslashes( esc_attr( $fields_placeholders['poll_fields_placeholder_email'] ) ) : 'E-mail'; $poll_fields_placeholder_phone = (isset($fields_placeholders['poll_fields_placeholder_phone']) && $fields_placeholders['poll_fields_placeholder_phone'] != '') ? stripslashes( esc_attr( $fields_placeholders['poll_fields_placeholder_phone'] ) ) : 'Phone'; // Fields placeholders | End // Fields labels | Start $poll_fields_label_name = (isset($fields_placeholders['poll_fields_label_name']) && $fields_placeholders['poll_fields_label_name'] != '') ? stripslashes( esc_attr( $fields_placeholders['poll_fields_label_name'] ) ) : 'Name'; $poll_fields_label_email = (isset($fields_placeholders['poll_fields_label_email']) && $fields_placeholders['poll_fields_label_email'] != '') ? stripslashes( esc_attr( $fields_placeholders['poll_fields_label_email'] ) ) : 'E-mail'; $poll_fields_label_phone = (isset($fields_placeholders['poll_fields_label_phone']) && $fields_placeholders['poll_fields_label_phone'] != '') ? stripslashes( esc_attr( $fields_placeholders['poll_fields_label_phone'] ) ) : 'Phone'; // Fields labels | End $show_cat_title = isset($options['show_cat_title']) && $options['show_cat_title'] == 'on' ? 'checked' : ''; // General CSS File $options['poll_exclude_general_css'] = isset($options['poll_exclude_general_css']) ? esc_attr( $options['poll_exclude_general_css'] ) : 'off'; $poll_exclude_general_css = (isset($options['poll_exclude_general_css']) && esc_attr( $options['poll_exclude_general_css'] ) == "on") ? true : false; // Menu notifications $options['poll_disable_poll_menu_notification'] = isset($options['poll_disable_poll_menu_notification']) ? esc_attr( $options['poll_disable_poll_menu_notification'] ) : 'off'; $poll_disable_poll_menu_notification = (isset($options['poll_disable_poll_menu_notification']) && esc_attr( $options['poll_disable_poll_menu_notification'] ) == "on") ? true : false; // WP Editor height $poll_wp_editor_height = (isset($options['poll_wp_editor_height']) && $options['poll_wp_editor_height'] != '' && $options['poll_wp_editor_height'] != 0) ? absint( sanitize_text_field($options['poll_wp_editor_height']) ) : 50 ; ?>

poll_settings_notices( sanitize_text_field( $_REQUEST['status'] ) ); } ?>


>




">

>

>

>




%s.", "https://us20.admin.mailchimp.com/account/api/",esc_html__( "Account Extras menu", "poll-maker" ) ); ?>



here. Remember to choose Webhooks by Zapier as Trigger App.", "poll-maker"), "https://zapier.com/app/editor/"); ?>






1. Create new Google Oauth cliend ID credentials (if you do not still have).

2. Choose the application type as Web application

3. Add the following link in the Authorized redirect URIs field

4. Click on the Create button

5. Copy the Your Cliend ID from the opened popup and paste it in the Google Client ID field.Then click on the Sign In button to complete authorization

6. After the successful authorization,copy the Your Client ID and paste it in the Google Client ID field again. Also, copy the Your Client Secret and paste it in the Google Client Secret field.

7. Then click Get token button to get your token

8. If the token is given successfully, click on the Save Changes button.






%s.", "https://app.sendgrid.com/settings/api_keys", "sendgrid.com" ); ?>



account.', 'poll-maker' ), esc_url( '#' ) ); ?>

%s.", "#", "Account" ); ?>







', '' ); ?>

", "" ); ?>


[ ]


  • ', '' ); ?>
    • ', '' ); ?>
    • ', '' ); ?>

[ ]
>
>
/>

[ ]
    • ', '' ); ?>
    • ', '' ); ?>


>



[ ]

[ ]


[ ]


    $val) { ?>

[ ]




[ ]

">


Placeholder
Label
Placeholder
Label
Placeholder
Label

:

">

:

-

-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


"; wp_nonce_field('settings_action', 'settings_action'); $save_bottom_attributes = array( 'id' => 'ays-button-apply', 'title' => 'Ctrl + s', 'data-toggle' => 'tooltip', 'data-delay'=> '{"show":"1000"}' ); submit_button( esc_html__('Save changes', "poll-maker"), 'primary ays-button', 'ays_submit', false, $save_bottom_attributes); echo $loader_iamge; ?>
×