Version Description
- Fixed : Fatal error: Class 'GFCommon' not found
Download this release
Release Info
Developer | hannanstd |
Plugin | گرویتی فرم فارسی |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- Persian_Gravityforms_By_HANNANStd.php +14 -3
- readme.txt +5 -1
Persian_Gravityforms_By_HANNANStd.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
|
6 |
-
Version: 1.4.
|
7 |
Requires at least: 3.5
|
8 |
Author: HANNAN Ebrahimi Setoode
|
9 |
Author URI: http://www.gravityforms.ir/
|
@@ -151,7 +151,7 @@ class GravityFormsPersian {
|
|
151 |
);
|
152 |
|
153 |
|
154 |
-
if (
|
155 |
$Gdomains = array(
|
156 |
'gravityforms' => array(
|
157 |
'languages/gravityforms-fa_IR.mo' => 'gravityforms1.9/fa_IR.mo'
|
@@ -183,6 +183,17 @@ class GravityFormsPersian {
|
|
183 |
}
|
184 |
return $mo_file;
|
185 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
public function Add_Field_Active_Standard_Settings($position, $form_id){
|
187 |
if($position == 25){
|
188 |
?>
|
@@ -749,7 +760,7 @@ class GravityFormsPersian {
|
|
749 |
return plugins_url( '', __FILE__ );
|
750 |
}
|
751 |
public function version(){
|
752 |
-
return '1.4.
|
753 |
}
|
754 |
public function Add_HANNANStd_Field_By_HANNANStd( $field_groups ) {
|
755 |
foreach( $field_groups as &$group ){
|
3 |
Plugin Name: Persian Gravity Forms
|
4 |
Plugin URI: https://wordpress.org/plugins/persian-gravity-forms/
|
5 |
Description: Gravity Forms for Iranian
|
6 |
+
Version: 1.4.1
|
7 |
Requires at least: 3.5
|
8 |
Author: HANNAN Ebrahimi Setoode
|
9 |
Author URI: http://www.gravityforms.ir/
|
151 |
);
|
152 |
|
153 |
|
154 |
+
if (self::is_gravityforms_new()) {
|
155 |
$Gdomains = array(
|
156 |
'gravityforms' => array(
|
157 |
'languages/gravityforms-fa_IR.mo' => 'gravityforms1.9/fa_IR.mo'
|
183 |
}
|
184 |
return $mo_file;
|
185 |
}
|
186 |
+
|
187 |
+
private static function is_gravityforms_new(){
|
188 |
+
if(class_exists("GFCommon")){
|
189 |
+
$is_new_version = version_compare(GFCommon::$version, '1.9.0', ">=");
|
190 |
+
return $is_new_version;
|
191 |
+
}
|
192 |
+
else{
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
}
|
196 |
+
|
197 |
public function Add_Field_Active_Standard_Settings($position, $form_id){
|
198 |
if($position == 25){
|
199 |
?>
|
760 |
return plugins_url( '', __FILE__ );
|
761 |
}
|
762 |
public function version(){
|
763 |
+
return '1.4.1';
|
764 |
}
|
765 |
public function Add_HANNANStd_Field_By_HANNANStd( $field_groups ) {
|
766 |
foreach( $field_groups as &$group ){
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: gravityforms,gravity forms,persian gravity forms,persian gravityforms,grav
|
|
4 |
Donate link: http://www.gravityforms.ir
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 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 .
|
@@ -83,6 +83,8 @@ You can read complete documentations on the [GravityForms.ir](http://www.Gravity
|
|
83 |
19. Iranian National Code field Advanced setting
|
84 |
|
85 |
== Changelog ==
|
|
|
|
|
86 |
= 1.4.0 =
|
87 |
* compatible with version 1.9
|
88 |
* compatible with noconflict mode
|
@@ -126,6 +128,8 @@ You can read complete documentations on the [GravityForms.ir](http://www.Gravity
|
|
126 |
* First version
|
127 |
|
128 |
== Upgrade Notice ==
|
|
|
|
|
129 |
= 1.4.0 =
|
130 |
* compatible with version 1.9
|
131 |
* compatible with noconflict mode
|
4 |
Donate link: http://www.gravityforms.ir
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.4.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 .
|
83 |
19. Iranian National Code field Advanced setting
|
84 |
|
85 |
== Changelog ==
|
86 |
+
= 1.4.1 =
|
87 |
+
* Fixed : Fatal error: Class 'GFCommon' not found
|
88 |
= 1.4.0 =
|
89 |
* compatible with version 1.9
|
90 |
* compatible with noconflict mode
|
128 |
* First version
|
129 |
|
130 |
== Upgrade Notice ==
|
131 |
+
= 1.4.1 =
|
132 |
+
* Fixed : Fatal error: Class 'GFCommon' not found
|
133 |
= 1.4.0 =
|
134 |
* compatible with version 1.9
|
135 |
* compatible with noconflict mode
|