$poll_bar_style, 'background' => $poll_bar_background, 'border' => $poll_bar_border, 'height' => $poll_bar_height ); $poll_ajax_style = array( 'loading' => isset( $_POST['poll_ajax_style_loading'] ) ? (int) sanitize_key( $_POST['poll_ajax_style_loading'] ) : 1, 'fading' => isset( $_POST['poll_ajax_style_fading'] ) ? (int) sanitize_key( $_POST['poll_ajax_style_fading'] ) : 1 ); $poll_ans_sortby = isset( $_POST['poll_ans_sortby'] ) && in_array( $_POST['poll_ans_sortby'], array( 'polla_aid', 'polla_answers', 'RAND()' ), true ) ? $_POST['poll_ans_sortby'] : 'polla_aid'; $poll_ans_sortorder = isset( $_POST['poll_ans_sortorder'] ) && in_array( $_POST['poll_ans_sortorder'], array( 'asc', 'desc' ), true ) ? $_POST['poll_ans_sortorder'] : 'asc'; $poll_ans_result_sortby = isset( $_POST['poll_ans_result_sortby'] ) && in_array( $_POST['poll_ans_result_sortby'], array( 'polla_votes', 'polla_aid', 'polla_answers', 'RAND()' ), true ) ? $_POST['poll_ans_result_sortby'] : 'polla_votes'; $poll_ans_result_sortorder = isset( $_POST['poll_ans_result_sortorder'] ) && in_array( $_POST['poll_ans_result_sortorder'], array( 'asc', 'desc' ), true ) ? $_POST['poll_ans_result_sortorder'] : 'desc'; $poll_archive_perpage = isset( $_POST['poll_archive_perpage'] ) ? (int) sanitize_key( $_POST['poll_archive_perpage'] ) : 0; $poll_archive_displaypoll = isset( $_POST['poll_archive_displaypoll'] ) ? (int) sanitize_key( $_POST['poll_archive_displaypoll'] ) : 0; $poll_archive_url = isset( $_POST['poll_archive_url'] ) ? esc_url_raw( strip_tags( trim( $_POST['poll_archive_url'] ) ) ) : ''; $poll_currentpoll = isset( $_POST['poll_currentpoll'] ) ? (int) sanitize_key( $_POST['poll_currentpoll'] ) : 0; $poll_close = isset( $_POST['poll_close'] ) ? (int) sanitize_key( $_POST['poll_close'] ) : 0; $poll_logging_method = isset( $_POST['poll_logging_method'] ) ? (int) sanitize_key( $_POST['poll_logging_method'] ) : 0; $poll_cookielog_expiry = isset( $_POST['poll_cookielog_expiry'] ) ? (int) sanitize_key ($_POST['poll_cookielog_expiry'] ) : 0; $poll_allowtovote = isset( $_POST['poll_allowtovote'] ) ? (int) sanitize_key( $_POST['poll_allowtovote'] ) : 0; $update_poll_queries = array(); $update_poll_text = array(); $update_poll_queries[] = update_option('poll_bar', $poll_bar); $update_poll_queries[] = update_option('poll_ajax_style', $poll_ajax_style); $update_poll_queries[] = update_option('poll_ans_sortby', $poll_ans_sortby); $update_poll_queries[] = update_option('poll_ans_sortorder', $poll_ans_sortorder); $update_poll_queries[] = update_option('poll_ans_result_sortby', $poll_ans_result_sortby); $update_poll_queries[] = update_option('poll_ans_result_sortorder', $poll_ans_result_sortorder); $update_poll_queries[] = update_option('poll_archive_perpage', $poll_archive_perpage); $update_poll_queries[] = update_option('poll_archive_displaypoll', $poll_archive_displaypoll); $update_poll_queries[] = update_option('poll_archive_url', $poll_archive_url); $update_poll_queries[] = update_option('poll_currentpoll', $poll_currentpoll); $update_poll_queries[] = update_option('poll_close', $poll_close); $update_poll_queries[] = update_option('poll_logging_method', $poll_logging_method); $update_poll_queries[] = update_option('poll_cookielog_expiry', $poll_cookielog_expiry); $update_poll_queries[] = update_option('poll_allowtovote', $poll_allowtovote); $update_poll_text[] = __('Poll Bar Style', 'wp-polls'); $update_poll_text[] = __('Poll AJAX Style', 'wp-polls'); $update_poll_text[] = __('Sort Poll Answers By Option', 'wp-polls'); $update_poll_text[] = __('Sort Order Of Poll Answers Option', 'wp-polls'); $update_poll_text[] = __('Sort Poll Results By Option', 'wp-polls'); $update_poll_text[] = __('Sort Order Of Poll Results Option', 'wp-polls'); $update_poll_text[] = __('Number Of Polls Per Page To Display In Poll Archive Option', 'wp-polls'); $update_poll_text[] = __('Type Of Polls To Display In Poll Archive Option', 'wp-polls'); $update_poll_text[] = __('Poll Archive URL Option', 'wp-polls'); $update_poll_text[] = __('Show Poll Achive Link Option', 'wp-polls'); $update_poll_text[] = __('Current Active Poll Option', 'wp-polls'); $update_poll_text[] = __('Poll Close Option', 'wp-polls'); $update_poll_text[] = __('Logging Method', 'wp-polls'); $update_poll_text[] = __('Cookie And Log Expiry Option', 'wp-polls'); $update_poll_text[] = __('Allow To Vote Option', 'wp-polls'); $i=0; $text = ''; foreach($update_poll_queries as $update_poll_query) { if($update_poll_query) { $text .= '

'.$update_poll_text[$i].' '.__('Updated', 'wp-polls').'

'; } $i++; } if(empty($text)) { $text = '

'.__('No Poll Option Updated', 'wp-polls').'

'; } cron_polls_place(); } ?>

'.$text.'

'; } ?>

0 ) { foreach( $poll_bars as $filename => $pollbar_info ) { echo '

'."\n"; if($pollbar['style'] == $filename) { echo ''; } else { echo ''; } echo ''; echo '

'."\n"; } } ?> onclick="update_pollbar('style');" />
#
#
px
'."\n"; } else { echo '
'."\n"; } ?>

:
: