function loadModuleLib($module, $file) { $f = checkModule($module); if (strlen($f) > 0) { $f = dirname($f) . "/{$file}.php"; if (file_exists($f)) { include $f; return true; } } return false; }
function loadModuleComponent($component, $module) { $f = checkModule($module); if (strlen($f) > 0) { $ff = [dirname($f) . "/api.php" => false, dirname($f) . "/comps/{$component}.php" => false]; foreach ($ff as $fx) { if (file_exists($fx)) { @(include $fx); $ff[$fx] = true; } } return $ff; } return false; }
function loadModuleComponent($module, $component, $config = array()) { $f = checkModule($module); if (strlen($f) > 0) { $ff = [dirname($f) . "/api.php" => false, dirname($f) . "/comps/{$component}.php" => false]; foreach ($ff as $fx => $status) { if (file_exists($fx)) { $module_configs = $config; include $fx; $ff[$fx] = true; } } return $ff; } return false; }
</div> </div> </div> <?php } ?> <?php } ?> <?php loadModule('article-bottom'); ?> <?php if ($comment and !checkModule('article-comment')) { ?> <div id="comment"> <?php loadComment(); ?> <?php loadModule('article-comment'); ?> </div> <?php } ?> </div>
loadModule('right'); ?> </div> <?php } ?> </section> <div class="cl"></div> </div> <!-- end of main --> <?php if (checkModule('breadchumb')) { ?> <div class="socials"> <div class="socials-inner"> <?php loadModule('breadchumb'); ?> <div class="cl"></div> </div> </div> <?php } ?>
} ?> <?php loadModule('right'); ?> </div> <?php } ?> </div> <?php } ?> <?php if (checkModule('bottom')) { ?> <div class="row-fluid"> <div class="span12"><?php loadModule('bottom'); ?> </div> </div> <?php } ?> </div> </div> </div> </div>