Plugin Directory

Changeset 2857737


Ignore:
Timestamp:
01/31/2023 01:02:11 PM (3 years ago)
Author:
liquidpoll
Message:

Fix issues

Location:
wp-poll
Files:
285 added
9 edited

Legend:

Unmodified
Added
Removed
  • wp-poll/trunk/assets/front/css/style.css

    r2855231 r2857737  
    324324
    325325.poll-single.rendered-results,
    326 .poll-single.vote-done {
    327     /*pointer-events: none;*/
    328     /*user-select: none;*/
    329     /*-webkit-user-select: none;*/
     326.poll-single.vote-done.rendered-results {
     327    pointer-events: none;
     328    user-select: none;
     329    -webkit-user-select: none;
    330330}
    331331
  • wp-poll/trunk/includes/classes/class-functions.php

    r2835348 r2857737  
    228228
    229229            if ( $button == 'new_option' ) {
    230                 $button_text = $this->get_option( 'liquidpoll_btn_text_new_option', esc_html__( 'New option', 'wp-poll' ) );
     230                $button_text = Utils::get_option( 'liquidpoll_btn_text_new_option', esc_html__( 'New option', 'wp-poll' ) );
    231231            } else if ( $button == 'submit' ) {
    232                 $button_text = $this->get_option( 'liquidpoll_btn_text_submit', esc_html__( 'Submit', 'wp-poll' ) );
     232                $button_text = Utils::get_option( 'liquidpoll_btn_text_submit', esc_html__( 'Submit', 'wp-poll' ) );
    233233            }
    234234            if ( $button == 'results' ) {
    235                 $button_text = $this->get_option( 'liquidpoll_btn_text_results', esc_html__( 'Results', 'wp-poll' ) );
     235                $button_text = Utils::get_option( 'liquidpoll_btn_text_results', esc_html__( 'Results', 'wp-poll' ) );
    236236            }
    237237
  • wp-poll/trunk/includes/classes/class-hooks.php

    r2848318 r2857737  
    3737            add_action( 'wp_ajax_liquidpoll_get_poll_results', array( $this, 'liquidpoll_get_poll_results' ) );
    3838            add_action( 'wp_ajax_nopriv_liquidpoll_get_poll_results', array( $this, 'liquidpoll_get_poll_results' ) );
     39
     40            add_action( 'wp_ajax_liquidpoll_submit_optin_form', array( $this, 'handle_submit_optin_form' ) );
     41            add_action( 'wp_ajax_nopriv_liquidpoll_submit_optin_form', array( $this, 'handle_submit_optin_form' ) );
    3942
    4043            add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta' ), 10, 2 );
     
    311314
    312315            return (array) $links;
     316        }
     317
     318
     319        /**
     320         * Handle optin form submission
     321         */
     322        function handle_submit_optin_form() {
     323
     324            $_form_data = Utils::get_args_option( 'form_data', wp_unslash( $_POST ) );
     325
     326            parse_str( $_form_data, $form_data );
     327
     328            $response = liquidpoll_insert_email(
     329                array(
     330                    'poll_id'       => Utils::get_args_option( 'poll_id', $form_data ),
     331                    'first_name'    => Utils::get_args_option( 'first_name', $form_data ),
     332                    'last_name'     => Utils::get_args_option( 'last_name', $form_data ),
     333                    'email_address' => Utils::get_args_option( 'email_address', $form_data ),
     334                )
     335            );
     336
     337            if ( $response ) {
     338                wp_send_json_success( $response );
     339            }
     340
     341            wp_send_json_error( esc_html__( 'Something went wrong.', 'wp-poll-pro' ) );
    313342        }
    314343
  • wp-poll/trunk/includes/wpdk/classes/class-utils.php

    r2841803 r2857737  
    8585                'name'               => sprintf( $this->client->__trans( '%s' ), $plural ),
    8686                'singular_name'      => $singular,
    87                 'menu_name'          => $this->client->__trans( $singular ),
     87                'menu_name'          => $this->client->__trans( $plural ),
    8888                'all_items'          => sprintf( $this->client->__trans( '%s' ), $plural ),
    8989                'add_new'            => sprintf( $this->client->__trans( 'Add %s' ), $singular ),
  • wp-poll/trunk/includes/wpdk/settings/assets/css/style.css

    r2841803 r2857737  
    225225    position: relative;
    226226    display: block;
    227     padding: 10px;
     227    padding: 20px;
    228228    text-decoration: none;
    229229    transition: 0.3s;
  • wp-poll/trunk/includes/wpdk/settings/classes/admin-options.class.php

    r2835348 r2857737  
    683683                    }
    684684                } elseif ( $section['external'] && isset( $section['id'] ) ) {
    685                     do_action( 'WPDK_Settings/section/' . $section['id'] );
    686 
     685                    do_action( 'WPDK_Settings/section/' . $section['id'], $section );
    687686                } else {
    688687                    echo '<div class="wpdk_settings-no-option">' . esc_html__( 'No data available.' ) . '</div>';
  • wp-poll/trunk/includes/wpdk/settings/classes/metabox-options.class.php

    r2835348 r2857737  
    273273
    274274                        WPDK_Settings::field( $field, $this->get_meta_value( $field ), $this->unique, 'metabox' );
    275 
    276                     }
    277 
    278                 } else {
    279 
     275                    }
     276                } elseif ( $section['external'] && isset( $section['id'] ) ) {
     277                    do_action( 'WPDK_Settings/meta_section/' . $section['id'], $section );
     278
     279                } else {
    280280                    echo '<div class="wpdk_settings-no-option">' . esc_html__( 'No data available.' ) . '</div>';
    281 
    282281                }
    283282
  • wp-poll/trunk/readme.txt

    r2855231 r2857737  
    55    Requires at least: 4.6
    66    Tested up to: 6.1.1
    7     Stable tag: 3.3.57
     7    Stable tag: 3.3.58
    88    License: GPLv2 or later
    99    License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    341341* 26/01/2023 - NEW - Update license system for the pro version.
    342342
     343= 3.3.58 =
     344* 31/01/2023 - FIX - Fix issues.
     345
  • wp-poll/trunk/wp-poll.php

    r2855231 r2857737  
    44 * Plugin URI: https://liquidpoll.com
    55 * Description: It allows user to poll in your website with many awesome features.
    6  * Version: 3.3.57
     6 * Version: 3.3.58
    77 * Author: LiquidPoll
    88 * Text Domain: wp-poll
     
    2727defined( 'LIQUIDPOLL_TICKET_URL' ) || define( 'LIQUIDPOLL_TICKET_URL', 'https://www.liquidpoll.com/my-account/' );
    2828defined( 'LIQUIDPOLL_COMMUNITY_URL' ) || define( 'LIQUIDPOLL_COMMUNITY_URL', 'https://www.facebook.com/groups/liquidpoll/' );
    29 defined( 'LIQUIDPOLL_VERSION' ) || define( 'LIQUIDPOLL_VERSION', '3.3.57' );
     29defined( 'LIQUIDPOLL_VERSION' ) || define( 'LIQUIDPOLL_VERSION', '3.3.58' );
    3030
    3131if ( ! class_exists( 'LIQUIDPOLL_Main' ) ) {
Note: See TracChangeset for help on using the changeset viewer.