Plugin Directory

Changeset 3197079


Ignore:
Timestamp:
11/26/2024 06:32:51 AM (16 months ago)
Author:
netgsm
Message:

fancy new feature: now you can foo *and* bar at the same time

Location:
netgsm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • netgsm/trunk/index.php

    r3191034 r3197079  
    66Author: Netgsm
    77Author URI: www.netgsm.com.tr
    8 Version: 2.9.33
     8Version: 2.9.34
    99
    1010*/
     
    11531153    add_action('wp_ajax_nopriv_netgsm_sendtf2SMS', 'netgsm_sendtf2SMS');
    11541154    function netgsm_admin_scripts() {
    1155         $netgsm_status  = esc_html(get_option("netgsm_status"));
    1156         if(isset($netgsm_status) && !empty($netgsm_status) && $netgsm_status==1 ){
     1155        $netgsm_status = esc_html(get_option("netgsm_status"));
     1156        if (isset($netgsm_status) && !empty($netgsm_status) && $netgsm_status == 1) {
    11571157            $otpregister_control = esc_html(get_option("netgsm_tf2_auth_register_control"));
    1158             if ($otpregister_control == 1 || get_option('netgsm_asistan')=='1'){
    1159                 wp_enqueue_script( 'script', plugins_url('ajax.js', dirname(__FILE__).'/lib/js/1/'), array('jquery'), '1.0', true );
    1160                 wp_localize_script('script', 'ajaxurl', admin_url( 'admin-ajax.php' ) );
    1161 
     1158            if ($otpregister_control == 1 || get_option('netgsm_asistan') == '1') {
     1159                // JavaScript dosyasını yükle
     1160                wp_enqueue_script('script', plugins_url('ajax.js', dirname(__FILE__) . '/lib/js/1/'), array('jquery'), '1.0', true);
     1161               
     1162                // `ajaxurl` değişkenini tanımla
     1163                $inline_script = 'const ajaxurl = ' . json_encode(admin_url('admin-ajax.php')) . ';';
     1164                wp_add_inline_script('script', $inline_script, 'before');
    11621165            }
    11631166        }
  • netgsm/trunk/readme.txt

    r3191034 r3197079  
    55Requires at least: 3.0
    66Tested up to: 6.7
    7 Stable tag: 2.9.33
     7Stable tag: 2.9.34
    88Requires PHP: 8.0.1
    99License: GPLv2 or later
     
    8989
    9090== Changelog ==
     91= 2.9.34 =
     92* Hata düzeltmesi yapıldı.
    9193= 2.9.33 =
    9294* Hata düzeltmesi yapıldı.
Note: See TracChangeset for help on using the changeset viewer.