im need custom class on login Form(using custom template for member addon) im read comments on member addon and says
// match {form_declaration} or {form_declaration return="foo"} but with return=”foo”, return=”-2” etc template tag dont works
for now im add class using Javascript
ok y write this little code and works fine
<?php
class Tcdcl_utilities {
public $return_data;
private $basestring;
private $formclass;
function __construct()
{
// Get parameters
//$this->basestring = ee()->TMPL->fetch_param('str');
$this->formclass = ee()->TMPL->fetch_param('class');
}
public function addformclass(){
$formtag = str_replace("<form ", '<form class="'.$this->formclass.'" ', ee()->TMPL->tagdata);
return $formtag;
}
// END
}and call from template like this
{exp:tcdcl_utilities:addformclass class="login100-form validate-form col-md-6 mx-auto"}{form_declaration}{/exp:tcdcl_utilities:addformclass}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.