Changeset 93643 in spip-zone
- Timestamp:
- Dec 13, 2015, 2:42:45 PM (5 years ago)
- Location:
- _core_/plugins/mediabox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/mediabox/colorbox/fancybox/mediabox_config_theme.php
r93615 r93643 13 13 return $config; 14 14 } 15 16 ?> -
_core_/plugins/mediabox/formulaires/configurer_mediabox.php
r93615 r93643 22 22 $f = $d . "colorbox/"; 23 23 if (@is_dir($f)) { 24 $liste = preg_files($f, "colorbox[.]css$", $maxfiles -count($liste_fichiers), $recurs);24 $liste = preg_files($f, "colorbox[.]css$", $maxfiles - count($liste_fichiers), $recurs); 25 25 foreach ($liste as $chemin) { 26 26 $nom = substr(dirname($chemin), strlen($f)); … … 46 46 function box_choisir_skin($skins, $selected, $name = 'skin') { 47 47 $out = ""; 48 if (!is_array($skins) OR!count($skins)) {48 if (!is_array($skins) or !count($skins)) { 49 49 return $out; 50 50 } … … 99 99 return array('message_ok' => _T('config_info_enregistree'), 'editable' => true); 100 100 } 101 102 ?> -
_core_/plugins/mediabox/mediabox_ieconfig.php
r93615 r93643 13 13 return $table; 14 14 } 15 16 ?> -
_core_/plugins/mediabox/mediabox_pipelines.php
r93615 r93643 29 29 ), $config); 30 30 31 if ((is_null($public) AND test_espace_prive()) OR$public === false) {31 if ((is_null($public) and test_espace_prive()) or $public === false) { 32 32 $config = array_merge($config, array( 33 33 'active' => 'oui', … … 45 45 46 46 // Gerer aussi les liens internes de SPIP 47 if (!test_espace_prive() AND$config['splash_url']) {47 if (!test_espace_prive() and $config['splash_url']) { 48 48 include_spip("inc/filtres_ecrire"); 49 49 $config['splash_url'] = url_absolue(extraire_attribut(lien_article_virtuel($config['splash_url']), 'href')); … … 51 51 52 52 // charger la config du theme uniquement dans le public 53 if (!test_espace_prive() ANDinclude_spip("colorbox/" . $config['skin'] . "/mediabox_config_theme")) {53 if (!test_espace_prive() and include_spip("colorbox/" . $config['skin'] . "/mediabox_config_theme")) { 54 54 $config_theme = mediabox_config_theme(); 55 55 $config = array_merge($config, $config_theme); … … 61 61 function mediabox_insert_head_css($flux) { 62 62 $config = mediabox_config(); 63 if ($config['active'] == 'oui' AND$f = find_in_path((test_espace_prive() ? "prive/" : "") . "colorbox/" . $config['skin'] . '/colorbox.css')) {63 if ($config['active'] == 'oui' and $f = find_in_path((test_espace_prive() ? "prive/" : "") . "colorbox/" . $config['skin'] . '/colorbox.css')) { 64 64 $flux .= '<link rel="stylesheet" href="' . direction_css($f) . '" type="text/css" media="all" />'; 65 65 /** … … 134 134 return $plugins; 135 135 } 136 137 ?>
Note: See TracChangeset
for help on using the changeset viewer.