Changeset 1414:ce67e9c592b7 for inc/admin/default-templates
- Timestamp:
- 08/16/13 15:48:37 (12 years ago)
- Branch:
- twig
- Location:
- inc/admin/default-templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/default-templates/forms/form_layout.html.twig
r1319 r1414 57 57 {% block field_attr %} 58 58 {% spaceless %} 59 {% if id %}id="{{id}}"{% endif %} name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{ % if required %} required="required"{% endif %}{% if maxlength %} maxlength="{{ maxlength}}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}59 {% if id %}id="{{id}}"{% endif %} name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{#{% if required %} required="required"{% endif %}#}{% if maxlength %} maxlength="{{ maxlength }}"{% endif %}{% if checked %} checked="{{ checked }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %} 60 60 {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %} 61 61 {% endspaceless %} -
inc/admin/default-templates/layout.html.twig
r1319 r1414 5 5 {% block header %} 6 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 7 <title>{% block title %}{ % for part in page_title %}{{ part.title }} - {% endfor %}{% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title>7 <title>{% block title %}{{ (page_title|last).title|striptags }} - {% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title> 8 8 <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 9 9 <meta name="GOOGLEBOT" content="NOSNIPPET" /> … … 59 59 {% endif %} 60 60 <h2> 61 { %- if not page_global %}{{current_blog.name}} › {% endif %}61 {#{%- if not page_global %}{{current_blog.name}} › {% endif %}#} 62 62 {%- for part in page_title %} 63 63 {%- if loop.last %}<span class="page-title">{% endif %} 64 {%- if part.link is not empty %}<a href="{{ part.link }}" >{{ part.title }}</a>{% else %}{{ part.title }}{% endif %}65 {%- if loop.last %}</span>{% else %} ›{% endif %}64 {%- if part.link is not empty %}<a href="{{ part.link }}"{% if part.class is not empty %} class="{{part.class}}"{% endif %}>{{ part.title }}</a>{% else %}{{ part.title }}{% endif %} 65 {%- if loop.last %}</span>{% else %} {% if loop.index0 == 1 %} : {% else %} › {% endif %}{% endif %} 66 66 {%- endfor -%} 67 67 </h2>
Note: See TracChangeset
for help on using the changeset viewer.