Logo Pastebin.fr
Pastebin

Retrouvez, créez et partagez vos snippets en temps réel.

Saisies

function formulaires_configurer_bab_saisies_dist(){
	// $saisies est un tableau décrivant les saisies à afficher dans le formulaire de configuration
	$saisies = array(
		array(
			'saisie' => 'case',
			'options' => array(
				'nom' => 'bandeau_pub_active',
				'label' => _T('babconfig:bandeau_pub_active'),
				'label_case' => _T('babconfig:bandeau_pub_active_label'),
			)
		),
		array(
			'saisie' => 'selecteur_document',
			'options' => array(
				'nom' => 'bandeau_pub_image',
				'label' => _T('babconfig:bandeau_pub_image'),
				'attention' => _T('babconfig:bandeau_pub_image_attention'),
				'afficher_si' => "@bandeau_pub_active@ == 'on'",
			)
		),
		array(
			'saisie' => 'input',
			'options' => array(
				'nom' => 'bandeau_pub_texte_alternatif',
				'label' => _T('babconfig:bandeau_pub_texte_alternatif'),
				'attention' => _T('babconfig:bandeau_pub_texte_alternatif_attention'),
				'explication_apres' => _T('babconfig:bandeau_pub_texte_alternatif_explication_apres'),
				'afficher_si' => "@bandeau_pub_active@ == 'on'",
			)
		),
		array(
			'saisie' => 'input',
			'options' => array(
				'nom' => 'bandeau_pub_lien',
				'label' => _T('babconfig:bandeau_pub_lien'),
				'attention' => _T('babconfig:bandeau_pub_lien_attention'),
				'placeholder' => _T('babconfig:url_placeholder'),
				'afficher_si' => "@bandeau_pub_active@ == 'on'",
			)
		),
	);
	return $saisies;
}

Créé il y a 2 mois.

Rechercher un Pastebin

Aucun paste trouvé.