~ubuntu-branches/ubuntu/wily/pluxml/wily

« back to all changes in this revision

Viewing changes to themes/defaut/commentaires.php

  • Committer: Package Import Robot
  • Author(s): Tanguy Ortolo
  • Date: 2015-07-22 14:22:20 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20150722142220-m5tzuyfq6klb44vs
Tags: 5.4-1
* New upstream release.
* debian/dirs: update to new layout (data/images/ replaced by data/medias).
* debian/postinst:
   + migrate images from data/images/ to data/medias/.
   + update main configuration file (version has changed, and a parameter
     was added).
   + use `command -v` instead of `test` to check for lighty-enable-mod
     existence, to avoid using a fully qualified path.
* debian/postrm:
   + use `command -v` instead of `test` to check for lighty-disable-mod, ucf
     and ucfr existence, to avoid using a fully qualified path.
* debian/rules: remove some JavaScript minimizing rules (that file is no
  longer part of PluXml).
* debian/control:
   + no longer depend on slimit (no more JavaScript minimizing).
   + use a line per build dependency and order them alphabetically.
   + update Standards-Version to 3.9.6 (no change needed).
* debian/copyright: remove everything about respond.js which is no longer
  part of PluXml.
* debian/links: update to new layout (data/images replaced by data/medias).
* debian/NEWS: added, to document the migration to 5.4 layout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
        <?php if($plxShow->plxMotor->plxRecord_coms): ?>
4
4
 
5
 
        <div id="comments">
6
 
 
7
 
                <h2>
 
5
                <h2 id="comments">
8
6
                        <?php echo $plxShow->artNbCom(); ?>
9
7
                </h2>
10
8
 
11
9
                <?php while($plxShow->plxMotor->plxRecord_coms->loop()): # On boucle sur les commentaires ?>
12
10
 
13
11
                <div id="<?php $plxShow->comId(); ?>" class="comment">
14
 
                        <blockquote>
15
 
                                <p class="info_comment">
16
 
                                        <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>
17
 
                                        <time datetime="<?php $plxShow->comDate('#num_year(4)-#num_month-#num_day #hour:#minute'); ?>"><?php $plxShow->comDate('#day #num_day #month #num_year(4) &#64; #hour:#minute'); ?></time>
 
12
                        <p>
 
13
                                <small>
 
14
                                        <a class="nbcom" href="<?php $plxShow->ComUrl(); ?>" title="#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?>">#<?php echo $plxShow->plxMotor->plxRecord_coms->i+1 ?></a>&nbsp;
 
15
                                        <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> - 
18
16
                                        <?php $plxShow->comAuthor('link'); ?>
19
17
                                        <?php $plxShow->lang('SAID'); ?> :
20
 
                                </p>
 
18
                                </small>
 
19
                        </p>
 
20
                        <blockquote>
21
21
                                <p class="content_com type-<?php $plxShow->comType(); ?>"><?php $plxShow->comContent(); ?></p>
22
22
                        </blockquote>
23
23
                </div>
24
24
 
25
25
                <?php endwhile; # Fin de la boucle sur les commentaires ?>
26
26
 
27
 
                <div class="rss">
28
 
                        <?php $plxShow->comFeed('rss',$plxShow->artId()); ?>
29
 
                </div>
30
 
 
31
 
        </div>
 
27
                <p><?php $plxShow->comFeed('rss',$plxShow->artId()); ?></p>
32
28
 
33
29
        <?php endif; ?>
34
30
 
35
31
        <?php if($plxShow->plxMotor->plxRecord_arts->f('allow_com') AND $plxShow->plxMotor->aConf['allow_com']): ?>
36
32
 
37
 
        <div id="form">
38
 
 
39
 
                <h2>
40
 
                        <?php $plxShow->lang('WRITE_A_COMMENT') ?>
41
 
                </h2>
42
 
 
43
 
                <form action="<?php $plxShow->artUrl(); ?>#form" method="post">
44
 
                        <fieldset>
45
 
                                <p>
 
33
        <h2>
 
34
                <?php $plxShow->lang('WRITE_A_COMMENT') ?>
 
35
        </h2>
 
36
 
 
37
        <form id="form" action="<?php $plxShow->artUrl(); ?>#form" method="post">
 
38
 
 
39
                <fieldset>
 
