Changeset 3039873
- Timestamp:
- 02/22/2024 06:18:13 PM (2 years ago)
- Location:
- wc-call-for-price
- Files:
-
- 69 added
- 8 edited
-
tags/1.4.2 (added)
-
tags/1.4.2/activation-deactivation.php (added)
-
tags/1.4.2/assets (added)
-
tags/1.4.2/assets/css (added)
-
tags/1.4.2/assets/css/wcp-admin-style.css (added)
-
tags/1.4.2/assets/images (added)
-
tags/1.4.2/assets/images/preset-buttons (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_1.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_10.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_11.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_12.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_13.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_14.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_15.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_2.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_3.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_4.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_5.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_6.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_7.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_8.png (added)
-
tags/1.4.2/assets/images/preset-buttons/cfp_9.png (added)
-
tags/1.4.2/assets/images/preset-buttons/close.png (added)
-
tags/1.4.2/assets/images/preset-buttons/selected.png (added)
-
tags/1.4.2/assets/images/preset-buttons/unselected.png (added)
-
tags/1.4.2/assets/js (added)
-
tags/1.4.2/assets/js/wcp-admin-script.js (added)
-
tags/1.4.2/functions.php (added)
-
tags/1.4.2/includes (added)
-
tags/1.4.2/includes/AdminFormSave.php (added)
-
tags/1.4.2/includes/AdminMenu.php (added)
-
tags/1.4.2/includes/AdminPageValidator.php (added)
-
tags/1.4.2/includes/Assets.php (added)
-
tags/1.4.2/includes/Boot.php (added)
-
tags/1.4.2/includes/Constants.php (added)
-
tags/1.4.2/includes/Render.php (added)
-
tags/1.4.2/includes/Upgrader.php (added)
-
tags/1.4.2/languages (added)
-
tags/1.4.2/languages/wc-call-for-price.pot (added)
-
tags/1.4.2/license.txt (added)
-
tags/1.4.2/readme.txt (added)
-
tags/1.4.2/templates (added)
-
tags/1.4.2/templates/admin (added)
-
tags/1.4.2/templates/admin/layout.php (added)
-
tags/1.4.2/templates/admin/pages (added)
-
tags/1.4.2/templates/admin/pages/404.php (added)
-
tags/1.4.2/templates/admin/pages/action_settings.php (added)
-
tags/1.4.2/templates/admin/pages/button_settings.php (added)
-
tags/1.4.2/templates/admin/pages/general_settings.php (added)
-
tags/1.4.2/templates/admin/pages/rules_settings.php (added)
-
tags/1.4.2/templates/admin/parts (added)
-
tags/1.4.2/templates/admin/parts/footer.php (added)
-
tags/1.4.2/templates/admin/parts/header.php (added)
-
tags/1.4.2/templates/admin/parts/navigation.php (added)
-
tags/1.4.2/vendor (added)
-
tags/1.4.2/vendor/autoload.php (added)
-
tags/1.4.2/vendor/composer (added)
-
tags/1.4.2/vendor/composer/ClassLoader.php (added)
-
tags/1.4.2/vendor/composer/InstalledVersions.php (added)
-
tags/1.4.2/vendor/composer/LICENSE (added)
-
tags/1.4.2/vendor/composer/autoload_classmap.php (added)
-
tags/1.4.2/vendor/composer/autoload_files.php (added)
-
tags/1.4.2/vendor/composer/autoload_namespaces.php (added)
-
tags/1.4.2/vendor/composer/autoload_psr4.php (added)
-
tags/1.4.2/vendor/composer/autoload_real.php (added)
-
tags/1.4.2/vendor/composer/autoload_static.php (added)
-
tags/1.4.2/vendor/composer/installed.json (added)
-
tags/1.4.2/vendor/composer/installed.php (added)
-
tags/1.4.2/wc-call-for-price.php (added)
-
trunk/functions.php (modified) (2 diffs)
-
trunk/includes/AdminFormSave.php (modified) (4 diffs)
-
trunk/includes/Constants.php (modified) (2 diffs)
-
trunk/languages/wc-call-for-price.pot (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/admin/pages/button_settings.php (modified) (1 diff)
-
trunk/templates/admin/pages/general_settings.php (modified) (2 diffs)
-
trunk/wc-call-for-price.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-call-for-price/trunk/functions.php
r2950927 r3039873 26 26 } 27 27 } 28 29 28 30 29 /** … … 91 90 return ! empty( get_option( $option_name ) ); 92 91 } 92 93 /** 94 * @param $option_name 95 * @param $compare_to 96 * @param $echo 97 * 98 * @return void 99 */ 100 function wcp_is_checked( $option_name, $compare_to = Constants::ON, $echo = true ) { 101 $value = get_option( $option_name, Constants::OFF ); 102 $result = $value === $compare_to; 103 if ( $result ) { 104 if ( $echo ) { 105 echo 'checked'; 106 } 107 return true; 108 } 109 return false; 110 } -
wc-call-for-price/trunk/includes/AdminFormSave.php
r2950927 r3039873 7 7 8 8 namespace WCPress\WCP; 9 10 use Automattic\WooCommerce\Internal\DependencyManagement\ContainerException;11 9 12 10 class AdminFormSave { … … 62 60 $this->update_checkbox( Constants::ONLY_EMPTY_PRICE ); 63 61 $this->update_checkbox( Constants::SHOW_ON_ALL_PRODUCTS ); 64 65 $this->update_text( Constants::TEXT );66 62 } 67 63 … … 77 73 */ 78 74 function save_button_settings( $form_slug ) { 75 $this->update_checkbox( Constants::SHOW_TEXT ); 76 $this->update_text( Constants::TEXT ); 77 79 78 $this->update_checkbox( Constants::SHOW_PRESET_IMAGE ); 80 79 $this->update_checkbox( Constants::SHOW_UPLOADED_IMAGE ); … … 191 190 update_option( $input_name, $value ); 192 191 } 193 194 192 } -
wc-call-for-price/trunk/includes/Constants.php
r2950927 r3039873 16 16 const SHOW_PRESET_IMAGE = 'wc_call_for_price__show_image'; 17 17 const PRESET_IMAGE_NAME = 'wc_call_for_price__image'; 18 const SHOW_TEXT = 'wc_call_for_price__show_text'; 18 19 const TEXT = 'wc_call_for_price__text'; 19 20 const OFF = 'off'; … … 55 56 const ADMIN_FORM_NONCE_ACTION = 'wcp_admin_field_nonce_action'; 56 57 58 // Default string 59 const DEFAULT_BUTTON_TEXT = 'Call For Price'; 60 57 61 } -
wc-call-for-price/trunk/languages/wc-call-for-price.pot
r2950927 r3039873 1 # Copyright (C) 202 3 Aftabul Islam1 # Copyright (C) 2024 WCPress 2 2 # This file is distributed under the GPLv3 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WC Call For Price 1. 3.0\n"5 "Project-Id-Version: WC Call For Price 1.4.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-call-for-price\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-08-09T16:13:10+00:00\n"12 "POT-Creation-Date: 2024-02-22T17:50:31+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 8.1\n"14 "X-Generator: WP-CLI 2.9.0\n" 15 15 "X-Domain: wc-call-for-price\n" 16 16 … … 29 29 30 30 #. Author of the plugin 31 msgid " Aftabul Islam"31 msgid "WCPress" 32 32 msgstr "" 33 33 34 34 #. Author URI of the plugin 35 msgid "https://profiles.wordpress.org/aihimel" 36 msgstr "" 37 38 #: includes/AdminMenu.php:32 39 msgid "WooCommerce Call For Price" 40 msgstr "" 41 42 #: includes/AdminMenu.php:33 43 #: includes/Render.php:104 44 #: includes/Render.php:118 45 msgid "Call For Price" 46 msgstr "" 47 48 #: includes/AdminMenu.php:49 49 msgid "You don't have permission to access this page" 50 msgstr "" 51 52 #: includes/AdminMenu.php:65 53 msgid "Settings" 35 msgid "https://wcpress.net/wc-call-for-price-woocommerce-plugin" 54 36 msgstr "" 55 37 … … 87 69 88 70 #: templates/admin/pages/action_settings.php:81 89 #: templates/admin/pages/button_settings.php:1 2790 #: templates/admin/pages/general_settings.php:7 971 #: templates/admin/pages/button_settings.php:153 72 #: templates/admin/pages/general_settings.php:70 91 73 #: templates/admin/pages/rules_settings.php:75 92 74 msgid "Save Settings" … … 97 79 msgstr "" 98 80 99 #: templates/admin/pages/button_settings.php:25 81 #: templates/admin/pages/button_settings.php:26 82 msgid "Text" 83 msgstr "" 84 85 #: templates/admin/pages/button_settings.php:31 86 msgid "Show Text" 87 msgstr "" 88 89 #: templates/admin/pages/button_settings.php:41 90 msgid "Check to show only text on a simple html button." 91 msgstr "" 92 93 #: templates/admin/pages/button_settings.php:44 94 msgid "Text To Show :" 95 msgstr "" 96 97 #: templates/admin/pages/button_settings.php:46 98 msgid "Write here what you want to see on front end. Plain text or HTML." 99 msgstr "" 100 101 #: templates/admin/pages/button_settings.php:51 100 102 msgid "Select Image" 101 103 msgstr "" 102 104 103 #: templates/admin/pages/button_settings.php: 27105 #: templates/admin/pages/button_settings.php:53 104 106 msgid "Show Image :" 105 107 msgstr "" 106 108 107 #: templates/admin/pages/button_settings.php: 30109 #: templates/admin/pages/button_settings.php:56 108 110 msgid "Check this box if you want to select an image form some specific list of \"Call for price\" images." 109 111 msgstr "" 110 112 111 #: templates/admin/pages/button_settings.php: 46113 #: templates/admin/pages/button_settings.php:72 112 114 msgid "Check any one form here." 113 115 msgstr "" 114 116 115 #: templates/admin/pages/button_settings.php: 51117 #: templates/admin/pages/button_settings.php:77 116 118 msgid "Upload Image" 117 119 msgstr "" 118 120 119 #: templates/admin/pages/button_settings.php: 53121 #: templates/admin/pages/button_settings.php:79 120 122 msgid "Show Uploaded Image :" 121 123 msgstr "" 122 124 123 #: templates/admin/pages/button_settings.php: 55125 #: templates/admin/pages/button_settings.php:81 124 126 msgid "Check this box if you want to show your uploaded image." 125 127 msgstr "" 126 128 127 #: templates/admin/pages/button_settings.php: 64129 #: templates/admin/pages/button_settings.php:90 128 130 msgid "Upload Your Image" 129 131 msgstr "" 130 132 131 #: templates/admin/pages/button_settings.php: 74133 #: templates/admin/pages/button_settings.php:100 132 134 msgid "If you want to upload your custom image, upload here." 133 135 msgstr "" 134 136 135 #: templates/admin/pages/button_settings.php: 80137 #: templates/admin/pages/button_settings.php:106 136 138 msgid "Button Attributes" 137 139 msgstr "" 138 140 139 #: templates/admin/pages/button_settings.php: 91141 #: templates/admin/pages/button_settings.php:117 140 142 msgid "Button height in pixel" 141 143 msgstr "" 142 144 143 #: templates/admin/pages/button_settings.php:1 04145 #: templates/admin/pages/button_settings.php:130 144 146 msgid "Button width in pixel" 145 147 msgstr "" 146 148 147 #: templates/admin/pages/button_settings.php:1 17149 #: templates/admin/pages/button_settings.php:143 148 150 msgid "Button alt attribute text" 149 151 msgstr "" … … 183 185 #: templates/admin/pages/general_settings.php:60 184 186 msgid "If checked, this will show call for price on all products." 185 msgstr ""186 187 #: templates/admin/pages/general_settings.php:65188 msgid "Text"189 msgstr ""190 191 #: templates/admin/pages/general_settings.php:67192 msgid "Text To Show :"193 msgstr ""194 195 #: templates/admin/pages/general_settings.php:69196 msgid "Write here what you want to see on front end. Plain text or HTML."197 187 msgstr "" 198 188 -
wc-call-for-price/trunk/readme.txt
r3032324 r3039873 5 5 Tested up to: 6.4 6 6 WC requires at least: 5.0.0 7 WC tested up to: 8. 37 WC tested up to: 8.6 8 8 Requires PHP: 7.2 9 Stable tag: 1.4. 19 Stable tag: 1.4.2 10 10 License: GPLv3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 126 126 == Changelog == 127 127 128 = 1.4.1 (6 February 2023) 128 - 1.4.2 (22 February 2023) = 129 * ✅ **Feature:** Now you will be able to show `text only` with links. 130 * 🪛 **Tweak:** Text to show is reorganized with button tab 131 132 = 1.4.1 (6 February 2023) = 129 133 * 🪛 **Tweak:** Button css theme conflict issue fixed 130 134 -
wc-call-for-price/trunk/templates/admin/pages/button_settings.php
r2950927 r3039873 22 22 <form class="" method="POST" action=""> 23 23 <?php wp_nonce_field( Constants::ADMIN_FORM_NONCE_ACTION, Constants::NONCE_FIELD_NAME ); ?> 24 25 <fieldset> 26 <legend><?php esc_html_e( 'Text', 'wc-call-for-price' ); ?></legend> 27 <div class="checkbox"> 28 <label 29 for="<?php echo esc_attr( Constants::SHOW_TEXT ); ?>" 30 > 31 <?php esc_html_e( 'Show Text', 'wc-call-for-price' ); ?> 32 </label> 33 <input 34 type="checkbox" 35 <?php if(get_option(Constants::SHOW_TEXT, Constants::OFF) == Constants::ON) echo 'checked'; ?> 36 id="<?php echo esc_attr( Constants::SHOW_TEXT ); ?>" 37 name="<?php echo esc_attr( Constants::SHOW_TEXT ); ?>" 38 class="wcp-rquery" 39 data-uncheck="#wc_call_for_price__show_image" 40 > 41 <p class="help-block"><?php esc_html_e( 'Check to show only text on a simple html button.', 'wc-call-for-price'); ?></p> 42 </div> 43 <div class="form-group"> 44 <label for="wc_call_for_price__text"><?php esc_html_e( 'Text To Show :', 'wc-call-for-price' ); ?> </label> 45 <input type="text" class="form-control" id="wc_call_for_price__text" name='wc_call_for_price__text' value='<?php echo esc_attr( get_option('wc_call_for_price__text') );?>'> 46 <p class="help-block"><?php esc_html_e( 'Write here what you want to see on front end. Plain text or HTML.', 'wc-call-for-price'); ?></p> 47 </div> 48 </fieldset> 49 24 50 <fieldset> 25 51 <legend><?php esc_html_e( 'Select Image', 'wc-call-for-price' ); ?></legend> 26 52 <div class="checkbox"> 27 53 <label for='wc_call_for_price__show_image'><?php esc_html_e( 'Show Image :', 'wc-call-for-price' ); ?></label> 28 <input type="checkbox" <?php if(get_option('wc_call_for_price__show_image') == 'on') echo 'checked'; ?> id='wc_call_for_price__show_image' name='wc_call_for_price__show_image'>54 <input class="wcp-rquery" type="checkbox" <?php if(get_option('wc_call_for_price__show_image') == 'on') echo 'checked'; ?> id='wc_call_for_price__show_image' name='wc_call_for_price__show_image'> 29 55 <p class="help-block"> 30 56 <?php esc_html_e( 'Check this box if you want to select an image form some specific list of "Call for price" images.', 'wc-call-for-price' ); ?> -
wc-call-for-price/trunk/templates/admin/pages/general_settings.php
r2950927 r3039873 21 21 <label for="activate"><?php esc_html_e( 'Activate', 'wc-call-for-price' ); ?>: </label> 22 22 <input 23 type="checkbox"24 name="<?php echo esc_attr( Constants::WCP_ACTIVATE ); ?>"25 id="activate"26 value="<?php echo esc_attr( Constants::ON ); ?>"27 <?php checked( get_option( Constants::WCP_ACTIVATE ), Constants::ON, true ) ?>23 type="checkbox" 24 name="<?php echo esc_attr( Constants::WCP_ACTIVATE ); ?>" 25 id="activate" 26 value="<?php echo esc_attr( Constants::ON ); ?>" 27 <?php checked( get_option( Constants::WCP_ACTIVATE ), Constants::ON, true ) ?> 28 28 /> 29 29 <p class="help-block"> … … 62 62 </fieldset> 63 63 64 <fieldset>65 <legend><?php esc_html_e( 'Text', 'wc-call-for-price' ); ?></legend>66 <div class="form-group">67 <label for="wc_call_for_price__text"><?php esc_html_e( 'Text To Show :', 'wc-call-for-price' ); ?> </label>68 <input type="text" class="form-control" id="wc_call_for_price__text" name='wc_call_for_price__text' value='<?php echo esc_attr( get_option('wc_call_for_price__text') );?>'>69 <p class="help-block"><?php esc_html_e( 'Write here what you want to see on front end. Plain text or HTML.', 'wc-call-for-price'); ?></p>70 </div>71 </fieldset>72 73 64 <button 74 65 type="submit" -
wc-call-for-price/trunk/wc-call-for-price.php
r3032324 r3039873 3 3 * Plugin Name: WC Call For Price 4 4 * Plugin URI: http://www.wordpress.org/wc-call-for-price 5 * Version: 1.4. 15 * Version: 1.4.2 6 6 * Author: WCPress 7 7 * Author URI: https://wcpress.net/wc-call-for-price-woocommerce-plugin
Note: See TracChangeset
for help on using the changeset viewer.