From a7ce13334c1e4ea937dc08cba2c81ad4996695ca Mon Sep 17 00:00:00 2001 From: "stephan.kasdorf" Date: Tue, 12 Mar 2024 10:36:03 +0100 Subject: [PATCH] Add placeholder attribute to search form A placeholder attribute has been added to the input type search in typesearch.php. This attribute allows a short hint, a word or a short phrase, to be displayed in the input field before the user enters a value. The change was made to enhance the user experience by providing contextual help in the search field. --- core/c/typesearch.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/c/typesearch.php b/core/c/typesearch.php index d1cdc14..52f4c5f 100755 --- a/core/c/typesearch.php +++ b/core/c/typesearch.php @@ -13,7 +13,8 @@ class TypeSearch extends FormAttributes implements IForm { private $_attributes = array( self::FORM_ATTRIBUTE_CLASS => '', - self::FORM_ATTRIBUTE_ID => '' + self::FORM_ATTRIBUTE_ID => '', + self::FORM_ATTRIBUTE_PLACEHOLDER => '' ); public function loadElement( $attributes ) @@ -29,7 +30,7 @@ class TypeSearch extends FormAttributes implements IForm */ private function _setElement( ) { - $this->_element = '' . "\n"; + $this->_element = '' . "\n"; }