template.php

  1. cis7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  2. cis7 sites/all/themes/ulmus/rubik/template.php
  3. cis7 sites/all/themes/local_contrib/zurb-foundation/template.php
  4. cis7 sites/all/themes/ulmus/skeletontheme/template.php
  5. cis7 sites/all/themes/ulmus/corolla/template.php
  6. cis7 sites/all/themes/ulmus/ember/template.php
  7. cis7 sites/all/themes/ulmus/respond/template.php
  8. cis7 sites/all/themes/ulmus/aurora/template.php
  9. cis7 sites/all/themes/ulmus/tao/template.php
  10. cis7 sites/all/themes/ulmus/fontfolio/template.php
  11. cis7 modules/simpletest/tests/themes/test_theme/template.php
  12. cis7 profiles/cis/themes/cis-theme/template.php
  13. cis7 sites/all/themes/local_contrib/zurb-foundation/STARTER/template.php
  14. cis7 sites/all/themes/ulmus/omega/alpha/template.php
  15. cis7 sites/all/themes/ulmus/omega/omega/template.php
  16. cis7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  17. cis7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  18. cis7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  19. cis7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  20. cis7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  21. cis7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  22. cis7 sites/all/themes/elmsln_contrib/chamfer/template.php
  23. cis7 themes/garland/template.php
  24. cis7 themes/bartik/template.php
  25. cis7 themes/seven/template.php
  26. cis7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  27. cle7 sites/all/themes/ulmus/omega/omega/template.php
  28. cle7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  29. cle7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  30. cle7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  31. cle7 sites/all/themes/ulmus/skeletontheme/template.php
  32. cle7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  33. cle7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  34. cle7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  35. cle7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  36. cle7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  37. cle7 sites/all/themes/local_contrib/bootstrap/bootstrap_subtheme/template.php
  38. cle7 sites/all/themes/ulmus/omega/alpha/template.php
  39. cle7 sites/all/themes/elmsln_contrib/chamfer/template.php
  40. cle7 modules/simpletest/tests/themes/test_theme/template.php
  41. cle7 sites/all/themes/ulmus/rubik/template.php
  42. cle7 sites/all/themes/ulmus/fontfolio/template.php
  43. cle7 sites/all/themes/ulmus/tao/template.php
  44. cle7 sites/all/themes/ulmus/aurora/template.php
  45. cle7 sites/all/themes/ulmus/respond/template.php
  46. cle7 sites/all/themes/ulmus/ember/template.php
  47. cle7 sites/all/themes/ulmus/corolla/template.php
  48. cle7 sites/all/themes/local_contrib/bootstrap/template.php
  49. cle7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  50. cle7 themes/garland/template.php
  51. cle7 themes/bartik/template.php
  52. cle7 sites/all/themes/local_contrib/zurb_foundation/template.php
  53. cle7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  54. cle7 themes/seven/template.php
  55. ecd7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  56. ecd7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  57. ecd7 sites/all/themes/ulmus/omega/omega/template.php
  58. ecd7 sites/all/themes/ulmus/omega/alpha/template.php
  59. ecd7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  60. ecd7 modules/simpletest/tests/themes/test_theme/template.php
  61. ecd7 sites/all/themes/ulmus/rubik/template.php
  62. ecd7 sites/all/themes/ulmus/fontfolio/template.php
  63. ecd7 sites/all/themes/ulmus/tao/template.php
  64. ecd7 sites/all/themes/ulmus/aurora/template.php
  65. ecd7 sites/all/themes/ulmus/respond/template.php
  66. ecd7 sites/all/themes/ulmus/ember/template.php
  67. ecd7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  68. ecd7 themes/garland/template.php
  69. ecd7 themes/bartik/template.php
  70. ecd7 themes/seven/template.php
  71. ecd7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  72. ecd7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  73. ecd7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  74. ecd7 sites/all/themes/elmsln_contrib/chamfer/template.php
  75. ecd7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  76. ecd7 sites/all/themes/local_contrib/zurb_foundation/template.php
  77. ecd7 sites/all/themes/ulmus/skeletontheme/template.php
  78. ecd7 sites/all/themes/ulmus/corolla/template.php
  79. ecd7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  80. elmsmedia7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  81. elmsmedia7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  82. elmsmedia7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  83. elmsmedia7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  84. elmsmedia7 sites/all/themes/local_contrib/zurb_foundation/template.php
  85. elmsmedia7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  86. elmsmedia7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  87. elmsmedia7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  88. elmsmedia7 sites/all/themes/ulmus/respond/template.php
  89. elmsmedia7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  90. elmsmedia7 themes/seven/template.php
  91. elmsmedia7 themes/garland/template.php
  92. elmsmedia7 sites/all/themes/elmsln_contrib/chamfer/template.php
  93. elmsmedia7 sites/all/themes/ulmus/rubik/template.php
  94. elmsmedia7 sites/all/themes/ulmus/skeletontheme/template.php
  95. elmsmedia7 sites/all/themes/ulmus/fontfolio/template.php
  96. elmsmedia7 sites/all/themes/ulmus/tao/template.php
  97. elmsmedia7 sites/all/themes/ulmus/aurora/template.php
  98. elmsmedia7 sites/all/themes/ulmus/ember/template.php
  99. elmsmedia7 sites/all/themes/ulmus/corolla/template.php
  100. elmsmedia7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  101. elmsmedia7 modules/simpletest/tests/themes/test_theme/template.php
  102. elmsmedia7 sites/all/themes/ulmus/omega/alpha/template.php
  103. elmsmedia7 sites/all/themes/ulmus/omega/omega/template.php
  104. elmsmedia7 themes/bartik/template.php
  105. harmony7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  106. harmony7 sites/all/themes/local_contrib/zurb_foundation/template.php
  107. harmony7 sites/all/themes/elmsln_contrib/chamfer/template.php
  108. harmony7 sites/all/themes/local_contrib/bootstrap/template.php
  109. harmony7 sites/all/themes/local_contrib/bootstrap/bootstrap_subtheme/template.php
  110. harmony7 modules/simpletest/tests/themes/test_theme/template.php
  111. harmony7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  112. harmony7 sites/all/themes/ulmus/corolla/template.php
  113. harmony7 sites/all/themes/ulmus/omega/alpha/template.php
  114. harmony7 sites/all/themes/ulmus/omega/omega/template.php
  115. harmony7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  116. harmony7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  117. harmony7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  118. harmony7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  119. harmony7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  120. harmony7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  121. harmony7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  122. harmony7 themes/seven/template.php
  123. harmony7 themes/bartik/template.php
  124. harmony7 themes/garland/template.php
  125. harmony7 sites/all/themes/ulmus/skeletontheme/template.php
  126. harmony7 sites/all/themes/ulmus/tao/template.php
  127. harmony7 sites/all/themes/ulmus/ember/template.php
  128. harmony7 sites/all/themes/ulmus/aurora/template.php
  129. harmony7 sites/all/themes/ulmus/fontfolio/template.php
  130. harmony7 sites/all/themes/ulmus/rubik/template.php
  131. harmony7 sites/all/themes/ulmus/respond/template.php
  132. icor7 sites/all/themes/ulmus/respond/template.php
  133. icor7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  134. icor7 sites/all/themes/local_contrib/zurb_foundation/template.php
  135. icor7 themes/seven/template.php
  136. icor7 themes/bartik/template.php
  137. icor7 themes/garland/template.php
  138. icor7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  139. icor7 sites/all/themes/elmsln_contrib/chamfer/template.php
  140. icor7 sites/all/themes/ulmus/skeletontheme/template.php
  141. icor7 sites/all/themes/ulmus/corolla/template.php
  142. icor7 sites/all/themes/ulmus/ember/template.php
  143. icor7 sites/all/themes/ulmus/fontfolio/template.php
  144. icor7 sites/all/themes/ulmus/aurora/template.php
  145. icor7 sites/all/themes/ulmus/tao/template.php
  146. icor7 modules/simpletest/tests/themes/test_theme/template.php
  147. icor7 sites/all/themes/ulmus/omega/alpha/template.php
  148. icor7 sites/all/themes/ulmus/omega/omega/template.php
  149. icor7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  150. icor7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  151. icor7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  152. icor7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  153. icor7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  154. icor7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  155. icor7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  156. icor7 sites/all/themes/ulmus/rubik/template.php
  157. meedjum_blog7 themes/seven/template.php
  158. meedjum_blog7 themes/bartik/template.php
  159. meedjum_blog7 sites/all/themes/ulmus/fontfolio/template.php
  160. meedjum_blog7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  161. meedjum_blog7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  162. meedjum_blog7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  163. meedjum_blog7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  164. meedjum_blog7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  165. meedjum_blog7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  166. meedjum_blog7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  167. meedjum_blog7 sites/all/themes/ulmus/omega/omega/template.php
  168. meedjum_blog7 sites/all/themes/ulmus/omega/alpha/template.php
  169. meedjum_blog7 modules/simpletest/tests/themes/test_theme/template.php
  170. meedjum_blog7 sites/all/themes/ulmus/rubik/template.php
  171. meedjum_blog7 sites/all/themes/ulmus/tao/template.php
  172. meedjum_blog7 sites/all/themes/ulmus/aurora/template.php
  173. meedjum_blog7 sites/all/themes/ulmus/respond/template.php
  174. meedjum_blog7 sites/all/themes/ulmus/ember/template.php
  175. meedjum_blog7 sites/all/themes/ulmus/corolla/template.php
  176. meedjum_blog7 sites/all/themes/ulmus/skeletontheme/template.php
  177. meedjum_blog7 sites/all/themes/elmsln_contrib/chamfer/template.php
  178. meedjum_blog7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  179. meedjum_blog7 sites/all/themes/local_contrib/zurb_foundation/template.php
  180. meedjum_blog7 sites/all/themes/local_contrib/meedjum/template.php
  181. meedjum_blog7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  182. meedjum_blog7 themes/garland/template.php
  183. mooc7 themes/seven/template.php
  184. mooc7 sites/all/themes/local_contrib/zurb_foundation/STARTER/template.php
  185. mooc7 sites/all/themes/elmsln_contrib/chamfer/template.php
  186. mooc7 themes/bartik/template.php
  187. mooc7 sites/all/themes/ulmus/omega/alpha/template.php
  188. mooc7 sites/all/themes/elmsln_contrib/foundation_access/template.php
  189. mooc7 sites/all/modules/ulmus/libraries/tests/themes/libraries_test_theme/template.php
  190. mooc7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/template.php
  191. mooc7 sites/all/themes/ulmus/omega/starterkits/omega-html5/template.php
  192. mooc7 sites/all/themes/ulmus/omega/starterkits/alpha-xhtml/template.php
  193. mooc7 sites/all/themes/ulmus/adaptivetheme/at_admin/template.php
  194. mooc7 sites/all/themes/ulmus/adaptivetheme/at_core/template.php
  195. mooc7 sites/all/themes/ulmus/adaptivetheme/at_subtheme/template.php
  196. mooc7 sites/all/themes/ulmus/omega/omega/template.php
  197. mooc7 modules/simpletest/tests/themes/test_theme/template.php
  198. mooc7 themes/garland/template.php
  199. mooc7 sites/all/themes/ulmus/rubik/template.php
  200. mooc7 sites/all/themes/ulmus/fontfolio/template.php
  201. mooc7 sites/all/themes/ulmus/tao/template.php
  202. mooc7 sites/all/themes/ulmus/aurora/template.php
  203. mooc7 sites/all/themes/ulmus/respond/template.php
  204. mooc7 sites/all/themes/ulmus/ember/template.php
  205. mooc7 sites/all/themes/ulmus/corolla/template.php
  206. mooc7 sites/all/themes/ulmus/skeletontheme/template.php
  207. mooc7 sites/all/themes/local_contrib/zurb_foundation/template.php
  208. mooc7 sites/all/modules/local_contrib/omega_tools/default/template.php

