Projet

Général

Profil

Révision 13c3c9b4

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/advanced_forum/styles/naked/advanced-forum.naked.topic-list.tpl.php
45 45

  
46 46
  <tbody>
47 47
  <?php foreach ($topics as $topic): ?>
48
    <?php
49
    if ($topic->sticky) {
50
      // Extra label on sticky topics
51
      $topic->title = t('Sticky') . ': ' . $topic->title;
52
    }
53
    ?>
48
    <?php if ($topic->sticky) : ?>
49
      <?php $topic->title = t('Sticky') . ': ' . $topic->title; ?>
50
    <?php endif; ?>
54 51

  
55
    <?php
56
    // Add "new" or "updated" to title where appropriate.
57
    $topic_new = "";
58
    if ($topic->new) {
59
      if ($topic->new_replies > 0) {
60
        $topic_new = ' <span class="marker">' . t('updated') . '</span>';
61
      }
62
      else {
63
        $topic_new = ' <span class="marker">' . t('new') . '</span>';
64
      }
65
    }
66
    ?>
52
    <?php /* Add "new" or "updated" to title where appropriate. */ ?>
53
    <?php $topic_new = ''; ?>
54
    <?php if ($topic->new && $topic->new_replies > 0) : ?>
55
      <?php $topic_new = ' <span class="marker">' . t('updated') . '</span>'; ?>
56
    <?php elseif ($topic->new && $topic->new_replies <= 0) : ?>
57
      <?php $topic_new = ' <span class="marker">' . t('new') . '</span>'; ?>
58
    <?php endif; ?>
67 59

  
68 60
    <tr class="<?php print $topic->zebra;?> <?php print $topic->sticky_class;?>">
69 61
      <td class="forum-topic-icon"><div class="forum-icon"><?php print $topic->icon; ?></div></td>
70 62

  
71 63
      <td class="forum-topic-title">
72
      <?php print $topic->title . $topic_new; ?>
64
      <?php print check_plain($topic->title) . $topic_new; ?>
73 65
      <?php if (!empty($topic->pager)): ?>
74 66
         <div class="forum-topic-pager"> <?php print $topic->pager ?> </div>
75 67
      <?php endif; ?>
......
101 93
  <?php endforeach; ?>
102 94
  </tbody>
103 95
</table>
104
<?php print $pager; ?>
96
<?php print $pager; ?>

Formats disponibles : Unified diff