Version Description
*
Download this release
Release Info
Developer | hannanstd |
Plugin | گرویتی فرم فارسی |
Version | 2.1.5 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.5
- includes/class-iran-cities.php +5 -5
- index.php +2 -2
- persian-gravity.php +35 -12
- readme.txt +18 -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.5
|
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.5');
|
18 |
|
19 |
if (!defined('GF_PARSI_URL'))
|
20 |
define('GF_PARSI_URL', plugins_url('', __FILE__) . '/');
|
persian-gravity.php
CHANGED
@@ -10,7 +10,7 @@ class GFParsi
|
|
10 |
protected $language;
|
11 |
protected $is_persian;
|
12 |
|
13 |
-
private $notice_ver =
|
14 |
private $feed = 'http://gravityforms.ir/feed/';
|
15 |
|
16 |
private $files = array(
|
@@ -104,12 +104,11 @@ class GFParsi
|
|
104 |
public function update_admin_notice()
|
105 |
{
|
106 |
|
107 |
-
$message = __('
|
|
|
|
|
108 |
|
109 |
-
|
110 |
-
return;
|
111 |
-
|
112 |
-
printf('<div class="notice notice-warning gf_support_notice is-dismissible"><p>%s</p></div>', $message);
|
113 |
$this->is_dismissible();
|
114 |
}
|
115 |
|
@@ -846,16 +845,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 |
}
|
10 |
protected $language;
|
11 |
protected $is_persian;
|
12 |
|
13 |
+
private $notice_ver = 4;
|
14 |
private $feed = 'http://gravityforms.ir/feed/';
|
15 |
|
16 |
private $files = array(
|
104 |
public function update_admin_notice()
|
105 |
{
|
106 |
|
107 |
+
$message = __('<strong>قابل توجه خریداران افزونه "پیامک گرویتی فرم":</strong> هم اکنون میتوانید آپدیت نسخه 2.2.5 افزونه پیامک که شامل رفع باگ، تغییرات IP وبسرویس ها، سازگاری با نسخه های جدید گرویتی فرم و اضافه شدن منطق شرطی چندگانه می باشد را از لینک زیر به صورت آنی دانلود نمایید:', 'GF_FA');
|
108 |
+
$message .= '<br>';
|
109 |
+
$message .= '<a target="_blank" href="https://gravityforms.ir/dowload-sms-update/">دریافت آپدیت افزونه پیامک</a>';
|
110 |
|
111 |
+
printf('<div class="notice notice-success gf_support_notice is-dismissible"><p>%s</p></div>', $message);
|
|
|
|
|
|
|
112 |
$this->is_dismissible();
|
113 |
}
|
114 |
|
845 |
}
|
846 |
return $styles;
|
847 |
}
|
848 |
+
|
849 |
+
public static function get_base_url(){
|
850 |
+
return plugins_url( '', __FILE__ );
|
851 |
+
}
|
852 |
+
|
853 |
public static function get_mysql_tz_offset()
|
854 |
{
|
855 |
|
856 |
+
$tzb = $tz = get_option('gmt_offset');
|
857 |
+
|
858 |
+
if (intval($tz) < 0)
|
859 |
+
$pf = "-";
|
860 |
+
else
|
861 |
+
$pf = "+";
|
862 |
+
|
863 |
+
$tz = abs($tz) * 3600;
|
864 |
+
$tz = gmdate("H:i", $tz);
|
865 |
+
$tz = $pf . $tz;
|
866 |
+
|
867 |
+
$today = date('Y-m-d H:i:s');
|
868 |
+
$date = new DateTime($today);
|
869 |
+
|
870 |
+
$tzn = abs($tzb) * 3600;
|
871 |
+
$tzh = intval(gmdate("H", $tzn));
|
872 |
+
$tzm = intval(gmdate("i", $tzn));
|
873 |
+
|
874 |
+
if (intval($tzb) < 0)
|
875 |
+
$date->sub(new DateInterval('P0DT' . $tzh . 'H' . $tzm . 'M'));
|
876 |
+
else
|
877 |
+
$date->add(new DateInterval('P0DT' . $tzh . 'H' . $tzm . 'M'));
|
878 |
|
879 |
+
$today = $date->format('Y-m-d H:i:s');
|
880 |
+
$today = strtotime($today);
|
881 |
+
return array("tz" => $tz, "today" => $today);
|
882 |
}
|
883 |
|
884 |
}
|
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,14 @@ This plugin extends the Gravity Forms and its addons with Persian language
|
|
53 |
|
54 |
|
55 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
= 2.1.1 =
|
57 |
* بروز رسانی ترجمه
|
58 |
* سازگاری با نسخه جدید گرویتی فرم
|
@@ -142,6 +150,14 @@ This plugin extends the Gravity Forms and its addons with Persian language
|
|
142 |
* انتشار نسخه اولیه
|
143 |
|
144 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
= 2.1.1 =
|
146 |
* بروز رسانی ترجمه
|
147 |
* سازگاری با نسخه جدید گرویتی فرم
|
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.5
|
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.5 =
|
57 |
+
* اطلاعیه آپدیت پیامک گرویتی فرم
|
58 |
+
= 2.1.4 =
|
59 |
+
* رفع باگ
|
60 |
+
= 2.1.3 =
|
61 |
+
* رفع باگ
|
62 |
+
= 2.1.2 =
|
63 |
+
* تغییر کلاس شهرهای ایران
|
64 |
= 2.1.1 =
|
65 |
* بروز رسانی ترجمه
|
66 |
* سازگاری با نسخه جدید گرویتی فرم
|
150 |
* انتشار نسخه اولیه
|
151 |
|
152 |
== Upgrade Notice ==
|
153 |
+
= 2.1.5 =
|
154 |
+
* اطلاعیه آپدیت پیامک گرویتی فرم
|
155 |
+
= 2.1.4 =
|
156 |
+
* رفع باگ
|
157 |
+
= 2.1.3 =
|
158 |
+
* رفع باگ
|
159 |
+
= 2.1.2 =
|
160 |
+
* تغییر کلاس شهرهای ایران
|
161 |
= 2.1.1 =
|
162 |
* بروز رسانی ترجمه
|
163 |
* سازگاری با نسخه جدید گرویتی فرم
|