File "html_db1dcc05c820bf131e1dac261c762927.php"

Full path: /home/argothem/www/organecyberpresse/tmp/cache/skel/html_db1dcc05c820bf131e1dac261c762927.php
File size: 8.03 KB
MIME-type: text/x-php
Charset: utf-8

<?php

/*
 * Squelette : plugins/auto/player/v4.3.0/modeles/audio.html
 * Date :      Thu, 15 May 2025 16:37:24 GMT
 * Compile :   Fri, 22 Aug 2025 09:13:20 GMT
 * Boucles :   _audio
 */ 

function BOUCLE_audiohtml_db1dcc05c820bf131e1dac261c762927(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($command['table'])) {
		$command['table'] = 'documents';
		$command['id'] = '_audio';
		$command['from'] = array('documents' => 'spip_documents','L1' => 'spip_types_documents');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("documents.id_document",
		"documents.id_vignette",
		"L1.mime_type",
		"documents.extension",
		"L1.titre AS type_document",
		"documents.taille");
		$command['orderby'] = array();
		$command['join'] = array('L1' => array('documents','extension'));
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
			array('(documents.taille > 0 OR documents.distant=\'oui\')'), 
			array('=', 'documents.id_document', sql_quote(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'id', null), (interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_document', null),true)))),true))), '', 'bigint NOT NULL AUTO_INCREMENT')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('plugins/auto/player/v4.3.0/modeles/audio.html','html_db1dcc05c820bf131e1dac261c762927','_audio',19,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
' .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'legende'] = (trim(recuperer_fond( 'modeles/document_legende' , array_merge($Pile[0],array()), array('compil'=>array('plugins/auto/player/v4.3.0/modeles/audio.html','html_db1dcc05c820bf131e1dac261c762927','_audio',0,$GLOBALS['spip_lang'])), _request('connect') ?? ''))))) .
'
' .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'player'] = (interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'player', null), (interdire_scripts((include_spip('inc/config')?lire_config('player/player_mp3','retroplayer',false):'')))),true))))) .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'my_width'] = (interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'largeur', null), (interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'width', null), '0'),true)))),true))))) .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'logo'] = (quete_logo_document(quete_document($Pile[$SP]['id_document'], ''), '', '', 'vignette', 0, 0, '')))) .
(($t1 = strval(retablir_echappements_modeles(((table_valeur($Pile["vars"]??[], (string)'logo', null)) ?' ' :''))))!=='' ?
		($t1 . (	'
' .
	retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'my_width'] = (max(largeur(table_valeur($Pile["vars"]??[], (string)'logo', null)),'120',(table_valeur($Pile["vars"]??[], (string)'my_width', null)))))) .
	retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'logo'] = (filtrer('image_graver',filtrer('image_reduire',vider_attribut(table_valeur($Pile["vars"]??[], (string)'logo', null),'class'),(table_valeur($Pile["vars"]??[], (string)'my_width', null)),'*'))))))) :
		'') .
'
<div
  class="' .
