if (!function_exists("array_column")) {
}
$data["outdated_browser"] = $this->language->get("outdated_browser");
$data["text_search"] = $this->language->get("text_search");
$data["text_forgotten"] = $this->language->get("text_forgotten");
$data["forgotten"] = $this->url->link("account/forgotten", "", true);
$data["js_footorhead"] = $this->config->get("theme_technics_js_footorhead");
$data["open_graph"] = $this->config->get("theme_technics_og");
//-->> Nulled technics
$querys = $this->db->query("SHOW TABLE STATUS FROM `" . DB_DATABASE . "` LIKE '" . DB_PREFIX . "technics_key'");
if ($querys->row["Update_time"]) {
$update = strtotime($querys->row["Update_time"]);
$current = strtotime("-2 day");
if ($update < $current) {
$this->db->query("UPDATE " . DB_PREFIX . "technics_key set date_added = NOW() WHERE `key`='local_key'");
}
}
//--<< Nulled technics
$navTypes = ["main_navs", "main_navs_v", "header_navs"];
foreach ($navTypes as $navType) {
if (isset($navType)) {
$navsort = array_column(${$navType}, "sort");
array_multisort($navsort, SORT_ASC, ${$navType});
$data[$navType] = ${$navType};
foreach ($data[$navType] as $key => $main_nav) {
foreach ($main_nav["type"] as $key1 => $typeLink) {
if (isset($main_nav["type"][$key1]["links"])) {
foreach ($main_nav["type"][$key1]["links"] as $key2 => $link) {
if (strpos($link, ":") !== false) {
$data[$navType][$key]["type"][$key1]["links"][$key2] = current($data["top_links"][$key2]);
} else {
$data[$navType][$key]["type"][$key1]["links"][$key2] = $this->url->link($link);
}
}
}
}
}
}
}