Changeset 2917934
- Timestamp:
- 05/26/2023 07:51:56 PM (3 years ago)
- Location:
- sozlesmeler
- Files:
-
- 19 added
- 2 edited
-
tags/2.1.3/css (added)
-
tags/2.1.3/css/adminstil.css (added)
-
tags/2.1.3/css/stil.css (added)
-
tags/2.1.3/js (added)
-
tags/2.1.3/js/notify.min.js (added)
-
tags/2.1.3/js/woocontracts.js (added)
-
tags/2.1.3/js/woocontractsadmin.js (added)
-
tags/2.1.3/readme.txt (added)
-
tags/2.1.3/woocontracts.php (added)
-
tags/2.1.4 (added)
-
tags/2.1.4/css (added)
-
tags/2.1.4/css/adminstil.css (added)
-
tags/2.1.4/css/stil.css (added)
-
tags/2.1.4/js (added)
-
tags/2.1.4/js/notify.min.js (added)
-
tags/2.1.4/js/woocontracts.js (added)
-
tags/2.1.4/js/woocontractsadmin.js (added)
-
tags/2.1.4/readme.txt (added)
-
tags/2.1.4/woocontracts.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocontracts.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sozlesmeler/trunk/readme.txt
r2883017 r2917934 3 3 Tags: sozlesmeler, woocommerce, sozlesme, contract 4 4 Requires at least: 5.0 5 Tested up to: 6.2 5 Tested up to: 6.2.2 6 6 Requires PHP: 5.6 7 Stable tag: 2.1. 37 Stable tag: 2.1.4 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 = 2.1.4 = 34 * WP 6.2.2 & WC 7.7.0 uyumluluk 35 * WP Multisite uyumluluk 33 36 34 37 = 2.1.3 = -
sozlesmeler/trunk/woocontracts.php
r2883017 r2917934 11 11 * Plugin URI: https://eguler.net/woocommerce-sozlesmeler-eklentisi/ 12 12 * Description: Woocommerce sitenize mesafeli satış sözleşmesi ve ön bilgilendirme formu gibi yasal metinleri ekleyebileceğiniz sözleşmeler eklentisi 13 * Version: 2.1. 313 * Version: 2.1.4 14 14 * Requires at least: 5.0 15 15 * Requires PHP: 5.6 16 * Tested up to: 6.2 16 * Tested up to: 6.2.2 17 17 * Author: Emre Güler 18 18 * Author URI: https://eguler.net … … 22 22 * 23 23 * 24 * WC tested up to: 7. 524 * WC tested up to: 7.7.0 25 25 * 26 26 */ … … 30 30 define('WCTR_PATH', plugin_dir_path(__FILE__)); 31 31 define('WCTR_URL', plugin_dir_url(__FILE__)); 32 define('WCTR_VER', '2.1. 3');32 define('WCTR_VER', '2.1.4'); 33 33 34 34 function woocontracts_activated() { … … 60 60 register_uninstall_hook(__FILE__, 'woocontracts_uninstalled'); 61 61 62 if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { 62 if ( ! function_exists( 'is_plugin_active_for_network' ) ) { 63 require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); 64 } 65 $is_wc_active = false; 66 // multisite & woocontracts locally activated - WC can be network or locally activated 67 if ( is_multisite() && is_plugin_active_for_network( plugin_basename(__FILE__) ) ) { 68 // this plugin is network activated - Woo must be network activated 69 $is_wc_active = is_plugin_active_for_network('woocommerce/woocommerce.php') ? true : false; 70 // this plugin runs on a single site | is locally activated 71 } else { 72 $is_wc_active = is_plugin_active( 'woocommerce/woocommerce.php') ? true : false; 73 } 74 if ($is_wc_active) { 63 75 function woocontracts_js() { 64 76 if (!wp_script_is('jquery', 'done')) {wp_enqueue_script('jquery');}
Note: See TracChangeset
for help on using the changeset viewer.