Plugin Directory

Changeset 2629504


Ignore:
Timestamp:
11/14/2021 07:10:00 PM (4 years ago)
Author:
kitpack
Message:

fix bug

Location:
kitpack-for-persian-elementor
Files:
264 added
2 edited

Legend:

Unmodified
Added
Removed
  • kitpack-for-persian-elementor/trunk/kitpack-for-persian-elementor.php

    r2629216 r2629504  
    1 <?php
     1<?php
    22/**
    33 * Plugin Name:  kitpack for persian elementor
     
    66 * Author:       کیت پک
    77 * Author URI:
    8  * Version:1.9.3
     8 * Version:1.9.5
    99 * Text Domain:  KPE
    1010 * Domain Path:  /languages
    11  * Tested up to: 5.7
    12  * Elementor tested up to: 3.4.4
    13  * Elementor Pro tested up to: 3.4.1
    14  * Tags:         فونت فارسی, فونت المنتور, افزودنی المنتور, صفحه ساز, ایران, rtl, farsi, parsian, iran, fa_IR
     11 * Tested up to: 5.8.2
     12 * Elementor tested up to: 3.4.8
     13 * Elementor Pro tested up to: 3.5.1
     14 * Tags:         فونت فارسی, فونت المنتور, افزودنی المنتور, صفحه ساز, ایران, rtl, farsi, parsian, iran, fa_IR,المنتور فارسی,شمسی,شمسی ساز
    1515 */
    1616if ( ! defined( 'ABSPATH' ) ) {
     
    2424 */
    2525function kpe_init() {
    26     define( 'KPE_VERSION', '1.9.3' );
     26    define( 'KPE_VERSION', '1.9.5' );
    2727    define( 'KPE_URL', plugins_url( '/', __FILE__ ) );
    2828    define( 'KPE_PATH', plugin_dir_path( __FILE__ ) );
     
    4242    if (is_admin())
    4343    {
    44         // add_action('admin_enqueue_scripts', function(){
    45         //  if(get_locale() === 'fa_IR'){
    46         //      wp_deregister_script('jquery-ui-datepicker');
    47         //      wp_enqueue_script('persian-datepicker', plugin_dir_url( __FILE__)."includes/assets/js/persian-datepicker.js", array('jquery'), '1.0', true);
    48         //      wp_enqueue_style('persian-datepicker', plugin_dir_url( __FILE__)."includes/assets/css/persian-datepicker.css");
    49         //  }
    50         // });
    51 
    5244        require_once plugin_dir_path(__FILE__) . '/includes/lib/codestar-framework/codestar-framework.php' ;
    5345        require_once plugin_dir_path(__FILE__) . '/includes/KPE_Options.class.php';
     
    5749        require_once plugin_dir_path(__FILE__) . '/includes/lib/elementor-icons.php';
    5850
    59    
     51    add_action('init', function(){
     52        if(get_locale() == 'fa_IR'){
     53            wp_dequeue_script('jquery-ui-datepicker');
     54            wp_enqueue_script('persian-datepicker', plugin_dir_url( __FILE__."/includes/assets/js/persian-datepicker.js"), array('jquery'));
     55            wp_enqueue_style('persian-datepicker', plugin_dir_url( __FILE__."/includes/assets/css/persian-datepicker.css"));
     56        }
     57    });
    6058}
    6159
  • kitpack-for-persian-elementor/trunk/readme.txt

    r2604699 r2629504  
    5858== Changelog ==
    5959
     60
     61=1.9.5=
     62بهبود: بهبود ترجمه المنتور
     63بهبود: بهبود ترجمه المنتور پرو
     64بهبود: سازگاری با آخرین نسخه المنتور و المنتور پرو
     65
    6066=1.9.3=
    6167بهبود: بهبود ترجمه المنتور
    62 بهبود: سازرگاری با آخرین نسخه المنتور و المنتور پرو
     68بهبود: سازگاری با آخرین نسخه المنتور و المنتور پرو
    6369بهبود: تغییر سرور فونت به سرور اختصاصی
    6470
Note: See TracChangeset for help on using the changeset viewer.