mirror of
https://github.com/flextype/flextype.git
synced 2025-08-24 21:56:25 +02:00
fix(core): issue with emitter twig function #234
This commit is contained in:
@@ -33,7 +33,7 @@ class EmitterTwigExtension extends Twig_Extension implements Twig_Extension_Glob
|
||||
public function getGlobals()
|
||||
{
|
||||
return [
|
||||
'emmiter' => new EmitterTwig($this->flextype),
|
||||
'emitter' => new EmitterTwig($this->flextype),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ class EmitterTwig
|
||||
/**
|
||||
* Emitting event
|
||||
*/
|
||||
public function emmit($event)
|
||||
public function emit($event)
|
||||
{
|
||||
return $this->flextype['emitter']->emit($event);
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
<meta name="robots" content="{% if entry.robots %}{{ entry.robots }}{% else %}{{ registry.settings.robots }}{% endif %}">
|
||||
<meta name="generator" content="Powered by Flextype {{ FLEXTYPE_VERSION }}" />
|
||||
|
||||
{{ emitter.emit('onThemeMeta') }}
|
||||
{% do emitter.emit('onThemeMeta') %}
|
||||
|
||||
<title>{% if entry.title %}{{ entry.title|e('html') }} | {% endif %}{{ registry.settings.title|e('html') }}</title>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{{ emitter.emit('onThemeHeader') }}
|
||||
{% do emitter.emit('onThemeHeader') %}
|
||||
{{ snippets.exec('google-analytics')|raw }}
|
||||
{% endblock %}
|
||||
</head>
|
||||
@@ -88,6 +88,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{{ emitter.emit('onThemeTail') }}
|
||||
{% do emitter.emit('onThemeTail') %}
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user