Source for file index.php

Documentation is available at index.php

  1. <?php
  2.     /**
  3.     * Sloodle module instance view placeholder script.
  4.     *
  5.     * A temporary placeholder to give information when a user attempts to browse Sloodle module instances.
  6.     *
  7.     * @package sloodleplaceholders
  8.     * @copyright Copyright (c) 2008 Sloodle (various contributors)
  9.     * @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
  10.     *
  11.     * @contributor Peter R. Bloomfield
  12.     *
  13.     */
  14.  
  15.     /** Sloodle/Moodle configuration. */
  16.     require_once('config.php');
  17.     
  18.     // Get the localization strings
  19.     $strsloodle get_string('modulename''sloodle');
  20.     $strsloodles get_string('modulenameplural''sloodle');
  21.     
  22.     // Display the header
  23.     print_header_simple($strsloodles""$strsloodles""""true"");
  24.  
  25.     // Display the Sloodle version
  26.     print_heading(get_string('sloodleversion','sloodle').': '.(string)SLOODLE_VERSION'center'3);
  27.     // Get and display the module version number (from version.php)
  28.     $sloodlemodule get_record('modules''name''sloodle');
  29.     $releasenum 0;
  30.     if ($sloodlemodule !== FALSE$releasenum $sloodlemodule->version;
  31.     print_heading(get_string('releasenum','sloodle').': '.(string)$releasenum'center'5);
  32.     
  33.     // Display a help button regarding the version numbers
  34.     echo '<div style="text-align:center;">(';
  35.     helpbutton('version_numbers'get_string('help:versionnumbers''sloodle')'sloodle'truetrue);
  36.     echo ')</div>';
  37. ?>
  38.  
  39. <br/>
  40. <div style="border:1px solid #bababa; padding:8px;">
  41. <!-- Text taken from "mod.html" -->
  42. <?php print_string('mod.html:placeholder1''sloodle')?><br/><br/>
  43. <?php print_string('mod.html:placeholder2''sloodle')?><br/>
  44. <?php print_string('mod.html:placeholder3''sloodle')?> <a href="http://www.sloodle.org/" title="<?php print_string('clicktovisitsloodle.org''sloodle')?>">www.sloodle.org</a><br/><br/>
  45. <?php print_string('mod.html:placeholder4''sloodle')?><br/>
  46. <!-- ..... -->
  47. </div>
  48.  
  49. <?php
  50.     // Display the footer
  51.     print_footer();
  52. ?>

Documentation generated on Tue, 04 Mar 2008 15:08:33 +0000 by phpDocumentor 1.4.0