Projet

Général

Profil

Paste
Télécharger (2,63 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / simplecorp / node.tpl.php @ b9383c72

1
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> hentry clearfix"<?php print $attributes; ?>>
2
   
3
    <?php if ($display_submitted): ?>
4
    
5
    <header class="entry-meta">
6
        <div class="submitted">
7

    
8
            <time class="date">
9
                <span class="month">
10
                <?php print $submitted_month; ?>                
11
                </span>
12
                <strong class="day">
13
                <?php print $submitted_day; ?>              
14
                </strong>  
15
                <span class="year">
16
                <?php print $submitted_year; ?>              
17
                </span>
18
            </time>
19

    
20
            <ul>
21
                <?php if (isset($content['field_tags'])): ?>
22
                <li>
23
                <span class="title"><?php print t('In'); ?>:</span>
24
                <?php print render($content['field_tags']); ?>
25
                </li>
26
                <?php endif; ?>
27
                <li>
28
                <span class="title"><?php print t('Posted By'); ?>:</span>
29
                <?php print $name; ?> 
30
                </li>
31
                <li>
32
                <span class="title"><?php print t('Comments'); ?>:</span>
33
                <?php print $comment_count; ?> 
34
                </li>
35
            </ul>          
36

    
37
        </div>
38
    </header>  
39
    
40
    <?php endif; ?>
41

    
42
    <div class="entry-body clearfix">
43

    
44
        <?php print render($title_prefix); ?>
45
        <?php if (!$page): ?>
46
        <header><h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2></header>
47
        <?php endif; ?>
48
        <?php print render($title_suffix); ?>
49

    
50
        <div class="content"<?php print $content_attributes; ?>>
51
        <?php // We hide the comments and links now so that we can render them later.
52
        hide($content['comments']);
53
        hide($content['links']);
54
        print render($content); ?>
55
        </div>
56

    
57
        <?php print render($content['links']); ?>
58
    
59
    </div>
60

    
61
    <?php $node_author = user_load($uid); ?>
62
        
63
    <?php if ($page): ?>
64
    <?php if($user_picture && variable_get('user_signatures', 0)): ?>
65

    
66
    <div class="author clearfix">
67

    
68
        <div class="author-gravatar">
69
        <?php print $user_picture; ?>
70
        </div>
71
      
72
        <?php if($node_author->signature): ?>            
73
        <div class="author-about">
74
            <h4><?php print t('About the author'); ?></h4>
75
            <p class="author-description"><?php print $node_author->signature; ?></p>
76
        </div>
77
        <?php endif; ?>   
78

    
79
    </div>  
80
    
81
    <?php endif; ?> 
82
    <?php endif; ?>
83

    
84
    <?php print render($content['comments']); ?>
85

    
86
</article>