-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommentaires.php
More file actions
89 lines (72 loc) · 2.84 KB
/
Copy pathcommentaires.php
File metadata and controls
89 lines (72 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php if(!defined('PLX_ROOT')) exit; ?>
<?php if($plxShow->plxMotor->plxRecord_coms): ?>
<div id="comments">
<h2>
<?php echo $plxShow->artNbCom() ?>
</h2>
<?php while($plxShow->plxMotor->plxRecord_coms->loop()): # On boucle sur les commentaires ?>
<div id="<?php $plxShow->comId(); ?>" class="comment">
<blockquote>
<p class="info_comment"><a class="num-com" href="<?php $plxShow->ComUrl(); ?>" title="#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?>">#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?></a> <?php $plxShow->comDate('#day #num_day #month #num_year(4) @ #hour:#minute'); ?> <?php $plxShow->comAuthor('link'); ?> <?php $plxShow->lang('SAID') ?> : </p>
<p class="content_com type-<?php $plxShow->comType(); ?>"><?php $plxShow->comContent() ?></p>
</blockquote>
</div>
<?php endwhile; # Fin de la boucle sur les commentaires ?>
<div class="rss">
<?php $plxShow->comFeed('rss',$plxShow->artId()); ?>
</div>
</div>
<?php endif; ?>
<?php if($plxShow->plxMotor->plxRecord_arts->f('allow_com') AND $plxShow->plxMotor->aConf['allow_com']): ?>
<div id="form">
<h2>
<?php $plxShow->lang('WRITE_A_COMMENT') ?>
</h2>
<form action="<?php $plxShow->artUrl(); ?>#form" method="post">
<fieldset>
<p>
<label for="id_name"><?php $plxShow->lang('NAME') ?> :</label>
</p>
<p>
<input id="id_name" name="name" type="text" size="20" value="<?php $plxShow->comGet('name',''); ?>" maxlength="30" />
</p>
<p>
<label for="id_site"><?php $plxShow->lang('WEBSITE') ?> :</label>
</p>
<p>
<input id="id_site" name="site" type="text" size="20" value="<?php $plxShow->comGet('site',''); ?>" />
</p>
<p>
<label for="id_mail"><?php $plxShow->lang('EMAIL') ?> :</label>
</p>
<p>
<input id="id_mail" name="mail" type="text" size="20" value="<?php $plxShow->comGet('mail',''); ?>" />
</p>
<p>
<label for="id_content" class="lab_com"><?php $plxShow->lang('COMMENT') ?> :</label>
</p>
<p>
<textarea id="id_content" name="content" cols="35" rows="6"><?php $plxShow->comGet('content',''); ?></textarea>
</p>
<?php if($plxShow->plxMotor->aConf['capcha']): ?>
<p>
<label for="id_rep"><strong><?php echo $plxShow->lang('ANTISPAM_WARNING') ?></strong> :</label>
</p>
<p class="com-alert">
<?php $plxShow->comMessage(); ?>
</p>
<p>
<?php $plxShow->capchaQ(); ?> : <input id="id_rep" name="rep" type="text" size="2" maxlength="1" />
</p>
<?php endif; ?>
<p>
<input type="submit" value="<?php $plxShow->lang('SEND') ?>" />
</p>
</fieldset>
</form>
</div>
<?php else: ?>
<p>
<?php $plxShow->lang('COMMENTS_CLOSED') ?>.
</p>
<?php endif; # Fin du if sur l'autorisation des commentaires ?>