diff --git a/priv/skel/blog/templates/_article_chapeau.tpl b/priv/skel/blog/templates/_article_chapeau.tpl index feaf4eb275..d8bbb7a639 100644 --- a/priv/skel/blog/templates/_article_chapeau.tpl +++ b/priv/skel/blog/templates/_article_chapeau.tpl @@ -1,12 +1,12 @@ {% with id|menu_trail as parents %} {% if parents %}
-
- {% for p in parents %} - {{ m.rsc[p].title }} - {% if not forloop.last %}»{% endif %} - {% endfor %} -
+
+ {% for p in parents %} + {{ m.rsc[p].title }} + {% if not forloop.last %}»{% endif %} + {% endfor %} +
{% endif %} {% endwith %} diff --git a/priv/skel/blog/templates/_article_keywords.tpl b/priv/skel/blog/templates/_article_keywords.tpl index 929dc80104..c2e1d01342 100644 --- a/priv/skel/blog/templates/_article_keywords.tpl +++ b/priv/skel/blog/templates/_article_keywords.tpl @@ -1,10 +1,10 @@ {% with id.o.subject as tags %} {% if tags %}

- {_ Keywords _}: - {% for id in tags %} - {{ m.rsc[id].title }} - {% endfor %} + {_ Keywords _}: + {% for id in tags %} + {{ m.rsc[id].title }} + {% endfor %}

{% endif %} {% endwith %} diff --git a/priv/skel/blog/templates/_article_prevnext.tpl b/priv/skel/blog/templates/_article_prevnext.tpl index 37fc5a6491..993b4ca7cf 100644 --- a/priv/skel/blog/templates/_article_prevnext.tpl +++ b/priv/skel/blog/templates/_article_prevnext.tpl @@ -2,17 +2,17 @@
- {% for id in m.search[{next cat='article' id=id pagelen=1}] %} - - {% endfor %} + {% for id in m.search[{next cat='article' id=id pagelen=1}] %} + + {% endfor %} - {% for id in m.search[{previous cat='article' id=id pagelen=1}] %} - - {% endfor %} + {% for id in m.search[{previous cat='article' id=id pagelen=1}] %} + + {% endfor %}
diff --git a/priv/skel/blog/templates/_article_sidebar.tpl b/priv/skel/blog/templates/_article_sidebar.tpl index 21425e8b94..3153f97689 100644 --- a/priv/skel/blog/templates/_article_sidebar.tpl +++ b/priv/skel/blog/templates/_article_sidebar.tpl @@ -1,17 +1,17 @@ {% include "_article_keywords.tpl" %} -{% with m.rsc[id].media|without_embedded_media:id as media %} +{% with m.rsc[id].media|without_embedded_media:id as media %} {% if media %} -{% endif %} +{% endif %} {% endwith %} {% include "_edit_button.tpl" %} diff --git a/priv/skel/blog/templates/_article_summary.tpl b/priv/skel/blog/templates/_article_summary.tpl index 6a9ba9760d..ec75b97357 100644 --- a/priv/skel/blog/templates/_article_summary.tpl +++ b/priv/skel/blog/templates/_article_summary.tpl @@ -21,7 +21,6 @@ {{ id|summary:300 }} {_ Read more _} »

- {% else %} diff --git a/priv/skel/blog/templates/_body_media.tpl b/priv/skel/blog/templates/_body_media.tpl index 2f9a9fc87d..31ea6cdaad 100644 --- a/priv/skel/blog/templates/_body_media.tpl +++ b/priv/skel/blog/templates/_body_media.tpl @@ -6,8 +6,8 @@ {% else %}
{% media m.rsc[id].medium width=size.width|default:width height=size.height|default:height crop=crop class=align link=link alt=m.rsc[id].title %} - {% with id|summary as summary %}{% if summary %}

{{ summary }}

{% endif %}{% endwith %} -
+ {% with id|summary as summary %}{% if summary %}

{{ summary }}

{% endif %}{% endwith %} + {% endifequal %} {% else %} {% media m.rsc[id].medium width=size.width|default:width height=size.height|default:height crop=crop class=align link=link alt=m.rsc[id].title %} diff --git a/priv/skel/blog/templates/_email_contact.tpl b/priv/skel/blog/templates/_email_contact.tpl index ee93f5ebc9..cfe164baef 100644 --- a/priv/skel/blog/templates/_email_contact.tpl +++ b/priv/skel/blog/templates/_email_contact.tpl @@ -1,16 +1,16 @@ - - {{ name|escape }} - Contact form - - -

