[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/base/override/templates/full/ -> article.tpl (source)

   1  {* Article - Full view *}
   2  
   3  <div class="content-view-full">
   4      <div class="class-article">
   5  
   6          <h1>{$node.data_map.title.content|wash()}</h1>
   7  
   8          {section show=$node.data_map.author.content.is_empty|not()}
   9          <div class="attribute-byline">
  10          <p class="author">
  11               {attribute_view_gui attribute=$node.data_map.author}
  12          </p>
  13          <p class="date">
  14               {$node.object.published|l10n(date)}
  15          </p>
  16          </div>
  17          {/section}
  18  
  19          {section show=$node.data_map.image.content}
  20              <div class="attribute-image">
  21                  {attribute_view_gui attribute=$node.data_map.image align=right}
  22              </div>
  23          {/section}
  24  
  25          {section show=$node.data_map.intro.content.is_empty|not}
  26              <div class="attribute-short">
  27                  {attribute_view_gui attribute=$node.data_map.intro}
  28              </div>
  29          {/section}
  30  
  31          {section show=$node.data_map.body.content.is_empty|not}
  32              <div class="attribute-long">
  33                  {attribute_view_gui attribute=$node.data_map.body}
  34              </div>
  35          {/section}
  36  
  37          <div class="attribute-tipafriend">
  38            <p>
  39               <a href={concat('/content/tipafriend/',$node.node_id)|ezurl}>{"Tip a friend"|i18n("design/base")}</a>
  40            </p>
  41          </div>
  42  
  43          <div class="attribute-pdf">
  44            <p>
  45               <a href={concat('/content/pdf/',$node.node_id)|ezurl}>{'application/pdf'|mimetype_icon( small, "Download PDF"|i18n( "design/base" ) )} {"Download PDF version of this page"|i18n( "design/base" )}</a>
  46            </p>
  47          </div>
  48  
  49          {* Should we allow comments? *}
  50          {section show=is_unset( $versionview_mode )}
  51          {section show=$node.data_map.enable_comments.content}
  52              <h2>{"Comments"|i18n("design/base")}</h2>
  53                  <div class="content-view-children">
  54                      {section name=Child loop=fetch_alias( comments, hash( parent_node_id, $node.node_id ) )}
  55                          {node_view_gui view='line' content_node=$:item}
  56                      {/section}
  57                  </div>
  58  
  59                  {* Are we allowed to create new object under this node? *}
  60                  {section show=fetch( content, access,
  61                                       hash( access, 'create',
  62                                             contentobject, $node,
  63                                             contentclass_id, 'comment' ) )}
  64                      <form method="post" action={"content/action"|ezurl}>
  65                      <input type="hidden" name="ClassIdentifier" value="comment" />
  66                      <input type="hidden" name="NodeID" value="{$node.node_id}" />
  67                      <input class="button new_comment" type="submit" name="NewButton" value="{'New Comment'|i18n( 'design/base' )}" />
  68                      </form>
  69                  {section-else}
  70                      <h3>{"You are not allowed to create comments."|i18n("design/base")}</h3>
  71                  {/section}
  72          {/section}
  73          {/section}
  74  
  75      </div>
  76  </div>
  77  
  78  


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7