/**
 * Function to get a list of template files of a page, indexed by file name
 *
 * @var string     $page        page name
 * @var boolen     $refresh    recreate the data
 *
 * @return array
 */
function &art_getTemplateList($page = "index", $refresh = false)
{
    $TplFiles = art_getTplPageList($page, $refresh);
    $template = array();
    foreach (array_keys($TplFiles) as $temp) {
        $template[$temp] = $temp;
    }
    return $template;
}
$modversion["sub"][] = array("name" => art_constant("MI_PAGE_LIST"), "url" => "view.list.php");
$modversion["sub"][] = array("name" => art_constant("MI_PAGE_TAGS"), "url" => "list.tag.php");
$modversion["sub"][] = array("name" => art_constant("MI_PAGE_SEARCH"), "url" => "search.php");
if (is_object($GLOBALS["xoopsUser"])) {
    $modversion["sub"][] = array("name" => art_constant("MI_PAGE_MYPAGE"), "url" => "view.author.php");
}
$modversion["onInstall"] = "include/action.module.php";
$modversion["onUpdate"] = "include/action.module.php";
// Use smarty
$modversion["use_smarty"] = 1;
/**
 * Templates
 */
if ($isModuleAction) {
    include_once dirname(__FILE__) . "/include/functions.render.php";
    $modversion["templates"] = art_getTplPageList("", true);
}
// Blocks
$modversion["blocks"] = array();
/*
 * $options:
 *                    $options[0] - use specified spotlight only
 *                    $options[1] - show editor's note if available
 */
$modversion["blocks"][1] = array("file" => "blocks.php", "name" => art_constant("MI_SPOTLIGHT"), "description" => art_constant("MI_SPOTLIGHT_DESC"), "show_func" => $GLOBALS["ART_VAR_PREFIX"] . "_spotlight_show", "options" => "0|0", "edit_func" => $GLOBALS["ART_VAR_PREFIX"] . "_spotlight_edit", "template" => $GLOBALS["artdirname"] . "_block_spotlight.html");
/*
 * $options:
 *                        0 - criteria for fetching articles;
 *                        1 - limit for article count;
 *                        2 - bool flag for displaying summary: 0 - none; 1 - summary; 2 - summary and image
 *                        3 - title length;