40
 
 
41
                        <div class="grid">
 
42
                                <div class="col sml-12">
46
43
                                        <label for="id_name"><?php $plxShow->lang('NAME') ?> :</label>
47
44
                                        <input id="id_name" name="name" type="text" size="20" value="<?php $plxShow->comGet('name',''); ?>" maxlength="30" />
48
 
                                </p>
49
 
                                <p>
 
45
                                </div>
 
46
                        </div>
 
47
                        <div class="grid">
 
48
                                <div class="col sml-12 lrg-6">
 
49
                                        <label for="id_mail"><?php $plxShow->lang('EMAIL') ?> :</label>
 
50
                                        <input id="id_mail" name="mail" type="text" size="20" value="<?php $plxShow->comGet('mail',''); ?>" />                  
 
51
                                </div>
 
52
                                <div class="col sml-12 lrg-6">
50
53
                                        <label for="id_site"><?php $plxShow->lang('WEBSITE') ?> :</label>
51
54
                                        <input id="id_site" name="site" type="text" size="20" value="<?php $plxShow->comGet('site',''); ?>" />
52
 
                                </p>
53
 
                                <p>
54
 
                                        <label for="id_mail"><?php $plxShow->lang('EMAIL') ?> :</label>
55
 
                                        <input id="id_mail" name="mail" type="text" size="20" value="<?php $plxShow->comGet('mail',''); ?>" />
56
 
                                </p>
57
 
                                <p>
 
55
                                </div>
 
56
                        </div>
 
57
                        <div class="grid">
 
58
                                <div class="col sml-12">
58
59
                                        <label for="id_content" class="lab_com"><?php $plxShow->lang('COMMENT') ?> :</label>
59
60
                                        <textarea id="id_content" name="content" cols="35" rows="6"><?php $plxShow->comGet('content',''); ?></textarea>
60
 
                                </p>
61
 
                                <p class="com-alert">
62
 
                                        <?php $plxShow->comMessage(); ?>
63
 
                                </p>
64
 
                                <?php if($plxShow->plxMotor->aConf['capcha']): ?>
65
 
                                <p>
66
 
                                        <label for="id_rep"><?php echo $plxShow->lang('ANTISPAM_WARNING') ?></label>
67
 
                                        <?php $plxShow->capchaQ(); ?> :
68
 
                                        <input id="id_rep" name="rep" type="text" size="2" maxlength="1" />
69
 
                                </p>
70
 
                                <?php endif; ?>
71
 
                                <p>
72
 
                                        <input type="submit" value="<?php $plxShow->lang('SEND') ?>" />
73
 
                                </p>
74
 
                        </fieldset>
75
 
                </form>
76
 
 
77
 
        </div>
 
61
                                </div>
 
62
                        </div>
 
63
 
 
64
                        <?php $plxShow->comMessage('<p class="text-red"><strong>#com_message</strong></p>'); ?>
 
65
                                
 
66
                        <?php if($plxShow->plxMotor->aConf['capcha']): ?>
 
67
 
 
68
                        <div class="grid">
 
69
                                <div class="col sml-12">
 
70
                                        <label for="id_rep"><strong><?php echo $plxShow->lang('ANTISPAM_WARNING') ?></strong></label>
 
71
                                        <?php $plxShow->capchaQ(); ?>
 
72
                                        <input id="id_rep" name="rep" type="text" size="2" maxlength="1" style="width: auto; display: inline;" />
 
73
                                        <?php endif; ?>
 
74
                                </div>
 
75
                        </div>
 
76
                        <div class="grid">
 
77
                                <div class="col sml-12">
 
78
                                        <input class="blue" type="submit" value="<?php $plxShow->lang('SEND') ?>" />
 
79
                                </div>
 
80
                        </div>
 
81
 
 
82
                </fieldset>
 
83
                        
 
84
        </form>
78
85
 
79
86
        <?php else: ?>
80
87
 
81
 
                <p>
82
 
                        <?php $plxShow->lang('COMMENTS_CLOSED') ?>.
83
 
                </p>
 
88
        <p>
 
89
                <?php $plxShow->lang('COMMENTS_CLOSED') ?>.
 
90
        </p>
84
91
 
85
92
        <?php endif; # Fin du if sur l'autorisation des commentaires ?>