Changeset 2282644
- Timestamp:
- 04/13/2020 07:39:33 PM (6 years ago)
- Location:
- plusprice/trunk
- Files:
-
- 4 edited
-
plugsprice.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
widgets/price-style1.php (modified) (22 diffs)
-
widgets/price-style2.php (modified) (23 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plusprice/trunk/plugsprice.php
r2278685 r2282644 2 2 /* 3 3 Plugin Name: PlusPrice 4 Plugin URI: http s://github.com/themeplugs/plugsprice4 Plugin URI: http://themeplugs.com/ 5 5 Author: Themeplugs 6 6 Author URI: http://themeplugs.com/ 7 Version: 1.0. 07 Version: 1.0.1 8 8 Text 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.9 Description: 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. 10 10 11 11 PlusPrice is free software: you can redistribute it and/or modify … … 25 25 26 26 if ( ! defined( 'ABSPATH' ) ) { 27 die(__("Direct Access Not Allow",'plugsprice'));27 wp_die(esc_html__("Direct Access Not Allow",'plugsprice')); 28 28 } 29 29 -
plusprice/trunk/readme.txt
r2278685 r2282644 6 6 Requires PHP: 7.0 7 7 License: GPLv3 8 Stable tag: 1.0.09 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 9 -
plusprice/trunk/widgets/price-style1.php
r2278685 r2282644 12 12 13 13 public function get_title() { 14 return esc_html ( "Pricing Style 1","plugsprice");14 return esc_html__( "Pricing Style 1","plugsprice"); 15 15 } 16 16 … … 27 27 'pricing_title', 28 28 [ 29 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),29 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 30 30 'tab' => Controls_Manager::TAB_CONTENT, 31 31 ] … … 35 35 'pl_style', 36 36 [ 37 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),37 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 38 38 'type' => Controls_Manager::SELECT, 39 39 'default' => 'solid', … … 48 48 'pl_select_hidden', 49 49 [ 50 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),50 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 51 51 'type' => Controls_Manager::HIDDEN, 52 52 'default'=> 'pl_select_hidden' … … 57 57 'pl_pricetitle', 58 58 [ 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' ), 63 63 ] 64 64 ); … … 67 67 'pl_title_shape', 68 68 [ 69 'label' => esc_html ( 'Show title shape', 'plugsprice' ),69 'label' => esc_html__( 'Show title shape', 'plugsprice' ), 70 70 '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' ), 73 73 'return_value' => 'yes', 74 74 'default' => 'yes', … … 81 81 'pricing_price', 82 82 [ 83 'label' => esc_html ( 'Priceing Price', 'plugsprice' ),83 'label' => esc_html__( 'Priceing Price', 'plugsprice' ), 84 84 'tab' => Controls_Manager::TAB_CONTENT, 85 85 ] … … 89 89 'pl_price', 90 90 [ 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' ), 95 95 ] 96 96 ); … … 99 99 'pl_price_currency', 100 100 [ 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' ), 105 105 ] 106 106 ); … … 108 108 'pl_price_duration', 109 109 [ 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' ), 114 114 ] 115 115 ); … … 120 120 'feature_list', 121 121 [ 122 'label' => esc_html ( 'Feature List', 'plugsprice' ),122 'label' => esc_html__( 'Feature List', 'plugsprice' ), 123 123 'tab' => Controls_Manager::TAB_CONTENT, 124 124 ] … … 129 129 $repeater->add_control( 130 130 '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' ), 134 134 'label_block' => true, 135 135 ] … … 139 139 'pl_hidden_icon', 140 140 [ 141 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),141 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 142 142 'type' => Controls_Manager::HIDDEN, 143 143 'default'=> 'pl_hidden_icon' … … 160 160 'feature_list_item', 161 161 [ 162 'label' => esc_html ( 'Feature List', 'plugsprice' ),162 'label' => esc_html__( 'Feature List', 'plugsprice' ), 163 163 'type' => Controls_Manager::REPEATER, 164 164 'fields' => $repeater->get_controls(), 165 165 'default' => [ 166 166 [ 167 'pl_feature_list_title' => esc_html ( '2 Domain Name', 'plugsprice' ),167 'pl_feature_list_title' => esc_html__( '2 Domain Name', 'plugsprice' ), 168 168 'pl_feature_icon' => [ 169 169 'value' => 'fas fa-check', … … 172 172 ], 173 173 [ 174 'pl_feature_list_title' => esc_html ( '30 GB Storage', 'plugsprice' ),174 'pl_feature_list_title' => esc_html__( '30 GB Storage', 'plugsprice' ), 175 175 'pl_feature_icon' => [ 176 176 'value' => 'fas fa-check', … … 179 179 ], 180 180 [ 181 'pl_feature_list_title' => esc_html ( 'Unlimited Data transfer', 'plugsprice' ),181 'pl_feature_list_title' => esc_html__( 'Unlimited Data transfer', 'plugsprice' ), 182 182 'pl_feature_icon' => [ 183 183 'value' => 'fas fa-check', … … 195 195 'pricing_button', 196 196 [ 197 'label' => esc_html ( 'Pricing Button', 'plugsprice' ),197 'label' => esc_html__( 'Pricing Button', 'plugsprice' ), 198 198 'tab' => Controls_Manager::TAB_CONTENT, 199 199 ] … … 203 203 'pl_price_btn', 204 204 [ 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' ), 209 209 ] 210 210 ); … … 213 213 'pl_price_btn_url', 214 214 [ 215 'label' => esc_html ( 'Button Link', 'plugsprice'),215 'label' => esc_html__( 'Button Link', 'plugsprice'), 216 216 'type' => Controls_Manager::URL, 217 217 'show_external' => true, … … 230 230 'pricing_settings', 231 231 [ 232 'label' => esc_html ( 'Settings', 'plugsprice' ),232 'label' => esc_html__( 'Settings', 'plugsprice' ), 233 233 'tab' => Controls_Manager::TAB_CONTENT, 234 234 ] … … 383 383 ); 384 384 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 385 395 $this->end_controls_tab(); 386 396 … … 417 427 \Elementor\Group_Control_Border::get_type(), 418 428 [ 419 'name' => 'btn_border ',429 'name' => 'btn_border_hover', 420 430 'label' => esc_html__( 'Border', 'plugsprice'), 421 431 'selector' => '{{WRAPPER}} .price .btn:hover', -
plusprice/trunk/widgets/price-style2.php
r2278685 r2282644 12 12 13 13 public function get_title() { 14 return esc_html ( "Pricing Style 2","plugsprice");14 return esc_html__( "Pricing Style 2","plugsprice"); 15 15 } 16 16 … … 27 27 'pricing_title', 28 28 [ 29 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),29 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 30 30 'tab' => Controls_Manager::TAB_CONTENT, 31 31 ] … … 35 35 'pl_style', 36 36 [ 37 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),37 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 38 38 'type' => Controls_Manager::SELECT, 39 39 'default' => 'solid', … … 48 48 'pl_select_hidden', 49 49 [ 50 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),50 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 51 51 'type' => Controls_Manager::HIDDEN, 52 52 'default'=> 'pl_select_hidden' … … 57 57 'pl_pricetitle', 58 58 [ 59 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),59 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 60 60 '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' ), 63 63 ] 64 64 ); … … 66 66 'pl_price_subtitle', 67 67 [ 68 'label' => esc_html ( 'Pricing Sub Title', 'plugsprice' ),68 'label' => esc_html__( 'Pricing Sub Title', 'plugsprice' ), 69 69 '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' ), 72 72 ] 73 73 ); … … 75 75 'pl_title_shape', 76 76 [ 77 'label' => esc_html ( 'Show title shape', 'plugsprice' ),77 'label' => esc_html__( 'Show title shape', 'plugsprice' ), 78 78 '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' ), 81 81 'return_value' => 'yes', 82 82 'default' => 'yes', … … 89 89 'pricing_price', 90 90 [ 91 'label' => esc_html ( 'Priceing Price', 'plugsprice' ),91 'label' => esc_html__( 'Priceing Price', 'plugsprice' ), 92 92 'tab' => Controls_Manager::TAB_CONTENT, 93 93 ] … … 97 97 'pl_price', 98 98 [ 99 'label' => esc_html ( 'Price', 'plugsprice' ),99 'label' => esc_html__( 'Price', 'plugsprice' ), 100 100 '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' ), 103 103 ] 104 104 ); … … 107 107 'pl_price_currency', 108 108 [ 109 'label' => esc_html ( 'Currency', 'plugsprice' ),109 'label' => esc_html__( 'Currency', 'plugsprice' ), 110 110 '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' ), 113 113 ] 114 114 ); … … 116 116 'pl_price_duration', 117 117 [ 118 'label' => esc_html ( 'Duration', 'plugsprice' ),118 'label' => esc_html__( 'Duration', 'plugsprice' ), 119 119 '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' ), 122 122 ] 123 123 ); … … 128 128 'feature_list', 129 129 [ 130 'label' => esc_html ( 'Feature List', 'plugsprice' ),130 'label' => esc_html__( 'Feature List', 'plugsprice' ), 131 131 'tab' => Controls_Manager::TAB_CONTENT, 132 132 ] … … 137 137 $repeater->add_control( 138 138 'pl_feature_list_title', [ 139 'label' => esc_html ( 'Feature Title', 'plugsprice' ),139 'label' => esc_html__( 'Feature Title', 'plugsprice' ), 140 140 'type' => Controls_Manager::TEXT, 141 'default' => esc_html ( '2 Domain Name' , 'plugsprice' ),141 'default' => esc_html__( '2 Domain Name' , 'plugsprice' ), 142 142 'label_block' => true, 143 143 ] … … 147 147 'pl_feature_icon', 148 148 [ 149 'label' => esc_html ( 'Feature Icon', 'plugsprice' ),149 'label' => esc_html__( 'Feature Icon', 'plugsprice' ), 150 150 'type' => Controls_Manager::ICONS, 151 151 'default' => [ … … 159 159 'pl_hidden_icon', 160 160 [ 161 'label' => esc_html ( 'Pricing Title', 'plugsprice' ),161 'label' => esc_html__( 'Pricing Title', 'plugsprice' ), 162 162 'type' => Controls_Manager::HIDDEN, 163 163 'default'=> 'pl_hidden_icon' … … 180 180 'feature_list_item', 181 181 [ 182 'label' => esc_html ( 'Feature List', 'plugsprice' ),182 'label' => esc_html__( 'Feature List', 'plugsprice' ), 183 183 'type' => Controls_Manager::REPEATER, 184 184 'fields' => $repeater->get_controls(), 185 185 'default' => [ 186 186 [ 187 'pl_feature_list_title' => esc_html ( '2 Domain Name', 'plugsprice' ),187 'pl_feature_list_title' => esc_html__( '2 Domain Name', 'plugsprice' ), 188 188 'pl_feature_icon' => [ 189 189 'value' => 'fas fa-check', … … 192 192 ], 193 193 [ 194 'pl_feature_list_title' => esc_html ( '30 GB Storage', 'plugsprice' ),194 'pl_feature_list_title' => esc_html__( '30 GB Storage', 'plugsprice' ), 195 195 'pl_feature_icon' => [ 196 196 'value' => 'fas fa-check', … … 199 199 ], 200 200 [ 201 'pl_feature_list_title' => esc_html ( 'Unlimited Data transfer', 'plugsprice' ),201 'pl_feature_list_title' => esc_html__( 'Unlimited Data transfer', 'plugsprice' ), 202 202 'pl_feature_icon' => [ 203 203 'value' => 'fas fa-check', … … 215 215 'pricing_button', 216 216 [ 217 'label' => esc_html ( 'Pricing Button', 'plugsprice' ),217 'label' => esc_html__( 'Pricing Button', 'plugsprice' ), 218 218 'tab' => Controls_Manager::TAB_CONTENT, 219 219 ] … … 223 223 'pl_price_btn', 224 224 [ 225 'label' => esc_html ( 'Button Text', 'plugsprice' ),225 'label' => esc_html__( 'Button Text', 'plugsprice' ), 226 226 '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' ), 229 229 ] 230 230 ); … … 233 233 'pl_price_btn_url', 234 234 [ 235 'label' => esc_html ( 'Button Link', 'plugsprice'),235 'label' => esc_html__( 'Button Link', 'plugsprice'), 236 236 'type' => Controls_Manager::URL, 237 237 'show_external' => true, … … 250 250 'pricing_settings', 251 251 [ 252 'label' => esc_html ( 'Settings', 'plugsprice' ),252 'label' => esc_html__( 'Settings', 'plugsprice' ), 253 253 'tab' => Controls_Manager::TAB_CONTENT, 254 254 ] … … 473 473 </div> 474 474 <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"> 476 476 <?php 477 477 echo esc_html($pl_title);
Note: See TracChangeset
for help on using the changeset viewer.