Skip to content

Instantly share code, notes, and snippets.

@mrynearson
Created July 22, 2013 15:36
Show Gist options
  • Save mrynearson/6054819 to your computer and use it in GitHub Desktop.
Save mrynearson/6054819 to your computer and use it in GitHub Desktop.
node about what
<?php
/**
* @file
* Default theme implementation to display a node.
*
* Available variables:
* - $title: the (sanitized) title of the node.
* - $content: An array of node items. Use render($content) to print them all,
* or print a subset such as render($content['field_example']). Use
* hide($content['field_example']) to temporarily suppress the printing of a
* given element.
* - $user_picture: The node author's picture from user-picture.tpl.php.
* - $date: Formatted creation date. Preprocess functions can reformat it by
* calling format_date() with the desired parameters on the $created variable.
* - $name: Themed username of node author output from theme_username().
* - $node_url: Direct url of the current node.
* - $display_submitted: Whether submission information should be displayed.
* - $submitted: Submission information created from $name and $date during
* template_preprocess_node().
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
* preprocess functions. The default values can be one or more of the
* following:
* - node: The current template type, i.e., "theming hook".
* - node-[type]: The current node type. For example, if the node is a
* "Article" it would result in "node-article". Note that the machine
* name will often be in a short form of the human readable label.
* - node-teaser: Nodes in teaser form.
* - node-preview: Nodes in preview mode.
* The following are controlled through the node publishing options.
* - node-promoted: Nodes promoted to the front page.
* - node-sticky: Nodes ordered above other non-sticky nodes in teaser
* listings.
* - node-unpublished: Unpublished nodes visible only to administrators.
* - $title_prefix (array): An array containing additional output populated by
* modules, intended to be displayed in front of the main title tag that
* appears in the template.
* - $title_suffix (array): An array containing additional output populated by
* modules, intended to be displayed after the main title tag that appears in
* the template.
*
* Other variables:
* - $node: Full node object. Contains data that may not be safe.
* - $type: Node type, i.e. page, article, etc.
* - $comment_count: Number of comments attached to the node.
* - $uid: User ID of the node author.
* - $created: Time the node was published formatted in Unix timestamp.
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
* - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
* teaser listings.
* - $id: Position of the node. Increments each time it's output.
*
* Node status variables:
* - $view_mode: View mode, e.g. 'full', 'teaser'...
* - $teaser: Flag for the teaser state (shortcut for $view_mode == 'teaser').
* - $page: Flag for the full page state.
* - $promote: Flag for front page promotion state.
* - $sticky: Flags for sticky post setting.
* - $status: Flag for published status.
* - $comment: State of comment settings for the node.
* - $readmore: Flags true if the teaser content of the node cannot hold the
* main body content.
* - $is_front: Flags true when presented in the front page.
* - $logged_in: Flags true when the current user is a logged-in member.
* - $is_admin: Flags true when the current user is an administrator.
*
* Field variables: for each field instance attached to the node a corresponding
* variable is defined, e.g. $node->body becomes $body. When needing to access
* a field's raw values, developers/themers are strongly encouraged to use these
* variables. Otherwise they will have to explicitly specify the desired field
* language, e.g. $node->body['en'], thus overriding any language negotiation
* rule that was previously applied.
*
* @see template_preprocess()
* @see template_preprocess_node()
* @see template_process()
*/
?>
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<header>
<?php print render($title_prefix); ?>
<?php if (!$page): ?>
<div class="global-title"><?php /* print $title; */ ?></div>
<?php endif; ?>
<?php print render($title_suffix); ?>
</header>
<?php if ($display_submitted): ?>
<footer>
<?php print $user_picture; ?>
<p class="submitted"><?php print $submitted; ?></p>
</footer>
<?php endif; ?>
<div class="content"<?php print $content_attributes; ?>>
<?php
// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
/* print render($content); */
?>
</div>
<div id = "about-what-bullet_top6">
<div class="about-what-title"> <div class="global-title"><?php print render($content['field_section_title']); ?></div></div>
<div class="clear-both-640-959"></div>
<div class="about-what-bulletgraphic-640-959-1-2"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_1_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-4">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_1_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_1_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-4-->
<div class="about-what-bulletgraphic-640-959-1-6"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_2_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-8">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_2_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_2_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-8-->
<div class="clear-both-640-959 "></div>
<div class="about-what-bulletgraphic-640-959-1-2"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_3_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-4">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_3_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_3_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-4-->
<div class="about-what-bulletgraphic-640-959-1-6"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_4_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-8">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_4_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_4_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-8-->
<div class="clear-both-640-959 "></div>
<div class="about-what-bulletgraphic-640-959-1-2"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_5_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-4">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_5_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_5_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-4-->
<div class="about-what-bulletgraphic-640-959-1-6"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_6_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-8">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_6_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_6_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-8-->
<div class="clear-both-640-959 "></div>
</div> <!-- end about-what-bullet_top6 -->
<div class="clear-both-240-639"></div>
<!--<a href="#" id="togg-link">Click this link to toggle the content displayed below</a>
<div id="togg">
This content will be toggled open and closed using jQuery.
Blah, blah, blah.
</div>-->
<div class="about-what-toggle"><div class="global-button-toggle-layout"><div class ="global-button-toggle"><img src="/sites/default/files/images/global_ellipses.svg" class="center"></div></div></div>
<!--<img src="/sites/default/files/images/about_getintouch-email.svg" class="global-button-center">-->
<!--<div id ="global-toggle-test"><div class = "global-toggle-test"><img src="sites/default/files/global_ellipses.png"></div></div>-->
<!--<div class ="global-button-toggle"><a href="/" id="togg-link"><img src="/sites/default/files/images/global_ellipses.svg" class="center"></a></div>
<div id="togg">-->
<div id = "about-what-bullet_bottom6">
<div class="about-what-bulletgraphic-640-959-1-2"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_7_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-4">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_7_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_7_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-4-->
<div class="about-what-bulletgraphic-640-959-1-6"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_8_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-8">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_8_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_8_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-8-->
<div class="clear-both-640-959 "></div>
<div class="about-what-bulletgraphic-640-959-1-2"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_9_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-4">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_9_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_9_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-4-->
<div class="about-what-bulletgraphic-640-959-1-6"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_10_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-8">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_10_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_10_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-8-->
<div class="clear-both-640-959 "></div>
<div class="about-what-bulletgraphic-640-959-1-2"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_11_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-4">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_11_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_11_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-4-->
<div class="about-what-bulletgraphic-640-959-1-6"><div class="about-what-bulletgraphic-240-639"><div class="about-what-bulletgraphic-all"><img src="/sites/default/files/images/<?php print render($node->field_bullet_image_12_svg['und'][0]['filename']); ?>"></div></div></div>
<div class="about-what-bullet-title-text-block-640-959-1-8">
<div class="about-what-bullet-240-639-title-text-block">
<div class="about-what-bullettitle-all"><?php print render($content['field_bullet_12_title']); ?></div>
<div class="about-what-bullettext-all"><?php print render($content['field_bullet_12_text']); ?></div>
</div><!--end about-what-bullet-240-639-title-text-block-->
</div><!--end about-what-bullet-title-text-block-640-959-1-8-->
<div class="clear-both-640-959 "></div>
</div><!-- end about-what-bullet_bottom6 -->
<?php /*
<div class="about-what-subtitle1"><?php print render($content['field_sub_section_title_1']); ?></div>
<div class="about-what-subgraphic1"><img src="/sites/default/files/images/<?php print render($node->field_graphic_1_svg['und'][0]['filename']); ?>"></div>
<div class="about-what-substatement1"><?php print render($content['field_sub_section_statement_1']); ?></div>
<div class="about-what-subtitle2"><?php print render($content['field_sub_section_title_2']); ?></div>
<div class="about-what-subgraphic1"><img src="/sites/default/files/images/<?php print render($node->field_graphic_2_svg['und'][0]['filename']); ?>"></div>
<br>
<a href="<?php print render($content['field_button_1_link']);?>"><div class="about-what-subbutton1"><div class="global-button-lightteal"> <?php print render($content['field_button_1_text']); ?></div></div></a>
<br><br>
<a href="<?php print render($content['field_button_2_link']);?>"><div class="about-what-subbutton2"><div class="global-button-lightteal"> <?php print render($content['field_button_2_text']); ?></div></div></a>
<br><br>
<div class="about-what-substatement2"><?php print render($content['field_sub_section_statement_2']); ?></div>
<div class="about-what-subsubtitle1"><?php print render($content['field_sub_section_title_3']); ?></div>
<div class="about-what-subsubgraphic1"><img src="/sites/default/files/images/<?php print render($node->field_graphic_3_svg['und'][0]['filename']); ?>"></div>
<div class="about-what-subsubstatement1"><?php print render($content['field_sub_section_statement_3']); ?></div>
<div class="about-what-subsubtitle2"><?php print render($content['field_sub_section_title_4']); ?></div>
<div class="about-what-subsubgraphic2"><img src="/sites/default/files/images/<?php print render($node->field_graphic_4_svg['und'][0]['filename']); ?>"></div>
<div class="about-what-subsubstatement2"><?php print render($content['field_sub_section_statement_4']); ?></div>
*/?>
<?php print render($content['links']); ?>
<?php print render($content['comments']); ?>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment