<?php /* * Squelette : ../plugins/auto/seo/v3.0.2/prive/objets/seo-metas.html * Date : Fri, 09 Jun 2023 10:12:56 GMT * Compile : Sat, 24 Feb 2024 12:49:12 GMT * Boucles : _metas */ function BOUCLE_metashtml_93c218d7ea864e4dc3e704f28e6a97d6(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $in = array(); $in[]= 'title'; $in[]= 'description'; $in[]= 'keywords'; $in[]= 'copyright'; $in[]= 'author'; $in[]= 'robots'; if (!isset($command['table'])) { $command['table'] = 'seo'; $command['id'] = '_metas'; $command['from'] = array('seo' => 'spip_seo'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("seo.meta_name", "seo.meta_content"); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['orderby'] = array(((!$zqv=sql_quote($in) OR $zqv==="''") ? 0 : ('FIELD(seo.meta_name,' . $zqv . ')'))); $command['where'] = array( array('=', 'seo.objet', sql_quote(($Pile[0]['objet'] ?? null), '','varchar(10) NOT NULL')), array('=', 'seo.id_objet', sql_quote(($Pile[0]['id_objet'] ?? null), '','int(11) NOT NULL')), sql_in('seo.meta_name', $in)); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('../plugins/auto/seo/v3.0.2/prive/objets/seo-metas.html','html_93c218d7ea864e4dc3e704f28e6a97d6','_metas',3,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' <div class="champ contenu_meta_' . interdire_scripts($Pile[$SP]['meta_name']) . (($t1 = strval(interdire_scripts((strlen($Pile[$SP]['meta_content']) ? '':'vide'))))!=='' ? (' ' . $t1) : '') . '"> <div class=\'label\'>' . _T(concat('seo:meta_',interdire_scripts($Pile[$SP]['meta_name']))) . '</div> <div class=\'valeur ' . interdire_scripts($Pile[$SP]['meta_name']) . '\'>' . interdire_scripts($Pile[$SP]['meta_content']) . '</div> </div> '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_metas @ ../plugins/auto/seo/v3.0.2/prive/objets/seo-metas.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette ../plugins/auto/seo/v3.0.2/prive/objets/seo-metas.html // Temps de compilation total: 69.066 ms // function html_93c218d7ea864e4dc3e704f28e6a97d6($Cache, $Pile, $doublons = array(), $Numrows = array(), $SP = 0) { if (isset($Pile[0]["doublons"]) AND is_array($Pile[0]["doublons"])) $doublons = nettoyer_env_doublons($Pile[0]["doublons"]); $connect = ''; $page = (($t1 = BOUCLE_metashtml_93c218d7ea864e4dc3e704f28e6a97d6($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (( ' ' . boite_ouvrir(( filtre_balise_img_dist(chemin_image((string)'meta-tags-24.png'),'','cadre-icone') . 'Metas-tags'), 'simple mini pop seo-metas') . ' ') . $t1 . ( ' ' . boite_fermer() . ' ')) : ''); return analyse_resultat_skel('html_93c218d7ea864e4dc3e704f28e6a97d6', $Cache, $page, '../plugins/auto/seo/v3.0.2/prive/objets/seo-metas.html'); }