/var/www/html/themes/survey/vanilla/views/subviews/privacy/privacy_datasecurity_notice_label.twig(10)
01 {# 02 use aSurveyInfo datasecurity_notice_label 03 #} 04 {% set STARTPOLICYLINK = "" %} 05 {% set ENDPOLICYLINK = "" %} 06 {% if(aSurveyInfo.showsurveypolicynotice == 2) %} 07 {% set STARTPOLICYLINK = "<a href='#data-security-modal-" ~ aSurveyInfo.sid ~ "' data-toggle='collapse'>" %} 08 {% set ENDPOLICYLINK = "</a>" %} 09 {% endif %} 10 {% if( strpos( " " ~ dataSecurityNoticeLabel, '{STARTPOLICYLINK}') == false and strpos( " " ~ dataSecurityNoticeLabel, '{ENDPOLICYLINK}') == false) %} 11 {% set dataSecurityNoticeLabel = dataSecurityNoticeLabel ~ "<br/> {STARTPOLICYLINK}" ~ gT("Show policy") ~ "{ENDPOLICYLINK}" %} 12 {% endif %} 13 {% set haveENDPOLICYLINK = strpos( " " ~ dataSecurityNoticeLabel, '{ENDPOLICYLINK}') %} 14 {% set dataSecurityNoticeLabel = str_replace('{STARTPOLICYLINK}', STARTPOLICYLINK, dataSecurityNoticeLabel) %} 15 {% set dataSecurityNoticeLabel = str_replace('{ENDPOLICYLINK}', ENDPOLICYLINK, dataSecurityNoticeLabel) %} 16 {% if( haveENDPOLICYLINK == false ) %} 17 {% set dataSecurityNoticeLabel = dataSecurityNoticeLabel ~ ENDPOLICYLINK %} 18 {% endif %} 19 {{ dataSecurityNoticeLabel }}
| #0 |
+
–
/var/www/html/third_party/twig/twig/src/ExpressionParser.php(470): Twig\ExpressionParser->getFunctionNodeClass()
return $node;
}
$args = $this->parseArguments(true);
return new $class($name, $args, $line);
}
}
|
| #1 |
+
–
/var/www/html/third_party/twig/twig/src/ExpressionParser.php(243): Twig\ExpressionParser->getFunctionNode() 238 $node = new ConstantExpression(null, $token->getLine()); 239 break; 240 241 default: 242 if ('(' === $this->parser->getCurrentToken()->getValue()) { 243 $node = $this->getFunctionNode($token->getValue(), $token->getLine()); 244 } else { 245 $node = new NameExpression($token->getValue(), $token->getLine()); 246 } 247 } 248 break; |
| #2 |
+
–
/var/www/html/third_party/twig/twig/src/ExpressionParser.php(183): Twig\ExpressionParser->parsePrimaryExpression() 178 $this->parser->getStream()->expect(Token::PUNCTUATION_TYPE, ')', 'An opened parenthesis is not properly closed'); 179 180 return $this->parsePostfixExpression($expr); 181 } 182 183 return $this->parsePrimaryExpression(); 184 } 185 186 protected function parseConditionalExpression($expr) 187 { 188 while ($this->parser->getStream()->nextIf(Token::PUNCTUATION_TYPE, '?')) { |
| #3 |
+
–
/var/www/html/third_party/twig/twig/src/ExpressionParser.php(78): Twig\ExpressionParser->getPrimary() {
if ($allowArrow && $arrow = $this->parseArrow()) {
return $arrow;
}
$token = $this->parser->getCurrentToken();
while ($this->isBinary($token) && $this->binaryOperators[$token->getValue()]['precedence'] >= $precedence) {
$op = $this->binaryOperators[$token->getValue()];
$this->parser->getStream()->next();
|
| #4 |
+
–
/var/www/html/third_party/twig/twig/src/ExpressionParser.php(177): Twig\ExpressionParser->parseExpression() $class = $operator['class'];
return $this->parsePostfixExpression(new $class($expr, $token->getLine()));
} elseif ($token->test(Token::PUNCTUATION_TYPE, '(')) {
$this->parser->getStream()->next();
$this->parser->getStream()->expect(Token::PUNCTUATION_TYPE, ')', 'An opened parenthesis is not properly closed');
return $this->parsePostfixExpression($expr);
}
|
| #5 |
+
–
/var/www/html/third_party/twig/twig/src/ExpressionParser.php(78): Twig\ExpressionParser->getPrimary() {
if ($allowArrow && $arrow = $this->parseArrow()) {
return $arrow;
}
$token = $this->parser->getCurrentToken();
while ($this->isBinary($token) && $this->binaryOperators[$token->getValue()]['precedence'] >= $precedence) {
$op = $this->binaryOperators[$token->getValue()];
$this->parser->getStream()->next();
|
| #6 |
+
–
/var/www/html/third_party/twig/twig/src/TokenParser/IfTokenParser.php(38): Twig\ExpressionParser->parseExpression() class IfTokenParser extends AbstractTokenParser
{
public function parse(Token $token)
{
$lineno = $token->getLine();
$stream = $this->parser->getStream();
$stream->expect(Token::BLOCK_END_TYPE);
$body = $this->parser->subparse([$this, 'decideIfFork']);
$tests = [$expr, $body];
$else = null;
|
| #7 |
+
–
/var/www/html/third_party/twig/twig/src/Parser.php(209): Twig\TokenParser\IfTokenParser->parse() throw $e;
}
$this->stream->next();
if (null !== $node) {
$rv[] = $node;
}
break;
|
| #8 |
+
–
/var/www/html/third_party/twig/twig/src/Parser.php(122): Twig\Parser->subparse() $this->importedSymbols = [[]];
$this->embeddedTemplates = [];
$this->varNameSalt = 0;
try {
if (null !== $this->parent && null === $body = $this->filterBodyNodes($body)) {
$body = new Node();
}
} catch (SyntaxError $e) {
|
| #9 |
+
–
/var/www/html/third_party/twig/twig/src/Environment.php(735): Twig\Parser->parse() {
if (null === $this->parser) {
$this->parser = new Parser($this);
}
}
/**
* Gets the Compiler instance.
*
|
| #10 |
+
–
/var/www/html/third_party/twig/twig/src/Environment.php(793): Twig\Environment->parse() @trigger_error(sprintf('Passing a string as the $source argument of %s() is deprecated since version 1.27. Pass a Twig\Source instance instead.', __METHOD__), E_USER_DEPRECATED);
$source = new Source($source, $name);
}
try {
} catch (Error $e) {
$e->setSourceContext($source);
throw $e;
} catch (\Exception $e) {
throw new SyntaxError(sprintf('An exception has been thrown during the compilation of a template ("%s").', $e->getMessage()), -1, $source, $e);
|
| #11 |
+
–
/var/www/html/third_party/twig/twig/src/Environment.php(482): Twig\Environment->compileSource() $source = new Source($loader->getSource($name), $name);
} else {
$source = $loader->getSourceContext($name);
}
if ($this->bcWriteCacheFile) {
$this->writeCacheFile($key, $content);
} else {
$this->cache->write($key, $content);
|
| #12 |
+
–
/var/www/html/third_party/twig/twig/src/Environment.php(445): Twig\Environment->loadClass() *
* @internal
*/
public function loadTemplate($name, $index = null)
{
}
/**
* @internal
*/
|
| #13 |
+
–
/var/www/html/application/core/LSETwigViewRenderer.php(778): Twig\Environment->loadTemplate() public function renderPartial($twigView, $aData)
{
$oTemplate = Template::getLastInstance();
$aData = $this->getAdditionalInfos($aData, $oTemplate);
$this->addRecursiveTemplatesPath($oTemplate);
}
/**
* Get the final source file for current context
* Currently used in theme editor
|
| #14 |
+
–
/var/www/html/application/models/Survey.php(2044): LSETwigViewRenderer->renderPartial() gT("Show policy")
];
return App()->twigRenderer->renderPartial(
'/subviews/privacy/privacy_datasecurity_notice_label.twig',
[
]
);
}
/**
|
| #15 |
+
–
/var/www/html/application/helpers/SurveyRuntimeHelper.php(1065): Survey::replacePolicyLink() if (empty($this->aSurveyInfo['datasecurity_error'])) {
$this->aSurveyInfo['datasecurity_error'] = gT("We are sorry but you can't proceed without first agreeing to our survey data policy.");
}
}
if ($bDisplayFirstPage) {
$_SESSION[$this->LEMsessid]['test'] = time();
display_first_page($this->thissurvey, $this->aSurveyInfo);
|
| #16 |
+
–
/var/www/html/application/helpers/SurveyRuntimeHelper.php(209): SurveyRuntimeHelper->displayFirstPageIfNeeded() $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized
if (EmCacheHelper::useCache()) {
$this->aSurveyInfo['emcache'] = true;
}
$this->checkQuotas(); // check quotas (then the process will stop here)
$this->saveAllIfNeeded();
$this->saveSubmitIfNeeded();
// TODO: move somewhere else
$this->setNotAnsweredAndNotValidated();
} else {
|
| #17 |
+
–
/var/www/html/application/controllers/survey/index.php(618): SurveyRuntimeHelper->run() unset($redata);
$redata = compact(array_keys(get_defined_vars()));
Yii::import('application.helpers.SurveyRuntimeHelper');
$tmp = new SurveyRuntimeHelper();
// try {
// } catch (WrongTemplateVersionException $ex) {
// echo $ex->getMessage();
// }
}
|
| #18 |
+
–
/var/www/html/application/controllers/survey/index.php(22): Index->action() public $oTemplate;
public function run()
{
useFirebug();
}
public function action()
{
global $surveyid;
|
| #19 |
+
–
/var/www/html/framework/web/actions/CAction.php(76): Index->run() {
$method=new ReflectionMethod($this, 'run');
if($method->getNumberOfParameters()>0)
return $this->runWithParamsInternal($this, $method, $params);
return true;
}
/**
* Executes a method of an object with the supplied named parameters.
|
| #20 |
+
–
/var/www/html/framework/web/CController.php(308): CAction->runWithParams() {
$priorAction=$this->_action;
$this->_action=$action;
if($this->beforeAction($action))
{
$this->invalidActionParams($action);
else
$this->afterAction($action);
}
$this->_action=$priorAction;
|
| #21 |
+
–
/var/www/html/framework/web/CController.php(286): CController->runAction() * @see runAction
*/
public function runActionWithFilters($action,$filters)
{
if(empty($filters))
else
{
$priorAction=$this->_action;
$this->_action=$action;
CFilterChain::create($this,$action,$filters)->run();
|
| #22 |
+
–
/var/www/html/framework/web/CController.php(265): CController->runActionWithFilters() {
if(($parent=$this->getModule())===null)
$parent=Yii::app();
if($parent->beforeControllerAction($this,$action))
{
$parent->afterControllerAction($this,$action);
}
}
else
$this->missingAction($actionID);
|
| #23 |
+
–
/var/www/html/framework/web/CWebApplication.php(282): CController->run() {
list($controller,$actionID)=$ca;
$oldController=$this->_controller;
$this->_controller=$controller;
$controller->init();
$this->_controller=$oldController;
}
else
throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
array('{route}'=>$route===''?$this->defaultController:$route)));
|
| #24 |
+
–
/var/www/html/framework/web/CWebApplication.php(141): CWebApplication->runController() foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
$_GET[$name]=$value;
}
else
$route=$this->getUrlManager()->parseUrl($this->getRequest());
}
/**
* Registers the core application components.
* This method overrides the parent implementation by registering additional core components.
|
| #25 |
+
–
/var/www/html/framework/base/CApplication.php(185): CWebApplication->processRequest() public function run()
{
if($this->hasEventHandler('onBeginRequest'))
$this->onBeginRequest(new CEvent($this));
register_shutdown_function(array($this,'end'),0,false);
if($this->hasEventHandler('onEndRequest'))
$this->onEndRequest(new CEvent($this));
}
/**
|
| #26 |
+
–
/var/www/html/index.php(192): CApplication->run() require_once APPPATH . 'core/LSYii_Application' . EXT; $config = require_once(APPPATH . 'config/internal' . EXT); Yii::$enableIncludePath = false; /* End of file index.php */ /* Location: ./index.php */ |