diff options
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates')
3 files changed, 262 insertions, 0 deletions
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/README.txt b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/README.txt new file mode 100644 index 000000000..7036c602a --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/README.txt @@ -0,0 +1,100 @@ +TEMPLATES +--------- + +Drupal 7 contains the following template files which you can override and modify +by copying them to your sub-theme. + +The Zen theme overrides a handful of Drupal's templates. In order to override +those templates, you should copy them from the zen/templates folder to your +sub-theme's templates folder. + +As always, when adding a new template file to your sub-theme, you will need to +rebuild the "theme registry" in order for Drupal to see it. For more info, see: + https://drupal.org/node/173880#theme-registry + +Located in zen/templates: + html.tpl.php + page.tpl.php + maintenance-page.tpl.php + node.tpl.php + region.tpl.php + region--footer.tpl.php + region--sidebar.tpl.php + region--no-wrapper.tpl.php + block.tpl.php + block--no-wrapper.tpl.php + comment-wrapper.tpl.php + comment.tpl.php + user-picture.tpl.php + +Located in /modules/aggregator: + aggregator-feed-source.tpl.php + aggregator-item.tpl.php + aggregator-summary-item.tpl.php + aggregator-summary-items.tpl.php + aggregator-wrapper.tpl.php + +Located in /modules/block: + block.tpl.php (overridden by Zen) + block-admin-display-form.tpl.php + +Located in /modules/book: + book-all-books-block.tpl.php + book-export-html.tpl.php + book-navigation.tpl.php + book-node-export-html.tpl.php + +Located in /modules/comment: + comment-wrapper.tpl.php (overridden by Zen) + comment.tpl.php (overridden by Zen) + +Located in /modules/field/theme: + field.tpl.php (not used; core uses theme_field() instead) + +Located in /modules/forum: + forum-icon.tpl.php + forum-list.tpl.php + forum-submitted.tpl.php + forum-topic-list.tpl.php + forums.tpl.php + +Located in /modules/node: + node.tpl.php (overridden by Zen) + +Located in /modules/overlay: + overlay.tpl.php + +Located in /modules/poll: + poll-bar--block.tpl.php + poll-bar.tpl.php + poll-results--block.tpl.php + poll-results.tpl.php + poll-vote.tpl.php + +Located in /modules/profile: + profile-block.tpl.php + profile-listing.tpl.php + profile-wrapper.tpl.php + +Located in /modules/search: + search-block-form.tpl.php + search-result.tpl.php + search-results.tpl.php + +Located in /modules/system: + html.tpl.php (overridden by Zen) + maintenance-page.tpl.php (overridden by Zen) + page.tpl.php (overridden by Zen) + region.tpl.php (overridden by Zen) + +Located in /modules/taxonomy: + taxonomy-term.tpl.php + +Located in /modules/toolbar: + toolbar.tpl.php + +Located in /modules/user: + user-picture.tpl.php (overridden by Zen) + user-profile-category.tpl.php + user-profile-item.tpl.php + user-profile.tpl.php diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php new file mode 100644 index 000000000..b96ee146f --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php @@ -0,0 +1,43 @@ +<?php +/** + * @file + * Returns the HTML for a node. + * + * Complete documentation for this file is available online. + * @see https://drupal.org/node/1728164 + */ +?> +<article class="node-<?php print $node->nid; ?> <?php print $classes; ?> clearfix"<?php print $attributes; ?>> + + <?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || !$page && $title): ?> + <header> + <?php print render($title_prefix); ?> + <?php if (!$page && $title): ?> + <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2> + <?php endif; ?> + <?php print render($title_suffix); ?> + + <?php if ($display_submitted): ?> + <p class="submitted"> + <?php print $user_picture; ?> + <?php print $submitted; ?> + </p> + <?php endif; ?> + <?php if ($unpublished): ?> + <mark class="unpublished"><?php print t('Unpublished'); ?></mark> + <?php endif; ?> + </header> + <?php endif; ?> + + <?php + // We hide the comments and links now so that we can render them later. + hide($content['comments']); + hide($content['links']); + print render($content); + ?> + + <?php print render($content['links']); ?> + + <?php print render($content['comments']); ?> + +</article> diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/page.tpl.php b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/page.tpl.php new file mode 100644 index 000000000..644fd9c08 --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/page.tpl.php @@ -0,0 +1,119 @@ +<?php +/** + * @file + * Returns the HTML for a single Drupal page. + * + * Complete documentation for this file is available online. + * @see https://drupal.org/node/1728148 + */ +?> + +<div id="page"> + <?php print $messages; ?> + + <header class="header" id="header" role="banner"> + + <?php if ($logo): ?> + <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" class="header__logo" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" class="header__logo-image" /></a> + <?php endif; ?> + + <?php if ($site_name || $site_slogan): ?> + <div class="header__name-and-slogan" id="name-and-slogan"> + <?php if ($site_name): ?> + <h1 class="header__site-name" id="site-name"> + <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" class="header__site-link" rel="home"><span><?php print $site_name; ?></span></a> + </h1> + <?php endif; ?> + + <?php if ($site_slogan): ?> + <div class="header__site-slogan" id="site-slogan"><?php print $site_slogan; ?></div> + <?php endif; ?> + </div> + <?php endif; ?> + + <?php if ($secondary_menu): ?> + <nav class="header__secondary-menu" id="secondary-menu" role="navigation"> + <?php print theme('links__system_secondary_menu', array( + 'links' => $secondary_menu, + 'attributes' => array( + 'class' => array('links', 'inline', 'clearfix'), + ), + 'heading' => array( + 'text' => $secondary_menu_heading, + 'level' => 'h2', + 'class' => array('element-invisible'), + ), + )); ?> + </nav> + <?php endif; ?> + + <?php print render($page['header']); ?> + + </header> + <?php print render($tabs); ?> + + <div id="main"> + <div id="content" class="column" role="main"> + <?php print render($page['highlighted']); ?> + <?php print $breadcrumb; ?> + <a id="main-content"></a> + <?php print render($title_prefix); ?> + <?php if ($title): ?> + <h1 class="page__title title" id="page-title"><?php print $title; ?></h1> + <?php endif; ?> + <?php print render($title_suffix); ?> + <?php print render($page['help']); ?> + <?php if ($action_links): ?> + <ul class="action-links"><?php print render($action_links); ?></ul> + <?php endif; ?> + <?php print render($page['content']); ?> + <?php print $feed_icons; ?> + </div> + + <div id="navigation"> + + <?php if ($main_menu): ?> + <nav id="main-menu" role="navigation" tabindex="-1"> + <?php + // This code snippet is hard to modify. We recommend turning off the + // "Main menu" on your sub-theme's settings form, deleting this PHP + // code block, and, instead, using the "Menu block" module. + // @see https://drupal.org/project/menu_block + print theme('links__system_main_menu', array( + 'links' => $main_menu, + 'attributes' => array( + 'class' => array('links', 'inline', 'clearfix'), + ), + 'heading' => array( + 'text' => t('Main menu'), + 'level' => 'h2', + 'class' => array('element-invisible'), + ), + )); ?> + </nav> + <?php endif; ?> + + <?php print render($page['navigation']); ?> + + </div> + + <?php + // Render the sidebars to see if there's anything in them. + $sidebar_first = render($page['sidebar_first']); + $sidebar_second = render($page['sidebar_second']); + ?> + + <?php if ($sidebar_first || $sidebar_second): ?> + <aside class="sidebars"> + <?php print $sidebar_first; ?> + <?php print $sidebar_second; ?> + </aside> + <?php endif; ?> + + </div> + + <?php print render($page['footer']); ?> + +</div> + +<?php print render($page['bottom']); ?> |