Functions

Namesort descending Description
omega_alpha_preprocess_block Implements hook_preprocess_block().
omega_alpha_preprocess_comment Implements hook_preprocess_comment().
omega_alpha_preprocess_html Implements hook_preprocess_html().
omega_alpha_preprocess_node Implements hook_preprocess_node().
omega_alpha_preprocess_region Implements hook_preprocess_region().
omega_alpha_preprocess_zone Implements hook_preprocess_zone().
omega_alpha_process_region Implements hook_process_region().
omega_alpha_process_zone Implements hook_process_zone().
omega_alpha_regions_alter Implements hook_alpha_regions_alter().
omega_alpha_zones_alter Implements hook_alpha_zones_alter().

File

sites/all/themes/ulmus/omega/omega/template.php
View source
  1. <?php
  2. require_once dirname(__FILE__) . '/includes/omega.inc';
  3. require_once dirname(__FILE__) . '/includes/omega.theme.inc';
  4. /**
  5. * Implements hook_alpha_regions_alter().
  6. */
  7. function omega_alpha_regions_alter(&$regions, $theme) {
  8. foreach ($regions as $region => &$item) {
  9. $item['equal_height_container'] = alpha_region_get_setting('equal_height_container', $region, FALSE, $theme);
  10. $item['equal_height_element'] = alpha_region_get_setting('equal_height_element', $region, FALSE, $theme);
  11. }
  12. }
  13. /**
  14. * Implements hook_alpha_zones_alter().
  15. */
  16. function omega_alpha_zones_alter(&$zones, $theme) {
  17. foreach ($zones as $zone => &$item) {
  18. $item['equal_height_container'] = alpha_zone_get_setting('equal_height_container', $zone, FALSE, $theme);
  19. }
  20. }
  21. /**
  22. * Implements hook_preprocess_html().
  23. */
  24. function omega_alpha_preprocess_html(&$vars) {
  25. $theme = alpha_get_theme();
  26. $vars['rdf'] = new stdClass;
  27. if (module_exists('rdf')) {
  28. $vars['doctype'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN">' . "\n";
  29. $vars['rdf']->version = ' version="HTML+RDFa 1.1"';
  30. $vars['rdf']->namespaces = $vars['rdf_namespaces'];
  31. $vars['rdf']->profile = ' profile="' . $vars['grddl_profile'] . '"';
  32. }
  33. else {
  34. $vars['doctype'] = '<!DOCTYPE html>' . "\n";
  35. $vars['rdf']->version = '';
  36. $vars['rdf']->namespaces = '';
  37. $vars['rdf']->profile = '';
  38. }
  39. if (alpha_library_active('omega_mediaqueries')) {
  40. $layouts = array();
  41. if (isset($theme->grids[$theme->settings['grid']])) {
  42. foreach ($theme->grids[$theme->settings['grid']]['layouts'] as $layout) {
  43. if ($layout['enabled']) {
  44. $layouts[$layout['layout']] = $layout['media'];
  45. }
  46. }
  47. drupal_add_js(array('omega' => array(
  48. 'layouts' => array(
  49. 'primary' => $theme->grids[$theme->settings['grid']]['primary'],
  50. 'order' => array_keys($layouts),
  51. 'queries' => $layouts,
  52. ),
  53. )), 'setting');
  54. }
  55. }
  56. }
  57. /**
  58. * Implements hook_preprocess_comment().
  59. */
  60. function omega_alpha_preprocess_comment(&$vars) {
  61. // Prepare the arrays to handle the classes and ids for the node container.
  62. $vars['attributes_array']['class'][] = 'clearfix';
  63. $vars['datetime'] = format_date($vars['comment']->created, 'custom', 'c');
  64. $vars['unpublished'] = '';
  65. if ($vars['status'] == 'comment-unpublished') {
  66. $vars['unpublished'] = '<div class="unpublished">' . t('Unpublished') . '</div>';
  67. }
  68. }
  69. /**
  70. * Implements hook_preprocess_zone().
  71. */
  72. function omega_alpha_preprocess_zone(&$vars) {
  73. if (alpha_library_active('omega_equalheights')) {
  74. if (!empty($vars['elements']['#data']['equal_height_container'])) {
  75. $vars['content_attributes_array']['class'][] = 'equal-height-container';
  76. }
  77. }
  78. }
  79. /**
  80. * Implements hook_preprocess_region().
  81. */
  82. function omega_alpha_preprocess_region(&$vars) {
  83. if (alpha_library_active('omega_equalheights')) {
  84. if (!empty($vars['elements']['#data']['equal_height_container'])) {
  85. $vars['content_attributes_array']['class'][] = 'equal-height-container';
  86. }
  87. if (!empty($vars['elements']['#data']['equal_height_element'])) {
  88. $vars['attributes_array']['class'][] = 'equal-height-element';
  89. }
  90. }
  91. }
  92. /**
  93. * Implements hook_preprocess_node().
  94. */
  95. function omega_alpha_preprocess_node(&$vars) {
  96. // Prepare the arrays to handle the classes and ids for the node container.
  97. $vars['attributes_array']['id'] = drupal_html_id('node-' . $vars['type'] . '-' . $vars['nid']);
  98. // Add a class to allow styling based on publish status.
  99. if ($vars['status']) {
  100. $vars['attributes_array']['class'][] = 'node-published';
  101. }
  102. // Add a class to allow styling based on promotion.
  103. if (!$vars['promote']) {
  104. $vars['attributes_array']['class'][] = 'node-not-promoted';
  105. }
  106. // Add a class to allow styling based on sticky status.
  107. if (!$vars['sticky']) {
  108. $vars['attributes_array']['class'][] = 'node-not-sticky';
  109. }
  110. // Add a class to allow styling of nodes being viewed by the author of the node in question.
  111. if ($vars['uid'] == $vars['user']->uid) {
  112. $vars['attributes_array']['class'][] = 'self-posted';
  113. }
  114. // Add a class to allow styling based on the node author.
  115. $vars['attributes_array']['class'][] = drupal_html_class('author-' . $vars['node']->name);
  116. // Add a class to allow styling for zebra striping.
  117. $vars['attributes_array']['class'][] = drupal_html_class($vars['zebra']);
  118. // Add a class to make the node container self clearing.
  119. $vars['attributes_array']['class'][] = 'clearfix';
  120. $vars['content_attributes_array']['class'][] = 'content';
  121. $vars['content_attributes_array']['class'][] = 'clearfix';
  122. // Adding a class to the title attributes
  123. $vars['title_attributes_array']['class'][] = 'node-title';
  124. }
  125. /**
  126. * Implements hook_process_region().
  127. */
  128. function omega_alpha_process_region(&$vars) {
  129. if (in_array($vars['elements']['#region'], array('content', 'menu', 'branding'))) {
  130. $theme = alpha_get_theme();
  131. switch ($vars['elements']['#region']) {
  132. case 'content':
  133. $vars['title_prefix'] = $theme->page['title_prefix'];
  134. $vars['title'] = $theme->page['title'];
  135. $vars['title_suffix'] = $theme->page['title_suffix'];
  136. $vars['tabs'] = $theme->page['tabs'];
  137. $vars['action_links'] = $theme->page['action_links'];
  138. $vars['title_hidden'] = $theme->page['title_hidden'];
  139. $vars['feed_icons'] = $theme->page['feed_icons'];
  140. break;
  141. case 'menu':
  142. $vars['main_menu'] = $theme->page['main_menu'];
  143. $vars['secondary_menu'] = $theme->page['secondary_menu'];
  144. break;
  145. case 'branding':
  146. $vars['site_name'] = $theme->page['site_name'];
  147. $vars['linked_site_name'] = l($vars['site_name'], '<front>', array('attributes' => array('title' => t('Home')), 'html' => TRUE));
  148. $vars['site_slogan'] = $theme->page['site_slogan'];
  149. $vars['site_name_hidden'] = $theme->page['site_name_hidden'];
  150. $vars['site_slogan_hidden'] = $theme->page['site_slogan_hidden'];
  151. $vars['logo'] = $theme->page['logo'];
  152. $vars['logo_img'] = $vars['logo'] ? '<img src="' . $vars['logo'] . '" alt="' . check_plain($vars['site_name']) . '" id="logo" />' : '';
  153. $vars['linked_logo_img'] = $vars['logo'] ? l($vars['logo_img'], '<front>', array('attributes' => array('rel' => 'home', 'title' => check_plain($vars['site_name'])), 'html' => TRUE)) : '';
  154. break;
  155. }
  156. }
  157. }
  158. /**
  159. * Implements hook_process_zone().
  160. */
  161. function omega_alpha_process_zone(&$vars) {
  162. $theme = alpha_get_theme();
  163. if ($vars['elements']['#zone'] == 'content') {
  164. $vars['messages'] = $theme->page['messages'];
  165. $vars['breadcrumb'] = $theme->page['breadcrumb'];
  166. }
  167. }
  168. /**
  169. * Implements hook_preprocess_block().
  170. */
  171. function omega_alpha_preprocess_block(&$vars) {
  172. $theme = alpha_get_theme();
  173. // Adding a class to the title attributes
  174. $vars['title_attributes_array']['class'][] = 'block-title';
  175. // Add odd/even zebra classes into the array of classes
  176. $vars['attributes_array']['class'][] = $vars['block_zebra'];
  177. if(empty($vars['block']->subject) && (string) $vars['block']->subject != '0') {
  178. // Add a class to provide CSS for blocks without titles.
  179. $vars['attributes_array']['class'][] = 'block-without-title';
  180. }
  181. if ($vars['block']->module != 'alpha-debug' && isset($vars['block']->region)) {
  182. if (alpha_library_active('omega_equalheights') && isset($theme->regions[$vars['block']->region])) {
  183. if ($theme->regions[$vars['block']->region]['equal_height_container']) {
  184. $vars['attributes_array']['class'][] = 'equal-height-element';
  185. }
  186. }
  187. }
  188. }
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.