Renaming "extrahead" template hooks to "head".

As Elrond points out, the "extra" is implied by it being a hook!

This commit sponsored by Andrew Fustini.  Thanks, Drew!
This commit is contained in:
Christopher Allan Webber 2013-02-24 12:42:17 -06:00
parent f6d1d28d45
commit cac17c156b
4 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ def setup_plugin():
pluginapi.register_template_hooks(
{"image_sideinfo": "mediagoblin/plugins/geolocation/map.html",
"image_extrahead": "mediagoblin/plugins/geolocation/map_js_head.html"})
"image_head": "mediagoblin/plugins/geolocation/map_js_head.html"})
hooks = {

View File

@ -37,13 +37,13 @@
<![endif]-->
{# For clarification, the difference between the extra_head.html template
# and the extra_head template hook is that the former should be used by
# and the head template hook is that the former should be used by
# themes and the latter should be used by plugins.
# The reason is that only one thing can override extra_head.html...
# but multiple plugins can hook into the template hook.
#}
{% include "mediagoblin/extra_head.html" %}
{% template_hook("extra_head") %}
{% template_hook("head") %}
{% block mediagoblin_head %}
{% endblock mediagoblin_head %}

View File

@ -20,7 +20,7 @@
{% block mediagoblin_head %}
{{ super() }}
{% template_hook("image_extrahead") %}
{% template_hook("image_head") %}
{% endblock mediagoblin_head %}
{% block mediagoblin_sidebar %}

View File

@ -30,7 +30,7 @@
<script type="text/javascript"
src="{{ request.staticdirect('/js/keyboard_navigation.js') }}"></script>
{% template_hook("media_extrahead") %}
{% template_hook("media_head") %}
{% endblock mediagoblin_head %}
{% block mediagoblin_content %}