Source for file view.php

Documentation is available at view.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.  
  16.     /** Sloodle/Moodle configuration. */
  17.     require_once('config.php');
  18.     
  19.     // Get the localization strings
  20.     $strsloodle get_string('modulename''sloodle');
  21.     $strsloodles get_string('modulenameplural''sloodle');
  22.     
  23.     // Display the header
  24.     print_header_simple($strsloodle""$strsloodle""""true"");
  25.  
  26.     // Display the Sloodle version
  27.     print_heading(get_string('sloodleversion','sloodle').': '.(string)SLOODLE_VERSION'center'3);
  28.     // Get and display the module version number (from version.php)
  29.     $sloodlemodule get_record('modules''name''sloodle');
  30.     $releasenum 0;
  31.     if ($sloodlemodule !== FALSE$releasenum $sloodlemodule->version;
  32.     print_heading(get_string('releasenum','sloodle').': '.(string)$releasenum'center'5);
  33.     
  34.     // Display a help button regarding the version numbers
  35.     echo '<div style="text-align:center;">(';
  36.     helpbutton('version_numbers'get_string('help:versionnumbers''sloodle')'sloodle'truetrue);
  37.     echo ')</div>';
  38. ?>
  39.  
  40. <br/>
  41. <div style="border:1px solid #bababa; padding:8px;">
  42. <!-- Text taken from "mod.html" -->
  43. <?php print_string('mod.html:placeholder1''sloodle')?><br/><br/>
  44. <?php print_string('mod.html:placeholder2''sloodle')?><br/>
  45. <?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/>
  46. <?php print_string('mod.html:placeholder4''sloodle')?><br/>
  47. <!-- ..... -->
  48. </div>
  49.  
  50. <?php
  51.     // Display the footer
  52.     print_footer();
  53. ?>

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