retablir_echappements_modeles(filtre_medias_modele_document_standard_classes_dist($Pile,$Pile[$SP]['id_document'],'audio')) .
' spip_document_player spip_documents_player spip_doc_player"' .
(($t1 = strval(retablir_echappements_modeles(filtre_medias_modele_document_standard_attributs_dist($Pile,$Pile[$SP]['id_document'],'audio'))))!=='' ?
		('
  ' . $t1 . '
') :
		'') .
'>
	<figure class="spip_doc_inner">
		' .
(($t1 = strval(retablir_echappements_modeles(((((($Pile[$SP]['id_vignette']) AND ((interdire_scripts((entites_html(table_valeur($Pile[0]??[], (string)'afficher_vignette', null),true) != 'non'))))) ?' ' :'')) ?' ' :''))))!=='' ?
		($t1 . (	'
		<a href="' .
	retablir_echappements_modeles(interdire_scripts(((($a = entites_html(table_valeur($Pile[0]??[], (string)'lien', null),true)) OR (is_string($a) AND strlen($a))) ? $a : (vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true))))))) .
	'" type="' .
	retablir_echappements_modeles(interdire_scripts(medias_mime_type_document($Pile[$SP]['id_document'], $Pile[$SP]['extension']))) .
	'" class="spip_doc_lien' .
	(($t2 = strval(retablir_echappements_modeles(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'lien_class', null),true)))))!=='' ?
			(' ' . $t2) :
			'') .
	'" title=\'' .
	retablir_echappements_modeles(interdire_scripts($Pile[$SP]['type_document'])) .
	' - ' .
	retablir_echappements_modeles(interdire_scripts(texte_backend(taille_en_octets($Pile[$SP]['taille'])))) .
	'\'>
		<img src=\'' .
	retablir_echappements_modeles(extraire_attribut(table_valeur($Pile["vars"]??[], (string)'logo', null),'src')) .
	'\' class="spip_doc_logo" width=\'' .
	retablir_echappements_modeles(largeur(table_valeur($Pile["vars"]??[], (string)'logo', null))) .
	'\' height=\'' .
	retablir_echappements_modeles(hauteur(table_valeur($Pile["vars"]??[], (string)'logo', null))) .
	'\' alt=\'' .
	retablir_echappements_modeles(interdire_scripts($Pile[$SP]['type_document'])) .
	' - ' .
	retablir_echappements_modeles(interdire_scripts(texte_backend(taille_en_octets($Pile[$SP]['taille'])))) .
	'\' /></a>
		')) :
		'') .
'
		' .
retablir_echappements_modeles(recuperer_fond( (	'players/' .
	(table_valeur($Pile["vars"]??[], (string)'player', null)) .
	'/player') , array_merge($Pile[0],array('player' => (table_valeur($Pile["vars"]??[], (string)'player', null)) ,
	'largeur' => (table_valeur($Pile["vars"]??[], (string)'my_width', null)) )), array('etoile'=>true,'compil'=>array('plugins/auto/player/v4.3.0/modeles/audio.html','html_db1dcc05c820bf131e1dac261c762927','_audio',29,$GLOBALS['spip_lang'])), _request('connect') ?? '')) .
retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'legende', null)) .
'</figure>
</div>
');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_audio @ plugins/auto/player/v4.3.0/modeles/audio.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette plugins/auto/player/v4.3.0/modeles/audio.html
// Temps de compilation total: 2.931 ms
//

function html_db1dcc05c820bf131e1dac261c762927($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 = strval(retablir_echappements_modeles('')))!=='' ?
		('<!--' . $t1 . '

	// modeles/doc_player.html

	// $LastChangedRevision: 18209 $
	// $LastChangedBy: paladin@quesaco.org $
	// $LastChangedDate: 2008-01-27 17:54:31 +0100 (dim., 27 janv. 2008) $

Modele pour <doc> modifie pour le plugin Lecteur Flash pour MP3
http://spip-zone.info/spip.php?article18

Si le document est de format mp3, afficher la vignette si elle est personnalisee
Afficher le TITRE, le DESCRIPTIF suivi du lecteur flash permettant de faire jouer ce fichier.

Sinon, utiliser le comportement normal.


-->') :
		'') .
'
' .
(($t1 = BOUCLE_audiohtml_db1dcc05c820bf131e1dac261c762927($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		$t1 :
		((	'
' .
	
'<'.'?php echo recuperer_fond( ' . argumenter_squelette('modeles/file') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/player/v4.3.0/modeles/audio.html\',\'html_db1dcc05c820bf131e1dac261c762927\',\'\',41,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
'))) .
'
');

	return analyse_resultat_skel('html_db1dcc05c820bf131e1dac261c762927', $Cache, $page, 'plugins/auto/player/v4.3.0/modeles/audio.html');
}