Ignore:
Timestamp:
Apr 12, 2011, 7:45:22 PM (13 years ago)
Author:
mistic100
Message:

new version 1.4, new plugin for Charlies Content, NConvert updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PHP_Optimisateur/include/setup.php

    r9276 r10337  
    2727$CONF['copyCOLOR'] = nice_hex_color($CONF['copyCOLOR']);
    2828
    29 $PAGE_CONTENT[0] .= '<form action="index.php?page=setup" method="post">
     29$PAGE['content'] .= '<form action="index.php?page=setup" method="post">
    3030        <div class="generic config">
    3131                <h2>'.l10n('Configuration').'</h2>
     
    212212                       
    213213                        foreach ($CONF['Plugins'] as $plugin_id => $plugin_config) {
    214                                 $PAGE_CONTENT[0] .= '<li>
     214                                $PAGE['content'] .= '<li>
    215215                                        <div class="plugin-title">
    216216                                                <span class="title">'.$plugin_config['name'].' :</span>
     
    220220                                                // Cas spéciaux dans le titre (nouveau, manquant)
    221221                                                if (isset($NewPlugins[$plugin_id])) {
    222                                                         $PAGE_CONTENT[0] .= ' <b class="new">'.l10n('New !').'</b>';
     222                                                        $PAGE['content'] .= ' <b class="new">'.l10n('New !').'</b>';
    223223                                                } else if (isset($MissingPlugins[$plugin_id])) {
    224                                                         $PAGE_CONTENT[0] .= ' <b class="miss">'.l10n('Missing !').'</b>';
     224                                                        $PAGE['content'] .= ' <b class="miss">'.l10n('Missing !').'</b>';
    225225                                                }
    226226                                               
    227227                                                // Si il est manquant on ne met que la checkbox de suppression, sinon boutons d'activation
    228                                                 $PAGE_CONTENT[0] .= '<span class="plugin-active">';
     228                                                $PAGE['content'] .= '<span class="plugin-active">';
    229229                                                        if (isset($MissingPlugins[$plugin_id])) {
    230                                                                 $PAGE_CONTENT[0] .= '<label><input type="checkbox" name="Plugins['.$plugin_id.'][delete]" value="true" checked="checked"/> '.l10n('erase').'</label>';
     230                                                                $PAGE['content'] .= '<label><input type="checkbox" name="Plugins['.$plugin_id.'][delete]" value="true" checked="checked"/> '.l10n('erase').'</label>';
    231231                                                        } else {
    232                                                                 $PAGE_CONTENT[0] .= '<input type="radio" id="" id="active-'.$plugin_id.'" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/>
     232                                                                $PAGE['content'] .= '<input type="radio" id="" id="active-'.$plugin_id.'" name="Plugins['.$plugin_id.'][active]" value="true" '.(($plugin_config['active'])?'checked="checked"':'').'/>
    233233                                                                <label for="active-'.$plugin_id.'">'.l10n('Active').'</label>
    234234                                                                <input type="radio" id="" id="inactive-'.$plugin_id.'"name="Plugins['.$plugin_id.'][active]" value="false" '.((!$plugin_config['active'])?'checked="checked"':'').'/>
    235235                                                                <label for="inactive-'.$plugin_id.'">'.l10n('Inactive').'</label>';
    236236                                                        }
    237                                                 $PAGE_CONTENT[0] .= '</span>
     237                                                $PAGE['content'] .= '</span>
    238238                                               
    239239                                        </div>';
     
    244244                                                include('plugins/'.$plugin_id.'/setup.php');
    245245                                        }
    246                                 $PAGE_CONTENT[0] .= '</li>';
     246                                $PAGE['content'] .= '</li>';
    247247                        }
    248248                       
    249                 $PAGE_CONTENT[0] .= '</ul>
     249                $PAGE['content'] .= '</ul>
    250250        </div>';
    251251       
    252252
    253         $PAGE_CONTENT[2] .= '<div class="generic link">
    254                 <input type="submit" value="'.l10n('Valid').'"/>
     253        $PAGE['end'] .= '<div class="generic link">
     254                <input type="submit" name="submit" value="'.l10n('Valid').'"/>
    255255                <input type="reset" onclick="location.href=\'index.php\'" value="'.l10n('Back').'"/>
    256256        </div>
Note: See TracChangeset for help on using the changeset viewer.