Commit ef18f3bc authored by Hunter Fox's avatar Hunter Fox
Browse files

Issue #2303751: move styles from openpublic to openomega

parent 995173bc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
<?php

include_once('openpublic_site_page.features.inc');
include_once('openpublic_site_page.theme.inc');
+0 −15
Original line number Diff line number Diff line
<?php
/**
 * @file
 * Theme code for the openpublic site page feature.
 */

/**
 * Implements hook_theme().
 */
function openpublic_site_page_theme($existing) {
  $item = $existing['node'];
  $item['path'] = drupal_get_path('module', 'openpublic_site_page') . "/theme";
  $item['template'] = 'node--site-page';
  return array("node__site_page" => $item);
}
+0 −15
Original line number Diff line number Diff line
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <div class="content"<?php print $content_attributes; ?>>
    
    <?php print render($content['body']); ?>
    
    <?php if (!empty($content['field_files'])): ?>
    <div class="downloads">
      <h4><?php print t('Downloads'); ?></h4>
      <ul>
        <?php print strip_tags(render($content['field_files']), '<li><a>'); ?>
      </ul>
    </div><!--/downloads-->
    <?php endif; ?>
  </div>  
</div>
 No newline at end of file