Hello, the contact form of the site has been submitted.

+ + {{ name|escape }} - Contact form + + +

Hello, the contact form of the site has been submitted.

-

Name: {{ name|escape }}

-

E-mail: {{ mail|escape }}

+

Name: {{ name|escape }}

+

E-mail: {{ mail|escape }}

-

The contents of the message was this:

-
{{ message|force_escape|linebreaksbr }}
+

The contents of the message was this:

+
{{ message|force_escape|linebreaksbr }}
-

Regards, your website.

- +

Regards, your website.

+ diff --git a/priv/skel/blog/templates/_listitem.tpl b/priv/skel/blog/templates/_listitem.tpl index a8f6fa600a..ce9db0ad06 100644 --- a/priv/skel/blog/templates/_listitem.tpl +++ b/priv/skel/blog/templates/_listitem.tpl @@ -1,4 +1,4 @@
  • -

    {{ m.rsc[id].title }}

    - {{ m.rsc[id].summary }} +

    {{ m.rsc[id].title }}

    + {{ m.rsc[id].summary }}
  • diff --git a/priv/skel/blog/templates/_sidebar.tpl b/priv/skel/blog/templates/_sidebar.tpl index 5188253870..5be1bfe54b 100644 --- a/priv/skel/blog/templates/_sidebar.tpl +++ b/priv/skel/blog/templates/_sidebar.tpl @@ -1,8 +1,8 @@ {# Cache the sidebar, depending on the stuff in the 'article' category #} {% cache 3600 cat='article' %} - + {% if m.category.tweet %} - + {% with m.search[{latest cat='tweet' pagelen=4}] as r %} {% if r.result %}

    Tweets

    @@ -19,28 +19,28 @@ {% endif %} {% endwith %} - + {% endif %} - +

    {_ Archive _}

    - + +

    {_ Keywords _}

    + {% endcache %} diff --git a/priv/skel/blog/templates/archives.tpl b/priv/skel/blog/templates/archives.tpl index 41d0c9a7f9..716867a3fa 100644 --- a/priv/skel/blog/templates/archives.tpl +++ b/priv/skel/blog/templates/archives.tpl @@ -7,15 +7,15 @@ {% endblock %} {% block content %} - + {% with m.search.paged[{query publication_year=q.year publication_month=q.month sort='-publication_start' cat=cat page=q.page pagelen=m.config.site.pagelen.value}] as result %} - + {% for id in result %} - + {% include "_article_summary.tpl" id=id %} - + {% endfor %} - + {% pager result=result dispatch=zotonic_dispatch year=q.year month=q.month %} {% endwith %} diff --git a/priv/skel/blog/templates/base.tpl b/priv/skel/blog/templates/base.tpl index 5b89dc152f..4db8f3c954 100644 --- a/priv/skel/blog/templates/base.tpl +++ b/priv/skel/blog/templates/base.tpl @@ -1,97 +1,98 @@ - - - {% block title %}{% endblock %} — {{ m.config.site.title.value }} - - - - - - - {% all include "_html_head.tpl" %} - - {% lib - "bootstrap/css/bootstrap.min.css" - "bootstrap/css/bootstrap.responsive.min.css" - "css/jquery.loadmask.css" - "css/z-menu.css" - "css/project.css" - %} - - {% block html_head_extra %}{% endblock %} - - - - - -
    - -
    - {% block content_area %} - {% block chapeau %}{% endblock %} - -
    - {% block content %} - - {% endblock %} -
    - - - - {% endblock %} - -
    - -
    - -
    -
    - - {% include "_js_include_jquery.tpl" %} - {% lib - "bootstrap/js/bootstrap.min.js" - "js/apps/zotonic-1.0.js" - "js/apps/z.widgetmanager.js" - "js/modules/livevalidation-1.3.js" - "js/modules/z.inputoverlay.js" - "js/modules/jquery.loadmask.js" - "js/z.superfish.js" - %} - - {% block _js_include_extra %}{% endblock %} - - - - {% stream %} - {% script %} - - {% all include "_html_body.tpl" %} - + + + {% block title %}{% endblock %} — {{ m.config.site.title.value }} + + + + + + + {% all include "_html_head.tpl" %} + + {% lib + "bootstrap/css/bootstrap.min.css" + "bootstrap/css/bootstrap.responsive.min.css" + "css/jquery.loadmask.css" + "css/z-menu.css" + "css/project.css" + %} + + {% block html_head_extra %}{% endblock %} + + + + + + +
    + +
    + {% block content_area %} + {% block chapeau %}{% endblock %} + +
    + {% block content %} + + {% endblock %} +
    + + + + {% endblock %} + +
    + +
    + +
    +
    + + {% include "_js_include_jquery.tpl" %} + {% lib + "bootstrap/js/bootstrap.min.js" + "js/apps/zotonic-1.0.js" + "js/apps/z.widgetmanager.js" + "js/modules/livevalidation-1.3.js" + "js/modules/z.inputoverlay.js" + "js/modules/jquery.loadmask.js" + "js/z.superfish.js" + %} + + {% block _js_include_extra %}{% endblock %} + + + + {% stream %} + {% script %} + + {% all include "_html_body.tpl" %} + diff --git a/priv/skel/blog/templates/by_keyword.tpl b/priv/skel/blog/templates/by_keyword.tpl index e1879dbcac..888fd56273 100644 --- a/priv/skel/blog/templates/by_keyword.tpl +++ b/priv/skel/blog/templates/by_keyword.tpl @@ -9,13 +9,13 @@ {% block content %} {% with m.search.paged[{referrers id=q.id page=q.page pagelen=m.config.site.pagelen.value}] as result %} - + {% for id, predicate in result %} {% include "_article_summary.tpl" id=id %} {% endfor %} - + {% pager result=result dispatch='keyword' id=id slug=m.rsc[id].slug %} - + {% endwith %} {% endblock %} diff --git a/priv/skel/blog/templates/contact.tpl b/priv/skel/blog/templates/contact.tpl index a598e31ecc..dcc37f1881 100644 --- a/priv/skel/blog/templates/contact.tpl +++ b/priv/skel/blog/templates/contact.tpl @@ -5,35 +5,35 @@ {% wire id="contact-form" type="submit" postback={contact} delegate="resource_default_contact" %}
    -
    +
    -
    - -
    -
    +
    + +
    +
    -
    +
    -
    - - {% validate id="email" type={email} type={presence} %} -
    -
    - -
    +
    + + {% validate id="email" type={email} type={presence} %} +
    +
    + +
    -
    - - {% validate id="message" type={presence} %} -
    -
    - -
    -
    - -
    -
    - +
    + + {% validate id="message" type={presence} %} +
    +
    + +
    +
    + +
    +
    +
    {% endblock %} diff --git a/priv/skel/blog/templates/home.tpl b/priv/skel/blog/templates/home.tpl index c6c3d8927e..b816dbcb75 100644 --- a/priv/skel/blog/templates/home.tpl +++ b/priv/skel/blog/templates/home.tpl @@ -5,12 +5,12 @@ {% block content %} {% if m.rsc[id].is_featured %} - +

    {{ m.rsc[id].title }}

    {{ id|summary }}

    - + {% for id in m.rsc[id].media %} - {% include "_body_media.tpl" width=445 crop=1 align="block" %} + {% include "_body_media.tpl" width=445 crop=1 align="block" %} {% endfor %} {% endif %} @@ -23,10 +23,10 @@ {% endfor %} - {% ifequal m.config.site.pagelen.value result|length %} + {% ifequal m.config.site.pagelen.value result|length %} {% wire id="more-results" action={moreresults result=result target="list-articles" template="_article_summary.tpl"} %}

    More results...

    - {% endifequal %} + {% endifequal %} {% endwith %} {% endblock %} diff --git a/priv/skel/blog/templates/page.query.tpl b/priv/skel/blog/templates/page.query.tpl index f4b1a66a77..a8045a5a66 100644 --- a/priv/skel/blog/templates/page.query.tpl +++ b/priv/skel/blog/templates/page.query.tpl @@ -3,16 +3,16 @@ {% block below_body %} {% with m.search.paged[{query query_id=id page=q.page pagelen=6}] as result %} - + {% pager result=result dispatch="page" id=id %} {% endwith %} -{% endblock %} \ No newline at end of file +{% endblock %}