Changeset 3224633
- Timestamp:
- 01/17/2025 08:49:15 PM (15 months ago)
- Location:
- pardakht-delkhah
- Files:
-
- 50 added
- 6 edited
-
tags/3.1 (added)
-
tags/3.1/admin-custom-fields.php (added)
-
tags/3.1/admin-custom-link.php (added)
-
tags/3.1/admin-export.php (added)
-
tags/3.1/admin-settings.php (added)
-
tags/3.1/admin-table-header.php (added)
-
tags/3.1/admin-table.php (added)
-
tags/3.1/assets (added)
-
tags/3.1/assets/admin.css (added)
-
tags/3.1/assets/admin.js (added)
-
tags/3.1/assets/admin.min.css (added)
-
tags/3.1/assets/ajax-loader.gif (added)
-
tags/3.1/assets/cancel.png (added)
-
tags/3.1/assets/checked.png (added)
-
tags/3.1/assets/styles (added)
-
tags/3.1/assets/styles/1.php (added)
-
tags/3.1/assets/styles/2.php (added)
-
tags/3.1/assets/styles/3.php (added)
-
tags/3.1/assets/styles/4.php (added)
-
tags/3.1/assets/styles/index.html (added)
-
tags/3.1/assets/user.css (added)
-
tags/3.1/assets/user.js (added)
-
tags/3.1/class-fields-generator.php (added)
-
tags/3.1/class-meta-box.php (added)
-
tags/3.1/class-payments-list-table.php (added)
-
tags/3.1/cupri.php (added)
-
tags/3.1/extra.php (added)
-
tags/3.1/gateways (added)
-
tags/3.1/gateways.php (added)
-
tags/3.1/gateways/class-cupri-abstract-gateway.php (added)
-
tags/3.1/gateways/class-cupri-irankish-gateway.php (added)
-
tags/3.1/gateways/class-cupri-mabnanew-gateway.php (added)
-
tags/3.1/gateways/class-cupri-mellat-gateway.php (added)
-
tags/3.1/gateways/class-cupri-melli-gateway.php (added)
-
tags/3.1/gateways/class-cupri-payir-gateway.php (added)
-
tags/3.1/gateways/class-cupri-test-gateway.php (added)
-
tags/3.1/gateways/class-cupri-zarinpal-gateway.php (added)
-
tags/3.1/gateways/initial.php (added)
-
tags/3.1/gateways/nusoap-php5.3.php (added)
-
tags/3.1/gateways/nusoap-php7.php (added)
-
tags/3.1/gateways/nusoap-php8.php (added)
-
tags/3.1/gateways/nusoap.php (added)
-
tags/3.1/help.php (added)
-
tags/3.1/languages (added)
-
tags/3.1/languages/cupri-fa_IR.mo (added)
-
tags/3.1/languages/cupri-fa_IR.po (added)
-
tags/3.1/readme.txt (added)
-
tags/3.1/shortcode.php (added)
-
tags/3.1/widget.php (added)
-
trunk/assets/user.css (modified) (2 diffs)
-
trunk/cupri.php (modified) (2 diffs)
-
trunk/gateways.php (modified) (1 diff)
-
trunk/gateways/class-cupri-test-gateway.php (added)
-
trunk/gateways/initial.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shortcode.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pardakht-delkhah/trunk/assets/user.css
r3126621 r3224633 15 15 } 16 16 17 .cupri_available_gateways { 18 max-width: 215px !important; 19 height: 30px !important; 20 border: 1px solid #bbb; 21 font-size: 0.9em; 22 cursor: pointer; 23 margin: 2px; 24 } 25 26 .cupri_available_gateways input { 27 /*visibility: hidden;*/ 28 } 29 17 30 18 31 @media only screen and (max-width: 600px) { … … 21 34 text-align: center; 22 35 } 36 23 37 #cupri_submit { 24 38 width: 100% !important; -
pardakht-delkhah/trunk/cupri.php
r3191496 r3224633 5 5 Author: استاد وردپرس 6 6 Author URI: https://wp-master.ir 7 Version: 3. 0.07 Version: 3.1 8 8 Description: با این پلاگین میتونید سیستم پرداخت خودتون رو راه اندازی کنید. 9 9 Text Domain: cupri … … 434 434 return; 435 435 } 436 437 /** 438 * add multi gateways field 439 */ 440 $selected_gateway = $cupri_gateways_settings['default'];; 441 if (isset($_REQUEST['gateway']) && !empty($_REQUEST['gateway'])) { 442 $selected_gateway = sanitize_text_field($_REQUEST['gateway']); 443 $valid_gateways = apply_filters('cupri_gateways', array()); 444 if (!in_array($selected_gateway, array_keys($valid_gateways))) { 445 _e('Invalid gateway', 'cupri'); 446 return; 447 } 448 } 449 436 450 //custom fields check 437 $gateway = $cupri_gateways_settings['default']; 451 452 $gateway = $selected_gateway; 438 453 $_cupri = get_option('_cupri', cupri_get_defaults_fields()); 439 454 $errors = array(); -
pardakht-delkhah/trunk/gateways.php
r3045267 r3224633 77 77 <?php 78 78 wp_nonce_field('cupri_gateways_form'); 79 do_action('cupri_in_admin_gateways_form_start', $cupri_gateways_settings, $gateways, $currencies); 79 80 ?> 80 81 <h2> :: <?php _e('Default Gateway', 'cupri'); ?> </h2> -
pardakht-delkhah/trunk/gateways/initial.php
r2829835 r3224633 1 1 <?php 2 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 3 if(!class_exists('nusoap_client')) 4 { 5 require_once 'nusoap.php'; 2 defined('ABSPATH') or die('No script kiddies please!'); 3 if (!class_exists('nusoap_client')) { 4 require_once 'nusoap.php'; 6 5 } 7 6 require_once 'class-cupri-abstract-gateway.php'; … … 12 11 require_once 'class-cupri-melli-gateway.php'; 13 12 require_once 'class-cupri-mabnanew-gateway.php'; 13 /** 14 * درگاه تست فقط برای مدیریت 15 */ 16 if ( !function_exists('wp_get_current_user') ) { 17 include(ABSPATH . "wp-includes/pluggable.php"); 18 } 19 20 if (current_user_can('manage_options')) { 21 require_once 'class-cupri-test-gateway.php'; 22 } 14 23 15 24 // cupri_start_payment -
pardakht-delkhah/trunk/readme.txt
r3191496 r3224633 4 4 Tags: custom price payment,donate,pardakhte delkhah ,پرداخت دلخواه,فرم پرداخت,دونیت,پرداخت,دریافت وجه 5 5 Requires at least: 4.6 6 Tested up to: 6.7. 06 Tested up to: 6.7.1 7 7 Stable tag: 3.0.0 8 8 License: GPLv2 or later … … 57 57 58 58 == Changelog == 59 = 3.1 = 60 * اضافه کردن درگاه تست 61 * آماده سازی برای افزودنی چنددرگاهی 59 62 = 3.0.0 = 60 63 * حل مشکل خطا در برگشت با فعال بودن پلاگین wp-sms -
pardakht-delkhah/trunk/shortcode.php
r3126621 r3224633 304 304 } 305 305 306 /** 307 * multi gateways 308 */ 309 $available_gateways = []; 310 $_all_gateways = apply_filters('cupri_gateways', array()); 311 $multi_gateways_enabled = $cupri_gateways_settings['multi_gateways_enabled'] ?? []; 312 313 foreach ($_all_gateways as $_gateway_id => $_gateway_name) { 314 if (in_array($_gateway_id, $multi_gateways_enabled)) { 315 $available_gateways[$_gateway_id] = $_gateway_name; 316 } 317 } 318 319 320 if (count($available_gateways) > 0 && function_exists('padrakht_delkhah_multigateway')) { 321 echo '<p class="cupri_submit_label">'; 322 foreach ($available_gateways as $available_gateway_id => $available_gateway_title) { 323 echo '<label for="cupri_gateway_' . $available_gateway_id . '" class="cupri_available_gateways">' . $available_gateway_title . ' 324 <input type="radio" id="cupri_gateway_' . $available_gateway_id . '" name="gateway" value="' . $available_gateway_id . '"> 325 </label>'; 326 } 327 } 328 329 330 echo '<p class="cupri_response_placeholder alert"></p>'; 331 echo '</p>'; 332 333 306 334 $submit_button_text = '<span class="heart">♥ </span> پرداخت '; 307 335 if (isset($cupri_general['submit_button_text']) && !empty($cupri_general['submit_button_text'])) {
Note: See TracChangeset
for help on using the changeset viewer.