Skip to content

Commit

Permalink
Dev: added renderCaptcha() to LS Twig extension
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Feb 17, 2017
1 parent e287de6 commit 5283041
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions application/core/LS_Twig_Extension.php
Expand Up @@ -120,5 +120,14 @@ public static function getAllQuestionClasses($iQid)
return $aQuestionClass;
}

public static function renderCaptcha()
{
App()->getController()->widget('CCaptcha',array(
'buttonOptions'=>array('class'=> 'btn btn-xs btn-info'),
'buttonType' => 'button',
'buttonLabel' => gt('Reload image','unescaped')
));
}


}

0 comments on commit 5283041

Please sign in to comment.