Version Description
*
Download this release
Release Info
Developer | hannanstd |
Plugin | گرویتی فرم فارسی |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.4
- includes/class-iran-cities.php +5 -5
- index.php +2 -2
- persian-gravity.php +30 -6
- readme.txt +24 -2
includes/class-iran-cities.php
CHANGED
@@ -207,11 +207,11 @@ class GFParsi_IranCities
|
|
207 |
$id = $form_id . '_' . $field_id;
|
208 |
|
209 |
$script = 'jQuery().ready(function($){' .
|
210 |
-
'$(".
|
211 |
-
'$(".
|
212 |
-
'$(document.body).on("change", ".
|
213 |
-
'$(".
|
214 |
-
'$(".
|
215 |
'});' .
|
216 |
'})';
|
217 |
GFFormDisplay::add_init_script($form['id'], 'iran_address_city_' . $id, GFFormDisplay::ON_PAGE_RENDER, $script);
|
207 |
$id = $form_id . '_' . $field_id;
|
208 |
|
209 |
$script = 'jQuery().ready(function($){' .
|
210 |
+
'$(".has_city #input_' . $id . '_3").empty();' .
|
211 |
+
'$(".has_city #input_' . $id . '_3").append(gform_iranCities(""+$(".has_city #input_' . $id . '_4").val()));' .
|
212 |
+
'$(document.body).on("change", ".has_city #input_' . $id . '_4" ,function(){' .
|
213 |
+
'$(".has_city #input_' . $id . '_3").empty();' .
|
214 |
+
'$(".has_city #input_' . $id . '_3").append(gform_iranCities(""+$(".has_city #input_' . $id . '_4").val()));' .
|
215 |
'});' .
|
216 |
'})';
|
217 |
GFFormDisplay::add_init_script($form['id'], 'iran_address_city_' . $id, GFFormDisplay::ON_PAGE_RENDER, $script);
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Persian Gravity Forms
|
4 |
Plugin URI: https://wordpress.org/plugins/persian-gravity-forms/
|
5 |
Description: Gravity Forms for Iranian, This plugin extends the Gravity Forms and its addons with Persian language
|
6 |
-
Version: 2.1.
|
7 |
Requires at least: 4.0
|
8 |
Author: hannansoft
|
9 |
Author URI: http://www.gravityforms.ir/
|
@@ -14,7 +14,7 @@ Domain Path: /languages/
|
|
14 |
if (!defined('ABSPATH')) exit;
|
15 |
|
16 |
if (!defined('GF_PARSI_VERSION'))
|
17 |
-
define('GF_PARSI_VERSION', '2.1.
|
18 |
|
19 |
if (!defined('GF_PARSI_URL'))
|
20 |
define('GF_PARSI_URL', plugins_url('', __FILE__) . '/');
|
3 |
Plugin Name: Persian Gravity Forms
|
4 |
Plugin URI: https://wordpress.org/plugins/persian-gravity-forms/
|
5 |
Description: Gravity Forms for Iranian, This plugin extends the Gravity Forms and its addons with Persian language
|
6 |
+
Version: 2.1.4
|
7 |
Requires at least: 4.0
|
8 |
Author: hannansoft
|
9 |
Author URI: http://www.gravityforms.ir/
|
14 |
if (!defined('ABSPATH')) exit;
|
15 |
|
16 |
if (!defined('GF_PARSI_VERSION'))
|
17 |
+
define('GF_PARSI_VERSION', '2.1.4');
|
18 |
|
19 |
if (!defined('GF_PARSI_URL'))
|
20 |
define('GF_PARSI_URL', plugins_url('', __FILE__) . '/');
|
persian-gravity.php
CHANGED
@@ -846,16 +846,40 @@ class GFParsi
|
|
846 |
}
|
847 |
return $styles;
|
848 |
}
|
849 |
-
|
|
|
|
|
|
|
|
|
850 |
public static function get_mysql_tz_offset()
|
851 |
{
|
852 |
|
853 |
-
$
|
854 |
-
|
855 |
-
|
856 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
857 |
|
858 |
-
|
|
|
|
|
859 |
}
|
860 |
|
861 |
}
|
846 |
}
|
847 |
return $styles;
|
848 |
}
|
849 |
+
|
850 |
+
public static function get_base_url(){
|
851 |
+
return plugins_url( '', __FILE__ );
|
852 |
+
}
|
853 |
+
|
854 |
public static function get_mysql_tz_offset()
|
855 |
{
|
856 |
|
857 |
+
$tzb = $tz = get_option('gmt_offset');
|
858 |
+
|
859 |
+
if (intval($tz) < 0)
|
860 |
+
$pf = "-";
|
861 |
+
else
|
862 |
+
$pf = "+";
|
863 |
+
|
864 |
+
$tz = abs($tz) * 3600;
|
865 |
+
$tz = gmdate("H:i", $tz);
|
866 |
+
$tz = $pf . $tz;
|
867 |
+
|
868 |
+
$today = date('Y-m-d H:i:s');
|
869 |
+
$date = new DateTime($today);
|
870 |
+
|
871 |
+
$tzn = abs($tzb) * 3600;
|
872 |
+
$tzh = intval(gmdate("H", $tzn));
|
873 |
+
$tzm = intval(gmdate("i", $tzn));
|
874 |
+
|
875 |
+
if (intval($tzb) < 0)
|
876 |
+
$date->sub(new DateInterval('P0DT' . $tzh . 'H' . $tzm . 'M'));
|
877 |
+
else
|
878 |
+
$date->add(new DateInterval('P0DT' . $tzh . 'H' . $tzm . 'M'));
|
879 |
|
880 |
+
$today = $date->format('Y-m-d H:i:s');
|
881 |
+
$today = strtotime($today);
|
882 |
+
return array("tz" => $tz, "today" => $today);
|
883 |
}
|
884 |
|
885 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: hannanstd
|
|
3 |
Tags: gravityforms,gravity forms,persian gravity forms,persian gravityforms,gravityforms farsi,gravity forms farsi,rtl,fa_ir,iranian,iranian rials,iranian toman,iran state,gravityforms.ir,gravity forms payment,gravity forms gateway,gravity forms iran gateways
|
4 |
Donate link: http://gravityforms.ir
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPL 2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
This WordPress plugin extends the Gravity Forms plugin and its addons with the Persian language .
|
@@ -53,6 +53,17 @@ This plugin extends the Gravity Forms and its addons with Persian language
|
|
53 |
|
54 |
|
55 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
= 2.1.0 =
|
57 |
* بروز رسانی ترجمه
|
58 |
* سازگاری با نسخه جدید گرویتی فرم
|
@@ -137,6 +148,17 @@ This plugin extends the Gravity Forms and its addons with Persian language
|
|
137 |
* انتشار نسخه اولیه
|
138 |
|
139 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
= 2.1.0 =
|
141 |
* بروز رسانی ترجمه
|
142 |
* سازگاری با نسخه جدید گرویتی فرم
|
3 |
Tags: gravityforms,gravity forms,persian gravity forms,persian gravityforms,gravityforms farsi,gravity forms farsi,rtl,fa_ir,iranian,iranian rials,iranian toman,iran state,gravityforms.ir,gravity forms payment,gravity forms gateway,gravity forms iran gateways
|
4 |
Donate link: http://gravityforms.ir
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.8.0
|
7 |
+
Stable tag: 2.1.4
|
8 |
License: GPL 2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
This WordPress plugin extends the Gravity Forms plugin and its addons with the Persian language .
|
53 |
|
54 |
|
55 |
== Changelog ==
|
56 |
+
= 2.1.4 =
|
57 |
+
* رفع باگ
|
58 |
+
= 2.1.3 =
|
59 |
+
* رفع باگ
|
60 |
+
= 2.1.2 =
|
61 |
+
* تغییر کلاس شهرهای ایران
|
62 |
+
= 2.1.1 =
|
63 |
+
* بروز رسانی ترجمه
|
64 |
+
* سازگاری با نسخه جدید گرویتی فرم
|
65 |
+
* رفع مشکل کد ملی، شهرهای ایران و تاریخ شمسی
|
66 |
+
* بهبود راستچین سازی
|
67 |
= 2.1.0 =
|
68 |
* بروز رسانی ترجمه
|
69 |
* سازگاری با نسخه جدید گرویتی فرم
|
148 |
* انتشار نسخه اولیه
|
149 |
|
150 |
== Upgrade Notice ==
|
151 |
+
= 2.1.4 =
|
152 |
+
* رفع باگ
|
153 |
+
= 2.1.3 =
|
154 |
+
* رفع باگ
|
155 |
+
= 2.1.2 =
|
156 |
+
* تغییر کلاس شهرهای ایران
|
157 |
+
= 2.1.1 =
|
158 |
+
* بروز رسانی ترجمه
|
159 |
+
* سازگاری با نسخه جدید گرویتی فرم
|
160 |
+
* رفع مشکل کد ملی، شهرهای ایران و تاریخ شمسی
|
161 |
+
* بهبود راستچین سازی
|
162 |
= 2.1.0 =
|
163 |
* بروز رسانی ترجمه
|
164 |
* سازگاری با نسخه جدید گرویتی فرم
|