Commits

David Gero  committed 3d6226d Draft

[m] translatable widget title and full page name as page id

  • Participants
  • Parent commits 94ffe1b

Comments (0)

Files changed (1)

File testimonials.php

 	function update($new_instance, $old_instance) {
 		$instance = $old_instance;
 		$instance['title'] = strip_tags($new_instance['title']);
+		$this->addTranslatableString('Widget Title', $instance['title']);
 		$instance['category'] = strip_tags($new_instance['category']);
 		$instance['limit'] = strip_tags($new_instance['limit']);
 		$instance['more'] = strip_tags($new_instance['more']);
 		$instance['more-text'] = strip_tags($this->addTranslatableString('more-text-'.$widget_id, $new_instance['more-text']));
 		//$instance['more-text'] = strip_tags($new_instance['more-text']);
 		$instance['fullpage'] = strip_tags($new_instance['fullpage']);
+ 		$this->addTranslatableString('Widget FullPage Text', $new_instance['fullpage']);
 		$instance['images'] = strip_tags($new_instance['images']);
 		$instance['type'] = strip_tags($new_instance['type']);
 		return $instance;