From 485f8eb3e0d48ba5bd54ff83dcc3d64904a46a9e Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Mon, 17 Feb 2014 11:18:50 +1300 Subject: [PATCH] MDL-44203 theme_formfactor: unified @package use and improved coding style --- theme/formfactor/layout/embedded.php | 26 +++++++++++++++++++++++++- theme/formfactor/layout/frontpage.php | 22 ++++++++++++++++++++++ theme/formfactor/layout/general.php | 22 ++++++++++++++++++++++ theme/formfactor/version.php | 6 +++--- 4 files changed, 72 insertions(+), 4 deletions(-) diff --git a/theme/formfactor/layout/embedded.php b/theme/formfactor/layout/embedded.php index a802fbbae71..b010c8984f1 100644 --- a/theme/formfactor/layout/embedded.php +++ b/theme/formfactor/layout/embedded.php @@ -1,4 +1,28 @@ -doctype() ?> +. + +/** + * The embedded layout for the FormFactor theme. + * + * @package theme_formfactor + * @copyright 2010 Patrick Malley + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +echo $OUTPUT->doctype() ?> htmlattributes() ?>> <?php echo $PAGE->title ?> diff --git a/theme/formfactor/layout/frontpage.php b/theme/formfactor/layout/frontpage.php index ca4db095354..857a7ff7855 100644 --- a/theme/formfactor/layout/frontpage.php +++ b/theme/formfactor/layout/frontpage.php @@ -1,4 +1,26 @@ . + +/** + * The frontpage layout for the FormFactor theme. + * + * @package theme_formfactor + * @copyright 2010 Patrick Malley + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT); $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT); diff --git a/theme/formfactor/layout/general.php b/theme/formfactor/layout/general.php index b304ef12714..486e9eff13c 100644 --- a/theme/formfactor/layout/general.php +++ b/theme/formfactor/layout/general.php @@ -1,4 +1,26 @@ . + +/** + * The default layout for the FormFactor theme. + * + * @package theme_formfactor + * @copyright 2010 Patrick Malley + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ $hasheading = ($PAGE->heading); $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); diff --git a/theme/formfactor/version.php b/theme/formfactor/version.php index ab9ae058fb0..356a069b73f 100644 --- a/theme/formfactor/version.php +++ b/theme/formfactor/version.php @@ -24,9 +24,9 @@ defined('MOODLE_INTERNAL') || die; -$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX) -$plugin->requires = 2013110500; // Requires this Moodle version -$plugin->component = 'theme_formfactor'; // Full name of the plugin (used for diagnostics) +$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX). +$plugin->requires = 2013110500; // Requires this Moodle version. +$plugin->component = 'theme_formfactor'; // Full name of the plugin (used for diagnostics). $plugin->dependencies = array( 'theme_canvas' => 2013110500, );