گرویتی فرم فارسی - Version 1.4.2

Version Description

  • Fixed : removed rtl css in ltr mode ...
Download this release

Release Info

Developer hannanstd
Plugin Icon 128x128 گرویتی فرم فارسی
Version 1.4.2
Comparing to
See all releases

Code changes from version 1.4.1 to 1.4.2

Files changed (2) hide show
  1. Persian_Gravityforms_By_HANNANStd.php +24 -23
  2. 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.1
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
@@ -562,27 +562,28 @@ class GravityFormsPersian {
562
  }
563
  public function Add_RTL_Style_To_Footer_By_HANNANStd() {
564
 
565
- echo '<style type="text/css">
566
- .gright,.gform_wrapper form ,.gform_wrapper ul li:before, .gform_wrapper ul li:after, .gform_wrapper ul.gform_fields {
567
- text-align: right !important;
568
- direction:rtl !important;
569
- }
570
- .gleft,.gform_wrapper input[type="url"], .gform_wrapper input[type="email"],
571
- .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"],
572
- .gform_wrapper input[type="password"],body.rtl .gform_wrapper input[type="email"], body.rtl .gform_wrapper input[type="password"],
573
- body.rtl .gform_wrapper input[type="url"], body.rtl .gform_wrapper input[type="tel"],body .gform_wrapper.gf_rtl_wrapper input[type="email"],
574
- body .gform_wrapper.gf_rtl_wrapper input[type="password"], body .gform_wrapper.gf_rtl_wrapper input[type="url"], body .gform_wrapper.gf_rtl_wrapper input[type="tel"] {
575
- text-align:left !important;
576
- direction:ltr !important;
577
- }
578
- .gform_wrapper .ginput_complex .ginput_left {
579
- float: right !important;
580
- }
581
- .gform_wrapper .ginput_complex .ginput_right {
582
- float: left !important;
583
- }
584
- </style>';
585
-
 
586
  }
587
  public function Add_Styles_Print_By_HANNANStd($value, $form){
588
  if( is_rtl() ) {
@@ -760,7 +761,7 @@ class GravityFormsPersian {
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 ){
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.2
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
562
  }
563
  public function Add_RTL_Style_To_Footer_By_HANNANStd() {
564
 
565
+ if( is_rtl() ) {
566
+ echo '<style type="text/css">
567
+ .gright,.gform_wrapper form ,.gform_wrapper ul li:before, .gform_wrapper ul li:after, .gform_wrapper ul.gform_fields {
568
+ text-align: right !important;
569
+ direction:rtl !important;
570
+ }
571
+ .gleft,.gform_wrapper input[type="url"], .gform_wrapper input[type="email"],
572
+ .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"],
573
+ .gform_wrapper input[type="password"],body.rtl .gform_wrapper input[type="email"], body.rtl .gform_wrapper input[type="password"],
574
+ body.rtl .gform_wrapper input[type="url"], body.rtl .gform_wrapper input[type="tel"],body .gform_wrapper.gf_rtl_wrapper input[type="email"],
575
+ body .gform_wrapper.gf_rtl_wrapper input[type="password"], body .gform_wrapper.gf_rtl_wrapper input[type="url"], body .gform_wrapper.gf_rtl_wrapper input[type="tel"] {
576
+ text-align:left !important;
577
+ direction:ltr !important;
578
+ }
579
+ .gform_wrapper .ginput_complex .ginput_left {
580
+ float: right !important;
581
+ }
582
+ .gform_wrapper .ginput_complex .ginput_right {
583
+ float: left !important;
584
+ }
585
+ </style>';
586
+ }
587
  }
588
  public function Add_Styles_Print_By_HANNANStd($value, $form){
589
  if( is_rtl() ) {
761
  return plugins_url( '', __FILE__ );
762
  }
763
  public function version(){
764
+ return '1.4.2';
765
  }
766
  public function Add_HANNANStd_Field_By_HANNANStd( $field_groups ) {
767
  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.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,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.1 =
87
  * Fixed : Fatal error: Class 'GFCommon' not found
88
  = 1.4.0 =
@@ -128,6 +130,8 @@ You can read complete documentations on the [GravityForms.ir](http://www.Gravity
128
  * First version
129
 
130
  == Upgrade Notice ==
 
 
131
  = 1.4.1 =
132
  * Fixed : Fatal error: Class 'GFCommon' not found
133
  = 1.4.0 =
4
  Donate link: http://www.gravityforms.ir
5
  Requires at least: 3.5
6
  Tested up to: 4.1
7
+ Stable tag: 1.4.2
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.2 =
87
+ * Fixed : removed rtl css in ltr mode ...
88
  = 1.4.1 =
89
  * Fixed : Fatal error: Class 'GFCommon' not found
90
  = 1.4.0 =
130
  * First version
131
 
132
  == Upgrade Notice ==
133
+ = 1.4.2 =
134
+ * Fixed : removed rtl css in ltr mode ...
135
  = 1.4.1 =
136
  * Fixed : Fatal error: Class 'GFCommon' not found
137
  = 1.4.0 =