views-ui-edit-tab.tpl.php 2.83 KB
Newer Older
1 2 3 4 5 6 7
<?php
// $Id$
/**
 * @file views-ui-edit-tab.tpl.php
 * Template for the primary view editing window.
 */
?>
8
<div class="clear-block views-display views-display-<?php print $display->id; if (!empty($display->deleted)) { print ' views-display-deleted'; }; ?>">
9
  <?php // top section ?>
10 11 12
  <?php if ($remove): ?>
    <div class="remove-display"><?php print $remove ?></div>
  <?php endif; ?>
13 14
  <div class="top">
    <div class="inside">
15
      <?php print $display_help_icon; ?>
16 17 18 19 20 21 22 23 24 25 26 27
      <span class="display-title">
        <?php print $title; ?>
      </span>
      <span class="display-description">
        <?php print $description; ?>
      </span>
    </div>
  </div>

  <?php // left section ?>
  <div class="left tab-section">
    <div class="inside">
28 29 30 31
      <?php // If this is the default display, add some basic stuff here. ?>
      <?php if ($default): ?>
        <div class="views-category">
          <div class="views-category-title"><?php print t('View settings'); ?></div>
32 33 34 35
          <div class="views-category-content">
            <div class="<?php $details_class; if (!empty($details_changed)) { print ' changed'; }?>">
              <?php print $details ?>
            </div>
36 37 38
          </div>
        </div>
      <?php endif; ?>
39

40 41
      <?php foreach ($categories as $category_id => $category): ?>
        <div class="views-category">
42 43 44 45 46
          <div class="views-category-title views-category-<?php print $category_id; ?>">
            <?php print $category['title']; ?>
          </div>
          <div class="views-category-content">
            <?php foreach ($category['data'] as $data): ?>
47 48 49 50 51 52 53 54 55 56 57
              <div class="<?php
                print $data['class'];
                if (!empty($data['overridden'])) {
                  print ' overridden';
                }
                if (!empty($data['defaulted'])) {
                  print ' defaulted';
                }
                if (!empty($data['changed'])) {
                  print ' changed';
                }?>">
58 59 60
                <?php print $data['links'] . $data['content'] ?>
              </div>
            <?php endforeach; ?>
61 62 63 64
          </div>
        </div>
      <?php endforeach; ?>
    </div>
65 66 67 68 69
  </div>

  <?php // middle section ?>
  <div class="middle tab-section">
    <div class="inside">
70
      <div class="views-category">
71
        <?php print $relationships; ?>
72 73
      </div>
      <div class="views-category">
74
        <?php print $arguments; ?>
75 76 77 78 79 80
      </div>
      <?php if (!empty($fields)): ?>
        <div class="views-category">
          <?php print $fields; ?>
        </div>
      <?php endif; ?>
81 82 83 84 85 86
    </div>
  </div>

  <?php // right section ?>
  <div class="right tab-section">
    <div class="inside">
87
      <div class="views-category">
88
        <?php print $sorts; ?>
89 90
      </div>
      <div class="views-category">
91
        <?php print $filters; ?>
92
      </div>
93 94 95 96
    </div>
  </div>

</div>