<?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;
/* pages/homepage.html.twig */
class __TwigTemplate_7cc2593d396e10414a22da9ad07528e4614f2d603bb93ebd9301a682dbe1d404 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'vignetteAd' => [$this, 'block_vignetteAd'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/homepage.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/homepage.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/homepage.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/homepage.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 5
echo " ";
if ( !(isset($context["data_t_scopus"]) || array_key_exists("data_t_scopus", $context))) {
$context["data_t_scopus"] = null;
echo " ";
}
// line 6
echo " ";
if ( !(isset($context["data_reuter"]) || array_key_exists("data_reuter", $context))) {
$context["data_reuter"] = null;
echo " ";
}
// line 7
echo "
<!-- Load Facebook SDK for JavaScript -->
<div id=\"fb-root\"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = \"https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0\";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class=\"container container-home\">
";
// line 20
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 20, $this->source); })()), "flashes", [0 => "success"], "method", false, false, false, 20));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 21
echo " <div class=\"alert alert-success alert-dismissible alert-success-journal w-100 mx-auto d-flex p-2 mb-4\" role=\"alert\">
<span class=\"\">";
// line 22
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<span type=\"button\" class=\"close position-static ml-auto\" data-dismiss=\"alert\" aria-label=\"Close\" style=\"padding: 0 !important;\"><span aria-hidden=\"true\">×</span></span>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "flashes", [0 => "warning"], "method", false, false, false, 26));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 27
echo " <div class=\"alert alert-warning alert-dismissible alert-warning-journal w-100 mx-auto d-flex p-2 mb-4\" role=\"alert\">
<span class=\"\">";
// line 28
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<span type=\"button\" class=\"close position-static ml-auto\" data-dismiss=\"alert\" aria-label=\"Close\" style=\"padding: 0 !important;\"><span aria-hidden=\"true\">×</span></span>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "flashes", [0 => "error"], "method", false, false, false, 32));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 33
echo " <div class=\"alert alert-error alert-dismissible alert-error-journal w-100 mx-auto d-flex p-2 mb-4\" role=\"alert\">
<span class=\"\">";
// line 34
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "</span>
<span type=\"button\" class=\"close position-static ml-auto\" data-dismiss=\"alert\" aria-label=\"Close\" style=\"padding: 0 !important;\"><span aria-hidden=\"true\">×</span></span>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo " ";
$this->loadTemplate("pages/parts/form-search.html.twig", "pages/homepage.html.twig", 38)->display($context);
// line 39
echo " <div class=\"page-content\">
";
// line 40
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("latestJournals"));
echo "
<div class=\"page-title\">
<h2>Find Journals or Authors</h2>
<p>
Your research is easier with a journal that you can save.
Follow the author to stay up-to-date on new articles as they are published!
</p>
</div>
<div class=\"row icons-homepage px-1 mx-0\">
<div class=\"col-md-3 block-intro\">
<a href=\"";
// line 53
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("journalSearch");
echo "\" >
<img class=\"img-fluid logo-gj\" src=\"";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/search.svg"), "html", null, true);
echo "\" alt=\"researchguide\" />
<h5>Journal Search</h5>
<p>Find the best journal for your research, depending on various criteria (Title, article keywords).</p>
</a>
</div>
<div class=\"col-md-3 block-intro\">
<a href=\"";
// line 62
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("get_authors");
echo "\">
<img class=\"img-fluid logo-gj\" src=\"";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/lamp.svg"), "html", null, true);
echo "\" alt=\"researchguide\" />
<h5>Author Search</h5>
<p> Find your authors with their published articles and corresponding journals.</p>
</a>
</div>
<div class=\"col-md-3 block-intro\">
<a href=\"";
// line 70
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("journalSearch");
echo "\" >
<img class=\"img-fluid logo-gj\" src=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/save_icon.svg"), "html", null, true);
echo "\" alt=\"researchguide\" />
<h5>Save journal </h5>
<p>Save your favorite journals for easy reference. Stay up-to-date on recent and updated journals.</p>
</a>
</div>
<div class=\"col-md-3 block-intro\">
<a href=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("get_authors");
echo "\">
<img class=\"img-fluid logo-gj\" src=\"";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/follow_author_icon.svg"), "html", null, true);
echo "\" alt=\"researchguide\" />
<h5>Follow author </h5>
<p>Follow your author to receive new journals and latest journal developments in your field.</p>
</a>
</div>
</div>
<div class=\"row description-block mx-0\">
<div class=\"col-md-6 right-content\">
<h5>Find your Journal easily</h5>
<p class=\"paragraphe\">You can choose to filter by Author or Journal title in order to find the perfect fit for your needs! </p>
<div class=\"row check-bloc\">
<div class=\"col-2 col-md-2 img-check\">
<img class=\"img-fluid\" src=\"";
// line 91
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/check.svg"), "html", null, true);
echo "\" alt=\"researchguide\" />
</div>
<div class=\"col-10 col-md-10\">
<p class=\"check-bloc-title\">Search your Journal by title or related keywords.</p>
<p class=\"check-bloc-text\"></p>
</div>
</div>
<div class=\"row check-bloc\">
<div class=\"col-2 col-md-2 img-check\">
<img class=\"img-fluid\" src=\"";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/check.svg"), "html", null, true);
echo "\" alt=\"researchguide\" />
</div>
<div class=\"col-10 col-md-10\">
<p class=\"check-bloc-title\">Use the Author’s name to find your Journal.</p>
<p class=\"check-bloc-text\"></p>
</div>
</div>
";
// line 107
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 107, $this->source); })()), "user", [], "any", false, false, false, 107) == null)) {
// line 108
echo " <div class=\"row block-connexion\">
<div class=\"col-md-5 p-0\">
<a href=\"";
// line 110
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("journalSearch");
echo "\">
<button class=\"btn btn-connexion btn-journal btn-block\">Find a Journal</button>
</a>
</div>
<div class=\"col-md-5 pl-3\" >
<a href=\"";
// line 115
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("get_authors");
echo "\">
<button class=\"btn btn-connexion btn-author btn-block\">Find an Author</button>
</a>
</div>
</div>
";
}
// line 121
echo " </div>
<div class=\"col-md-6 left-content find-journal-bg\">
<div class=\"row\">
<div class=\"col-md-6 img-sample\">
";
// line 126
echo " </div>
<div class=\"col-md-6 img-sample\">
";
// line 129
echo " </div>
</div>
</div>
</div>
";
// line 145
echo " <div class=\"row recent-articles mx-0\" style=\"padding-top:10%\">
<div class=\"col-md-12 last-articles\">
<h5 class=\"title\">Blog Posts</h5>
</div>
<div class=\"col-md-6 left-content\"><p>Browse the latest Articles</p></div>
<div class=\"container c-carousel\">
<div class=\"row row-carousel\">
<div class=\"col-md-12 col-carousel mb-4\">
<div class=\"carousel-articles\">
";
// line 154
$context["articles"] = twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 154, $this->source); })()), "featured_articles", [], "any", false, false, false, 154);
// line 155
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 155, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["a"]) {
// line 156
echo " <div class=\"col-md-4 article-infos\">
";
// line 157
if (twig_get_attribute($this->env, $this->source, $context["a"], "cover_image", [], "any", false, false, false, 157)) {
// line 158
echo " ";
$context["media"] = twig_get_attribute($this->env, $this->source, $context["a"], "cover_image", [], "any", false, false, false, 158);
// line 159
echo "
";
// line 160
if ((((isset($context["media"]) || array_key_exists("media", $context)) && !(null === (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 160, $this->source); })()))) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 160, $this->source); })()), "thumbnails", [], "any", false, false, false, 160), "sulu-400x400", [], "array", false, false, false, 160))) {
// line 161
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "path", [], "any", false, false, false, 161), "html", null, true);
echo "\">
<img class=\"card-img-top\" data-src=\"";
// line 162
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 162, $this->source); })()), "thumbnails", [], "any", false, false, false, 162), "sulu-400x400", [], "array", false, false, false, 162), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 162, $this->source); })()), "url", [], "any", false, false, false, 162)) ? (twig_get_attribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 162, $this->source); })()), "url", [], "any", false, false, false, 162)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 162, $this->source); })()), "thumbnails", [], "any", false, false, false, 162), "sulu-400x400", [], "array", false, false, false, 162))), "html", null, true);
echo "\" data-holder-rendered=\"true\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "title", [], "any", false, false, false, 162), "html", null, true);
echo "\">
</a>
";
} else {
// line 165
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "path", [], "any", false, false, false, 165), "html", null, true);
echo "\">
<img class=\"card-img-top img-responsive\" data-src=\"";
// line 166
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/article.svg"), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/article.svg"), "html", null, true);
echo "\" data-holder-rendered=\"true\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "title", [], "any", false, false, false, 166), "html", null, true);
echo "\">
</a>
";
}
// line 169
echo " ";
} else {
// line 170
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "path", [], "any", false, false, false, 170), "html", null, true);
echo "\">
<img class=\"card-img-top\" data-src=\"";
// line 171
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/article.svg"), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/article.svg"), "html", null, true);
echo "\" data-holder-rendered=\"true\" alt=\"researchguide\">
</a>
";
}
// line 174
echo "
<div class=\"fav-img\">
<a href=\"";
// line 176
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "path", [], "any", false, false, false, 176), "html", null, true);
echo "\"> <img class=\"img-fluid\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/favoris.svg"), "html", null, true);
echo "\" alt=\"researchguide\" /></a>
</div>
<div class=\"content\">
<h6 class=\"title-article\"><a href=\"";
// line 179
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "path", [], "any", false, false, false, 179), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "title", [], "any", false, false, false, 179), "html", null, true);
echo "</a></h6>
";
// line 180
if ((twig_length_filter($this->env, twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["a"], "excerptDescription", [], "any", false, false, false, 180))) > 1)) {
// line 181
echo " <p>
";
// line 182
echo twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "excerptDescription", [], "any", false, false, false, 182), 0, 60);
echo "... <br><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["a"], "path", [], "any", false, false, false, 182), "html", null, true);
echo "\" style=\"float: right;font-weight: 400\" class=\"text-warning\">Read More →</a>
</p>
";
}
// line 185
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['a'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 188
echo " </div>
</div>
</div>
</div>
";
// line 192
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_tree')->getCallable()("main"));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 193
echo " ";
if ((twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 193)) == "blog")) {
// line 194
echo " <div class=\"col-md-12 text-center bloc-btn\">
<a href=\"";
// line 195
echo twig_escape_filter($this->env, $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(twig_get_attribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, false, 195), twig_get_attribute($this->env, $this->source, $context["item"], "webspaceKey", [], "any", false, false, false, 195)), "html", null, true);
echo "\">
<button class=\"btn btn-connexion-articles btn-blog\">Explore more</button>
</a>
</div>
";
}
// line 200
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 201
echo " </div>
</div>
</div>
";
// line 209
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 209, $this->source); })()), "user", [], "any", false, false, false, 209) && twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 209, $this->source); })()), "user", [], "any", false, false, false, 209), "categories", [], "any", false, false, false, 209), "values", [], "any", false, false, false, 209))) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 209, $this->source); })()), "request", [], "any", false, false, false, 209), "cookies", [], "any", false, false, false, 209), "get", [0 => "skip-categories"], "method", false, false, false, 209) != "true"))) {
// line 210
echo " <form action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_favorite_categories");
echo "\" method=\"post\">
<div id=\"choose-categories-modal\" class=\"modal registre-modal\" style=\"display:flex; z-index: 100;\">
<div class=\"modal-content animate register-modal-content p-3\" style=\"box-shadow: none !important;border: 0 !important;\">
<span class=\"close skip-check-categories d-flex justify-content-end\" title=\"Close Modal\" style=\"margin-left:0 !important;left:20px;top:20px;cursor: pointer;\">
<svg width=\"35\" height=\"35\" viewBox=\"0 0 50 50\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"float: right\">
<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.4898 25.1794L0.521973 46.1519L4.0579 49.687L25.0249 28.7154L45.9919 49.687L49.5279 46.1519L28.5601 25.1794L49.5279 4.20702L45.9919 0.671875L25.0249 21.6435L4.0579 0.671875L0.521973 4.20702L21.4898 25.1794Z\" fill=\"#58595B\"/>
</svg>
</span>
<h2 class=\"modal-register-title w-100 mx-0 text-center my-2\" style=\"margin-top: 60px; color:black\">
Select your favorite categories:
</h2>
<p class=\"text-center\"> <i>This help us recommend the most useful journals</i></p>
<div id=\"register-step-2\" style=\"\">
<div class=\"d-flex flex-wrap register-categories\">
";
// line 224
$context["categories"] = twig_get_attribute($this->env, $this->source, (isset($context["publicationManager"]) || array_key_exists("publicationManager", $context) ? $context["publicationManager"] : (function () { throw new RuntimeError('Variable "publicationManager" does not exist.', 224, $this->source); })()), "getAllCategories", [], "method", false, false, false, 224);
// line 225
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 225, $this->source); })()), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 225, $this->source); })()), "name", [], "any", false, false, false, 225) <=> twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 225, $this->source); })()), "name", [], "any", false, false, false, 225)); }));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 226
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 226) != "") && (twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 226) != " "))) {
// line 227
echo " <div class=\"category-item\">
<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"display:none\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check\"><polyline points=\"20 6 9 17 4 12\"/></svg>
<span id=\"";
// line 229
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 229), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 229), "html", null, true);
echo "</span>
</div>
";
}
// line 232
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 234
echo " </div>
</div>
<div class=\"d-flex px-4 px-sm-5 my-2\">
<input type=\"hidden\" id=\"selected-categories\" name=\"selected-categories\">
<button type=\"submit\" id=\"register-btn-2\" class=\"btn form-register-btn mx-auto mt-0\" style=\" width: 100% !important;\" disabled>
<p id=\"register-btn-text\" class=\"form-register-btn-text my-auto\">Validate</p>
</button>
</div>
<br><a href=\"/\" class=\"skip-check-categories text-center form-register-btn-text my-auto text-dark\" style=\"font-weight: 300 !important;width: 100% !important;\">Skip</a>
</div>
</div>
</form>
";
}
// line 247
echo "
<div class=\"container-fluid container-banner\">
<div class=\"banner py-5\">
<h6 class=\"pt-0\">Trusted by great companies</h6>
<div class=\"container\">
<div class=\"row partenaires\">
<div class=\"col-sm-4 mt-4 mt-lg-0\">
<a href=\"https://monarkit.net\" target=\"_blank\"><img class=\"img-fluid\" src=\"";
// line 255
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/monark.svg"), "html", null, true);
echo "\" alt=\"monarkIt\" /></a>
</div>
<div class=\"col-sm-4 mt-4 mt-lg-0\">
<a href=\"https://aion-lab.com\" target=\"_blank\"><img class=\"img-fluid\" src=\"";
// line 258
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/aion.svg"), "html", null, true);
echo "\" alt=\"aion\" /></a>
</div>
<div class=\"col-sm-4 mt-4 mt-lg-0\">
<a href=\"https://app-estimator.com\" target=\"_blank\"><img class=\"img-fluid\" width=\"190\" src=\"";
// line 261
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/homepage/estimitor.svg"), "html", null, true);
echo "\" alt=\"estimator\" /></a>
</div>
</div>
</div>
</div>
</div>
<div class=\"suggest-articles container\">
<div class=\"d-flex flex-column flex-lg-row justify-content-center mx-0\">
<div class=\"left-content mr-0 mr-lg-5\">
";
// line 270
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 270, $this->source); })()), "user", [], "any", false, false, false, 270) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 270, $this->source); })()), "user", [], "any", false, false, false, 270), "categories", [], "any", false, false, false, 270)))) {
// line 271
echo " ";
$context["favoriteUserCategories"] = twig_get_attribute($this->env, $this->source, (isset($context["publicationManager"]) || array_key_exists("publicationManager", $context) ? $context["publicationManager"] : (function () { throw new RuntimeError('Variable "publicationManager" does not exist.', 271, $this->source); })()), "showJournalByFavoriteUserCategories", [0 => twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 271, $this->source); })()), "user", [], "any", false, false, false, 271)], "method", false, false, false, 271);
// line 272
echo " ";
if ((isset($context["favoriteUserCategories"]) || array_key_exists("favoriteUserCategories", $context) ? $context["favoriteUserCategories"] : (function () { throw new RuntimeError('Variable "favoriteUserCategories" does not exist.', 272, $this->source); })())) {
// line 273
echo " <div class=\"row line-1\">
";
// line 274
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, (isset($context["favoriteUserCategories"]) || array_key_exists("favoriteUserCategories", $context) ? $context["favoriteUserCategories"] : (function () { throw new RuntimeError('Variable "favoriteUserCategories" does not exist.', 274, $this->source); })()), 0, 4));
foreach ($context['_seq'] as $context["ind"] => $context["favorite"]) {
// line 275
echo " ";
$context["id"] = ($context["ind"] + 1);
// line 276
echo " <div class=\"col-12 col-sm-6 text-center home-categorie-card\">
<a href=\"";
// line 277
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("journal_show", ["id" => twig_get_attribute($this->env, $this->source, $context["favorite"], "id", [], "any", false, false, false, 277)]), "html", null, true);
echo "\">
<div class=\"img-journal\" >
<p>";
// line 279
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["favorite"], "title", [], "any", false, false, false, 279), "html", null, true);
echo "</p>
</div>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['ind'], $context['favorite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 284
echo " </div>
";
}
// line 286
echo " ";
} else {
// line 287
echo " <div class=\"row line-1\">
<div class=\"col-6 col-md-6 text-center\">
<img class=\"img-fluid\" src=\"";
// line 289
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/journal-selected-1.jpg"), "html", null, true);
echo "\" alt=\"suggest-article\" />
</div>
<div class=\"col-6 col-md-6 text-center s-img\">
<img class=\"img-fluid\" src=\"";
// line 292
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/journal-selected-2.jpg"), "html", null, true);
echo "\" alt=\"suggest-article\" />
</div>
</div>
<div class=\"row line-2 mt-3\">
<div class=\"col-6 col-md-6 text-center\">
<img class=\"img-fluid\" src=\"";
// line 297
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/journal-selected-3.jpg"), "html", null, true);
echo "\" alt=\"suggest-article\" />
</div>
<div class=\"col-6 col-md-6 text-center f-img\">
<img class=\"img-fluid\" src=\"";
// line 300
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/refonte/journal-selected-4.jpg"), "html", null, true);
echo "\" alt=\"suggest-article\" />
</div>
</div>
";
}
// line 304
echo " </div>
<div class=\"right-content d-flex flex-column text-center text-lg-left\">
<h6 class=\"selected-journals\">Journals selected <br> for you</h6>
<p>
Explore these recommended journals that we think you'll find most useful.<br><br>
With these, you will be sure to have a complete research.
</p>
<a href=\"";
// line 312
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("journalSearch");
echo "\">
<button class=\"btn\">Find a Journal</button>
</a>
</div>
</div>
</div>
<!-- Exemple de div pour un emplacement publicitaire -->
<div id=\"banner-ad-1\">
<!-- L'espace réservé pour l'annonce sera rempli ici par Prebid -->
</div>
<section class=\"newsletter-section px-3 container\">
<div class=\"newsletter-container\">
<div class=\"newsletter-content\">
<p class=\"newsletter-title\">Sign up to our newsletter!</p>
<p class=\"newsletter-description\">so you can be the first to find out the latest articles and journals. </p>
<div class=\"newsletter-btn-subscribe-container\">
<form action=\"";
// line 328
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("newsletter");
echo "\" method=\"post\" class=\"d-flex\">
<input type=\"hidden\" name=\"newsletter\" value=\"true\" class=\"newsletter-input-hidden\">
<input name=\"email\" type=\"email\" class=\"newsletter-btn-submit\" placeholder=\"Subscribe to our newsletter\" required/>
<input type=\"submit\" value=\"Submit\" class=\"newsletter-input-submit\">
</form>
</div>
</div>
</div>
</section>
<!-- Pubi 0001-->
<!-- /21831250958/guidejournal_home_pub0001 -->
";
// line 345
echo "
<!-- Fin pub 0001-->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 349
public function block_vignetteAd($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vignetteAd"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vignetteAd"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vignetteAd"));
// line 350
echo " <div class=\"fixed-pub-area w-100\"></div>
";
// line 351
$this->loadTemplate("_includes/pubs/custom-vignette-ad.html.twig", "pages/homepage.html.twig", 351)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 354
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 355
echo " <script>
\$('.category-item').click(function (e) {
\$('#register-btn-2').prop( \"disabled\", false );
let svg = e.currentTarget.firstElementChild;
let span = e.currentTarget.lastElementChild;
var categoryInput = document.getElementById('selected-categories')
svg.style.display === 'block' ? svg.style.display = 'none' : svg.style.display = 'block'
if(svg.style.display === 'block') {
// remove category
let spanValue = span.id;
// put span value in input
if(categoryInput.value){
categoryInput.value = categoryInput.value+\",\"+spanValue;
} else {
categoryInput.value = spanValue;
}
}else{
// add category
let spanValue = span.id;
if(categoryInput.value){
let categories = categoryInput.value.split(\",\");
let index = categories.indexOf(spanValue);
if (index > -1) {
categories.splice(index, 1);
}
categoryInput.value = categories.join(\",\");
}
}
e.currentTarget.classList.toggle('active');
})
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
public function getTemplateName()
{
return "pages/homepage.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 734 => 355, 721 => 354, 708 => 351, 705 => 350, 692 => 349, 677 => 345, 662 => 328, 643 => 312, 633 => 304, 626 => 300, 620 => 297, 612 => 292, 606 => 289, 602 => 287, 599 => 286, 595 => 284, 584 => 279, 579 => 277, 576 => 276, 573 => 275, 569 => 274, 566 => 273, 563 => 272, 560 => 271, 558 => 270, 546 => 261, 540 => 258, 534 => 255, 524 => 247, 509 => 234, 502 => 232, 494 => 229, 490 => 227, 487 => 226, 482 => 225, 480 => 224, 462 => 210, 459 => 209, 450 => 201, 444 => 200, 436 => 195, 433 => 194, 430 => 193, 426 => 192, 420 => 188, 412 => 185, 404 => 182, 401 => 181, 399 => 180, 393 => 179, 385 => 176, 381 => 174, 373 => 171, 368 => 170, 365 => 169, 355 => 166, 350 => 165, 340 => 162, 335 => 161, 333 => 160, 330 => 159, 327 => 158, 325 => 157, 322 => 156, 317 => 155, 315 => 154, 304 => 145, 298 => 129, 294 => 126, 288 => 121, 279 => 115, 271 => 110, 267 => 108, 265 => 107, 255 => 100, 243 => 91, 227 => 78, 223 => 77, 214 => 71, 210 => 70, 200 => 63, 196 => 62, 185 => 54, 181 => 53, 165 => 40, 162 => 39, 159 => 38, 149 => 34, 146 => 33, 141 => 32, 131 => 28, 128 => 27, 123 => 26, 113 => 22, 110 => 21, 106 => 20, 91 => 7, 85 => 6, 79 => 5, 66 => 4, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block content %}
{% if data_t_scopus is not defined %}{% set data_t_scopus = null %} {% endif %}
{% if data_reuter is not defined %}{% set data_reuter = null %} {% endif %}
<!-- Load Facebook SDK for JavaScript -->
<div id=\"fb-root\"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = \"https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0\";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class=\"container container-home\">
{% for message in app.flashes('success') %}
<div class=\"alert alert-success alert-dismissible alert-success-journal w-100 mx-auto d-flex p-2 mb-4\" role=\"alert\">
<span class=\"\">{{ message }}</span>
<span type=\"button\" class=\"close position-static ml-auto\" data-dismiss=\"alert\" aria-label=\"Close\" style=\"padding: 0 !important;\"><span aria-hidden=\"true\">×</span></span>
</div>
{% endfor %}
{% for message in app.flashes('warning') %}
<div class=\"alert alert-warning alert-dismissible alert-warning-journal w-100 mx-auto d-flex p-2 mb-4\" role=\"alert\">
<span class=\"\">{{ message }}</span>
<span type=\"button\" class=\"close position-static ml-auto\" data-dismiss=\"alert\" aria-label=\"Close\" style=\"padding: 0 !important;\"><span aria-hidden=\"true\">×</span></span>
</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class=\"alert alert-error alert-dismissible alert-error-journal w-100 mx-auto d-flex p-2 mb-4\" role=\"alert\">
<span class=\"\">{{ message }}</span>
<span type=\"button\" class=\"close position-static ml-auto\" data-dismiss=\"alert\" aria-label=\"Close\" style=\"padding: 0 !important;\"><span aria-hidden=\"true\">×</span></span>
</div>
{% endfor %}
{% include 'pages/parts/form-search.html.twig' %}
<div class=\"page-content\">
{{ render(path('latestJournals')) }}
<div class=\"page-title\">
<h2>Find Journals or Authors</h2>
<p>
Your research is easier with a journal that you can save.
Follow the author to stay up-to-date on new articles as they are published!
</p>
</div>
<div class=\"row icons-homepage px-1 mx-0\">
<div class=\"col-md-3 block-intro\">
<a href=\"{{ path('journalSearch') }}\" >
<img class=\"img-fluid logo-gj\" src=\"{{ asset('assets/images/refonte/homepage/search.svg') }}\" alt=\"researchguide\" />
<h5>Journal Search</h5>
<p>Find the best journal for your research, depending on various criteria (Title, article keywords).</p>
</a>
</div>
<div class=\"col-md-3 block-intro\">
<a href=\"{{ path('get_authors') }}\">
<img class=\"img-fluid logo-gj\" src=\"{{ asset('assets/images/refonte/homepage/lamp.svg') }}\" alt=\"researchguide\" />
<h5>Author Search</h5>
<p> Find your authors with their published articles and corresponding journals.</p>
</a>
</div>
<div class=\"col-md-3 block-intro\">
<a href=\"{{ path('journalSearch') }}\" >
<img class=\"img-fluid logo-gj\" src=\"{{ asset('assets/images/refonte/homepage/save_icon.svg') }}\" alt=\"researchguide\" />
<h5>Save journal </h5>
<p>Save your favorite journals for easy reference. Stay up-to-date on recent and updated journals.</p>
</a>
</div>
<div class=\"col-md-3 block-intro\">
<a href=\"{{ path('get_authors') }}\">
<img class=\"img-fluid logo-gj\" src=\"{{ asset('assets/images/refonte/homepage/follow_author_icon.svg') }}\" alt=\"researchguide\" />
<h5>Follow author </h5>
<p>Follow your author to receive new journals and latest journal developments in your field.</p>
</a>
</div>
</div>
<div class=\"row description-block mx-0\">
<div class=\"col-md-6 right-content\">
<h5>Find your Journal easily</h5>
<p class=\"paragraphe\">You can choose to filter by Author or Journal title in order to find the perfect fit for your needs! </p>
<div class=\"row check-bloc\">
<div class=\"col-2 col-md-2 img-check\">
<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/homepage/check.svg') }}\" alt=\"researchguide\" />
</div>
<div class=\"col-10 col-md-10\">
<p class=\"check-bloc-title\">Search your Journal by title or related keywords.</p>
<p class=\"check-bloc-text\"></p>
</div>
</div>
<div class=\"row check-bloc\">
<div class=\"col-2 col-md-2 img-check\">
<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/homepage/check.svg') }}\" alt=\"researchguide\" />
</div>
<div class=\"col-10 col-md-10\">
<p class=\"check-bloc-title\">Use the Author’s name to find your Journal.</p>
<p class=\"check-bloc-text\"></p>
</div>
</div>
{% if app.user== null %}
<div class=\"row block-connexion\">
<div class=\"col-md-5 p-0\">
<a href=\"{{ path('journalSearch')}}\">
<button class=\"btn btn-connexion btn-journal btn-block\">Find a Journal</button>
</a>
</div>
<div class=\"col-md-5 pl-3\" >
<a href=\"{{ path('get_authors')}}\">
<button class=\"btn btn-connexion btn-author btn-block\">Find an Author</button>
</a>
</div>
</div>
{% endif %}
</div>
<div class=\"col-md-6 left-content find-journal-bg\">
<div class=\"row\">
<div class=\"col-md-6 img-sample\">
{#<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/homepage/sample.svg') }}\" alt=\"GuideJournal\" />#}
</div>
<div class=\"col-md-6 img-sample\">
{#<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/homepage/sample.svg') }}\" alt=\"GuideJournal\" />#}
</div>
</div>
</div>
</div>
{#<div class=\"container my-5 ad-banner\">
researchguide ad
<ins class=\"adsbygoogle\"
style=\"display:block\"
data-ad-client=\"ca-pub-9897811061542650\"
data-ad-slot=\"3798275752\"
data-ad-format=\"auto\"
data-full-width-responsive=\"true\"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>#}
<div class=\"row recent-articles mx-0\" style=\"padding-top:10%\">
<div class=\"col-md-12 last-articles\">
<h5 class=\"title\">Blog Posts</h5>
</div>
<div class=\"col-md-6 left-content\"><p>Browse the latest Articles</p></div>
<div class=\"container c-carousel\">
<div class=\"row row-carousel\">
<div class=\"col-md-12 col-carousel mb-4\">
<div class=\"carousel-articles\">
{% set articles= content.featured_articles %}
{% for a in articles %}
<div class=\"col-md-4 article-infos\">
{% if a.cover_image %}
{% set media = a.cover_image %}
{% if media is defined and media is not null and media.thumbnails['sulu-400x400'] %}
<a href=\"{{ a.path }}\">
<img class=\"card-img-top\" data-src=\"{{ media.thumbnails['sulu-400x400'] }}\" src=\"{{ media.url? media.url:media.thumbnails['sulu-400x400'] }}\" data-holder-rendered=\"true\" alt=\"{{ a.title }}\">
</a>
{% else %}
<a href=\"{{ a.path }}\">
<img class=\"card-img-top img-responsive\" data-src=\"{{ asset('assets/images/refonte/homepage/article.svg') }}\" src=\"{{ asset('assets/images/refonte/homepage/article.svg') }}\" data-holder-rendered=\"true\" alt=\"{{ a.title }}\">
</a>
{% endif %}
{% else %}
<a href=\"{{ a.path }}\">
<img class=\"card-img-top\" data-src=\"{{ asset('assets/images/refonte/homepage/article.svg') }}\" src=\"{{ asset('assets/images/refonte/homepage/article.svg') }}\" data-holder-rendered=\"true\" alt=\"researchguide\">
</a>
{% endif %}
<div class=\"fav-img\">
<a href=\"{{ a.path }}\"> <img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/homepage/favoris.svg') }}\" alt=\"researchguide\" /></a>
</div>
<div class=\"content\">
<h6 class=\"title-article\"><a href=\"{{ a.path }}\"> {{ a.title }}</a></h6>
{% if a.excerptDescription|trim|length > 1 %}
<p>
{{ a.excerptDescription|slice(0,60)|raw }}... <br><a href=\"{{ a.path }}\" style=\"float: right;font-weight: 400\" class=\"text-warning\">Read More →</a>
</p>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% for item in sulu_navigation_root_tree('main') %}
{% if item.title|lower == \"blog\" %}
<div class=\"col-md-12 text-center bloc-btn\">
<a href=\"{{ sulu_content_path(item.url, item.webspaceKey) }}\">
<button class=\"btn btn-connexion-articles btn-blog\">Explore more</button>
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{# should check if !catgories #}
{% if app.user and app.user.categories.values is empty and app.request.cookies.get('skip-categories') != \"true\" %}
<form action=\"{{ path('save_favorite_categories') }}\" method=\"post\">
<div id=\"choose-categories-modal\" class=\"modal registre-modal\" style=\"display:flex; z-index: 100;\">
<div class=\"modal-content animate register-modal-content p-3\" style=\"box-shadow: none !important;border: 0 !important;\">
<span class=\"close skip-check-categories d-flex justify-content-end\" title=\"Close Modal\" style=\"margin-left:0 !important;left:20px;top:20px;cursor: pointer;\">
<svg width=\"35\" height=\"35\" viewBox=\"0 0 50 50\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"float: right\">
<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.4898 25.1794L0.521973 46.1519L4.0579 49.687L25.0249 28.7154L45.9919 49.687L49.5279 46.1519L28.5601 25.1794L49.5279 4.20702L45.9919 0.671875L25.0249 21.6435L4.0579 0.671875L0.521973 4.20702L21.4898 25.1794Z\" fill=\"#58595B\"/>
</svg>
</span>
<h2 class=\"modal-register-title w-100 mx-0 text-center my-2\" style=\"margin-top: 60px; color:black\">
Select your favorite categories:
</h2>
<p class=\"text-center\"> <i>This help us recommend the most useful journals</i></p>
<div id=\"register-step-2\" style=\"\">
<div class=\"d-flex flex-wrap register-categories\">
{% set categories = publicationManager.getAllCategories() %}
{% for category in categories|sort((a, b) => a.name <=> b.name) %}
{% if category.name != '' and category.name != ' ' %}
<div class=\"category-item\">
<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"display:none\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check\"><polyline points=\"20 6 9 17 4 12\"/></svg>
<span id=\"{{ category.id }}\">{{category.name}}</span>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"d-flex px-4 px-sm-5 my-2\">
<input type=\"hidden\" id=\"selected-categories\" name=\"selected-categories\">
<button type=\"submit\" id=\"register-btn-2\" class=\"btn form-register-btn mx-auto mt-0\" style=\" width: 100% !important;\" disabled>
<p id=\"register-btn-text\" class=\"form-register-btn-text my-auto\">Validate</p>
</button>
</div>
<br><a href=\"/\" class=\"skip-check-categories text-center form-register-btn-text my-auto text-dark\" style=\"font-weight: 300 !important;width: 100% !important;\">Skip</a>
</div>
</div>
</form>
{% endif %}
<div class=\"container-fluid container-banner\">
<div class=\"banner py-5\">
<h6 class=\"pt-0\">Trusted by great companies</h6>
<div class=\"container\">
<div class=\"row partenaires\">
<div class=\"col-sm-4 mt-4 mt-lg-0\">
<a href=\"https://monarkit.net\" target=\"_blank\"><img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/homepage/monark.svg') }}\" alt=\"monarkIt\" /></a>
</div>
<div class=\"col-sm-4 mt-4 mt-lg-0\">
<a href=\"https://aion-lab.com\" target=\"_blank\"><img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/homepage/aion.svg') }}\" alt=\"aion\" /></a>
</div>
<div class=\"col-sm-4 mt-4 mt-lg-0\">
<a href=\"https://app-estimator.com\" target=\"_blank\"><img class=\"img-fluid\" width=\"190\" src=\"{{ asset('assets/images/refonte/homepage/estimitor.svg') }}\" alt=\"estimator\" /></a>
</div>
</div>
</div>
</div>
</div>
<div class=\"suggest-articles container\">
<div class=\"d-flex flex-column flex-lg-row justify-content-center mx-0\">
<div class=\"left-content mr-0 mr-lg-5\">
{% if app.user and app.user.categories is not empty %}
{% set favoriteUserCategories = publicationManager.showJournalByFavoriteUserCategories(app.user) %}
{% if favoriteUserCategories %}
<div class=\"row line-1\">
{% for ind,favorite in favoriteUserCategories|slice(0,4) %}
{% set id = ind + 1 %}
<div class=\"col-12 col-sm-6 text-center home-categorie-card\">
<a href=\"{{ path('journal_show',{'id':favorite.id}) }}\">
<div class=\"img-journal\" >
<p>{{ favorite.title }}</p>
</div>
</a>
</div>
{% endfor %}
</div>
{% endif %}
{% else %}
<div class=\"row line-1\">
<div class=\"col-6 col-md-6 text-center\">
<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/journal-selected-1.jpg') }}\" alt=\"suggest-article\" />
</div>
<div class=\"col-6 col-md-6 text-center s-img\">
<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/journal-selected-2.jpg') }}\" alt=\"suggest-article\" />
</div>
</div>
<div class=\"row line-2 mt-3\">
<div class=\"col-6 col-md-6 text-center\">
<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/journal-selected-3.jpg') }}\" alt=\"suggest-article\" />
</div>
<div class=\"col-6 col-md-6 text-center f-img\">
<img class=\"img-fluid\" src=\"{{ asset('assets/images/refonte/journal-selected-4.jpg') }}\" alt=\"suggest-article\" />
</div>
</div>
{% endif %}
</div>
<div class=\"right-content d-flex flex-column text-center text-lg-left\">
<h6 class=\"selected-journals\">Journals selected <br> for you</h6>
<p>
Explore these recommended journals that we think you'll find most useful.<br><br>
With these, you will be sure to have a complete research.
</p>
<a href=\"{{ path('journalSearch') }}\">
<button class=\"btn\">Find a Journal</button>
</a>
</div>
</div>
</div>
<!-- Exemple de div pour un emplacement publicitaire -->
<div id=\"banner-ad-1\">
<!-- L'espace réservé pour l'annonce sera rempli ici par Prebid -->
</div>
<section class=\"newsletter-section px-3 container\">
<div class=\"newsletter-container\">
<div class=\"newsletter-content\">
<p class=\"newsletter-title\">Sign up to our newsletter!</p>
<p class=\"newsletter-description\">so you can be the first to find out the latest articles and journals. </p>
<div class=\"newsletter-btn-subscribe-container\">
<form action=\"{{ path('newsletter') }}\" method=\"post\" class=\"d-flex\">
<input type=\"hidden\" name=\"newsletter\" value=\"true\" class=\"newsletter-input-hidden\">
<input name=\"email\" type=\"email\" class=\"newsletter-btn-submit\" placeholder=\"Subscribe to our newsletter\" required/>
<input type=\"submit\" value=\"Submit\" class=\"newsletter-input-submit\">
</form>
</div>
</div>
</div>
</section>
<!-- Pubi 0001-->
<!-- /21831250958/guidejournal_home_pub0001 -->
{# <div id='div-gpt-ad-1563781924570-0' style=\"align-content: center\">#}
{# <script>#}
{# googletag.cmd.push(function() { googletag.display('div-gpt-ad-1563781924570-0'); });#}
{# </script>#}
{# </div>#}
<!-- Fin pub 0001-->
{% endblock %}
{% block vignetteAd %}
<div class=\"fixed-pub-area w-100\"></div>
{% include '_includes/pubs/custom-vignette-ad.html.twig' %}
{% endblock %}
{% block javascripts %}
<script>
\$('.category-item').click(function (e) {
\$('#register-btn-2').prop( \"disabled\", false );
let svg = e.currentTarget.firstElementChild;
let span = e.currentTarget.lastElementChild;
var categoryInput = document.getElementById('selected-categories')
svg.style.display === 'block' ? svg.style.display = 'none' : svg.style.display = 'block'
if(svg.style.display === 'block') {
// remove category
let spanValue = span.id;
// put span value in input
if(categoryInput.value){
categoryInput.value = categoryInput.value+\",\"+spanValue;
} else {
categoryInput.value = spanValue;
}
}else{
// add category
let spanValue = span.id;
if(categoryInput.value){
let categories = categoryInput.value.split(\",\");
let index = categories.indexOf(spanValue);
if (index > -1) {
categories.splice(index, 1);
}
categoryInput.value = categories.join(\",\");
}
}
e.currentTarget.classList.toggle('active');
})
</script>
{% endblock %}
", "pages/homepage.html.twig", "/var/www/researchguide.net/preprod/releases/20240426180729/templates/pages/homepage.html.twig");
}
}