$wrapArray[0]=Support::insertAttribute($wrapArray[0],'class',$class);// might be problematic, if there is already a 'class' defined.
if($wrapName==FE_WRAP_LABEL){
$wrapArray[0]=Support::insertAttribute($wrapArray[0],'style','text-align: '.$formElement[F_FE_LABEL_ALIGN].';');// might be problematic, if there is already a 'class' defined.
}
}
return$wrapArray[0].$htmlElement.$wrapArray[1];
}
/**
* @param array $formElement Complete FormElement, especially some FE_WRAP
* @param string $htmlElement Content to wrap.
...
...
@@ -775,55 +823,6 @@ EOF;
return$html;
}
/**
* Wrap content with $wrapArray or, if specified use $formElement[$wrapName]. Inject $htmlId in wrap.
*
* Result:
* - if $bsColumns==0 and empty $formElement[$wrapName]: no wrap
* - if $formElement[$wrapName] is given: wrap with that one. Else: wrap with $wrapArray
* - if $htmlId is give, inject it in $wrap.
*
* @param array $formElement Complete FormElement, especially some FE_WRAP
$wrapArray[0]=Support::insertAttribute($wrapArray[0],'class',$class);// might be problematic, if there is already a 'class' defined.
if($wrapName==FE_WRAP_LABEL){
$wrapArray[0]=Support::insertAttribute($wrapArray[0],'style','text-align: '.$formElement[F_FE_LABEL_ALIGN].';');// might be problematic, if there is already a 'class' defined.