$ex->output_file($catBasics, "../../"); } $count++; } } } } //Create Topics files $count = 0; foreach ($catTopics as $cat => $array) { if ($dp = opendir($dirTopics . $cat)) { while ($fp = readdir($dp)) { if (substr($fp, 0, 1) != '.') { $ex = new Example($fp, "Topics/" . $cat, $subdir); if (!$local) { $ex->output_file($catTopics); } else { $ex->output_file($catTopics, "../../"); } $count++; } } } } //Create Examples page $page = new Page('Examples', 'Examples', "", "../../"); $page->subtemplate('template.examples-main.html'); //Create Basics html $html = "<b>Basic Examples</b>. <i>Programs about form, data, images, color, typography, and more...</i><br /><br /><br />"; $html .= "<ul class=\"examples\">\n"; foreach ($catBasics as $cat => $array) {