Commit 4a96635d authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Added plugin for smarty that returns the mahara version number.

parent d1394178
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {mahara_version} function plugin
*
* Type: function<br>
* Name: mahara_version<br>
* Date: July 10, 2007<br>
* Purpose: Fetch the mahara version number if in the admin section
* @author Nigel McNie <nigel@catalyst.net.nz>
* @version 1.0
* @param array
* @param Smarty
* @return html to display in the footer.
*/
function smarty_function_mahara_version($params, &$smarty) {
if (!defined('ADMIN')) {
return '';
}
return '<div class="center">Mahara version ' . get_config('release') . ' (' . get_config('version') . ')</div>';
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment