views-view-unformatted--guestbook--page-1.tpl.php
Eingetragen von stBorchert (5516) am 03.06.2009 - 10:29 Uhr in
<?php
/**
* @file views-view-unformatted--guestbook--page-1.tpl.php
*
* Display 3 items, the form and then the other items.
* @ingroup views_templates
*/
?>
<?php
module_load_include('inc', 'node', 'node.pages');
?>
<?php
$index = 0;
// Print the first 3 rows.
for ($i = 0; $i < 3; $i++) {
if (count($rows)) {
// Print and remove the first element from $rows.
?>
<div class="<?php print $classes[$index]; ?>">
<?php print array_shift($rows); ?>
</div>
<?php
$index++;
}
}
?>
<?php
// Output node form.
print node_add('guestbook_item');
?>
<?php
// Set page title.
drupal_set_title('Guestbook');
?>
<?php foreach ($rows as $id => $row): ?>
<div class="<?php print $classes[$id]; ?>">
<?php print $row; ?>
</div>
<?php $index++ ?>
<?php endforeach; ?>- Anmelden oder Registrieren um Kommentare zu schreiben





Neue Kommentare
vor 37 Minuten 42 Sekunden
vor 2 Stunden 48 Minuten
vor 2 Stunden 48 Minuten
vor 2 Stunden 57 Minuten
vor 3 Stunden 11 Minuten
vor 3 Stunden 11 Minuten
vor 3 Stunden 18 Minuten
vor 3 Stunden 24 Minuten
vor 3 Stunden 46 Minuten
vor 3 Stunden 50 Minuten