intval( views_options_parse('views_count') ) , 'exclude_bots' => intval( views_options_parse('views_exclude_bots') ) , 'display_home' => intval( views_options_parse('views_display_home') ) , 'display_single' => intval( views_options_parse('views_display_single') ) , 'display_page' => intval( views_options_parse('views_display_page') ) , 'display_archive' => intval( views_options_parse('views_display_archive') ) , 'display_search' => intval( views_options_parse('views_display_search') ) , 'display_other' => intval( views_options_parse('views_display_other') ) , 'use_ajax' => intval( views_options_parse('views_use_ajax') ) , 'template' => trim( views_options_parse('views_template_template') ) , 'most_viewed_template' => trim( views_options_parse('views_template_most_viewed') ) ); $update_views_queries = array(); $update_views_text = array(); $update_views_queries[] = update_option( 'views_options', $views_options ); $update_views_text[] = __( 'Post Views Options', 'wp-postviews' ); $i = 0; foreach( $update_views_queries as $update_views_query ) { if( $update_views_query ) { $text .= '
' . $update_views_text[$i] . ' ' . __( 'Updated', 'wp-postviews' ) . '
'; } $i++; } if( empty( $text ) ) { $text = '' . __( 'No Post Views Option Updated', 'wp-postviews' ) . '
'; } } $views_options = get_option( 'views_options' ); // Default if( !isset ( $views_options['use_ajax'] ) ) { $views_options['use_ajax'] = 1; } ?>' . $text . '
'; } ?>