Skip to content

Commit

Permalink
Merge pull request #116 from brainstormforce/wpml-heading
Browse files Browse the repository at this point in the history
EPS-643: Heading module - wpml
  • Loading branch information
sushmak02 authored Jul 11, 2024
2 parents a86262c + 932c146 commit df319ed
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in
## Changelog ##

### 1.5.9 ###
* Improvement: WPML compatibility for the Heading and Ribbon module.
* Improvement: Improved codebase for improved security.

### 1.5.8 ###
Expand Down
33 changes: 33 additions & 0 deletions classes/class-uabb-wpml.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,39 @@ static public function wpml_uabb_modules_translate( $form ) {
),
),
);
// Heading Module.
$form['uabb-heading'] = array(
'conditions' => array( 'type' => 'uabb-heading' ),
'fields' => array(
array(
'field' => 'heading',
'type' => __( 'Heading Text', 'uabb' ),
'editor_type' => 'LINE',
),
array(
'field' => 'link',
'type' => __( 'Link', 'uabb' ),
'editor_type' => 'LINK',
),
array(
'field' => 'description',
'type' => __( 'Description Text', 'uabb' ),
'editor_type' => 'LINE',
),
),
);

// Ribbon.
$form['ribbon'] = array(
'conditions' => array( 'type' => 'ribbon' ),
'fields' => array(
array(
'field' => 'title',
'type' => __( 'Ribbon Message', 'uabb' ),
'editor_type' => 'LINE',
),
),
);

return $form;
}
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in
== Changelog ==

= 1.5.9 =
* Improvement: WPML compatibility for the Heading and Ribbon module.
* Improvement: Improved codebase for improved security.

= 1.5.8 =
Expand Down

0 comments on commit df319ed

Please sign in to comment.