New module 'Content'

This commit is contained in:
Manuel Cillero 2017-07-26 20:30:02 +02:00
parent defad8cdef
commit 43345195e4
125 changed files with 20691 additions and 0 deletions

View file

@ -0,0 +1,39 @@
<?php
?>
<div>
<?php print $help; ?>
</div>
<?php if ($rows): ?>
<table id="content-display-overview" class="sticky-enabled">
<thead>
<tr>
<th><?php print t('Field'); ?></th>
<?php if ($basic): ?>
<th><?php print t('Label'); ?></th>
<?php endif; ?>
<?php foreach ($contexts as $key => $value): ?>
<th><?php print $value['title']; ?></th>
<th><?php print t('Exclude'); ?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php
$count = 0;
foreach ($rows as $row): ?>
<tr class="<?php print $count % 2 == 0 ? 'odd' : 'even'; ?>">
<td><?php print $row->indentation; ?><span class="<?php print $row->label_class; ?>"><?php print $row->human_name; ?></span></td>
<?php if ($basic): ?>
<td><?php print $row->label; ?></td>
<?php endif; ?>
<?php foreach ($contexts as $context => $title): ?>
<td><?php print $row->{$context}->format; ?></td>
<td><?php print $row->{$context}->exclude; ?></td>
<?php endforeach; ?>
</tr>
<?php $count++;
endforeach; ?>
</tbody>
</table>
<?php print $submit; ?>
<?php endif; ?>