{{tpl:extends parent="post.html"}}

<tpl:Block name="head-linkrel">
	<link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
	<tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf>
	<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
</tpl:Block>

<tpl:Block name="body-tag"><body class="dc-page"></tpl:Block>

<tpl:Block name="main-content">
	<div id="p{{tpl:EntryID}}" class="post" role="article">
	  <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2>

    <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
    {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
    
    <tpl:EntryIf extended="1">
      <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
    </tpl:EntryIf>
    <div class="post-content">{{tpl:EntryContent}}</div>
    
    <!-- # --BEHAVIOR-- publicEntryAfterContent -->
    {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
      
      <div class="meta">
        <ul>
          <!-- # item auteur -->
          <li>{{tpl:lang By}} <span class="author">{{tpl:EntryAuthorLink}}</span> | {{tpl:EntryDate}} | {{tpl:EntryTime}}</li>

	        <!-- # item comm cat -->
          <tpl:EntryIf show_comments="1">
          <li>
          </tpl:EntryIf>
          <!-- # comm -->	
      		<tpl:EntryIf show_comments="1">{{tpl:lang Comments}}<span class="item"><a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a></span></tpl:EntryIf> 
          </li>
          </tpl:EntryIf>
          <!-- # item rss-comm rss-ping -->
          <tpl:EntryIf operator="or" comments_active="1" pings_active="1" has_attachment="1">
          <li>
          </tpl:EntryIf>
          <tpl:EntryIf comments_active="1" subscribetocomments_block="0">
					<img alt="{{tpl:lang This post's comments Atom feed}}" src="{{tpl:BlogThemeURL}}/images/icons/feed-icon-16x16.gif" /><span class="flux"><a href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}" title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></span>
          </tpl:EntryIf>
          <tpl:EntryIf pings_active="1">
		      <img alt="{{tpl:lang Trackback}}" src="{{tpl:BlogThemeURL}}/images/icons/trackback-icon-16x16.gif" /><span class="flux"><a href="{{tpl:EntryURL}}#pings" rel="trackback" title="{{tpl:lang Trackback}}">{{tpl:EntryPingCount}}</a></span>
          </tpl:EntryIf>
          <tpl:EntryIf operator="or" comments_active="1" pings_active="1" has_attachment="1">
          </li>
          </tpl:EntryIf>	
        </ul>
      </div>
    
	</div> <!-- End #post -->

	<!-- # Attachments -->
	<tpl:Attachments>
		<tpl:AttachmentsHeader>
			<div id="attachments" class="download">
				<h3>{{tpl:lang Attachments}}</h3>
				<ul>
		</tpl:AttachmentsHeader>
					<li class="{{tpl:AttachmentType}}">
				<tpl:AttachmentIf is_audio="1">
					{{tpl:include src="_audio_player.html"}}
				</tpl:AttachmentIf>
				<tpl:AttachmentIf is_video="1">
					{{tpl:include src="_video_player.html"}}
				</tpl:AttachmentIf>
				<tpl:AttachmentIf is_audio="0" is_video="0">
					<span class="download-mp3"><a href="{{tpl:AttachmentURL}}" title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a></span>
				</tpl:AttachmentIf>
					</li>
		<tpl:AttachmentsFooter>
				</ul>
			</div>
		</tpl:AttachmentsFooter>
	</tpl:Attachments>

	    <p id="navigation">
	      <tpl:EntryPrevious><span class="alignleft">&#171; <a href="{{tpl:EntryURL}}"
	      title="{{tpl:EntryTitle encode_html="1"}}" class="prev">{{tpl:EntryTitle encode_html="1"
	      cut_string="50"}}</a></span></tpl:EntryPrevious>
	      <tpl:EntryNext> <span class="alignright"><a href="{{tpl:EntryURL}}"
	      title="{{tpl:EntryTitle encode_html="1"}}" class="next">{{tpl:EntryTitle encode_html="1"
	      cut_string="50"}}</a> &#187;</span></tpl:EntryNext>
	      <br style="clear:both"/>
	    </p>

	    <!-- # Comments -->
	    <tpl:EntryIf show_comments="1">
	      <h3 id="comments"><!--{{tpl:EntryCommentCount}}--></h3>
	      <div class="commentlist">
		<tpl:Comments>
		  <div class="comment {{tpl:CommentIfMe return="comment_author"}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}" id="c{{tpl:CommentID}}">
			{{tpl:gravatar class="avatar" size="40"  alt="Gravatar de %s"}} <h4>{{tpl:CommentContent cut_string="50" remove_html="1"}}</h4>
			<small><span class="author">{{tpl:CommentAuthorLink}}</span> | {{tpl:CommentDate}} | {{tpl:CommentTime}}</small>			<div class="comment_content">
			
      <!-- # --BEHAVIOR-- publicCommentBeforeContent -->
      {{tpl:SysBehavior behavior="publicCommentBeforeContent"}}
			{{tpl:CommentContent}}
      
      <!-- # --BEHAVIOR-- publicCommentAfterContent -->
      {{tpl:SysBehavior behavior="publicCommentAfterContent"}}
      </div>
		  </div>
		</tpl:Comments>
	      </div>
	    </tpl:EntryIf>

	    <tpl:EntryIf comments_active="1">    
	      <tpl:SysIfFormError>
		<small class="important" id="pr">{{tpl:SysFormError}}</small>
	      </tpl:SysIfFormError>

	      <tpl:SysIfCommentPublished>
		<small id="pr">{{tpl:lang Your comment has been published.}}</small>
	      </tpl:SysIfCommentPublished>

	      <tpl:SysIfCommentPending>
		<small id="pr">{{tpl:lang Your comment has been submitted and
		will be reviewed for publication.}}</small>
	      </tpl:SysIfCommentPending>

	      <!-- # Comment form -->
	      <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form" role="form">
		<tpl:IfCommentPreview>
		  <div id="pr">
		    <h3>{{tpl:lang Your comment}}</h3>
		    <dl>
		      <dd class="comment-preview">{{tpl:CommentPreviewContent}}</dd>
		    </dl>
		    <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p>
		  </div>
		</tpl:IfCommentPreview>

		<h3>{{tpl:lang Add a comment}}</h3>
	    <div class="hidecomment-form">
      <fieldset>		
        <!-- # --BEHAVIOR-- publicCommentFormBeforeContent -->
        {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}}
        
		  <p class="field">
		    <label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label>
		    <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
		    value="{{tpl:CommentPreviewName encode_html="1"}}" />
		  </p>

		  <p class="field">
		    <label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label>
		    <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
		    value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
		  </p>

		  <p class="field"><label for="c_site">{{tpl:lang Website}}
		    ({{tpl:lang optional}})&nbsp;:</label>
		    <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
		    value="{{tpl:CommentPreviewSite encode_html="1"}}" />
		  </p>

		  <p style="display:none"><input name="f_mail" type="text" size="30"
		  maxlength="255" value="" /></p>

		  <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label>
		    <textarea name="c_content" id="c_content" cols="35"
		    rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea>
		  </p>

		<p class="form-help">{{tpl:CommentHelp}}</p>
        
        <!-- # --BEHAVIOR-- publicCommentFormAfterContent -->
        {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}}

		  <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" />
        <tpl:IfCommentPreviewOptional><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreviewOptional></p>
	    </fieldset>
 	    </div>
        </form>
	    </tpl:EntryIf>

	    <!-- # Trackbacks -->
	    <tpl:EntryIf show_pings="1">
	      <div id="pings">
		<h3>{{tpl:lang They posted on the same topic}}</h3>
		<tpl:Pings>
		  <tpl:PingsHeader>
		    <div class="ping">
		    <dl>
		  </tpl:PingsHeader>
		  <dt id="c{{tpl:PingID}}" class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"> 
      <small><span class="author">{{tpl:PingBlogName encode_html="1"}}</span> | {{tpl:PingDate}} | {{tpl:PingTime}}</small></dt>
      
		  <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}">
		    
        <!-- # --BEHAVIOR-- publicPingBeforeContent -->
        {{tpl:SysBehavior behavior="publicPingBeforeContent"}}
        
        <p><a href="{{tpl:PingAuthorURL}}"
		    {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p>
		    {{tpl:PingContent}}
        
        <!-- # --BEHAVIOR-- publicPingAfterContent -->
        {{tpl:SysBehavior behavior="publicPingAfterContent"}}
        
      </dd>
		  <tpl:PingsFooter>
		    </dl>
		    </div>
		  </tpl:PingsFooter>
		</tpl:Pings>
	      </div>
	    </tpl:EntryIf>

	    <tpl:EntryIf pings_active="1">
	      <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p>
	    </tpl:EntryIf>
</tpl:Block>