-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 100f121
Showing
16 changed files
with
2,140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Default theme implementation to display a block. | ||
* | ||
* Available variables: | ||
* - $block->subject: Block title. | ||
* - $content: Block content. | ||
* - $block->module: Module that generated the block. | ||
* - $block->delta: An ID for the block, unique within each module. | ||
* - $block->region: The block region embedding the current block. | ||
* - $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: | ||
* - block: The current template type, i.e., "theming hook". | ||
* - block-[module]: The module generating the block. For example, the user | ||
* module is responsible for handling the default user navigation block. In | ||
* that case the class would be 'block-user'. | ||
* - $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. | ||
* | ||
* Helper variables: | ||
* - $classes_array: Array of html class attribute values. It is flattened | ||
* into a string within the variable $classes. | ||
* - $block_zebra: Outputs 'odd' and 'even' dependent on each block region. | ||
* - $zebra: Same output as $block_zebra but independent of any block region. | ||
* - $block_id: Counter dependent on each block region. | ||
* - $id: Same output as $block_id but independent of any block region. | ||
* - $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. | ||
* - $block_html_id: A valid HTML ID and guaranteed unique. | ||
* | ||
* @see template_preprocess() | ||
* @see template_preprocess_block() | ||
* @see template_process() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
?> | ||
<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>> | ||
|
||
<?php print render($title_prefix); ?> | ||
<?php if ($block->subject): ?> | ||
<h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2> | ||
<?php endif;?> | ||
<?php print render($title_suffix); ?> | ||
|
||
<div class="content"<?php print $content_attributes; ?>> | ||
<?php print $content ?> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Default theme implementation for comments. | ||
* | ||
* Available variables: | ||
* - $author: Comment author. Can be link or plain text. | ||
* - $content: An array of comment 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. | ||
* - $created: Formatted date and time for when the comment was created. | ||
* Preprocess functions can reformat it by calling format_date() with the | ||
* desired parameters on the $comment->created variable. | ||
* - $changed: Formatted date and time for when the comment was last changed. | ||
* Preprocess functions can reformat it by calling format_date() with the | ||
* desired parameters on the $comment->changed variable. | ||
* - $new: New comment marker. | ||
* - $permalink: Comment permalink. | ||
* - $submitted: Submission information created from $author and $created during | ||
* template_preprocess_comment(). | ||
* - $picture: Authors picture. | ||
* - $signature: Authors signature. | ||
* - $status: Comment status. Possible values are: | ||
* comment-unpublished, comment-published or comment-preview. | ||
* - $title: Linked title. | ||
* - $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: | ||
* - comment: The current template type, i.e., "theming hook". | ||
* - comment-by-anonymous: Comment by an unregistered user. | ||
* - comment-by-node-author: Comment by the author of the parent node. | ||
* - comment-preview: When previewing a new or edited comment. | ||
* The following applies only to viewers who are registered users: | ||
* - comment-unpublished: An unpublished comment visible only to administrators. | ||
* - comment-by-viewer: Comment by the user currently viewing the page. | ||
* - comment-new: New comment since last the visit. | ||
* - $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. | ||
* | ||
* These two variables are provided for context: | ||
* - $comment: Full comment object. | ||
* - $node: Node object the comments are attached to. | ||
* | ||
* Other variables: | ||
* - $classes_array: Array of html class attribute values. It is flattened | ||
* into a string within the variable $classes. | ||
* | ||
* @see template_preprocess() | ||
* @see template_preprocess_comment() | ||
* @see template_process() | ||
* @see theme_comment() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
?> | ||
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> | ||
<?php print $picture ?> | ||
|
||
<?php if ($new): ?> | ||
<span class="new"><?php print $new ?></span> | ||
<?php endif; ?> | ||
|
||
<?php print render($title_prefix); ?> | ||
<h3<?php print $title_attributes; ?>><?php print $title ?></h3> | ||
<?php print render($title_suffix); ?> | ||
|
||
<div class="submitted"> | ||
<?php print $permalink; ?> | ||
<?php print $submitted; ?> | ||
</div> | ||
|
||
<div class="content"<?php print $content_attributes; ?>> | ||
<?php | ||
// We hide the comments and links now so that we can render them later. | ||
hide($content['links']); | ||
print render($content); | ||
?> | ||
<?php if ($signature): ?> | ||
<div class="user-signature clearfix"> | ||
<?php print $signature ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
|
||
<?php print render($content['links']) ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name = davepietro | ||
description = theme for davepietro.com. | ||
core = 7.x | ||
stylesheets[all][] = style.css | ||
regions[header] = Header | ||
regions[navigation] = Navigation | ||
regions[content] = Content | ||
regions[content-col1] = Content Column 1 | ||
regions[content-col2] = Content Column 2 | ||
regions[highlighted] = Highlighted | ||
regions[footer] = Footer | ||
regions[footer-col1] = Footer Column 1 | ||
regions[footer-col2] = Footer Column 2 | ||
regions[footer-col3] = Footer Column 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Default theme implementation to display the basic html structure of a single | ||
* Drupal page. | ||
* | ||
* Variables: | ||
* - $css: An array of CSS files for the current page. | ||
* - $language: (object) The language the site is being displayed in. | ||
* $language->language contains its textual representation. | ||
* $language->dir contains the language direction. It will either be 'ltr' or 'rtl'. | ||
* - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document. | ||
* - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data. | ||
* - $head_title: A modified version of the page title, for use in the TITLE | ||
* tag. | ||
* - $head_title_array: (array) An associative array containing the string parts | ||
* that were used to generate the $head_title variable, already prepared to be | ||
* output as TITLE tag. The key/value pairs may contain one or more of the | ||
* following, depending on conditions: | ||
* - title: The title of the current page, if any. | ||
* - name: The name of the site. | ||
* - slogan: The slogan of the site, if any, and if there is no title. | ||
* - $head: Markup for the HEAD section (including meta tags, keyword tags, and | ||
* so on). | ||
* - $styles: Style tags necessary to import all CSS files for the page. | ||
* - $scripts: Script tags necessary to load the JavaScript files and settings | ||
* for the page. | ||
* - $page_top: Initial markup from any modules that have altered the | ||
* page. This variable should always be output first, before all other dynamic | ||
* content. | ||
* - $page: The rendered page content. | ||
* - $page_bottom: Final closing markup from any modules that have altered the | ||
* page. This variable should always be output last, after all other dynamic | ||
* content. | ||
* - $classes String of classes that can be used to style contextually through | ||
* CSS. | ||
* | ||
* @see template_preprocess() | ||
* @see template_preprocess_html() | ||
* @see template_process() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" | ||
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>> | ||
|
||
<head profile="<?php print $grddl_profile; ?>"> | ||
<?php print $head; ?> | ||
<title><?php print $head_title; ?></title> | ||
<?php print $styles; ?> | ||
<?php print $scripts; ?> | ||
</head> | ||
<body class="<?php print $classes; ?>" <?php print $attributes;?>> | ||
|
||
<div id="skip-link"> | ||
<a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a> | ||
</div> | ||
<?php print $page_top; ?> | ||
<?php print $page; ?> | ||
<?php print $page_bottom; ?> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?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; for example, "theming hook". | ||
* - node-[type]: The current node type. For example, if the node is a | ||
* "Blog entry" it would result in "node-blog". 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; for example, story, page, blog, 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; for example, "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; for example, $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; for example, $node->body['en'], thus overriding any | ||
* language negotiation rule that was previously applied. | ||
* | ||
* @see template_preprocess() | ||
* @see template_preprocess_node() | ||
* @see template_process() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
?> | ||
|
||
<div class="clear"></div> | ||
|
||
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> | ||
<?php if ($display_submitted): ?> | ||
<div class="submitted"> | ||
<?php print $submitted; ?> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<div class="content"<?php print $content_attributes; ?>> | ||
<?php print render($title_prefix); ?> | ||
<h2<?php print $title_attributes; ?>><span><?php print $title; ?></span></h2> | ||
<?php print render($title_suffix); ?> | ||
<?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> | ||
|
||
<?php print render($content['links']); ?> | ||
|
||
<?php print render($content['comments']); ?> | ||
|
||
</div> |
Oops, something went wrong.