<?php
/**
 * Welcome page description of the TV module.
 *
 * @license     GPL
 *
 * @package     MythWeb
 * @subpackage  TV
 *
 **/

// Open with a div and an image
    echo '<div id="info_tv">',
         '<p>',
         '<a href="', root_url, Modules::getModuleProperty('tv', 'path'), '">',
         '<img src="', skin_url, '/img/tv.png" class="module_icon" border="0" />',
         '<h2>', Modules::getModuleProperty('tv', 'name'), '</h2></a>',
         '</p>',

// Print a basic overview of what this module does
         t('welcome: tv'),

// Next, print a list of possible subsectons
         '<ul>';
    foreach (Modules::getModuleProperty('tv', 'links') as $link => $name) {
        echo '    <li><a href="', root_url, Modules::getModuleProperty('tv', 'path'), '/', $link, '">', html_entities($name), "</a></li>\n";
    }
    echo '</ul>',

// Close the div
         "</div>\n";
