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

Version Description

  • Fixed : Some Minor bugs
Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

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.1.2
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
@@ -16,9 +16,6 @@ class GravityFormsPersian {
16
  private $language;
17
  private $is_persian;
18
  public function __construct( $file ) {
19
- require_once(self::get_base_path() . "/include/Jalali.php");
20
- require_once(self::get_base_path() . "/include/wp-session.php");
21
- require_once(self::get_base_path() . "/include/Post_Content_Merge_Tags.php");
22
  $this->file = $file;
23
  add_action('init', array( $this, 'init' ), 8 );
24
  add_filter('update_footer', array( $this, 'GravityForms_Footer_Left_By_HANNANStd'), 11);
@@ -66,6 +63,9 @@ class GravityFormsPersian {
66
  }
67
  }
68
  public function init(){
 
 
 
69
  $rel_path = dirname( plugin_basename( $this->file ) ) . '/languages/';
70
  if ( $this->language == null ) {
71
  $this->language = get_option( 'WPLANG', WPLANG );
@@ -366,7 +366,7 @@ class GravityFormsPersian {
366
  }
367
  $wp_session = WP_Session::get_instance();
368
  wp_session_unset();
369
- $wp_session['refid'] = $lead["transaction_id"];
370
  RGFormsModel::update_lead($lead);
371
  return $lead;
372
  }
@@ -599,7 +599,7 @@ public static function get_base_url(){
599
  return plugins_url( '', __FILE__ );
600
  }
601
  public function version(){
602
- return '1.1.2';
603
  }
604
  public function Add_Melli_Cart_Field_By_HANNANStd( $field_groups ) {
605
  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.1.3
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
16
  private $language;
17
  private $is_persian;
18
  public function __construct( $file ) {
 
 
 
19
  $this->file = $file;
20
  add_action('init', array( $this, 'init' ), 8 );
21
  add_filter('update_footer', array( $this, 'GravityForms_Footer_Left_By_HANNANStd'), 11);
63
  }
64
  }
65
  public function init(){
66
+ require_once("include/wp-session.php");
67
+ require_once("include/Jalali.php");
68
+ require_once("include/Post_Content_Merge_Tags.php");
69
  $rel_path = dirname( plugin_basename( $this->file ) ) . '/languages/';
70
  if ( $this->language == null ) {
71
  $this->language = get_option( 'WPLANG', WPLANG );
366
  }
367
  $wp_session = WP_Session::get_instance();
368
  wp_session_unset();
369
+ $wp_session['refid'] = $form["id"].$lead["id"];
370
  RGFormsModel::update_lead($lead);
371
  return $lead;
372
  }
599
  return plugins_url( '', __FILE__ );
600
  }
601
  public function version(){
602
+ return '1.1.3';
603
  }
604
  public function Add_Melli_Cart_Field_By_HANNANStd( $field_groups ) {
605
  foreach( $field_groups as &$group ){
include/Post_Content_Merge_Tags.php CHANGED
@@ -44,7 +44,7 @@ class PersianGravityForms_Post_Content_Merge_Tags {
44
  $wp_session = WP_Session::get_instance();
45
  $post_content = $this->replace_field_label_merge_tags( $post_content, $form );
46
  $post_content = GFCommon::replace_variables( $post_content, $form, $entry, false, false, false );
47
- if ( $wp_session['refid'] == $entry["transaction_id"] ) {
48
  return $post_content;
49
  } else {
50
  unset($post_content);
44
  $wp_session = WP_Session::get_instance();
45
  $post_content = $this->replace_field_label_merge_tags( $post_content, $form );
46
  $post_content = GFCommon::replace_variables( $post_content, $form, $entry, false, false, false );
47
+ if ( $wp_session['refid'] == $form["id"].$entry["id"] ) {
48
  return $post_content;
49
  } else {
50
  unset($post_content);
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://www.gravityforms.ir
5
  Requires at least: 3.5
6
- Tested up to: 4.0.1
7
- Stable tag: 1.1.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,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.1.2 =
87
  * Added transaction id for all forms
88
  * Added rtl merge tags for emails
@@ -102,6 +104,8 @@ You can read complete documentations on the [GravityForms.ir](http://www.Gravity
102
  * First version
103
 
104
  == Upgrade Notice ==
 
 
105
  = 1.1.2 =
106
  * Added transaction id for all forms
107
  * Added rtl merge tags for emails
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://www.gravityforms.ir
5
  Requires at least: 3.5
6
+ Tested up to: 4.1
7
+ Stable tag: 1.1.3
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.1.3 =
87
+ * Fixed : Some Minor bugs
88
  = 1.1.2 =
89
  * Added transaction id for all forms
90
  * Added rtl merge tags for emails
104
  * First version
105
 
106
  == Upgrade Notice ==
107
+ = 1.1.3 =
108
+ * Fixed : Some Minor bugs
109
  = 1.1.2 =
110
  * Added transaction id for all forms
111
  * Added rtl merge tags for emails