Plugin Directory

Changeset 2282644


Ignore:
Timestamp:
04/13/2020 07:39:33 PM (6 years ago)
Author:
themeshape
Message:

version 1.0.1 added
string translation problem solved

Location:
plusprice/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plusprice/trunk/plugsprice.php

    r2278685 r2282644  
    22/*
    33Plugin Name: PlusPrice
    4 Plugin URI: https://github.com/themeplugs/plugsprice
     4Plugin URI: http://themeplugs.com/
    55Author: Themeplugs
    66Author URI: http://themeplugs.com/
    7 Version: 1.0.0
     7Version: 1.0.1
    88Text Domain: plugsprice
    9 Description: Any extension developed for Elementor should have an unified and pleasant experience while maintaining WordPress plugin guidelines, coding standards, best practice, and not do anything malicious.plugin guidelines, coding standards, best practice, and not do anything malicious.
     9Description: Plusprice is pricing addons for – Elementor Page Builder. It’s have pricing table style with huge option. You can use this plusprice plugins on your website easily.
    1010
    1111PlusPrice is free software: you can redistribute it and/or modify
     
    2525
    2626if ( ! defined( 'ABSPATH' ) ) {
    27     die(__("Direct Access Not Allow",'plugsprice'));
     27    wp_die(esc_html__("Direct Access Not Allow",'plugsprice'));
    2828}
    2929
  • plusprice/trunk/readme.txt

    r2278685 r2282644  
    66Requires PHP: 7.0
    77License: GPLv3
    8 Stable tag: 1.0.0
    98License URI: https://www.gnu.org/licenses/gpl-3.0.html
    109
  • plusprice/trunk/widgets/price-style1.php

    r2278685 r2282644  
    1212
    1313    public function get_title() {
    14         return esc_html( "Pricing Style 1","plugsprice");
     14        return esc_html__( "Pricing Style 1","plugsprice");
    1515    }
    1616
     
    2727            'pricing_title',
    2828            [
    29                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     29                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    3030                'tab' => Controls_Manager::TAB_CONTENT,
    3131            ]
     
    3535            'pl_style',
    3636            [
    37                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     37                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    3838                'type' => Controls_Manager::SELECT,
    3939                'default' => 'solid',
     
    4848            'pl_select_hidden',
    4949            [
    50                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     50                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    5151                'type' => Controls_Manager::HIDDEN,
    5252                'default'=> 'pl_select_hidden'
     
    5757            'pl_pricetitle',
    5858            [
    59                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
    60                 'type' => Controls_Manager::TEXT,
    61                 'default'=> esc_html("Basic","plugsprice"),
    62                 'placeholder' => esc_html( 'Enter pricing title', 'plugsprice' ),
     59                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
     60                'type' => Controls_Manager::TEXT,
     61                'default'=> esc_html__("Basic","plugsprice"),
     62                'placeholder' => esc_html__( 'Enter pricing title', 'plugsprice' ),
    6363            ]
    6464        );
     
    6767            'pl_title_shape',
    6868            [
    69                 'label' => esc_html( 'Show title shape', 'plugsprice' ),
     69                'label' => esc_html__( 'Show title shape', 'plugsprice' ),
    7070                'type' => Controls_Manager::SWITCHER,
    71                 'label_on' => esc_html( 'Show', 'plugsprice' ),
    72                 'label_off' => esc_html( 'Hide', 'plugsprice' ),
     71                'label_on' => esc_html__( 'Show', 'plugsprice' ),
     72                'label_off' => esc_html__( 'Hide', 'plugsprice' ),
    7373                'return_value' => 'yes',
    7474                'default' => 'yes',
     
    8181            'pricing_price',
    8282            [
    83                 'label' => esc_html( 'Priceing Price', 'plugsprice' ),
     83                'label' => esc_html__( 'Priceing Price', 'plugsprice' ),
    8484                'tab' => Controls_Manager::TAB_CONTENT,
    8585            ]
     
    8989            'pl_price',
    9090            [
    91                 'label' => esc_html( 'Price', 'plugsprice' ),
    92                 'type' => Controls_Manager::TEXT,
    93                 'default'=> esc_html("90","plugsprice"),
    94                 'placeholder' => esc_html( 'enter your price', 'plugsprice' ),
     91                'label' => esc_html__( 'Price', 'plugsprice' ),
     92                'type' => Controls_Manager::TEXT,
     93                'default'=> esc_html__("90","plugsprice"),
     94                'placeholder' => esc_html__( 'enter your price', 'plugsprice' ),
    9595            ]
    9696        );
     
    9999            'pl_price_currency',
    100100            [
    101                 'label' => esc_html( 'Currency', 'plugsprice' ),
    102                 'type' => Controls_Manager::TEXT,
    103                 'default'=> esc_html("$","plugsprice"),
    104                 'placeholder' => esc_html( 'Enter your currency', 'plugsprice' ),
     101                'label' => esc_html__( 'Currency', 'plugsprice' ),
     102                'type' => Controls_Manager::TEXT,
     103                'default'=> esc_html__("$","plugsprice"),
     104                'placeholder' => esc_html__( 'Enter your currency', 'plugsprice' ),
    105105            ]
    106106        );
     
    108108            'pl_price_duration',
    109109            [
    110                 'label' => esc_html( 'Duration', 'plugsprice' ),
    111                 'type' => Controls_Manager::TEXT,
    112                 'default'=> esc_html("/ Month","plugsprice"),
    113                 'placeholder' => esc_html( 'Enter Your heading', 'plugsprice' ),
     110                'label' => esc_html__( 'Duration', 'plugsprice' ),
     111                'type' => Controls_Manager::TEXT,
     112                'default'=> esc_html__("/ Month","plugsprice"),
     113                'placeholder' => esc_html__( 'Enter Your heading', 'plugsprice' ),
    114114            ]
    115115        );
     
    120120            'feature_list',
    121121            [
    122                 'label' => esc_html( 'Feature List', 'plugsprice' ),
     122                'label' => esc_html__( 'Feature List', 'plugsprice' ),
    123123                'tab' => Controls_Manager::TAB_CONTENT,
    124124            ]
     
    129129        $repeater->add_control(
    130130            'pl_feature_list_title', [
    131                 'label' => esc_html( 'Feature Title', 'plugsprice' ),
    132                 'type' => Controls_Manager::TEXT,
    133                 'default' => esc_html( '2 Domain Name' , 'plugsprice' ),
     131                'label' => esc_html__( 'Feature Title', 'plugsprice' ),
     132                'type' => Controls_Manager::TEXT,
     133                'default' => esc_html__( '2 Domain Name' , 'plugsprice' ),
    134134                'label_block' => true,
    135135            ]
     
    139139            'pl_hidden_icon',
    140140            [
    141                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     141                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    142142                'type' => Controls_Manager::HIDDEN,
    143143                'default'=> 'pl_hidden_icon'
     
    160160            'feature_list_item',
    161161            [
    162                 'label' => esc_html( 'Feature List', 'plugsprice' ),
     162                'label' => esc_html__( 'Feature List', 'plugsprice' ),
    163163                'type' => Controls_Manager::REPEATER,
    164164                'fields' => $repeater->get_controls(),
    165165                'default' => [
    166166                    [
    167                         'pl_feature_list_title' => esc_html( '2 Domain Name', 'plugsprice' ),
     167                        'pl_feature_list_title' => esc_html__( '2 Domain Name', 'plugsprice' ),
    168168                        'pl_feature_icon'    => [
    169169                            'value'     => 'fas fa-check',
     
    172172                    ],
    173173                    [
    174                         'pl_feature_list_title' => esc_html( '30 GB Storage', 'plugsprice' ),
     174                        'pl_feature_list_title' => esc_html__( '30 GB Storage', 'plugsprice' ),
    175175                        'pl_feature_icon'    => [
    176176                            'value'     => 'fas fa-check',
     
    179179                    ],
    180180                    [
    181                         'pl_feature_list_title' => esc_html( 'Unlimited Data transfer', 'plugsprice' ),
     181                        'pl_feature_list_title' => esc_html__( 'Unlimited Data transfer', 'plugsprice' ),
    182182                        'pl_feature_icon'    => [
    183183                            'value'     => 'fas fa-check',
     
    195195            'pricing_button',
    196196            [
    197                 'label' => esc_html( 'Pricing Button', 'plugsprice' ),
     197                'label' => esc_html__( 'Pricing Button', 'plugsprice' ),
    198198                'tab' => Controls_Manager::TAB_CONTENT,
    199199            ]
     
    203203            'pl_price_btn',
    204204            [
    205                 'label' => esc_html( 'Button Text', 'plugsprice' ),
    206                 'type' => Controls_Manager::TEXT,
    207                 'default'=> esc_html("Bye Now","plugsprice"),
    208                 'placeholder' => esc_html( 'Enter Button Text', 'plugsprice' ),
     205                'label' => esc_html__( 'Button Text', 'plugsprice' ),
     206                'type' => Controls_Manager::TEXT,
     207                'default'=> esc_html__("Bye Now","plugsprice"),
     208                'placeholder' => esc_html__( 'Enter Button Text', 'plugsprice' ),
    209209            ]
    210210        );
     
    213213            'pl_price_btn_url',
    214214            [
    215                 'label' => esc_html( 'Button Link', 'plugsprice'),
     215                'label' => esc_html__( 'Button Link', 'plugsprice'),
    216216                'type' => Controls_Manager::URL,
    217217                'show_external' => true,
     
    230230            'pricing_settings',
    231231            [
    232                 'label' => esc_html( 'Settings', 'plugsprice' ),
     232                'label' => esc_html__( 'Settings', 'plugsprice' ),
    233233                'tab' => Controls_Manager::TAB_CONTENT,
    234234            ]
     
    383383        );
    384384
     385        $this->add_group_control(
     386            \Elementor\Group_Control_Border::get_type(),
     387            [
     388                'name' => 'btn_border',
     389                'label' => esc_html__( 'Border', 'plugsprice'),
     390                'selector' => '{{WRAPPER}} .price .btn',
     391                'seperator'=> 'after',
     392            ]
     393        );
     394
    385395        $this->end_controls_tab();
    386396
     
    417427            \Elementor\Group_Control_Border::get_type(),
    418428            [
    419                 'name' => 'btn_border',
     429                'name' => 'btn_border_hover',
    420430                'label' => esc_html__( 'Border', 'plugsprice'),
    421431                'selector' => '{{WRAPPER}} .price .btn:hover',
  • plusprice/trunk/widgets/price-style2.php

    r2278685 r2282644  
    1212
    1313    public function get_title() {
    14         return esc_html( "Pricing Style 2","plugsprice");
     14        return esc_html__( "Pricing Style 2","plugsprice");
    1515    }
    1616
     
    2727            'pricing_title',
    2828            [
    29                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     29                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    3030                'tab' => Controls_Manager::TAB_CONTENT,
    3131            ]
     
    3535            'pl_style',
    3636            [
    37                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     37                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    3838                'type' => Controls_Manager::SELECT,
    3939                'default' => 'solid',
     
    4848            'pl_select_hidden',
    4949            [
    50                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     50                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    5151                'type' => Controls_Manager::HIDDEN,
    5252                'default'=> 'pl_select_hidden'
     
    5757            'pl_pricetitle',
    5858            [
    59                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     59                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    6060                'type' => Controls_Manager::TEXT,
    61                 'default'=> esc_html("Basic","plugsprice"),
    62                 'placeholder' => esc_html( 'Enter pricing title', 'plugsprice' ),
     61                'default'=> esc_html__("Basic","plugsprice"),
     62                'placeholder' => esc_html__( 'Enter pricing title', 'plugsprice' ),
    6363            ]
    6464        );
     
    6666            'pl_price_subtitle',
    6767            [
    68                 'label'         => esc_html( 'Pricing Sub Title', 'plugsprice' ),
     68                'label'         => esc_html__( 'Pricing Sub Title', 'plugsprice' ),
    6969                'type'          => Controls_Manager::TEXT,
    70                 'default'       => esc_html("Most Popular","plugsprice"),
    71                 'placeholder'   => esc_html( 'Enter pricing Sub title', 'plugsprice' ),
     70                'default'       => esc_html__("Most Popular","plugsprice"),
     71                'placeholder'   => esc_html__( 'Enter pricing Sub title', 'plugsprice' ),
    7272            ]
    7373        );
     
    7575            'pl_title_shape',
    7676            [
    77                 'label' => esc_html( 'Show title shape', 'plugsprice' ),
     77                'label' => esc_html__( 'Show title shape', 'plugsprice' ),
    7878                'type' => Controls_Manager::SWITCHER,
    79                 'label_on' => esc_html( 'Show', 'plugsprice' ),
    80                 'label_off' => esc_html( 'Hide', 'plugsprice' ),
     79                'label_on' => esc_html__( 'Show', 'plugsprice' ),
     80                'label_off' => esc_html__( 'Hide', 'plugsprice' ),
    8181                'return_value' => 'yes',
    8282                'default' => 'yes',
     
    8989            'pricing_price',
    9090            [
    91                 'label' => esc_html( 'Priceing Price', 'plugsprice' ),
     91                'label' => esc_html__( 'Priceing Price', 'plugsprice' ),
    9292                'tab' => Controls_Manager::TAB_CONTENT,
    9393            ]
     
    9797            'pl_price',
    9898            [
    99                 'label' => esc_html( 'Price', 'plugsprice' ),
     99                'label' => esc_html__( 'Price', 'plugsprice' ),
    100100                'type' => Controls_Manager::TEXT,
    101                 'default'=> esc_html("90","plugsprice"),
    102                 'placeholder' => esc_html( 'enter your price', 'plugsprice' ),
     101                'default'=> esc_html__("90","plugsprice"),
     102                'placeholder' => esc_html__( 'enter your price', 'plugsprice' ),
    103103            ]
    104104        );
     
    107107            'pl_price_currency',
    108108            [
    109                 'label' => esc_html( 'Currency', 'plugsprice' ),
     109                'label' => esc_html__( 'Currency', 'plugsprice' ),
    110110                'type' => Controls_Manager::TEXT,
    111                 'default'=> esc_html("$","plugsprice"),
    112                 'placeholder' => esc_html( 'Enter your currency', 'plugsprice' ),
     111                'default'=> esc_html__("$","plugsprice"),
     112                'placeholder' => esc_html__( 'Enter your currency', 'plugsprice' ),
    113113            ]
    114114        );
     
    116116            'pl_price_duration',
    117117            [
    118                 'label' => esc_html( 'Duration', 'plugsprice' ),
     118                'label' => esc_html__( 'Duration', 'plugsprice' ),
    119119                'type' => Controls_Manager::TEXT,
    120                 'default'=> esc_html("/ mo","plugsprice"),
    121                 'placeholder' => esc_html( 'Enter Your heading', 'plugsprice' ),
     120                'default'=> esc_html__("/ mo","plugsprice"),
     121                'placeholder' => esc_html__( 'Enter Your heading', 'plugsprice' ),
    122122            ]
    123123        );
     
    128128            'feature_list',
    129129            [
    130                 'label' => esc_html( 'Feature List', 'plugsprice' ),
     130                'label' => esc_html__( 'Feature List', 'plugsprice' ),
    131131                'tab' => Controls_Manager::TAB_CONTENT,
    132132            ]
     
    137137        $repeater->add_control(
    138138            'pl_feature_list_title', [
    139                 'label' => esc_html( 'Feature Title', 'plugsprice' ),
     139                'label' => esc_html__( 'Feature Title', 'plugsprice' ),
    140140                'type' => Controls_Manager::TEXT,
    141                 'default' => esc_html( '2 Domain Name' , 'plugsprice' ),
     141                'default' => esc_html__( '2 Domain Name' , 'plugsprice' ),
    142142                'label_block' => true,
    143143            ]
     
    147147            'pl_feature_icon',
    148148            [
    149                 'label' => esc_html( 'Feature Icon', 'plugsprice' ),
     149                'label' => esc_html__( 'Feature Icon', 'plugsprice' ),
    150150                'type' => Controls_Manager::ICONS,
    151151                'default' => [
     
    159159            'pl_hidden_icon',
    160160            [
    161                 'label' => esc_html( 'Pricing Title', 'plugsprice' ),
     161                'label' => esc_html__( 'Pricing Title', 'plugsprice' ),
    162162                'type' => Controls_Manager::HIDDEN,
    163163                'default'=> 'pl_hidden_icon'
     
    180180            'feature_list_item',
    181181            [
    182                 'label' => esc_html( 'Feature List', 'plugsprice' ),
     182                'label' => esc_html__( 'Feature List', 'plugsprice' ),
    183183                'type' => Controls_Manager::REPEATER,
    184184                'fields' => $repeater->get_controls(),
    185185                'default' => [
    186186                    [
    187                         'pl_feature_list_title' => esc_html( '2 Domain Name', 'plugsprice' ),
     187                        'pl_feature_list_title' => esc_html__( '2 Domain Name', 'plugsprice' ),
    188188                        'pl_feature_icon'    => [
    189189                            'value'     => 'fas fa-check',
     
    192192                    ],
    193193                    [
    194                         'pl_feature_list_title' => esc_html( '30 GB Storage', 'plugsprice' ),
     194                        'pl_feature_list_title' => esc_html__( '30 GB Storage', 'plugsprice' ),
    195195                        'pl_feature_icon'    => [
    196196                            'value'     => 'fas fa-check',
     
    199199                    ],
    200200                    [
    201                         'pl_feature_list_title' => esc_html( 'Unlimited Data transfer', 'plugsprice' ),
     201                        'pl_feature_list_title' => esc_html__( 'Unlimited Data transfer', 'plugsprice' ),
    202202                        'pl_feature_icon'    => [
    203203                            'value'     => 'fas fa-check',
     
    215215            'pricing_button',
    216216            [
    217                 'label' => esc_html( 'Pricing Button', 'plugsprice' ),
     217                'label' => esc_html__( 'Pricing Button', 'plugsprice' ),
    218218                'tab' => Controls_Manager::TAB_CONTENT,
    219219            ]
     
    223223            'pl_price_btn',
    224224            [
    225                 'label' => esc_html( 'Button Text', 'plugsprice' ),
     225                'label' => esc_html__( 'Button Text', 'plugsprice' ),
    226226                'type' => Controls_Manager::TEXT,
    227                 'default'=> esc_html("Bye Now","plugsprice"),
    228                 'placeholder' => esc_html( 'Enter Button Text', 'plugsprice' ),
     227                'default'=> esc_html__("Bye Now","plugsprice"),
     228                'placeholder' => esc_html__( 'Enter Button Text', 'plugsprice' ),
    229229            ]
    230230        );
     
    233233            'pl_price_btn_url',
    234234            [
    235                 'label' => esc_html( 'Button Link', 'plugsprice'),
     235                'label' => esc_html__( 'Button Link', 'plugsprice'),
    236236                'type' => Controls_Manager::URL,
    237237                'show_external' => true,
     
    250250            'pricing_settings',
    251251            [
    252                 'label' => esc_html( 'Settings', 'plugsprice' ),
     252                'label' => esc_html__( 'Settings', 'plugsprice' ),
    253253                'tab' => Controls_Manager::TAB_CONTENT,
    254254            ]
     
    473473                </div>
    474474                <div class="price-content">
    475                     <h5 class="price-title" <?php echo esc_html($this->get_render_attribute_string( 'pl_pricetitle' )); ?>>
     475                    <h5 class="price-title">
    476476                        <?php
    477477                            echo esc_html($pl_title);
Note: See TracChangeset for help on using the changeset viewer.