Quantcast
Viewing all articles
Browse latest Browse all 30

$sodapop->loadModule()

loadModule() loads all the modules for the given position

Location: class.sodapop.php

private function loadModule() {
// How many modules are in this position so we know how many times to loop
$moduleCount = count($this->allModsData);
// Scroll thru the modules by $i, picking out the data from each modules sub-array
for ($i = 1; $i<= $moduleCount; $i++) {

// Create an array of this module's data from the subaray of all the modules' data
$modData = $this->allModsData[$i];
// Find out if we are supposed to show this module or not
$showIt = $this->doShowModule($modData);

// And show it if we are
if ($showIt == true) {
// get the path to the requested module then pulls it in
$modulePath =  $this->buildModPath($modData['name']);
// Fetches the modules index file if it exists
if (file_exists($modulePath)) {

require $modulePath;

}
}
}

Viewing all articles
Browse latest Browse all 30

Trending Articles