/** * Loads the modules for the current theme/page/position * * @param unknown_type $position */ function flutter_modules($position) { global $template; global $mod_vars; $page = basename($template); // Get all the modules for the current theme-page-position. $modulesBlock = FlutterLayoutBlock::GetModules($page, $position); // For each module, load its settings. foreach ($modulesBlock as $moduleBlock) { // Put the settings in a global variable for the module. $mod_vars = $moduleBlock->GetProcessedVariables(); ?> <div class="module" rel="1" block_id="<?php echo $moduleBlock->block_id; ?> "> <h3><?php echo $moduleBlock->title; ?> </h3> <span> <?php include_once $moduleBlock->GetModuleTemplateFile(); ?> </span> </div> <?php } }