Enhance formattributes.php and typeopenany.php with role attribute for improved functionality.
This commit is contained in:
@@ -99,6 +99,7 @@ class FormAttributes
|
|||||||
$this->_element = str_replace(' PATTERN', '', $this->_element);
|
$this->_element = str_replace(' PATTERN', '', $this->_element);
|
||||||
$this->_element = str_replace('ANY', '', $this->_element);
|
$this->_element = str_replace('ANY', '', $this->_element);
|
||||||
$this->_element = str_replace('data-sitekey="DATA-SITEKEY"', '', $this->_element);
|
$this->_element = str_replace('data-sitekey="DATA-SITEKEY"', '', $this->_element);
|
||||||
|
$this->_element = str_replace('role="ROLE"', '', $this->_element);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ class TypeOpenAny extends FormAttributes implements IForm
|
|||||||
self::FORM_ATTRIBUTE_ALT => '',
|
self::FORM_ATTRIBUTE_ALT => '',
|
||||||
self::FROM_ATTRIBUTE_STYLE => '',
|
self::FROM_ATTRIBUTE_STYLE => '',
|
||||||
self::FORM_ATTRIBUTE_DATA_SITEKEY => '',
|
self::FORM_ATTRIBUTE_DATA_SITEKEY => '',
|
||||||
self::FORM_ATTRIBUTE_TYPE => ''
|
self::FORM_ATTRIBUTE_TYPE => '',
|
||||||
|
self::FORM_ATTRIBUTE_ROLE => ''
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -40,6 +41,6 @@ class TypeOpenAny extends FormAttributes implements IForm
|
|||||||
*/
|
*/
|
||||||
private function _setElement( )
|
private function _setElement( )
|
||||||
{
|
{
|
||||||
$this->_element = '<ANY type="TYPE" href="HREF" src="SRC" alt="ALT" style="STYLE" data-sitekey="DATA-SITEKEY" ID CLASS>' . 'VALUE' . "\n";
|
$this->_element = '<ANY type="TYPE" href="HREF" src="SRC" alt="ALT" style="STYLE" data-sitekey="DATA-SITEKEY" ID CLASS role="ROLE">' . 'VALUE' . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user