#Drupal 7 Theming Snippets By Andreas Vejnø Andersen – vejnoe.dk
##Image node.tpl.php
<?php print $node_url; ?>
<?php print $url('node/10'); ?>
<?php print file_create_url($field_image[0]['uri']); ?>
<?php hide($content['field_image']); ?>
<?php if ($is_admin) {
// Translate btn
print '<a href="'; if ($language != 'da') { print '/' . $language; } print '/node/' . $nid . '/translate" class="button tiny translate">' . t('Translate') .'</a>';
// Edit btn
print '<a href="'; if ($language != 'da') { print '/' . $language; } print '/node/' . $nid . '/edit?destination=' . current_path() . '" class="button tiny edit">' . t('Edit') .'</a>';
} ?>
<?php print render($content['body'][0]); ?>
substr($field_website[0]['value'], 0, 4) == 'http'
<?php if ($teaser): ?>
<?php else: ?>
<?php endif; ?>
while($i < sizeof($field_image)) {
print '<div class="image">';
print render($content['field_image'][$i]);
if ($field_image[$i]['alt'] != '') {
print '<p class="description">' . $field_image[$i]['alt'] . '</p>';
}
print '</div>';
$i++;
}