<?php if ($main_menu) { print theme('links__system_main_menu',array('links' => $main_menu)); } ?>
Seitenleiste ausgeben
<?php print render($page['sidebar_first']); ?>
Status- und Fehlermeldungen ausgeben
<?php print $messages; ?>
Funktionen für Admin-Ansicht ausgeben
<?php if ($tabs): ?> <div class="tabs"> <?php print render($tabs); ?> </div> <?php endif; ?>
Inhaltsstruktur ausgeben
// nodes print_r($node)
Inhalte ausgeben
// multilingual content // return text from "body" $language = $node->language; $node->body[$language][0]['value']; // "value" is not preprocessed yet. to apply filter for text use print check_markup($node->body[$language][0]['value'], $node->body[$language][0]['format'], $language);
Bild URI umwandeln
$language = $node->language print file_create_url($node->field_image[$language][0]['uri']);
Bild neu berechnen
Die folgende Funktion funktioniert nur in Kombination mit einer vorher definierten Bildgrössen-Vorgabe.
$newImage = array( 'style_name' => 'my_style_name', 'path' => $item['uri'], 'alt' => 'image alt', 'title' => 'image title', // with and height seem to have no effect... 'width' => 60, 'height' => 60) print theme('image_style', $newImage);