All pastes #163100 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-09-07 04:40 UTC
rendered paste body
<?php
function phptemplate_views_view_teasers_frontpage($view, $nodes, $type) {
  foreach ($nodes as $count => $n) {
    $node = node_load($n->nid);
    if ($count < 5) {
      $output .= node_view($node, true, false, $links);
    }
    else {
      $items[] = l($node->title, "node/$node->nid");
    }
  }
  if ($items) {
    $output .= theme('item_list', $items);
  }

  return $output;
}
?>

<?php
function amword_regions() {
  return array(
    'column1' => t('column1'),
	'content' => t('content'),
	'column2' => t('column2'),
	'column3' => t('column3')
  );
}
?>