summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Axelsson2012-07-05 08:32:23 (GMT)
committerMattias Axelsson2012-07-05 08:32:23 (GMT)
commitf64ae1f25a0b0af9ce6e5b7772feb12a22507e13 (patch)
tree504b8c727b14305b4fdfe779c2654fab85604669
parenta1f4f7537ada0d38b97ae59b1b4eecbc084614b1 (diff)
Added documentation.7.x-2.0-alpha1
-rw-r--r--README.txt3
-rw-r--r--block.tpl.php11
-rw-r--r--comment-wrapper.tpl.php11
-rw-r--r--comment.tpl.php11
-rw-r--r--html.tpl.php12
-rw-r--r--node.tpl.php11
-rw-r--r--page.tpl.php15
-rw-r--r--template.php4
8 files changed, 75 insertions, 3 deletions
diff --git a/README.txt b/README.txt
index 7f28b25..d360941 100644
--- a/README.txt
+++ b/README.txt
@@ -5,7 +5,8 @@ The main purpose of the Simple Clean Theme is for it to be simple to get a clean
Simple Clean is a two column fixed design (optimized for width 960px). The content column have width 610px and right column (sidebar) have width 260px.
-Changes from for 7.x-1.x
+
+Changes from 7.x-1.x
---------------------------------------
* Mission statement is removed from theme settings. For a mission statement. Place a block in the Region Highlighted with a H1 for mission statement.
* Formating of search results is removed. Use a module like Search Config (http://drupal.org/project/search_config) for more options.
diff --git a/block.tpl.php b/block.tpl.php
index 81b7621..30d78d7 100644
--- a/block.tpl.php
+++ b/block.tpl.php
@@ -1,3 +1,14 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation to display a block.
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_block()
+ * @see template_process()
+ */
+?>
<?php $tag = $block->subject ? 'section' : 'div'; ?>
<<?php print $tag; ?> id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
diff --git a/comment-wrapper.tpl.php b/comment-wrapper.tpl.php
index 6dce715..2af7c3c 100644
--- a/comment-wrapper.tpl.php
+++ b/comment-wrapper.tpl.php
@@ -1,3 +1,14 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation to wrap comments
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_node()
+ * @see template_process()
+ */
+?>
<section id="comments" class="<?php print $classes; ?>"<?php print $attributes; ?>>
<?php if ($content['comments'] && $node->type != 'forum'): ?>
<?php print render($title_prefix); ?>
diff --git a/comment.tpl.php b/comment.tpl.php
index 7795854..099f449 100644
--- a/comment.tpl.php
+++ b/comment.tpl.php
@@ -1,3 +1,14 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation to display a comment
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_node()
+ * @see template_process()
+ */
+?>
<article class="<?php print $classes . ' ' . $zebra; ?> clearfix"<?php print $attributes; ?>>
<header>
diff --git a/html.tpl.php b/html.tpl.php
index 012670c..f588fe3 100644
--- a/html.tpl.php
+++ b/html.tpl.php
@@ -1,4 +1,14 @@
-<?php print $doctype; ?>
+<?php
+
+/**
+ * @file
+ * Default theme implementation to display the basic html structure
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_html()
+ * @see template_process()
+ */
+?><?php print $doctype; ?>
<html lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"<?php if ($rdf->version): ?><?php print " " . $rdf->version . $rdf->namespaces; ?><?php endif; ?>>
<head<?php print $rdf->profile; ?>>
<?php print $head; ?>
diff --git a/node.tpl.php b/node.tpl.php
index 37157d5..0eca422 100644
--- a/node.tpl.php
+++ b/node.tpl.php
@@ -1,3 +1,14 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation to display a node.
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_node()
+ * @see template_process()
+ */
+?>
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
<?php if (!$page || $display_submitted): ?>
diff --git a/page.tpl.php b/page.tpl.php
index 6c5ab30..d44a9a8 100644
--- a/page.tpl.php
+++ b/page.tpl.php
@@ -1,3 +1,18 @@
+<?php
+
+/**
+ * @file
+ * Theme implementation to display a single Drupal page.
+ *
+ * The doctype, html, head and body tags are not in this template. Instead they
+ * can be found in the html.tpl.php template
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_page()
+ * @see template_process()
+ * @see html.tpl.php
+ */
+?>
<div id="wrap">
<header id="header" role="banner">
<?php if ($page['header']): ?>
diff --git a/template.php b/template.php
index 5e92de0..418c031 100644
--- a/template.php
+++ b/template.php
@@ -1,4 +1,5 @@
<?php
+
/**
* @file
* Contains theme preprocess functions
@@ -14,7 +15,8 @@ function simpleclean_preprocess_html(&$vars) {
$vars['rdf']->version = 'version="HTML+RDFa 1.1"';
$vars['rdf']->namespaces = $vars['rdf_namespaces'];
$vars['rdf']->profile = ' profile="' . $vars['grddl_profile'] . '"';
- } else {
+ }
+ else {
$vars['doctype'] = '<!DOCTYPE html>' . "\n";
$vars['rdf']->version = '';
$vars['rdf']->namespaces = '';