';
}
function generate_nav($active_page, $pages, $page_names) {
$output = array();
foreach ($pages as $key => $page) {
if ($page == $active_page)
$output[] = ['page' => $page, 'name' => $page_names[$key], 'active' => TRUE];
else
$output[] = ['page' => $page, 'name' => $page_names[$key], 'active' => FALSE];
}
return $output;
}
function html_link($href, $class, $innerHTML, $blank) {
if($blank)
return ''.$innerHTML.'';
else
return ''.$innerHTML.'';
}
function get_web_json($url) {
$data = json_decode(file_get_contents($url), true);
return $data;
}
function str_mass_replace($searchs, $replacers, $string) {
foreach ($searchs as $key => $search) {
$string = str_replace($search, $replacers[$key], $string);
}
return $string;
}
?>