Skip to content

Commit

Permalink
Merge pull request #135 from misd-service-development/shorthand_templ…
Browse files Browse the repository at this point in the history
…ates

Shorthand templates
  • Loading branch information
JeebsUK authored May 5, 2022
2 parents d073709 + 4a17358 commit c4cc0bd
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ Changelog

Note: the theme contains the University's house style assets (CSS, images, JavaScript). For the sake of completeness, all updates to these are also listed below.

7.x-1.19

* Added a template file to allow Shorthand content to work without the need to add templates to the Drupal module, which is against best practice.

7.x-1.18

* The main purpose of this release is to update the footer links to match the new version as seen in the "Experimental Home Page" on www.cam.ac.uk.

7.x-1.11

Latest release of the theme, primarily to resolve some existing accessibility issues with Project Light.
Expand Down
2 changes: 1 addition & 1 deletion cambridge_theme.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = University of Cambridge
description = The University of Cambridge's house style.
core = 7.x
engine = phptemplate
version = 1.18
version = 1.19

stylesheets[all][] = "css/full-stylesheet.css"
stylesheets[all][] = "css/drupal.css"
Expand Down
33 changes: 33 additions & 0 deletions templates/page--shorthand-story.tpl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* @filesource page.tpl.php
*
* @file
* Zen theme's implementation to display a single Drupal page.
*
* @see template_preprocess()
* @see template_preprocess_page()
* @see zen_preprocess_page()
* @see template_process()
*/
?>
<div id="page">
<!-- CONTENT -->
<div id="main" class="cam-row cam-content cam-recessed-content">
<div class="clearfix">
<div id="content" class="<?php print isset($column) ? "{$column} " : ''; ?>cam-main-content" role="main">
<a id="main-content"></a>
<?php print $messages; ?>
<?php print render($tabs); ?>
<?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><!-- /#content -->
</div>
</div> <!-- CONTENT -->

</div><!-- /#page -->
<?php print render($page['bottom']); ?>

0 comments on commit c4cc0bd

Please sign in to comment.