133 lines
4.9 KiB
PHP
Executable file
133 lines
4.9 KiB
PHP
Executable file
<?php if(!defined('PLX_ROOT')) exit; ?>
|
|
|
|
<div class="auteur">
|
|
<h3>Information sur <?php $plxShow->artAuthor() ?>, auteur de l'article:</h3>
|
|
|
|
<blockquote>
|
|
<?php $plxShow->artAuthorInfos('#art_authorinfos'); ?>
|
|
</blockquote>
|
|
</div>
|
|
|
|
|
|
<!-- formulaire -->
|
|
|
|
|
|
|
|
<?php if($plxShow->plxMotor->plxRecord_coms): ?>
|
|
|
|
<h3 id="comments"><?php echo $plxShow->artNbCom(); ?></h3>
|
|
|
|
<?php while($plxShow->plxMotor->plxRecord_coms->loop()): # On boucle sur les commentaires ?>
|
|
|
|
|
|
<p>
|
|
<span class="nbcom">#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?></span>
|
|
<time datetime="<?php $plxShow->comDate('#num_year(4)-#num_month-#num_day #hour:#minute'); ?>"><?php $plxShow->comDate('#day #num_day #month #num_year(4) - #hour:#minute'); ?></time>
|
|
|
|
</p>
|
|
|
|
<div class="<?php $plxShow->comType(); ?> <?php $plxShow->comLevel(); ?>" id="com-<?php $plxShow->comIndex(); ?>">
|
|
<?php eval($plxShow->callHook('gravatar')); ?>
|
|
<p class="content_com type">
|
|
<?php $plxShow->comContent(); ?>
|
|
<cite>Commentaire de <?php $plxShow->comAuthor('link'); ?></cite>
|
|
</p>
|
|
</div>
|
|
|
|
<a class="bt_repondre" rel="nofollow" href="<?php $plxShow->artUrl(); ?>#form" onclick="replyCom('<?php $plxShow->comIndex() ?>')"><i class="flaticon-extract"></i><?php $plxShow->lang('REPLY'); ?></a>
|
|
|
|
|
|
<?php endwhile; # Fin de la boucle sur les commentaires ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if($plxShow->plxMotor->plxRecord_arts->f('allow_com') AND $plxShow->plxMotor->aConf['allow_com']): ?>
|
|
|
|
<h3><?php $plxShow->lang('WRITE_A_COMMENT') ?></h3>
|
|
|
|
<form id="form" action="<?php $plxShow->artUrl(); ?>#form" method="post">
|
|
|
|
<fieldset>
|
|
|
|
<?php $plxShow->comMessage('<p class="red">#com_message</p>'); ?>
|
|
|
|
<p>
|
|
<label for="id_content" class="lab_com"><?php $plxShow->lang('COMMENT') ?> :</label>
|
|
<textarea id="id_content" name="content" ><?php $plxShow->comGet('content',''); ?></textarea>
|
|
<p id="id_answer"></p>
|
|
</p>
|
|
|
|
<p>
|
|
<label for="id_name"><?php $plxShow->lang('NAME') ?> :</label>
|
|
<input id="id_name" name="name" type="text" value="<?php $plxShow->comGet('name',''); ?>">
|
|
</p>
|
|
|
|
|
|
<p>
|
|
<label for="id_mail"><?php $plxShow->lang('EMAIL') ?> :</label>
|
|
<input id="id_mail" name="mail" type="text" value="<?php $plxShow->comGet('mail',''); ?>">
|
|
</p>
|
|
|
|
<p>
|
|
<label for="id_site"><?php $plxShow->lang('WEBSITE') ?> :</label>
|
|
<input id="id_site" name="site" type="text" value="<?php $plxShow->comGet('site',''); ?>">
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
<?php if($plxShow->plxMotor->aConf['capcha']): ?>
|
|
</p>
|
|
|
|
|
|
<p>
|
|
<label for="id_rep"><i class="flaticon-padlock"></i><?php echo $plxShow->lang('ANTISPAM_WARNING') ?></label>
|
|
</p>
|
|
<p>
|
|
<label for="id_rep"><?php $plxShow->capchaQ(); ?></label>
|
|
<input class="capcha" id="id_rep" name="rep" type="text">
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<p>
|
|
<input type="hidden" id="id_parent" name="parent" value="<?php $plxShow->comGet('parent',''); ?>" />
|
|
<input class="bt" type="submit" value="<?php $plxShow->lang('SEND') ?>" />
|
|
</p>
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
<script>
|
|
function replyCom(idCom) {
|
|
document.getElementById('id_answer').innerHTML='<?php $plxShow->lang('REPLY_TO'); ?> :';
|
|
document.getElementById('id_answer').innerHTML+=document.getElementById('com-'+idCom).innerHTML;
|
|
document.getElementById('id_answer').innerHTML+='<a class="cancel" rel="nofollow" href="<?php $plxShow->artUrl(); ?>#form" onclick="cancelCom()"><i class="flaticon-botton5"></i><?php $plxShow->lang('CANCEL'); ?></a>';
|
|
document.getElementById('id_answer').style.display='inline-block';
|
|
document.getElementById('id_parent').value=idCom;
|
|
document.getElementById('id_content').focus();
|
|
}
|
|
|
|
function cancelCom() {
|
|
document.getElementById('id_answer').style.display='none';
|
|
document.getElementById('id_parent').value='';
|
|
document.getElementById('com_message').innerHTML='';
|
|
}
|
|
|
|
var parent = document.getElementById('id_parent').value;
|
|
if(parent!='') { replyCom(parent) }
|
|
|
|
</script>
|
|
|
|
<?php else: ?>
|
|
|
|
<p>
|
|
<?php $plxShow->lang('COMMENTS_CLOSED') ?>.
|
|
</p>
|
|
|
|
<?php endif; # Fin du if sur l'autorisation des commentaires ?>
|
|
|
|
|
|
|
|
|
|
</div>
|