-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
…-url # Conflicts: # core-bundle/contao/templates/twig/content_element/_base.html.twig
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{% extends "@Contao/content_element/_base.html.twig" %} | ||
{% use "@Contao/component/_headline.html.twig" %} | ||
|
||
{% block wrapper_tag %}{{ headline.tag_name|default('h1') }}{% endblock %} | ||
|
||
{% block inner %} | ||
{{- block('headline_inner') -}} | ||
{% block wrapper %} | ||
{# The "headline" content element does not have a wrapper element, so the | ||
wrapper attributes must be applied to the "_headline" component. #} | ||
{% with {headline: headline|default(_context)|merge({attributes})} %} | ||
{{ block('headline_component') }} | ||
{% endwith %} | ||
{% endblock %} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"backend.css": "/system/themes/flexible/backend.e52db756.css", | ||
"confirm.css": "/system/themes/flexible/confirm.5231eaa5.css", | ||
"conflict.css": "/system/themes/flexible/conflict.41a64ff6.css", | ||
"diff.css": "/system/themes/flexible/diff.028ed04c.css", | ||
"help.css": "/system/themes/flexible/help.5cbdb4ee.css", | ||
"login.css": "/system/themes/flexible/login.dcee719f.css", | ||
"popup.css": "/system/themes/flexible/popup.751f0537.css", | ||
"backend.css": "/system/themes/flexible/backend.c2a75b4f.css", | ||
"confirm.css": "/system/themes/flexible/confirm.c2996dd4.css", | ||
"conflict.css": "/system/themes/flexible/conflict.aa6b9c95.css", | ||
"diff.css": "/system/themes/flexible/diff.171af75f.css", | ||
"help.css": "/system/themes/flexible/help.2ee3bcf2.css", | ||
"login.css": "/system/themes/flexible/login.fb2833be.css", | ||
"popup.css": "/system/themes/flexible/popup.4728c2fc.css", | ||
"tinymce.css": "/system/themes/flexible/tinymce.e5009f94.css", | ||
"tinymce-dark.css": "/system/themes/flexible/tinymce-dark.596023db.css", | ||
"backend.e52db756.css.map": "/system/themes/flexible/backend.e52db756.css.map", | ||
"confirm.5231eaa5.css.map": "/system/themes/flexible/confirm.5231eaa5.css.map", | ||
"conflict.41a64ff6.css.map": "/system/themes/flexible/conflict.41a64ff6.css.map", | ||
"diff.028ed04c.css.map": "/system/themes/flexible/diff.028ed04c.css.map", | ||
"help.5cbdb4ee.css.map": "/system/themes/flexible/help.5cbdb4ee.css.map", | ||
"login.dcee719f.css.map": "/system/themes/flexible/login.dcee719f.css.map", | ||
"popup.751f0537.css.map": "/system/themes/flexible/popup.751f0537.css.map", | ||
"backend.c2a75b4f.css.map": "/system/themes/flexible/backend.c2a75b4f.css.map", | ||
"confirm.c2996dd4.css.map": "/system/themes/flexible/confirm.c2996dd4.css.map", | ||
"conflict.aa6b9c95.css.map": "/system/themes/flexible/conflict.aa6b9c95.css.map", | ||
"diff.171af75f.css.map": "/system/themes/flexible/diff.171af75f.css.map", | ||
"help.2ee3bcf2.css.map": "/system/themes/flexible/help.2ee3bcf2.css.map", | ||
"login.fb2833be.css.map": "/system/themes/flexible/login.fb2833be.css.map", | ||
"popup.4728c2fc.css.map": "/system/themes/flexible/popup.4728c2fc.css.map", | ||
"tinymce.e5009f94.css.map": "/system/themes/flexible/tinymce.e5009f94.css.map", | ||
"tinymce-dark.596023db.css.map": "/system/themes/flexible/tinymce-dark.596023db.css.map" | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"backend.js": "/bundles/contaocore/backend.42df1514.js", | ||
"backend.42df1514.js.map": "/bundles/contaocore/backend.42df1514.js.map" | ||
"backend.js": "/bundles/contaocore/backend.ef695b97.js", | ||
"backend.ef695b97.js.map": "/bundles/contaocore/backend.ef695b97.js.map" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Contao. | ||
* | ||
* (c) Leo Feyer | ||
* | ||
* @license LGPL-3.0-or-later | ||
*/ | ||
|
||
namespace Contao\CoreBundle\Twig\Runtime; | ||
|
||
use Contao\CoreBundle\Framework\ContaoFramework; | ||
use Contao\StringUtil; | ||
use Twig\Extension\RuntimeExtensionInterface; | ||
|
||
final class StringRuntime implements RuntimeExtensionInterface | ||
{ | ||
/** | ||
* @internal | ||
*/ | ||
public function __construct(private readonly ContaoFramework $framework) | ||
{ | ||
} | ||
|
||
public function encodeEmail(string $html): string | ||
{ | ||
$this->framework->initialize(); | ||
|
||
return $this->framework->getAdapter(StringUtil::class)->encodeEmail($html); | ||
} | ||
} |