Advertisement
Guest User

Untitled

a guest
Aug 12th, 2011
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.09 KB | None | 0 0
  1. <?php if(!defined('PLX_ROOT')) exit; ?>
  2.                 <!-- tabbed content -->
  3.                 <div class="tabbed-content post-tabs clearfix" id="post-tabs">
  4.  
  5.                   <!-- tab navigation (items must be in reverse order because of the tab-design) -->
  6.                   <div class="tabs-wrap clearfix">
  7.                     <ul class="tabs">
  8.                       <li class="comments"><a href="#section-comments"><span>Commentaires</span></a></li>
  9.                     </ul>
  10.                   </div>
  11.                   <!-- /tab nav -->
  12.  
  13.                   <!-- tab sections -->
  14.                   <div class="sections">
  15.  
  16.                     <!-- comments -->
  17.                     <div class="section clearfix" id="section-comments">
  18.                       <div id="comments-wrap">
  19.                         <div class="clearfix">
  20.  
  21. <?php # Si on a des commentaires ?>
  22. <?php if($plxShow->plxMotor->plxGlob_coms->count): ?>
  23.                           <ul id="comments" class="comments">
  24.                          
  25.         <?php while($plxShow->plxMotor->plxRecord_coms->loop()): # On boucle sur les commentaires ?>
  26.  
  27.                             <!-- comment entry -->
  28.                             <li class="comment even thread-even depth-1 withAvatars" id="comment-<?php $plxShow->comId(); ?>">
  29.                               <div class="comment-head">
  30.                                 <div class="avatar-box"><img alt="Gravatar" src="http://www.gravatar.com/avatar.php?gravatar_id=<?php echo md5( strtolower($plxShow->plxMotor->plxRecord_coms->f('mail')) ) ?>&amp;d=http://0.gravatar.com/avatar/29a258fbb2d69d21b675424f7bf8ae90?s=48&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D48&amp;r=X" class="avatar" height='48' width='48' /></div>
  31.  
  32.                                 <div class="author">
  33.                                   <span class="by"><a class="comment-id" href="<?php $plxShow->ComUrl() ?>" title="#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?>">#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?></a> <?php $plxShow->comAuthor('link'); ?> &agrave; dit :</span><br />
  34.                                   Le <?php $plxShow->comDate('#num_day #month #num_year(4)'); ?>
  35.                                 </div>
  36.  
  37.                               </div>
  38.  
  39.                               <div class="comment-body clearfix" id="comment-body-<?php $plxShow->comId(); ?>">
  40.                                 <div class="comment-text">
  41.                                   <?php $plxShow->comContent() ?>
  42.                                 </div><a id="comment-reply-<?php $plxShow->comId(); ?>" name="comment-reply-<?php $plxShow->comId(); ?>"></a>
  43.                               </div>
  44.                             </li>
  45.                             <!-- /comment entry -->
  46.         <?php endwhile; # Fin de la boucle sur les commentaires ?>
  47.  
  48.                           </ul>
  49.         <?php # On affiche le fil Atom de cet article ?>
  50.         <p style="float:right;"><?php $plxShow->comFeed('atom',$plxShow->artId()); ?></p>
  51. <?php endif; # Fin du if sur la prescence des commentaires ?>
  52.  
  53.                         </div>
  54.                       </div>
  55. <?php # Si on autorise les commentaires ?>
  56. <?php if($plxShow->plxMotor->plxRecord_arts->f('allow_com') AND $plxShow->plxMotor->aConf['allow_com']): ?>
  57.  
  58.                       <!-- comment form -->
  59.                       <div class="comment-form clearfix" id="respond">
  60.                       <strong style="color:red;"><?php $plxShow->comMessage(); ?></strong>
  61.                         <script type="text/javascript">
  62.                         /* <![CDATA[ */
  63.                         function checkvalues(){
  64.                           if(jQuery('#field-name').val()=='Nom (requis)') jQuery('#field-name').val('');
  65.                           if(jQuery('#field-mail').val()=='E-mail (facultatif)') jQuery('#field-mail').val('');
  66.                           if(jQuery('#field-site').val()==('Site (facultatif)' || 'http://')) jQuery('#field-site').val('');
  67.                         }
  68.                         /* ]]> */
  69.                         </script>
  70.  
  71.                         <form action="<?php $plxShow->artUrl(); ?>#respond" method="post" id="commentform">
  72.                                                  
  73.  
  74. <p class="comment-form-author"><label for="author">Nom</label> <span class="required">*</span>
  75. <input id="author" name="name" type="text" value="cookiàmetrici" size="30" aria-required='true' /></p>
  76.  
  77. <p class="comment-form-author"><label for="mail">E-mail</label><span class="required">*</span>
  78. <input id="mail" name="mail" type="text" value="" size="30" aria-required='true' /></p>
  79.  
  80. <p class="comment-form-url"><label for="url">Site web</label>
  81. <input id="url" name="site" type="text" value="http://" size="30" /></p>
  82.  
  83. <p class="comment-form-comment"><label for="comment">Commentaire</label><textarea id="comment" name="content" cols="45" rows="8" aria-required="true"></textarea></p>
  84.  
  85.                          
  86.                     <?php # Affichage du capcha anti-spam
  87.                     if($plxShow->plxMotor->aConf['capcha']): ?>
  88.                           <div class="row">
  89.                         <?php $plxShow->capchaQ(); ?>&nbsp;:&nbsp;<input name="rep" type="text" size="1" />
  90.                         <input name="rep2" type="hidden" value="<?php $plxShow->capchaR(); ?>" />
  91.                           </div>
  92.                     <?php endif; # Fin du if sur le capcha anti-spam ?>
  93.                    
  94.                           <div class="clearfix"></div>
  95.  
  96.                           <div id="submitbox">
  97.                             <input name="submit" type="submit" id="submit" class="button" value="Envoyer" />
  98.                             <input name="cancel-reply" type="button" id="cancel-reply" class="button hidden" value="Effacer" />
  99.  
  100.                           </div>
  101.                         </form>
  102.  
  103.  
  104.                       </div>
  105.                       <!-- /comment form -->
  106.  
  107.                     </div>
  108.                     <!-- /comments -->
  109.  
  110.  
  111.                   </div>
  112.                   <!-- /tab sections -->
  113. <?php endif; # Fin du if sur l'autorisation des commentaires ?>
  114.                 </div>
  115.                 <!-- /tabbed content -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement