<?php require_once "require/class/Crud.class.php"; require_once "require/config/Config.php"; $urlAmigavel = new UrlAmigavel(); $returnUrlAmigavel = $urlAmigavel->setUrlAmigavel(REDIRECT_URL); ?> <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="utf-8"> <title>Loja Virtual 01</title> <link rel="stylesheet" type="text/css" href="require/css/header.css"/> <script type="text/javascript" src="require/js/jquery.js"></script> <script type="text/javascript" src="require/js/login.js"></script> </head> <body> <div id="dvBase"> <header> </header> <main>
} #VERIFICA SE O IDIOMA EXISTE if (UrlAmigavel::campo_url()) { $lg = $base->seleciona('idiomas', array('status' => "1")); $db_idioma = array(); foreach ($lg as $v) { $db_idioma[] = $v->sigla; } if (in_array(UrlAmigavel::campo_url(0), $db_idioma)) { $lingua = UrlAmigavel::campo_url(0); $url = array_merge(array(), array_diff_key(UrlAmigavel::campo_url(), array(0 => ""))); } else { $url = UrlAmigavel::campo_url(); } } else { $url = UrlAmigavel::campo_url(); } $html_lang = $base->seleciona('idiomas', array('status' => "1", "sigla" => $lingua), array('html_lang')); $html_lang = isset($html_lang[0]->html_lang) ? $html_lang[0]->html_lang : "pt-br"; #COLACA O A SIGLA DO IDIOMA NOS LINKS {LG} if ($lingua != "") { if ($tpl->exists("LG")) { $tpl->LG = $lingua . "/"; } $db_trad = $base->seleciona('traducao', array("sigla_idioma" => $lingua), null); if ($db_trad[0]) { $dx = $db_trad[0]; $palavas = json_decode(stripslashes($dx->json), true); } } #INCLUI AS PAGINA