aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/aggregator-item.tpl.php28
-rw-r--r--templates/block.tpl.php19
-rw-r--r--templates/book-export-html.tpl.php52
-rw-r--r--templates/color-scheme-form.tpl.php81
-rw-r--r--templates/comment.tpl.php35
-rw-r--r--templates/field--taxonomy-term-reference.tpl.php20
-rw-r--r--templates/html.tpl.php24
-rw-r--r--templates/node.tpl.php44
-rw-r--r--templates/page.tpl.php71
-rw-r--r--templates/user-profile-category.tpl.php14
10 files changed, 388 insertions, 0 deletions
diff --git a/templates/aggregator-item.tpl.php b/templates/aggregator-item.tpl.php
new file mode 100644
index 0000000..e2f9262
--- /dev/null
+++ b/templates/aggregator-item.tpl.php
@@ -0,0 +1,28 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for individual aggregator feed item markup.
+ */
+?>
+<article class="feed-item clearfix">
+ <header>
+ <h2 class="title feed-item-title"><a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a></h2>
+ <div class="meta feed-item-meta">
+ <?php if ($source_url) : ?>
+ <a href="<?php print $source_url; ?>" class="feed-item-source"><?php print $source_title; ?></a> &ndash;
+ <?php endif; ?>
+ <span class="feed-item-date"><?php print $source_date; ?></span>
+ <?php if ($categories) : ?>
+ <span class="tags feed-item-categories">
+ <h3 class="field-label"><?php print t('Categories'); ?>:</h3> <?php print implode(', ', $categories); ?>
+ </span>
+ <?php endif ;?>
+ </div>
+ </header>
+ <?php if ($content) : ?>
+ <div class="content clearfix feed-item-body">
+ <?php print $content; ?>
+ </div>
+<?php endif; ?>
+</article>
diff --git a/templates/block.tpl.php b/templates/block.tpl.php
new file mode 100644
index 0000000..1988183
--- /dev/null
+++ b/templates/block.tpl.php
@@ -0,0 +1,19 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for blocks.
+ */
+?>
+<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
+ <div class="inner">
+ <?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>
+</div>
diff --git a/templates/book-export-html.tpl.php b/templates/book-export-html.tpl.php
new file mode 100644
index 0000000..6ba438f
--- /dev/null
+++ b/templates/book-export-html.tpl.php
@@ -0,0 +1,52 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Default theme implementation for printed version of book outline.
+ *
+ * Available variables:
+ * - $title: Top level node title.
+ * - $head: Header tags.
+ * - $language: Language code. e.g. "en" for english.
+ * - $language_rtl: TRUE or FALSE depending on right to left language scripts.
+ * - $base_url: URL to home page.
+ * - $contents: Nodes within the current outline rendered through
+ * book-node-export-html.tpl.php.
+ *
+ * @see template_preprocess_book_export_html()
+ */
+ global $theme_path;
+?>
+<!DOCTYPE html>
+<html lang="<?php print $language->language; ?>" dir="<?php print $language_rtl ? 'rtl' : 'ltr' ; ?>">
+<head>
+ <?php print $head; ?>
+ <title><?php print $title; ?></title>
+ <base href="<?php print $base_url; ?>" />
+ <link type="text/css" rel="stylesheet" href="<?php print $theme_path; ?>/css/print.css" />
+ <?php if ($language_rtl): ?>
+ <link type="text/css" rel="stylesheet" href="<?php print $theme_path; ?>/css/print-rtl.css" />
+ <?php endif; ?>
+ </head>
+ <body>
+ <?php
+ /**
+ * The given node is /embedded to its absolute depth in a top level
+ * section/. For example, a child node with depth 2 in the hierarchy is
+ * contained in (otherwise empty) &lt;div&gt; elements corresponding to
+ * depth 0 and depth 1. This is intended to support WYSIWYG output - e.g.,
+ * level 3 sections always look like level 3 sections, no matter their
+ * depth relative to the node selected to be exported as printer-friendly
+ * HTML.
+ */
+ $div_close = '';
+ ?>
+ <?php for ($i = 1; $i < $depth; $i++) : ?>
+ <section class="section-<?php print $i; ?>">
+ <?php $div_close .= '</section>'; ?>
+ <?php endfor; ?>
+ <?php print $contents; ?>
+ <?php print $div_close; ?>
+ </body>
+</html>
diff --git a/templates/color-scheme-form.tpl.php b/templates/color-scheme-form.tpl.php
new file mode 100644
index 0000000..8ebe7dd
--- /dev/null
+++ b/templates/color-scheme-form.tpl.php
@@ -0,0 +1,81 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for the color scheme form.
+ */
+?>
+<?php $form['scheme']['#title'] = t('Color scheme'); ?>
+<?php print render($form['scheme']); ?>
+<div class="color-form clearfix">
+ <div id="palette">
+ <div class="grid-6 alpha">
+ <fieldset>
+ <legend><span class="fieldset-legend"><?php print t('Base colors') ?></span></legend>
+ <div class="fieldset-wrapper">
+ <?php print render($form['palette']['page_background']); ?>
+ <?php print render($form['palette']['text']); ?>
+ <?php print render($form['palette']['link']); ?>
+ <?php print render($form['palette']['link_hover']); ?>
+ </div>
+ </fieldset>
+ <fieldset>
+ <legend><span class="fieldset-legend"><?php print t('Titles') ?></span></legend>
+ <div class="fieldset-wrapper">
+ <?php print render($form['palette']['site_name']); ?>
+ <?php print render($form['palette']['site_slogan']); ?>
+ <?php print render($form['palette']['title_page']); ?>
+ <?php print render($form['palette']['title_block']); ?>
+ <?php print render($form['palette']['title_linked']); ?>
+ </div>
+ </fieldset>
+ <fieldset>
+ <legend><span class="fieldset-legend"><?php print t('Main navigation') ?></span></legend>
+ <div class="fieldset-wrapper">
+ <?php print render($form['palette']['navigation_background']); ?>
+ <?php print render($form['palette']['navigation_foreground']); ?>
+ </div>
+ </fieldset>
+ <fieldset>
+ <legend><span class="fieldset-legend"><?php print t('Footer') ?></span></legend>
+ <div class="fieldset-wrapper">
+ <?php print render($form['palette']['footer_background']); ?>
+ <?php print render($form['palette']['footer_foreground']); ?>
+ <?php print render($form['palette']['footer_links']); ?>
+ <?php print render($form['palette']['footer_links_hover']); ?>
+ </div>
+ </fieldset>
+ </div>
+
+ <div class="grid-6 push-4 omega">
+ <fieldset>
+ <legend><span class="fieldset-legend"><?php print t('Header') ?></span></legend>
+ <div class="fieldset-wrapper">
+ <?php print render($form['palette']['header_foreground']); ?>
+ <?php print render($form['palette']['header_links']); ?>
+ <?php print render($form['palette']['header_links_hover']); ?>
+ </div>
+ </fieldset>
+ <fieldset>
+ <legend><span class="fieldset-legend"><?php print t('Tab navigation') ?></span></legend>
+ <div class="fieldset-wrapper">
+ <?php print render($form['palette']['tab_background']); ?>
+ <?php print render($form['palette']['tab_foreground']); ?>
+ <?php print render($form['palette']['tab_background_active']); ?>
+ <?php print render($form['palette']['tab_foreground_active']); ?>
+ </div>
+ </fieldset>
+ <fieldset>
+ <legend><span class="fieldset-legend"><?php print t('Node/comment links') ?></span></legend>
+ <div class="fieldset-wrapper">
+ <?php print render($form['palette']['node_links_background']); ?>
+ <?php print render($form['palette']['node_links_foreground']); ?>
+ <?php print render($form['palette']['node_links_background_hover']); ?>
+ <?php print render($form['palette']['node_links_foreground_hover']); ?>
+ </div>
+ </fieldset>
+ </div>
+ </div>
+</div>
+<?php print drupal_render_children($form); ?>
+<?php print $preview; ?> \ No newline at end of file
diff --git a/templates/comment.tpl.php b/templates/comment.tpl.php
new file mode 100644
index 0000000..7fde166
--- /dev/null
+++ b/templates/comment.tpl.php
@@ -0,0 +1,35 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for comments.
+ */
+?>
+<?php hide($content['links']); ?>
+<article class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
+ <div class="inner">
+ <header>
+ <?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; ?> <span><?php print $permalink; ?></span></h3>
+ <?php print render($title_suffix); ?>
+ <p class="meta"><?php print $submitted; ?></p>
+ </header>
+ <div class="content"<?php print $content_attributes; ?>>
+ <?php print render($content); ?>
+ <?php if ($signature): ?>
+ <aside class="user-signature clearfix">
+ <?php print $signature; ?>
+ </aside>
+ <?php endif; ?>
+ </div>
+ <?php if ($content['links']): ?>
+ <footer>
+ <div class="links comment-links">
+ <?php print render($content['links']) ?>
+ </div>
+ </footer>
+ <?php endif; ?>
+ </div>
+</article> \ No newline at end of file
diff --git a/templates/field--taxonomy-term-reference.tpl.php b/templates/field--taxonomy-term-reference.tpl.php
new file mode 100644
index 0000000..b5eb1e9
--- /dev/null
+++ b/templates/field--taxonomy-term-reference.tpl.php
@@ -0,0 +1,20 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for taxonomy term reference fields.
+ */
+?>
+<div class="<?php print $classes; ?>"<?php print $attributes; ?>>
+ <?php if (!$label_hidden) : ?>
+ <h3 class="field-label"<?php print $title_attributes; ?>><?php print $label ?>&nbsp;</h3>
+ <?php endif; ?>
+ <span class="field-items"<?php print $content_attributes; ?>>
+ <?php $num_fields = count($items); ?>
+ <?php $i = 1; ?>
+ <?php foreach ($items as $delta => $item) : ?>
+ <?php print render($item); ?><?php $i != $num_fields ? print ', ' : ''; ?>
+ <?php $i++; ?>
+ <?php endforeach; ?>
+ </span>
+</div>
diff --git a/templates/html.tpl.php b/templates/html.tpl.php
new file mode 100644
index 0000000..7658f21
--- /dev/null
+++ b/templates/html.tpl.php
@@ -0,0 +1,24 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for main HTML page wrapper.
+ */
+?><!DOCTYPE html>
+<html version="HTML+RDFa 1.0" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" xmlns="http://www.w3.org/1999/xhtml"<?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; ?>
+ <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+</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> \ No newline at end of file
diff --git a/templates/node.tpl.php b/templates/node.tpl.php
new file mode 100644
index 0000000..64fca2a
--- /dev/null
+++ b/templates/node.tpl.php
@@ -0,0 +1,44 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for nodes.
+ */
+
+hide($content['comments']);
+hide($content['links']);
+?>
+<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
+ <?php print render($title_prefix); ?>
+ <?php if(!empty($user_picture) || !$page || (!empty($submitted) && $display_submitted)): ?>
+ <header class="clearfix<?php $user_picture ? print ' with-picture' : ''; ?>">
+ <?php print $user_picture; ?>
+ <?php if (!$page): ?>
+ <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
+ <?php endif; ?>
+ <?php if ($display_submitted): ?>
+ <span class="meta" role="contentinfo"><?php print $submitted; ?></span>
+ <?php endif; ?>
+ <?php if (!empty($content['field_tags'])): ?>
+ <?php print render($content['field_tags']); ?>
+ <?php endif; ?>
+ </header>
+ <?php endif; ?>
+ <?php print render($title_suffix); ?>
+ <div class="content clearfix">
+ <?php print render($content); ?>
+ </div>
+ <?php if (!empty($content['links'])): ?>
+ <footer>
+ <nav class="links">
+ <?php print render($content['links']); ?>
+ </nav>
+ </footer>
+ <?php endif; ?>
+</article>
+
+<?php if ($content['comments'] && $page): ?>
+<section class="comments">
+ <?php print render($content['comments']); ?>
+</section>
+<?php endif; ?> \ No newline at end of file
diff --git a/templates/page.tpl.php b/templates/page.tpl.php
new file mode 100644
index 0000000..7d2ea56
--- /dev/null
+++ b/templates/page.tpl.php
@@ -0,0 +1,71 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for main HTML page content.
+ */
+?>
+<div id="container" class="container-16">
+ <header id="header" class="section section-header clearfix" role="banner">
+ <?php if ($site_name || $site_slogan || $logo): ?>
+ <hgroup class="grid-10">
+ <?php if ($site_name): ?>
+ <h1 class="site-name"><a title="<?php print t('Home'); ?>" rel="home" href="<?php print $front_page; ?>"><?php print $site_name; ?></a></h1>
+ <?php endif; ?>
+ <?php if ($logo): ?>
+ <a title="<?php print t('Home'); ?>" rel="home" href="<?php print $front_page; ?>"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>"/></a>
+ <?php endif; ?>
+ <?php if ($site_slogan): ?>
+ <h2 class="site-slogan"><?php print $site_slogan; ?></h2>
+ <?php endif; ?>
+ </hgroup>
+ <?php endif; ?>
+ <?php print render($page['header']); ?>
+ <?php print render($page['navigation']); ?>
+ </header>
+ <?php print render($page['highlighted']); ?>
+ <div id="main" class="section section-main clearfix" role="main">
+ <div id="content" class="column <?php print $content_grid_classes; ?>">
+ <div class="inner">
+ <?php print $messages; ?>
+ <?php print render($title_prefix); ?>
+ <?php if ($title): ?>
+ <h1 class="title" id="page-title"><?php print $title; ?></h1>
+ <?php endif; ?>
+ <?php print render($title_suffix); ?>
+ <?php print render($page['help']); ?>
+ <?php if ($tabs = render($tabs)): ?>
+ <div class="tabs"><?php print $tabs; ?></div>
+ <?php endif; ?>
+ <?php if ($action_links): ?>
+ <ul class="action-links"><?php print render($action_links); ?></ul>
+ <?php endif; ?>
+ <div id="main-content" class="clearfix">
+ <?php print render($page['content']); ?>
+ </div>
+ <?php print $feed_icons; ?>
+ </div>
+ </div>
+ <?php if ($sidebar_first = render($page['sidebar_first'])): ?>
+ <div id="sidebar-first" class="sidebar <?php print $sidebar_first_grid_classes; ?>">
+ <?php print $sidebar_first; ?>
+ </div>
+ <?php endif; ?>
+ <?php if ($sidebar_second = render($page['sidebar_second'])): ?>
+ <div id="sidebar-second" class="sidebar <?php print $sidebar_second_grid_classes; ?>">
+ <?php print $sidebar_second; ?>
+ </div>
+ <?php endif; ?>
+ </div>
+ <?php print $breadcrumb; ?>
+ <footer id="footer" class="section section-footer clearfix" role="footer">
+ <?php print render($page['footer']); ?>
+ <?php print render($page['copyright']); ?>
+ </footer>
+</div>
+<?php if ($collapsible = render($page['collapsible'])): ?>
+ <section id="section-collapsible" class="section section-collapsible clearfix">
+ <h2 class="collapsible-toggle"><a href="#"><?php print t('Toggle collapsible region'); ?></a></h2>
+ <?php print $collapsible; ?>
+ </section>
+<?php endif; ?> \ No newline at end of file
diff --git a/templates/user-profile-category.tpl.php b/templates/user-profile-category.tpl.php
new file mode 100644
index 0000000..e66ba19
--- /dev/null
+++ b/templates/user-profile-category.tpl.php
@@ -0,0 +1,14 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for user profile categories.
+ */
+?>
+<?php if ($title) : ?>
+ <h2><?php print $title; ?></h2>
+<?php endif; ?>
+
+<dl<?php print $attributes; ?>>
+ <?php print $profile_items; ?>
+</dl>