Projet

Général

Profil

Paste
Télécharger (1,61 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / sweaver / skins / default / default.tpl.php @ 13755f8d

1
<?php
2

    
3
/**
4
 * @file
5
 * Themer editor form.
6
 */
7
?>
8
<div id="sweaver">
9

    
10
  <!-- tabs -->
11
  <div id="sweaver-tabs" class="clearfix">
12
    <div class="close<?php ($sweaver_open == 'true' || $sweaver_open == NULL) ? '' : print ' active-tab'; ?>"><?php print '<a href="#">x</a>'; ?></div>
13
    <?php
14
    $i = 1;
15
    foreach ($tabs as $key => $tab):
16
    ?>
17
      <div id="tab-<?php print $key; ?>" class="tab <?php if (($active_tab == $key) || ($active_tab == NULL && $i == 1 )) print 'active-tab'; ?> <?php print $key; ?>">
18
        <a href="#"><?php print $tab['#tab_name']; ?></a>
19
      </div>
20
    <?php
21
    $i++;
22
    endforeach; ?>
23
    <?php if (isset($style_actions)): ?>
24
      <div id="sweaver-style-actions"><?php print $style_actions; ?></div>
25
    <?php endif; ?>
26
  </div>
27

    
28
  <div id="sweaver-middle" class="clearfix" <?php ($sweaver_open == 'true' || $sweaver_open == NULL) ? '' : print ' style="height:0"'; ?>>
29
    <?php
30
    foreach ($tabs_data as $key => $tab_data):
31
    ?>
32
      <!-- <?php print $key; ?> -->
33
      <div id="<?php print $key;?>">
34
        <?php if (isset($tab_data['#tab_description'])): ?>
35
          <div class="sweaver-header" <?php ($active_tab != $key) ? print 'style="display:none"' : '' ?>><?php print $tab_data['#tab_description']; ?></div>
36
        <?php endif; ?>
37
        <div class="sweaver-content" style="<?php if ($active_tab != $key) print 'display:none;'; ?>"><?php print $tab_data['content']; ?></div>
38
      </div>
39
    <?php
40
      endforeach;
41
    ?>
42
  </div>
43

    
44

    
45
  <?php print $rest_of_form; ?>
46
</div>
47
<div id="sweaver-popup"><div class="close">x</div><div class="content"><?php print $sweaver_popup; ?></div></div>