Changeset 2725153
- Timestamp:
- 05/17/2022 09:09:23 AM (4 years ago)
- Location:
- currency-switcher-for-woocommerce/trunk
- Files:
-
- 1 added
- 6 edited
-
includes/admin/class-admin.php (modified) (1 diff)
-
includes/admin/class-pmcs-settings-license.php (added)
-
includes/admin/fields/html.php (modified) (2 diffs)
-
includes/admin/templates/html-settings.php (modified) (1 diff)
-
includes/class-pmcs-plugin.php (modified) (1 diff)
-
pmcs.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
currency-switcher-for-woocommerce/trunk/includes/admin/class-admin.php
r2069679 r2725153 177 177 $this->add_tab( 'PMCS_Settings_Exchange_Rate' ); 178 178 $this->add_tab( 'PMCS_Settings_switcher' ); 179 180 181 179 182 } 180 183 -
currency-switcher-for-woocommerce/trunk/includes/admin/fields/html.php
r2069679 r2725153 11 11 $tooltip_html = $field_description['tooltip_html']; 12 12 13 ?> 13 if ( isset( $value['hook'] ) && $value['hook'] ) { 14 ?> 15 <tr valign="top"> 16 <td colspan="2" style="padding-left: 0px; padding-top: 0px;"> 17 <?php do_action( $value['hook'] ); ?> 18 </td> 19 </tr> 20 <?php 21 } else { 22 23 ?> 14 24 <tr valign="top"> 15 25 <th scope="row" class="titledesc"> … … 28 38 </td> 29 39 </tr> 30 <?php 40 <?php 41 } 31 42 } 32 43 -
currency-switcher-for-woocommerce/trunk/includes/admin/templates/html-settings.php
r2069679 r2725153 48 48 } 49 49 50 if ( method_exists( $registered_tabs[ $current_tab ], 'before_end' ) ) { 51 $registered_tabs[ $current_tab ]->before_end(); 52 } 53 50 54 if ( pmcs()->admin->is_show_submit_btn() ) { 51 55 ?> -
currency-switcher-for-woocommerce/trunk/includes/class-pmcs-plugin.php
r2069679 r2725153 160 160 add_action( 'wp_enqueue_scripts', array( $this, 'scripts' ) ); 161 161 162 163 162 164 do_action( 'pmcs_loaded' ); 163 165 } -
currency-switcher-for-woocommerce/trunk/pmcs.php
r2069679 r2725153 4 4 * Plugin URI: # 5 5 * Description: Currency Switcher for WooCommerce. 6 * Version: 0.0. 16 * Version: 0.0.5 7 7 * Author: PressMaximum 8 8 * Author URI: http://pressmaximum.com/ … … 10 10 * Domain Path: /languages 11 11 * License: GPL-2.0+ 12 * WC requires at least: 5.0 13 * WC tested up to: 5.9.3 14 * Requires at least: 5.1 15 * Requires PHP: 7.0 12 16 */ 13 17 … … 32 36 33 37 34 if ( ! class_exists( 'PMCS_Plugin' )) {38 if (!class_exists('PMCS_Plugin')) { 35 39 36 40 // Useful global constants. 37 define( 'PMCS_URL', plugin_dir_url( __FILE__ ) ); 38 define( 'PMCS_PATH', dirname( __FILE__ ) . '/' ); 39 define( 'PMCS_INC', PMCS_PATH . 'includes/' ); 41 define('PMCS_URL', plugin_dir_url(__FILE__)); 42 define('PMCS_PATH', dirname(__FILE__) . '/'); 43 define('PMCS_INC', PMCS_PATH . 'includes/'); 44 45 define('PMCS_PLUGIN_FILE', __FILE__); 46 47 40 48 41 49 // Include files. … … 50 58 * @return PMCS_Plugin 51 59 */ 52 function pmcs() { 60 function pmcs() 61 { 53 62 return PMCS_Plugin::instance(); 54 63 } 55 64 } 56 65 57 function pmcs__init() { 66 function pmcs__init() 67 { 58 68 $GLOBALS['pmcs'] = pmcs(); 59 69 } 60 70 61 add_action( 'woocommerce_loaded', 'pmcs__init', 2);71 add_action('woocommerce_loaded', 'pmcs__init', 2); 62 72 63 73 64 if ( ! function_exists( 'pmcs_activation_redirect' ) ) { 65 function pmcs_activation_redirect( $plugin ) { 66 if ( plugin_basename( __FILE__ ) == $plugin ) { 67 exit( wp_redirect( admin_url( 'admin.php?page=pm_currency_switcher' ) ) ); 74 if (!function_exists('pmcs_activation_redirect')) { 75 function pmcs_activation_redirect($plugin) 76 { 77 if (plugin_basename(__FILE__) == $plugin) { 78 exit(wp_redirect(admin_url('admin.php?page=pm_currency_switcher'))); 68 79 } 69 80 } 70 81 } 71 82 72 add_action( 'activated_plugin', 'pmcs_activation_redirect' ); 73 83 add_action('activated_plugin', 'pmcs_activation_redirect'); -
currency-switcher-for-woocommerce/trunk/readme.txt
r2069681 r2725153 4 4 Tags: currency, switcher, currency switcher, currency converter, converter, woocommerce 5 5 Requires at least: 4.5 6 Tested up to: 5. 1.16 Tested up to: 5.9.3 7 7 Stable tag: trunk 8 8 License: GPL-2.0+ … … 71 71 == Changelog == 72 72 73 = 0.1.0 = 73 = 0.0.2 = 74 * Fix bugs 75 76 = 0.0.1 = 74 77 * First release 75 78 76 79 == Upgrade Notice == 77 78 = 0.1.0 =79 First Release
Note: See TracChangeset
for help on using the changeset viewer.