Plugin Directory

Changeset 2839280


Ignore:
Timestamp:
12/26/2022 09:45:26 AM (3 years ago)
Author:
liquidpoll
Message:

Bug fixed

Location:
wp-poll
Files:
323 added
1 deleted
9 edited

Legend:

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

    r2835348 r2839280  
    16721672}
    16731673
    1674 .liquidpoll-form.preview {
    1675     display: block;
    1676 }
    1677 
    16781674.liquidpoll-form .liquidpoll-form-field {
    16791675    margin-bottom: 20px;
     
    17071703
    17081704.liquidpoll-form .liquidpoll-form-field input[type="submit"] {
    1709     width: auto;
    17101705}
    17111706
  • wp-poll/trunk/includes/addons/class-addons.php

    r2835348 r2839280  
    5151                ),
    5252                array(
    53                     'id'      => '',
     53                    'id'      => 'liquidpoll-groundhogg-integration',
    5454                    'title'   => esc_html__( 'GroundHogg - CRM & Email Automation', 'wp-poll' ),
    5555                    'details' => esc_html__( 'Integration of Liquidpoll for GroundHogg plugin.', 'wp-poll' ),
     
    6161                ),
    6262                array(
    63                     'id'      => '',
     63                    'id'      => 'liquidpoll-funnelkit-integration',
    6464                    'title'   => esc_html__( 'Autonami - Automation & CRM for WooFunnels', 'wp-poll' ),
    6565                    'details' => esc_html__( 'Integration of Liquidpoll and Autonami plugin.', 'wp-poll' ),
  • wp-poll/trunk/includes/classes/class-hooks.php

    r2835348 r2839280  
    147147        function control_display_single_poll_main( $is_display, LIQUIDPOLL_Poll $poll ) {
    148148
    149             $hide_for_logged_out_users = $poll->get_meta( 'settings_hide_for_logged_out_users', '0' );
    150 
    151             if ( ( '1' == $hide_for_logged_out_users || 'yes' == $hide_for_logged_out_users ) && ! is_user_logged_in() ) {
     149            if ( '1' == $poll->get_meta( 'settings_hide_for_logged_out_users', '0' ) && ! is_user_logged_in() ) {
    152150                $is_display = false;
    153151            }
     
    571569            $liquidpoll_wpdk->utils()->register_post_type( 'poll', apply_filters( 'liquidpoll_filters_post_type_poll', array(
    572570                'singular'      => esc_html__( 'LiquidPoll', 'wp-poll' ),
    573                 'plural'        => esc_html__( 'Polls', 'wp-poll' ),
     571                'plural'        => esc_html__( 'All Polls', 'wp-poll' ),
    574572                'labels'        => array(
    575573                    'add_new'   => esc_html__( 'Add Poll', 'wp-poll' ),
  • wp-poll/trunk/includes/classes/class-meta-boxes.php

    r2835348 r2839280  
    813813            ),
    814814            998 => array(
    815                 'label'        => esc_html__( '10+ In PRO', 'wp-poll' ),
     815                'label'        => esc_html__( '10+ are in pro', 'wp-poll' ),
    816816                'availability' => 'pro',
     817            ),
     818            999 => array(
     819                'label'        => esc_html__( '20+ are coming soon', 'wp-poll' ),
     820                'availability' => 'upcoming',
    817821            ),
    818822        );
  • wp-poll/trunk/includes/elementor/widget-poll/widget.php

    r2835348 r2839280  
    2424
    2525    public function get_icon() {
    26         return 'eicon-checkbox';
     26        return 'fa fa-heart';
    2727    }
    2828
     
    9999        $this->controls_for_style();
    100100        $this->end_controls_section();
    101 
    102         /**
    103          * Main Tab - Form Style
    104          */
    105         $this->start_controls_section( 'section_form_style', [
    106             'label'     => esc_html__( 'Form Style', 'wp-poll' ),
    107             'tab'       => Controls_Manager::TAB_STYLE,
    108             'condition' => [ 'poll_form_enable' => 'yes', ],
    109         ] );
    110         $this->controls_for_style_form();
    111         $this->end_controls_section();
    112     }
    113 
    114 
    115     protected function controls_for_style_form() {
    116 
    117         $this->add_control( 'poll_form_preview', [
    118             'label'     => esc_html__( 'Enable Preview', 'wp-poll' ),
    119             'type'      => Controls_Manager::SWITCHER,
    120             'condition' => [ 'poll_form_enable' => 'yes', ],
    121         ] );
    122 
    123         $this->add_group_control( Group_Control_Background::get_type(), [
    124             'name'      => 'poll_form_background',
    125             'types'     => [ 'classic', 'gradient' ],
    126             'selector'  => '{{WRAPPER}} .liquidpoll-form',
    127             'condition' => [ 'poll_form_enable' => 'yes', ],
    128         ] );
    129 
    130         $this->add_control( 'poll_form_content_heading', [
    131             'label'     => esc_html__( 'Form Content', 'wp-poll' ),
    132             'type'      => Controls_Manager::HEADING,
    133             'separator' => 'before',
    134             'condition' => [ 'poll_form_enable' => 'yes', ],
    135         ] );
    136 
    137         $this->add_group_control( Group_Control_Typography::get_type(), [
    138             'name'      => 'poll_form_content_typography',
    139             'selector'  => '{{WRAPPER}} .liquidpoll-form-content',
    140             'condition' => [ 'poll_form_enable' => 'yes', ],
    141         ] );
    142 
    143         $this->add_control( 'poll_form_content_color', [
    144             'label'     => esc_html__( 'Color', 'wp-poll' ),
    145             'type'      => Controls_Manager::COLOR,
    146             'selectors' => [ '{{WRAPPER}} .liquidpoll-form-content' => 'color: {{VALUE}}', ],
    147             'condition' => [ 'poll_form_enable' => 'yes', ],
    148         ] );
    149 
    150         $this->add_control( 'poll_form_field_heading', [
    151             'label'     => esc_html__( 'Form Fields', 'wp-poll' ),
    152             'type'      => Controls_Manager::HEADING,
    153             'separator' => 'before',
    154             'condition' => [ 'poll_form_enable' => 'yes', ],
    155         ] );
    156 
    157         $this->add_group_control( Group_Control_Typography::get_type(), [
    158             'name'      => 'poll_form_field_typography',
    159             'selector'  => '{{WRAPPER}} .liquidpoll-form-field input',
    160             'condition' => [ 'poll_form_enable' => 'yes', ],
    161         ] );
    162 
    163         $this->add_control( 'poll_form_field_color', [
    164             'label'     => esc_html__( 'Color', 'wp-poll' ),
    165             'type'      => Controls_Manager::COLOR,
    166             'selectors' => [ '{{WRAPPER}} .liquidpoll-form-field input' => 'color: {{VALUE}}', ],
    167             'condition' => [ 'poll_form_enable' => 'yes', ],
    168         ] );
    169 
    170         $this->add_control( 'poll_form_notice_heading', [
    171             'label'     => esc_html__( 'Form Notice', 'wp-poll' ),
    172             'type'      => Controls_Manager::HEADING,
    173             'separator' => 'before',
    174             'condition' => [ 'poll_form_enable' => 'yes', ],
    175         ] );
    176 
    177         $this->add_group_control( Group_Control_Typography::get_type(), [
    178             'name'      => 'poll_form_notice_typography',
    179             'selector'  => '{{WRAPPER}} .liquidpoll-form-notice .notice',
    180             'condition' => [ 'poll_form_enable' => 'yes', ],
    181         ] );
    182 
    183         $this->add_control( 'poll_form_notice_color', [
    184             'label'     => esc_html__( 'Color', 'wp-poll' ),
    185             'type'      => Controls_Manager::COLOR,
    186             'selectors' => [ '{{WRAPPER}} ..liquidpoll-form-notice .notice' => 'color: {{VALUE}}', ],
    187             'condition' => [ 'poll_form_enable' => 'yes', ],
    188         ] );
    189 
    190         $this->add_control( 'poll_form_submit_heading', [
    191             'label'     => esc_html__( 'Submit Button', 'wp-poll' ),
    192             'type'      => Controls_Manager::HEADING,
    193             'separator' => 'before',
    194             'condition' => [ 'poll_form_enable' => 'yes', ],
    195         ] );
    196 
    197         $this->add_group_control( Group_Control_Typography::get_type(), [
    198             'name'      => 'poll_form_submit_typography',
    199             'selector'  => '{{WRAPPER}} .liquidpoll-form-field .liquidpoll-button',
    200             'condition' => [ 'poll_form_enable' => 'yes', ],
    201         ] );
    202 
    203         $this->add_group_control( Group_Control_Background::get_type(), [
    204             'name'      => 'poll_form_submit_background',
    205             'types'     => [ 'classic', 'gradient' ],
    206             'selector'  => '{{WRAPPER}} .liquidpoll-form-field .liquidpoll-button',
    207             'condition' => [ 'poll_form_enable' => 'yes', ],
    208         ] );
    209 
    210         $this->add_control( 'poll_form_submit_color', [
    211             'label'     => esc_html__( 'Color', 'wp-poll' ),
    212             'type'      => Controls_Manager::COLOR,
    213             'selectors' => [ '{{WRAPPER}} .liquidpoll-form-field .liquidpoll-button' => 'color: {{VALUE}}', ],
    214             'condition' => [ 'poll_form_enable' => 'yes', ],
    215         ] );
    216 
    217 
    218         $this->add_control( 'poll_form_submit_margin', [
    219             'label'      => esc_html__( 'Margin', 'wp-poll' ),
    220             'type'       => Controls_Manager::DIMENSIONS,
    221             'size_units' => [ 'px', '%', 'em' ],
    222             'selectors'  => [ '{{WRAPPER}} .liquidpoll-form-field .liquidpoll-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ],
    223             'condition'  => [ 'poll_form_enable' => 'yes', ],
    224         ] );
    225 
    226         $this->add_control( 'poll_form_submit_padding', [
    227             'label'      => esc_html__( 'Padding', 'wp-poll' ),
    228             'type'       => Controls_Manager::DIMENSIONS,
    229             'size_units' => [ 'px', '%', 'em' ],
    230             'selectors'  => [ '{{WRAPPER}} .liquidpoll-form-field .liquidpoll-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ],
    231             'condition'  => [ 'poll_form_enable' => 'yes', ],
    232         ] );
    233 
    234         $this->add_control( 'poll_btn_submit_border_radius', [
    235             'label'      => esc_html__( 'Border Radius', 'wp-poll' ),
    236             'type'       => Controls_Manager::DIMENSIONS,
    237             'size_units' => [ 'px', '%', 'em' ],
    238             'selectors'  => [ '{{WRAPPER}} .liquidpoll-form-field .liquidpoll-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ],
    239             'condition'  => [ 'poll_form_enable' => 'yes', ],
    240         ] );
    241101    }
    242102
     
    296156            'type'      => Controls_Manager::TEXTAREA,
    297157            'condition' => [ 'poll_form_enable' => 'yes', ],
     158        ] );
     159
     160        $this->add_control( 'form_styling', [
     161            'label'     => esc_html__( 'Form Styling', 'wp-poll' ),
     162            'type'      => Controls_Manager::HEADING,
     163            'condition' => [ 'poll_form_enable' => 'yes', ],
     164            'separator' => 'before',
     165        ] );
     166
     167        $this->add_control( 'poll_form_style_colors', [
     168            'label'     => esc_html__( 'Colors', 'wp-poll' ),
     169            'type'      => Controls_Manager::SWITCHER,
     170            'condition' => [ 'poll_form_enable' => 'yes', ],
     171        ] );
     172
     173        $this->add_control( 'form_bg', [
     174            'label'     => esc_html__( 'Form Bg', 'wp-poll' ),
     175            'type'      => Controls_Manager::COLOR,
     176            'condition' => [ 'poll_form_enable' => 'yes', 'poll_form_style_colors' => 'yes' ],
     177        ] );
     178
     179        $this->add_control( 'content', [
     180            'label'     => esc_html__( 'Content', 'wp-poll' ),
     181            'type'      => Controls_Manager::COLOR,
     182            'condition' => [ 'poll_form_enable' => 'yes', 'poll_form_style_colors' => 'yes' ],
     183        ] );
     184
     185        $this->add_control( 'button_normal', [
     186            'label'     => esc_html__( 'Button', 'wp-poll' ),
     187            'type'      => Controls_Manager::COLOR,
     188            'condition' => [ 'poll_form_enable' => 'yes', 'poll_form_style_colors' => 'yes' ],
     189        ] );
     190
     191        $this->add_control( 'button_bg', [
     192            'label'     => esc_html__( 'Button Bg', 'wp-poll' ),
     193            'type'      => Controls_Manager::COLOR,
     194            'condition' => [ 'poll_form_enable' => 'yes', 'poll_form_style_colors' => 'yes' ],
     195        ] );
     196
     197        $this->add_control( 'button_bg_hover', [
     198            'label'     => esc_html__( 'Button Bg (Hover))', 'wp-poll' ),
     199            'type'      => Controls_Manager::COLOR,
     200            'condition' => [ 'poll_form_enable' => 'yes', 'poll_form_style_colors' => 'yes' ],
    298201        ] );
    299202    }
     
    416319
    417320        $this->add_control( 'settings_reaction_hide_title', [
    418             'label'     => esc_html__( 'Show title for this reaction.', 'wp-poll' ),
     321            'label'     => esc_html__( 'Hide title for this reaction.', 'wp-poll' ),
    419322            'type'      => Controls_Manager::SWITCHER,
    420323            'condition' => [ '_type' => [ 'reaction' ] ],
  • wp-poll/trunk/includes/wpdk/classes/class-license.php

    r2835348 r2839280  
    2929        }
    3030
    31         if ( ! empty( $plugin_file ) ) {
    32 
    33             $plugin_data           = get_plugin_data( $plugin_file );
    34             $this->client          = $client;
    35             $this->plugin_file     = $plugin_file;
    36             $this->plugin_basename = plugin_basename( $plugin_file );
    37             $this->plugin_version  = Utils::get_args_option( 'Version', $plugin_data );
    38             $this->option_key      = sprintf( 'pb_%s_license_data', md5( $this->client->text_domain . esc_attr( '-pro' ) ) );
    39             $this->cache_key       = sprintf( 'pb_%s_version_info', md5( $this->client->text_domain . esc_attr( '-pro' ) ) );
    40             $this->data            = get_option( $this->option_key, array() );
    41 
    42             add_action( 'init', array( $this, 'schedule_event' ) );
    43             add_action( 'rest_api_init', array( $this, 'add_license_activation_endpoint' ) );
    44             add_filter( 'cron_schedules', array( $this, 'add_cron_interval' ) );
    45             add_action( 'pb_license_check', array( $this, 'check_license_validity' ) );
    46         }
     31        $plugin_data = get_plugin_data( $plugin_file );
     32
     33        $this->client          = $client;
     34        $this->plugin_file     = $plugin_file;
     35        $this->plugin_basename = plugin_basename( $plugin_file );
     36        $this->plugin_version  = Utils::get_args_option( 'Version', $plugin_data );
     37        $this->option_key      = sprintf( 'pb_%s_license_data', md5( $this->client->text_domain . esc_attr( '-pro' ) ) );
     38        $this->cache_key       = sprintf( 'pb_%s_version_info', md5( $this->client->text_domain . esc_attr( '-pro' ) ) );
     39        $this->data            = get_option( $this->option_key, array() );
     40
     41        add_action( 'init', array( $this, 'schedule_event' ) );
     42        add_action( 'rest_api_init', array( $this, 'add_license_activation_endpoint' ) );
     43        add_filter( 'cron_schedules', array( $this, 'add_cron_interval' ) );
     44        add_action( 'pb_license_check', array( $this, 'check_license_validity' ) );
     45
    4746    }
    4847
  • wp-poll/trunk/readme.txt

    r2835348 r2839280  
    55    Requires at least: 4.6
    66    Tested up to: 6.1.1
    7     Stable tag: 3.3.50
     7    Stable tag: 3.3.51
    88    License: GPLv2 or later
    99    License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    315315
    316316= 3.3.49 =
    317 * 12/12/2022 - FIX - Fix CSS issue with NPS themes.
     317* 12/12/2022 - NEW - Fix CSS issue with NPS themes.
    318318
    319319= 3.3.50 =
    320 * 16/12/2022 - FIX - Fix issues and add form preview in elementor.
    321 
     320* 26/12/2022 - FIX - Bug fixed.
     321
     322= 3.3.51 =
     323* 26/12/2022 - TWEAK - Version updated.
     324
  • wp-poll/trunk/templates/single-poll/form.php

    r2835348 r2839280  
    2929}
    3030
    31 $preview_class = $poll->get_meta( 'poll_form_preview' ) == 'yes' ? 'preview' : '';
    3231
    3332?>
    34     <form class="liquidpoll-form <?= $preview_class; ?>" action="" enctype="multipart/form-data" method="get">
     33    <form class="liquidpoll-form" action="" enctype="multipart/form-data" method="get">
    3534
    3635        <?php if ( ! empty( $poll_form_content ) ) : ?>
  • wp-poll/trunk/wp-poll.php

    r2835348 r2839280  
    44 * Plugin URI: https://liquidpoll.com
    55 * Description: It allows user to poll in your website with many awesome features.
    6  * Version: 3.3.50
     6 * Version: 3.3.51
    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.50' );
     29defined( 'LIQUIDPOLL_VERSION' ) || define( 'LIQUIDPOLL_VERSION', '3.3.51' );
    3030
    3131if ( ! class_exists( 'LIQUIDPOLL_Main' ) ) {
Note: See TracChangeset for help on using the changeset viewer.