Changeset 90403 in spip-zone


Ignore:
Timestamp:
Jun 20, 2015, 10:59:13 AM (4 years ago)
Author:
p@…
Message:

Nouvelle option: pouvoir remplacer complètement le formulaire editer_logo

Location:
_plugins_/uploadhtml5/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/uploadhtml5/trunk/formulaires/configurer_uploadhtml5.php

    r90400 r90403  
    1111                'label' => _T('uploadhtml5:label_charger_public'),
    1212                'label_case' => _T('uploadhtml5:case_charger_public')
     13            )
     14        ),
     15        array(
     16            'saisie' => 'case',
     17            'options' => array(
     18                'nom' => 'remplacer_editer_logo',
     19                'label' => _T('uploadhtml5:label_remplacer_editer_logo'),
     20                'label_case' => _T('uploadhtml5:case_remplacer_editer_logo')
    1321            )
    1422        ),
  • _plugins_/uploadhtml5/trunk/lang/uploadhtml5_fr.php

    r90400 r90403  
    1717        'titre_page_configurer_uploadhtml5' => 'Configuration du formulaire d\'upload html5',
    1818
     19    'label_remplacer_editer_logo' => "Remplacer logo",
     20    'case_remplacer_editer_logo' => "Remplacer le formulaire d'upload de logo de SPIP",
    1921
    2022    // M
  • _plugins_/uploadhtml5/trunk/uploadhtml5_pipelines.php

    r90397 r90403  
    7878            );
    7979
     80            $config = lire_config('uploadhtml5');
    8081            // Injecter uloadhtml5 au dessus du formulaire joindre_document.
    81             $flux['data'] = $uploadhtml5.$flux['data'];
     82            if (isset($config['remplacer_editer_logo'])
     83                and $config['remplacer_editer_logo'])
     84                $flux['data'] = $uploadhtml5;
     85            else
     86                $flux['data'] = $uploadhtml5.$flux['data'];
    8287        }
    8388    }
Note: See TracChangeset for help on using the changeset viewer.