Dotclear


Ignore:
Timestamp:
08/20/13 11:45:52 (12 years ago)
Author:
Dsls
Branch:
twig
Message:

prev/next link, labels, ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/default-templates/post.html.twig

    r1491 r1493  
    1313     <img alt="{{title}}" title="{{title}}" src="images/{{src}}" /> 
    1414{%- endmacro %} 
     15{% macro post_link(id,title,link) -%} 
     16<a href="post.php?id={{id}}" title="{{title}}">{{link}}</a> 
     17{%- endmacro %} 
     18 
    1519{% block header %} 
    1620     {{ parent() }} 
     
    2630{% block content %} 
    2731{{ parent() }} 
     32{% if post_id and post_status == 1 %} 
     33     <p><a class="onblog_link" href="{{post_url}}" onclick="window.open(this.href);return false;" title="{{post_title}}"> {{__('Go to this entry on the site') }} <img src="images/outgoing-blue.png" alt="" /></a></p> 
     34{% endif %} 
     35{% if post_id %} 
     36     <p class="nav_prevnext"> 
     37     {% if prev_post %} 
     38          {{ _self.post_link(prev_post.id,prev_post.title,'&#171;&nbsp'~__('Previous entry')) }} 
     39     {% endif %} 
     40     {% if next_post %} 
     41          {{ _self.post_link(next_post.id,next_post.title,__('Next entry')~'&nbsp;&#187;') }} 
     42     {% endif %} 
     43     </p> 
     44{% endif %} 
    2845 
    2946<div class="multi-part" title="{{__('Edit entry')}}" id="edit-entry"> 
    30 {% form 'post' %} 
     47{% form 'post' with {'id':'entry-form'} %} 
    3148<div id="entry-wrapper"> 
    3249     <div id="entry-content"> 
    3350          <div class="constrained"> 
     51          <h3 class="hidden">Edit post</h3> 
    3452               {% for bl in main_blocks %} 
    3553                    {{ block(bl) }} 
     
    86104 
    87105{% block post_title -%} 
    88      <p class="col">{{ form_field('post_title',{'class':'maximal'}) }}</p> 
     106     <p class="col">{{ form_field('post_title',{'class':'maximal'},{"labelclass":"no-margin"}) }}</p> 
    89107{%- endblock %} 
    90108 
Note: See TracChangeset for help on using the changeset viewer.

Sites map