You are here

default.tpl.php in Sweaver 7

Same filename and directory in other branches
  1. 6 skins/default/default.tpl.php

Themer editor form.

File

skins/default/default.tpl.php
View source
<?php

/**
 * @file
 * Themer editor form.
 */
?>
<div id="sweaver">

  <!-- tabs -->
  <div id="sweaver-tabs" class="clearfix">
    <div class="close<?php

$sweaver_open == 'true' || $sweaver_open == NULL ? '' : (print ' active-tab');
?>"><?php

print '<a href="#">x</a>';
?></div>
    <?php

$i = 1;
foreach ($tabs as $key => $tab) {
  ?>
      <div id="tab-<?php

  print $key;
  ?>" class="tab <?php

  if ($active_tab == $key || $active_tab == NULL && $i == 1) {
    print 'active-tab';
  }
  ?> <?php

  print $key;
  ?>">
        <a href="#"><?php

  print $tab['#tab_name'];
  ?></a>
      </div>
    <?php

  $i++;
}
?>
    <?php

if (isset($style_actions)) {
  ?>
      <div id="sweaver-style-actions"><?php

  print $style_actions;
  ?></div>
    <?php

}
?>
  </div>

  <div id="sweaver-middle" class="clearfix" <?php

$sweaver_open == 'true' || $sweaver_open == NULL ? '' : (print ' style="height:0"');
?>>
    <?php

foreach ($tabs_data as $key => $tab_data) {
  ?>
      <!-- <?php

  print $key;
  ?> -->
      <div id="<?php

  print $key;
  ?>">
        <?php

  if (isset($tab_data['#tab_description'])) {
    ?>
          <div class="sweaver-header" <?php

    $active_tab != $key ? print 'style="display:none"' : '';
    ?>><?php

    print $tab_data['#tab_description'];
    ?></div>
        <?php

  }
  ?>
        <div class="sweaver-content" style="<?php

  if ($active_tab != $key) {
    print 'display:none;';
  }
  ?>"><?php

  print $tab_data['content'];
  ?></div>
      </div>
    <?php

}
?>
  </div>


  <?php

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

print $sweaver_popup;
?></div></div>