What the ?

Public

Seriously?

Get raw version
php
  1. if ($view_mode == 'header') {
  2. if (!empty($node->field_show_default_header)) {
  3. switch ($node->field_show_default_header[LANGUAGE_NONE][0]['value']) {
  4. case 0:
  5. // show header field only
  6. hide($node->content['field_header_image']);
  7. break;
  8.  
  9. case 1:
  10. // show header image field only
  11. hide($node->content['field_header']);
  12. break;
  13. }
  14. }
  15. elseif (empty($node->field_solid_color_background[LANGUAGE_NONE][0]['value'])) {
  16. $node->content = array();
  17. $node->content['field_header_image'] = array(
  18. '#markup' => '<div class="field field-name-field-header-image field-type-image field-label-hidden"><img typeof="foaf:Image" src="http://csnedu.csn.development-preview.com/sites/default/files/default_images/defualt-banner-img_0.png" width="1300" height="348" alt=""></div>',
  19. );
  20. }
  21. else {
  22. $node->content = array();
  23. $node->content['field_header_title'] = array(
  24. '#markup' => '<div class="custom-header-block-title-wrapper"><div class="custom-header-block-title"><div class="custom-header-block-title-inner">' . $node->title . '</div></div></div><div class="view-page-header" style="height: 340px;"></div>',
  25. );
  26. }