Skip to content

Commit

Permalink
Fixing theme function include files. They were named incorrectly all …
Browse files Browse the repository at this point in the history
…the time... Duh.
  • Loading branch information
fubhy committed Dec 31, 2012
1 parent 771669c commit e34b8d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 3 additions & 5 deletions theme/theme.field.inc → theme/field.theme.inc
Expand Up @@ -2,22 +2,20 @@

/**
* Returns HTML for a field.
*
* @see theme_field().
*/
function omega_field($variables) {
$output = '';

// Render the label, if it's not hidden.
if (!$variables['label_hidden']) {
$output .= '<div' . $variables['title_attributes'] . '>' . $variables['label'] . ':&nbsp;</div>';
$output .= '<div' . $variables['title_attributes'] . '>' . $variables['label'] . ':</div>';
}

// Render the items.
$output .= '<div' . $variables['content_attributes'] . '>';
foreach ($variables['items'] as $delta => $item) {
$variables['item_attributes'][$delta]['class'][] = 'field-item ' . ($delta % 2 ? 'odd' : 'even');
$output .= '<div' . $variables['item_attributes'][$delta] . '>' . drupal_render($item) . '</div>';
$classes = 'field-item ' . ($delta % 2 ? 'odd' : 'even');
$output .= '<div class="' . $classes . '"' . $variables['item_attributes'][$delta] . '>' . drupal_render($item) . '</div>';
}
$output .= '</div>';

Expand Down
2 changes: 0 additions & 2 deletions theme/theme.mark.inc → theme/mark.theme.inc
Expand Up @@ -2,8 +2,6 @@

/**
* Returns HTML for a marker for new or updated content.
*
* @see theme_mark().
*/
function omega_mark($variables) {
$type = $variables['type'];
Expand Down

0 comments on commit e34b8d8

Please sign in to comment.