diff --git a/template/layout_templates/footer.tpl b/template/layout_templates/footer.tpl new file mode 100644 index 0000000..7fb2c87 --- /dev/null +++ b/template/layout_templates/footer.tpl @@ -0,0 +1,81 @@ + + {CODE} + + + + + " id="amp-callCTA"> + + + + + {BOTTOM_LIBRARIES} + var MODULES_LOADED = '.json_encode(array_keys(Module::$loaded)).';'; + echo Module::links(); + echo Module::scripts(); + + /*if (HAY_TIENDA && !@$_REQUEST["viewAMP"]) { + echo modulo("modal_livesearch"); + ?> + + + + + + + + {STYLE} + " data-value=""> + + + {JAVASCRIPT} + + + + + + + diff --git a/template/layout_templates/header.tpl b/template/layout_templates/header.tpl new file mode 100644 index 0000000..816ce34 --- /dev/null +++ b/template/layout_templates/header.tpl @@ -0,0 +1,212 @@ + +" > + + + + {AMP_LIBRARIES} + "> + + + + + + + '; + echo ''; + + if (!class_exists("CustomCode")) require_once __DIR__."/../../../../cms/lib/plugins/builder_saas/replace_code.php"; + + // ESTO HAY QUE MEJORARLO PORQUE SI LA IMAGEN ES DE IDIOMA MOSTRARA LA IMAGEN EN ESPAÑOL + + // Buscamos en el campo 'meta_image' del registro + $imageExists = @mysql_fetch_assoc(mysql_query("SELECT urlPath FROM ".$TABLE_PREFIX."uploads WHERE tableName='".str_replace($TABLE_PREFIX,"",$tabla)."' and recordNum=".intval(@$_REQUEST["num"])." and urlPath not like '%.pdf%' and fieldName='meta_image' ORDER BY `order` ASC LIMIT 1")); + + if (!@$imageExists) { + // Buscamos en el primer upload del registro + $imageExists = @mysql_fetch_assoc(mysql_query("SELECT urlPath FROM ".$TABLE_PREFIX."uploads WHERE tableName='".str_replace($TABLE_PREFIX,"",$tabla)."' and recordNum=".intval(@$_REQUEST["num"])." and urlPath not like '%.pdf%' ORDER BY `order` ASC LIMIT 1")); + } + + if (!@$imageExists) { + // Buscamos en el campo 'meta_imagen' de configuración + $imageExists = @mysql_fetch_assoc(mysql_query("SELECT urlPath FROM ".$TABLE_PREFIX."uploads WHERE tableName='configuracion' and fieldName='meta_image' ORDER BY `order` ASC LIMIT 1")); + } + + if (@$imageExists) { + $image = CustomCode::imagec_inv($imageExists['urlPath'], 1200); + } else { + $image = CustomCode::imagec_inv($logo, 1200); + } + + echo ''; + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + ?> + + + "> + + + "> + + + + + <?=$titulo_de_pagina;?> + "> + + + + + + + + + + " type="image/x-icon" /> href="" /> + + + + + + + + + + + " hreflang="" /> + + + + {TOP_LIBRARIES} + RUTA_RAIZ]; + $idiomas = ["es" => "Español","en" => "English","de" => "Deutsch","fr" => "Français","ru" => "Pусский","it" => "Italiano"]; + $idioma_actual = ["corto" => @$_REQUEST["idioma"] ?: "es"]; + $idioma_actual["largo"] = @$idiomas[$idioma_actual['corto']]; + $session = @$_SESSION; + $get = @$_GET; + $GLOBALS["session"] = @$session; + $GLOBALS["get"] = $get; + global $thisrecord,$root,$request; + $thisrecord = @$GLOBALS["apartado"]; + $root = $GLOBALS; + $request = @$_REQUEST; + if (!@$_REQUEST["viewAMP"]){ + ?> + + + + + + + + + + + {CODE} + + + + +
+ + +
+ + +
+ +
+ +
+