t_s_poll_question_settings = $ts_poll_old_standard = ''; $total_soft_poll_res_count = 1; $total_soft_poll_res_count1 = 0; $ts_poll_answers_columned = $ts_poll_answers_order = $ts_poll_question_query = $ts_poll_colors_array = array(); remove_all_filters( 'embed_oembed_html', 10 ); if ( $ts_poll_edit != 'true' ) { wp_enqueue_script( $this->plugin_name . 'ResizeSensor', plugin_dir_url( __DIR__ ) . 'public/js/ResizeSensor.js', array(), time(), false ); wp_enqueue_script( $this->plugin_name . 'ElementQueries', plugin_dir_url( __DIR__ ) . 'public/js/ElementQueries.js', array(), time(), false ); } if ( is_numeric( $total_soft_poll ) && is_int( (int) $total_soft_poll ) && (int) $total_soft_poll > 0 || array_key_exists( $total_soft_poll, $tsp_themes ) ) { if ( is_numeric( $total_soft_poll ) && is_int( (int) $total_soft_poll ) && (int) $total_soft_poll > 0 ) { $ts_poll_question_query = apply_filters( "tsp_get_all_params", (string) $total_soft_poll, true, true, false); if ($ts_poll_question_query["Question_Param"]["TS_Poll_Q_Theme"] === "Video Poll" || $ts_poll_question_query["Question_Param"]["TS_Poll_Q_Theme"] === "Video Without Button" || $ts_poll_question_query["Question_Param"]["TS_Poll_Q_Theme"] === "Image Without Button") { global $wp_embed; foreach ($ts_poll_question_query['Answers'] as $tsp_response_key => $tsp_response_value) { $tsp_check_embed = ""; if ($ts_poll_question_query["Question_Param"]["TS_Poll_Q_Theme"] === "Image Without Button") { $tsp_check_embed = sprintf( '
%2$s
', $tsp_response_value["Answer_Param"]["TotalSoftPoll_Ans_Im"] == '' ? esc_url( plugin_dir_url( __DIR__ ) . '/public/img/tsp_no_img.jpg' ) : esc_url( $tsp_response_value["Answer_Param"]["TotalSoftPoll_Ans_Im"] ), $tsp_response_value["Answer_Param"]["TotalSoftPoll_Ans_Im"] == '' ? esc_html("No Image avaible" ) : html_entity_decode( htmlspecialchars_decode( $tsp_response_value['Answer_Title'] ), ENT_QUOTES ) ); } else { $tsp_check_embed = sprintf( '
%1$s
', $tsp_response_value["Answer_Param"]["TotalSoftPoll_Ans_Vd"] == '' ? sprintf( 'No Video avaible', esc_url( plugin_dir_url( __DIR__ ) . '/public/img/tsp_no_video.png' ) ) : do_shortcode( $wp_embed->run_shortcode( '[embed]' . esc_url( $tsp_response_value["Answer_Param"]["TotalSoftPoll_Ans_Vd"] ) . '[/embed]' ) ) ); } $ts_poll_question_query['Answers'][$tsp_response_key]["embed"] = $tsp_check_embed; } } } elseif ( array_key_exists( $total_soft_poll, $tsp_themes ) ) { if ( $ts_poll_edit !== 'true' ) { return false; } $ts_poll_question_query = apply_filters( "tsp_get_all_params", (string) $total_soft_poll, false, true, false); } else { return false; } if ($ts_poll_question_query === false) { return false; } $t_s_poll_answers_values = $ts_poll_question_query['Answers']; $ts_poll_answers_count = $ts_poll_question_query['answers_count']; $tspoll_question_styles = $ts_poll_question_query['Question_Style']; $ts_poll_question_params = $ts_poll_question_query['Question_Param']; $t_s_poll_question_settings = $ts_poll_question_query['Question_Settings']; $total_soft_poll_res_count = array_sum( array_column( $t_s_poll_answers_values , 'Answer_Votes' ) ); if ( $total_soft_poll_res_count == 0 ) { $total_soft_poll_res_count = 1; $total_soft_poll_res_count1 = 0; } else { $total_soft_poll_res_count1 = $total_soft_poll_res_count; } } else { return false; } if (is_array($ts_poll_question_query)) { $ts_poll_base_id = $ts_poll_generated_css = ''; if ( $ts_poll_edit === 'true' || $ts_poll_edit === 'false') { $ts_poll_base_id = $total_soft_poll; }else { $ts_poll_base_id = $total_soft_poll; $total_soft_poll = rand( 100000, 999999 ); $tspoll_fontfamily_swap_arr = array( 'ts_poll_q_ff', 'ts_poll_boxsh', 'ts_poll_vb_ff', 'ts_poll_rb_ff', 'TotalSoft_Poll_Set_09' ); foreach ( $tspoll_fontfamily_swap_arr as $key => $value ) { if ( isset( $tspoll_question_styles[$value] ) || isset( $t_s_poll_question_settings[$value] ) ) { if ( isset( $tspoll_question_styles[$value] ) ) { $ts_poll_generated_css .= apply_filters("tsp_get_font_face", $tspoll_question_styles[$value]); } else { $ts_poll_generated_css .= apply_filters("tsp_get_font_face", $t_s_poll_question_settings[$value]); } } } } wp_enqueue_style( "ts_poll_special_{$total_soft_poll}", plugin_dir_url( __DIR__ ) . 'public/css/ts_poll-content-special.css', array(), time(), 'all' ); include plugin_dir_path( dirname( __FILE__ ) ) . 'public/css/tsp-form-css.php'; $ts_poll_popup_standard = false; $ts_poll_popup_standard_html = ""; echo sprintf( '
Loading poll ...
', (string) esc_attr( $total_soft_poll ), esc_attr( $tspoll_question_styles["ts_poll_pos"] ), $tspoll_question_styles["ts_poll_boxsh_show"] != '' || $tspoll_question_styles["ts_poll_boxsh_show"] != 'false' ? esc_attr( $tspoll_question_styles["ts_poll_boxsh_type"] ) : '' ); include plugin_dir_path( dirname( __FILE__ ) ) . 'public/css/tsp-soon-css.php'; echo sprintf( ' %3$s ', 'ts_poll_cs_' . esc_html( $total_soft_poll ), 'ts_poll_cs_text_' . esc_html( $total_soft_poll ), esc_html( html_entity_decode( htmlspecialchars_decode( $t_s_poll_question_settings["TotalSoft_Poll_Set_04"] ), ENT_QUOTES ) ) ); include plugin_dir_path( dirname( __FILE__ ) ) . 'public/partials/tsp-header-display.php'; if ( $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Standart Poll' || $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Standard Poll' ) { if ( array_key_exists("ts_poll_p_shpop", $tspoll_question_styles ) ) { $ts_poll_old_standard = 'true'; include TS_POLL_PLUGIN_ENV . 'public/theme_partials/tsp-standard.php'; } else { include TS_POLL_PLUGIN_ENV . 'public/theme_partials/tsp-standard-wb.php'; } } elseif ( $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Image Poll' || $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Video Poll' ) { include TS_POLL_PLUGIN_ENV . 'public/theme_partials/tsp-image-video.php'; } elseif ( $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Standart Without Button' || $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Standard Without Button' ) { include TS_POLL_PLUGIN_ENV . 'public/theme_partials/tsp-standard-wb.php'; } elseif ( $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Image Without Button' || $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Video Without Button' ) { include TS_POLL_PLUGIN_ENV . 'public/theme_partials/tsp-image-video-wb.php'; } elseif ( $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Image in Question' || $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Video in Question' ) { include TS_POLL_PLUGIN_ENV . 'public/theme_partials/tsp-image-video-in.php'; } include plugin_dir_path( dirname( __FILE__ ) ) . 'public/css/tsp-content-css.php'; $tsp_special_colors = $tsp_special_colors_css = ''; foreach ( $ts_poll_colors_array as $key => $value ) : $tsp_special_colors .= sprintf( ' --tsp_a_c_%s-%s : %s;', esc_html( $total_soft_poll ), esc_html( $key ), esc_attr( $value ) ); switch ( $ts_poll_question_params["TS_Poll_Q_Theme"] ) { case 'Standart Poll': case 'Standard Poll': if ( $ts_poll_old_standard === 'true' ) { $tsp_special_colors_css .= sprintf( ' main.ts_poll_r_main_%1$s[data-tsp-bool="false"] > .ts_poll_answer_result[data-tsp-id="%2$s"] > .ts_poll_answer_result_label > .ts_poll_answer_percent_line{ background-color: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-bool="false"] > .ts_poll_answer[data-tsp-id="%2$s"] > .ts_poll_answer_label { color: var(--tsp_a_c_%1$s-%2$s); } ', esc_html( $total_soft_poll ), esc_html( $key ) ); } else { $tsp_special_colors_css .= sprintf( ' main.ts_poll_main_%1$s[data-tsp-color="Background"] > .ts_poll_answer[data-tsp-id="%2$s"]{ background-color: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-color="Color"] > .ts_poll_answer[data-tsp-id="%2$s"] .ts_poll_answer_label{ color: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-voted="Background"] > .ts_poll_answer[data-tsp-id="%2$s"] span.ts_poll_r_progress{ background-color: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-voted="Color"] > .ts_poll_answer[data-tsp-id="%2$s"] label.ts_poll_r_label{ color: var(--tsp_a_c_%1$s-%2$s); } ', esc_html( $total_soft_poll ), esc_html( $key ) ); } break; case 'Image Poll': case 'Video Poll': $tsp_special_colors_css .= sprintf( ' main.ts_poll_main_%1$s[data-tsp-color="Background"] > .ts_poll_answer[data-tsp-id="%2$s"] > .ts_poll_before_div{ background: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-color="Color"] > .ts_poll_answer[data-tsp-id="%2$s"] .ts_poll_answer_label{ color: var(--tsp_a_c_%1$s-%2$s); } ', esc_html( $total_soft_poll ), esc_html( $key ) ); break; case 'Standart Without Button': case 'Standard Without Button': case 'Image Without Button': case 'Video Without Button': case 'Image in Question': case 'Video in Question': $tsp_special_colors_css .= sprintf( ' main.ts_poll_main_%1$s[data-tsp-color="Background"] > .ts_poll_answer[data-tsp-id="%2$s"]{ background-color: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-color="Color"] > .ts_poll_answer[data-tsp-id="%2$s"] .ts_poll_answer_label{ color: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-voted="Background"] > .ts_poll_answer[data-tsp-id="%2$s"] span.ts_poll_r_progress{ background-color: var(--tsp_a_c_%1$s-%2$s); } main.ts_poll_main_%1$s[data-tsp-voted="Color"] > .ts_poll_answer[data-tsp-id="%2$s"] label.ts_poll_r_label{ color: var(--tsp_a_c_%1$s-%2$s); } ', esc_html( $total_soft_poll ), esc_html( $key ) ); break; } endforeach; $ts_poll_generated_css .= sprintf( ':root{ %1$s } %2$s ', $tsp_special_colors, $tsp_special_colors_css ); if ($ts_poll_old_standard === '' ) { include plugin_dir_path( dirname( __FILE__ ) ) . 'public/partials/tsp-footer-display.php'; } if ($ts_poll_edit === "false") { echo sprintf( ' ', esc_attr( $total_soft_poll), array_key_exists("ts_poll_v_t",$tspoll_question_styles) ? $tspoll_question_styles["ts_poll_v_t"] : $tspoll_question_styles["ts_poll_p_a_vt"], array_key_exists("TotalSoft_Poll_Set_01",$t_s_poll_question_settings) ? $t_s_poll_question_settings["TotalSoft_Poll_Set_01"] : "", array_key_exists("TotalSoft_Poll_Set_05",$t_s_poll_question_settings) ? $t_s_poll_question_settings["TotalSoft_Poll_Set_05"] : "Thank you!", esc_html($ts_poll_question_params["TS_Poll_Q_Theme"]) ); } if ( $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Standart Poll' || $ts_poll_question_params["TS_Poll_Q_Theme"] == 'Standard Poll' ) { if ( $ts_poll_old_standard === 'true' ) { if ( $ts_poll_edit == 'true' || $tspoll_question_styles["ts_poll_p_shpop"] == 'true') { $ts_poll_popup_standard = true; $ts_poll_popup_standard_html .= sprintf( '
%2$s
', esc_attr( $total_soft_poll ), $tsp_result_section_inner, esc_attr( $tspoll_question_styles["ts_poll_p_sheff"] ) ); } } } echo sprintf( '
%s %s
', wp_nonce_field( 'tsp_vote_nonce_' . $total_soft_poll, 'tsp_vote_nonce_field_' . $total_soft_poll, true, false ), $ts_poll_popup_standard_html ); if($ts_poll_edit === "true"){ wp_add_inline_style("ts_poll_special_{$total_soft_poll}",$ts_poll_generated_css); }else{ echo sprintf( ' ', $ts_poll_generated_css ); } if ( $ts_poll_edit === 'true' ) { include plugin_dir_path( dirname( __FILE__ ) ) . 'public/js/tsp-content-js-edit.php'; }elseif ($ts_poll_edit === 'false') { return; } else { wp_enqueue_script( "ts_poll_js_{$total_soft_poll}", plugin_dir_url( __DIR__ ) . 'public/js/ts_poll-content.js', array( 'jquery' ), time(), false ); include plugin_dir_path( dirname( __FILE__ ) ) . 'public/js/tsp-content-js.php'; } }else{ return false; } } /** * Shortcode function for show poll * * @since 1.7.0 * * @param array $atts Shortcode attributes provided by a user. * * @return string */ public function ts_poll_shortcode( $atts ) { $atts = shortcode_atts( array( 'id' => '', 'edit' => '' ), $atts ); \ob_start(); $this->ts_poll_content( $atts['id'], $atts['edit'] ); return \ob_get_clean(); } /** * Retrieve the version number of the plugin. * * @since 1.7.0 * @return string The version number of the plugin. */ public function get_version() { return $this->version; } }
Fatal error: Uncaught Error: Class 'TS_Poll' not found in /var/www/html/alertamt.com.br/web/wp-content/plugins/poll-wp/index.php:53 Stack trace: #0 /var/www/html/alertamt.com.br/web/wp-content/plugins/poll-wp/index.php(56): run_ts_poll() #1 /var/www/html/alertamt.com.br/web/wp-settings.php(526): include_once('/var/www/html/a...') #2 /var/www/html/alertamt.com.br/web/wp-config.php(115): require_once('/var/www/html/a...') #3 /var/www/html/alertamt.com.br/web/wp-load.php(50): require_once('/var/www/html/a...') #4 /var/www/html/alertamt.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/a...') #5 /var/www/html/alertamt.com.br/web/index.php(17): require('/var/www/html/a...') #6 {main} thrown in /var/www/html/alertamt.com.br/web/wp-content/plugins/poll-wp/index.php on line 53