From 5283041500792349646cb11317723ecdc4195ea4 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Fri, 17 Feb 2017 17:52:36 +0100 Subject: [PATCH] Dev: added renderCaptcha() to LS Twig extension --- application/core/LS_Twig_Extension.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/core/LS_Twig_Extension.php b/application/core/LS_Twig_Extension.php index fc11fcd1632..a19bcaab816 100644 --- a/application/core/LS_Twig_Extension.php +++ b/application/core/LS_Twig_Extension.php @@ -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') + )); + } + }