Deprecated : Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 58
Deprecated : Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler
<?php
use Twig\Environment ;
use Twig\Error\LoaderError ;
use Twig\Error\RuntimeError ;
use Twig\Extension\SandboxExtension ;
use Twig\Markup ;
use Twig\Sandbox\SecurityError ;
use Twig\Sandbox\SecurityNotAllowedTagError ;
use Twig\Sandbox\SecurityNotAllowedFilterError ;
use Twig\Sandbox\SecurityNotAllowedFunctionError ;
use Twig\Source ;
use Twig\Template ;
/* @theme/common/search-results.html.twig */
class __TwigTemplate_9e79d2a05cd48582fdf2c4d777e9a6a6 extends Template
{
private $source ;
private $macros = [];
public function __construct ( Environment $env )
{
parent :: __construct ( $env );
$this -> source = $this -> getSourceContext ();
$this -> parent = false ;
$this -> blocks = [
];
}
protected function doDisplay (array $context , array $blocks = [])
{
$macros = $this -> macros ;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this -> extensions [ "Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension" ];
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> enter ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "@theme/common/search-results.html.twig" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "@theme/common/search-results.html.twig" ));
// line 1
echo "<div class=\"container mb-12\">
<div class=\"search-box relative mb-4 lg:hidden \">
<form action=\"/search\" method=\"get\" class=\"search-form\">
<label class=\"sr-only\" for=\"search\">Site Search</label>
<input class=\"search-input\" type=\"text\" id=\"search\" name=\"search-terms\" value=\"";
// line 5
echo twig_escape_filter ( $this -> env , (isset( $context [ "criteria" ]) || array_key_exists ( "criteria" , $context ) ? $context [ "criteria" ] : (function () { throw new RuntimeError ( 'Variable "criteria" does not exist.' , 5 , $this -> source ); })()), "html" , null , true );
echo "\">
<button type=\"submit\" title=\"search\"><i class=\"fa-regular fa-magnifying-glass text-lg font-bold\" title=\"search\"></i></button>
</form>
</div>
<p class=\"!mb-8\">Found ";
// line 10
echo twig_escape_filter ( $this -> env , (isset( $context [ "totalResults" ]) || array_key_exists ( "totalResults" , $context ) ? $context [ "totalResults" ] : (function () { throw new RuntimeError ( 'Variable "totalResults" does not exist.' , 10 , $this -> source ); })()), "html" , null , true );
echo " result matching your criteria.</p>
<ol class=\"searchresults\">
";
// line 13
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "pageHits" ]) || array_key_exists ( "pageHits" , $context ) ? $context [ "pageHits" ] : (function () { throw new RuntimeError ( 'Variable "pageHits" does not exist.' , 13 , $this -> source ); })()));
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "hit" ]) {
// line 14
echo " <li>
<a href=\"/";
// line 15
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "hit" ], "link" , [], "any" , false , false , false , 15 ), "html" , null , true );
echo "\">
<h4 class=\"mb-0\">";
// line 16
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "hit" ], "title" , [], "any" , false , false , false , 16 ), "html" , null , true );
echo "</h4>
<p>";
// line 17
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'App\Twig\AdminTwigExtension' ]->{ closure : App\Twig\AdminTwigExtension :: getFunctions (): 43 }( twig_striptags ( twig_get_attribute ( $this -> env , $this -> source , $context [ "hit" ], "description" , [], "any" , false , false , false , 17 )), 35 ), "html" , null , true );
echo "</p>
</a>
</li>
";
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'hit' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 21
echo " </ol>
";
// line 23
if (( twig_length_filter ( $this -> env , (isset( $context [ "pageHits" ]) || array_key_exists ( "pageHits" , $context ) ? $context [ "pageHits" ] : (function () { throw new RuntimeError ( 'Variable "pageHits" does not exist.' , 23 , $this -> source ); })())) == 0 )) {
// line 24
echo " <div>
<p>Nothing found - try changing your search criteria</p>
</div>
";
} else {
// line 28
echo " " ;
echo $this -> extensions [ 'Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension' ]-> render ( $this -> env , (isset( $context [ "pageHits" ]) || array_key_exists ( "pageHits" , $context ) ? $context [ "pageHits" ] : (function () { throw new RuntimeError ( 'Variable "pageHits" does not exist.' , 28 , $this -> source ); })()));
echo "
";
}
// line 30
echo "
<hr />
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName ()
{
return "@theme/common/search-results.html.twig" ;
}
/**
* @codeCoverageIgnore
*/
public function isTraitable ()
{
return false ;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo ()
{
return array ( 106 => 30 , 100 => 28 , 94 => 24 , 92 => 23 , 88 => 21 , 78 => 17 , 74 => 16 , 70 => 15 , 67 => 14 , 63 => 13 , 57 => 10 , 49 => 5 , 43 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "<div class=\"container mb-12\">
<div class=\"search-box relative mb-4 lg:hidden \">
<form action=\"/search\" method=\"get\" class=\"search-form\">
<label class=\"sr-only\" for=\"search\">Site Search</label>
<input class=\"search-input\" type=\"text\" id=\"search\" name=\"search-terms\" value=\"{{ criteria }}\">
<button type=\"submit\" title=\"search\"><i class=\"fa-regular fa-magnifying-glass text-lg font-bold\" title=\"search\"></i></button>
</form>
</div>
<p class=\"!mb-8\">Found {{ totalResults}} result matching your criteria.</p>
<ol class=\"searchresults\">
{% for hit in pageHits %}
<li>
<a href=\"/{{ hit.link }}\">
<h4 class=\"mb-0\">{{ hit.title }}</h4>
<p>{{ wordLimit( hit.description|striptags, 35 ) }}</p>
</a>
</li>
{% endfor %}
</ol>
{% if pageHits|length == 0 %}
<div>
<p>Nothing found - try changing your search criteria</p>
</div>
{% else %}
{{ knp_pagination_render(pageHits) }}
{% endif %}
<hr />
</div>
", "@theme/common/search-results.html.twig" , "/var/www/html/k/kasscaffolding/templates/themes/base/common/search-results.html.twig" );
}
}