Plugin Directory

Changeset 2859767


Ignore:
Timestamp:
02/03/2023 05:29:09 PM (3 years ago)
Author:
liquidpoll
Message:

Add languages section in the settings

Location:
wp-poll
Files:
285 added
6 edited

Legend:

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

    r2842283 r2859767  
    458458    text-transform: uppercase;
    459459}
     460
     461.wpdk_settings-section[data-section-id="reports"] .liquidpoll-reports-field{
     462    padding: 15px 0 0 15px;
     463}
  • wp-poll/trunk/assets/front/css/style.css

    r2857737 r2859767  
    14091409 */
    14101410.poll-single.theme-1.rendered-results .liquidpoll-option-single.has-label.has-result .liquidpoll-option-input {
    1411     width: 100%;
     1411    width: calc(100% - 100px);
    14121412}
    14131413
  • wp-poll/trunk/includes/classes/class-plugin-settings.php

    r2848318 r2859767  
    2929            'product_url'         => LIQUIDPOLL_PLUGIN_LINK,
    3030            'product_version'     => $liquidpoll_wpdk->plugin_version,
    31             'product_version_pro' => liquidpoll()->is_pro() ? $liquidpoll_wpdk->license()->plugin_version : '',
     31            'product_version_pro' => liquidpoll()->is_pro() ? LIQUIDPOLL_PRO_VERSION : '',
    3232            'quick_links'         => array(
    3333                'supports' => array(
     
    9898                        ),
    9999                        array(
    100                             'id'           => 'liquidpoll_poll_text_success',
    101                             'title'        => esc_html__( 'Poll Success Text', 'wp-poll' ),
    102                             'subtitle'     => esc_html__( 'Display once submission is successfull.', 'wp-poll' ),
    103                             'type'         => 'text',
    104                             'placeholder'  => esc_html__( 'Congratulations, Successfully voted.', 'wp-poll' ),
    105                             'availability' => ! liquidpoll()->is_pro() ? 'pro' : '',
    106                         ),
    107                         array(
    108                             'id'           => 'liquidpoll_poll_text_failed',
    109                             'title'        => esc_html__( 'Poll Failed Text', 'wp-poll' ),
    110                             'subtitle'     => esc_html__( 'Display once submission is failed.', 'wp-poll' ),
    111                             'type'         => 'text',
    112                             'placeholder'  => esc_html__( 'Something went wrong!', 'wp-poll' ),
    113                             'availability' => ! liquidpoll()->is_pro() ? 'pro' : '',
    114                         ),
    115                         array(
    116100                            'id'      => 'liquidpoll_heading_ipinfo',
    117101                            'content' => esc_html__( 'IPinfo Settings', 'wp-poll' ),
     
    213197                    ),
    214198                ),
    215                 array(
    216                     'title'  => esc_html__( 'NPS Settings', 'wp-poll' ),
     199            ),
     200        );
     201
     202        $field_sections['styling'] = array(
     203            'title'    => esc_html__( 'Styling', 'wp-poll' ),
     204            'sections' => array(
     205                array(
     206                    'title'  => esc_html__( 'Poll Elements', 'wp-poll' ),
     207                    'fields' => array(
     208                        array(
     209                            'id'           => '_typography_title',
     210                            'title'        => esc_html__( 'Poll Title', 'wp-poll' ),
     211                            'subtitle'     => esc_html__( 'Control typography settings for poll title.', 'wp-poll' ),
     212                            'type'         => 'typography',
     213                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     214                        ),
     215                        array(
     216                            'id'           => '_typography_content',
     217                            'title'        => esc_html__( 'Poll Content', 'wp-poll' ),
     218                            'subtitle'     => esc_html__( 'Control typography settings for poll content.', 'wp-poll' ),
     219                            'type'         => 'typography',
     220                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     221                        ),
     222                        array(
     223                            'id'           => '_typography_options',
     224                            'title'        => esc_html__( 'Poll Options', 'wp-poll' ),
     225                            'subtitle'     => esc_html__( 'Control typography settings for poll options.', 'wp-poll' ),
     226                            'type'         => 'typography',
     227                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     228                        ),
     229                        array(
     230                            'id'           => '_typography_countdown_timer',
     231                            'title'        => esc_html__( 'Countdown Timer', 'wp-poll' ),
     232                            'subtitle'     => esc_html__( 'Control typography settings for poll count down timer.', 'wp-poll' ),
     233                            'type'         => 'typography',
     234                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     235                        ),
     236                    ),
     237                ),
     238                array(
     239                    'title'  => esc_html__( 'Poll Buttons', 'wp-poll' ),
     240                    'fields' => array(
     241                        array(
     242                            'id'           => '_typography_btn_submit',
     243                            'title'        => esc_html__( 'Submit Button', 'wp-poll' ),
     244                            'subtitle'     => esc_html__( 'Control typography settings for poll submit button.', 'wp-poll' ),
     245                            'type'         => 'typography',
     246                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     247                        ),
     248                        array(
     249                            'id'           => '_typography_btn_submit_bg',
     250                            'title'        => esc_html__( 'Background color', 'wp-poll' ),
     251                            'type'         => 'color',
     252                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     253                        ),
     254                        array(
     255                            'id'           => '_typography_btn_results',
     256                            'title'        => esc_html__( 'Results Button', 'wp-poll' ),
     257                            'subtitle'     => esc_html__( 'Control typography settings for poll results button.', 'wp-poll' ),
     258                            'type'         => 'typography',
     259                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     260                        ),
     261                        array(
     262                            'id'           => '_typography_btn_results_bg',
     263                            'title'        => esc_html__( 'Background color', 'wp-poll' ),
     264                            'type'         => 'color',
     265                            'availability' => liquidpoll()->is_pro() ? '' : 'pro',
     266                        ),
     267                    ),
     268                ),
     269            ),
     270        );
     271
     272        $field_sections['languages'] = array(
     273            'title'    => esc_html__( 'Language', 'wp-poll' ),
     274            'sections' => array(
     275                array(
     276                    'title'  => esc_html__( 'Poll', 'wp-poll' ),
     277                    'fields' => array(
     278                        array(
     279                            'id'           => 'liquidpoll_poll_text_success',
     280                            'title'        => esc_html__( 'Poll Success Text', 'wp-poll' ),
     281                            'subtitle'     => esc_html__( 'Display once submission is successfull.', 'wp-poll' ),
     282                            'type'         => 'text',
     283                            'placeholder'  => esc_html__( 'Congratulations, Successfully voted.', 'wp-poll' ),
     284                            'availability' => ! liquidpoll()->is_pro() ? 'pro' : '',
     285                        ),
     286                        array(
     287                            'id'           => 'liquidpoll_poll_text_failed',
     288                            'title'        => esc_html__( 'Poll Failed Text', 'wp-poll' ),
     289                            'subtitle'     => esc_html__( 'Display once submission is failed.', 'wp-poll' ),
     290                            'type'         => 'text',
     291                            'placeholder'  => esc_html__( 'Something went wrong!', 'wp-poll' ),
     292                            'availability' => ! liquidpoll()->is_pro() ? 'pro' : '',
     293                        ),
     294                    ),
     295                ),
     296                array(
     297                    'title'  => esc_html__( 'NPS', 'wp-poll' ),
    217298                    'fields' => array(
    218299                        array(
     
    253334        );
    254335
    255         $field_sections['styling'] = array(
    256             'title'    => esc_html__( 'Styling', 'wp-poll' ),
    257             'sections' => array(
    258                 array(
    259                     'title'  => esc_html__( 'Poll Elements', 'wp-poll' ),
    260                     'fields' => array(
    261                         array(
    262                             'id'           => '_typography_title',
    263                             'title'        => esc_html__( 'Poll Title', 'wp-poll' ),
    264                             'subtitle'     => esc_html__( 'Control typography settings for poll title.', 'wp-poll' ),
    265                             'type'         => 'typography',
    266                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    267                         ),
    268                         array(
    269                             'id'           => '_typography_content',
    270                             'title'        => esc_html__( 'Poll Content', 'wp-poll' ),
    271                             'subtitle'     => esc_html__( 'Control typography settings for poll content.', 'wp-poll' ),
    272                             'type'         => 'typography',
    273                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    274                         ),
    275                         array(
    276                             'id'           => '_typography_options',
    277                             'title'        => esc_html__( 'Poll Options', 'wp-poll' ),
    278                             'subtitle'     => esc_html__( 'Control typography settings for poll options.', 'wp-poll' ),
    279                             'type'         => 'typography',
    280                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    281                         ),
    282                         array(
    283                             'id'           => '_typography_countdown_timer',
    284                             'title'        => esc_html__( 'Countdown Timer', 'wp-poll' ),
    285                             'subtitle'     => esc_html__( 'Control typography settings for poll count down timer.', 'wp-poll' ),
    286                             'type'         => 'typography',
    287                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    288                         ),
    289                     ),
    290                 ),
    291                 array(
    292                     'title'  => esc_html__( 'Poll Buttons', 'wp-poll' ),
    293                     'fields' => array(
    294                         array(
    295                             'id'           => '_typography_btn_submit',
    296                             'title'        => esc_html__( 'Submit Button', 'wp-poll' ),
    297                             'subtitle'     => esc_html__( 'Control typography settings for poll submit button.', 'wp-poll' ),
    298                             'type'         => 'typography',
    299                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    300                         ),
    301                         array(
    302                             'id'           => '_typography_btn_submit_bg',
    303                             'title'        => esc_html__( 'Background color', 'wp-poll' ),
    304                             'type'         => 'color',
    305                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    306                         ),
    307                         array(
    308                             'id'           => '_typography_btn_results',
    309                             'title'        => esc_html__( 'Results Button', 'wp-poll' ),
    310                             'subtitle'     => esc_html__( 'Control typography settings for poll results button.', 'wp-poll' ),
    311                             'type'         => 'typography',
    312                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    313                         ),
    314                         array(
    315                             'id'           => '_typography_btn_results_bg',
    316                             'title'        => esc_html__( 'Background color', 'wp-poll' ),
    317                             'type'         => 'color',
    318                             'availability' => liquidpoll()->is_pro() ? '' : 'pro',
    319                         ),
    320                     ),
    321                 ),
    322             ),
    323         );
    324 
    325336        $field_sections['reports'] = array(
    326337            'external' => true,
  • wp-poll/trunk/readme.txt

    r2857737 r2859767  
    55    Requires at least: 4.6
    66    Tested up to: 6.1.1
    7     Stable tag: 3.3.58
     7    Stable tag: 3.3.59
    88    License: GPLv2 or later
    99    License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    344344* 31/01/2023 - FIX - Fix issues.
    345345
     346= 3.3.59 =
     347* 03/02/2023 - NEW - Add language section in the settings.
     348
  • wp-poll/trunk/templates/single-nps/theme-1.php

    r2835348 r2859767  
    4444
    4545    printf( '<div class="liquidpoll-nps-score-labels"><span class="lowest">%s</span><span class="highest">%s</span></div>',
    46         esc_html( $poll->get_meta( '_nps_lowest_marking_text', Utils::get_option( 'liquidpoll_nps_text_min' ) ) ),
    47         esc_html( $poll->get_meta( '_nps_highest_marking_text', Utils::get_option( 'liquidpoll_nps_text_max' ) ) )
     46        esc_html( $poll->get_meta( '_nps_lowest_marking_text', Utils::get_option( 'liquidpoll_nps_text_min', esc_html__( 'It was terrible', 'wp-poll' ) ) ) ),
     47        esc_html( $poll->get_meta( '_nps_highest_marking_text', Utils::get_option( 'liquidpoll_nps_text_max', esc_html__( 'Absolutely love it', 'wp-poll' ) ) ) )
    4848    );
    4949
  • wp-poll/trunk/wp-poll.php

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