~ubuntu-branches/ubuntu/trusty/pluxml/trusty-proposed

« back to all changes in this revision

Viewing changes to core/admin/parametres_plugins.php

  • Committer: Package Import Robot
  • Author(s): Tanguy Ortolo
  • Date: 2014-01-14 21:55:05 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140114215505-q8b6y30b69q29cx0
Tags: 5.3-1
* New upstream release.
* debian/po/es.po: Spanish translation, thanks to Matías Bellone.
 (Closes: #733066)
* debian/control: update Standards-Version to 3.9.5 (no change needed).
* debian/postinst: update PluXml version in configuration file, to avoid
  triggering the update script (nothing else to do).

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                                        $output .= L_PLUGINS_AUTHOR.' : '.plxUtils::strCheck($plugInstance->getInfo('author'));
69
69
                                        # site
70
70
                                        if($plugInstance->getInfo('site')!='') $output .= ' - <a href="'.plxUtils::strCheck($plugInstance->getInfo('site')).'">'.plxUtils::strCheck($plugInstance->getInfo('site')).'</a>';
 
71
                                        # message d'alerte si plugin non configuré
 
72
                                        if($type AND file_exists(PLX_PLUGINS.$plugName.'/config.php') AND !file_exists(PLX_ROOT.PLX_CONFIG_PATH.'plugins/'.$plugName.'.xml')) $output .= '<br /><span class="alert">'.L_PLUGIN_NO_CONFIG.'</span>';
71
73
                                $output .= '</td>';
72
74
 
73
75
                                # colonne pour trier les plugins
79
81
 
80
82
                                # affichage des liens du plugin
81
83
                                $output .= '<td class="right">';
 
84
                                        # lien configuration
 
85
                                        if(is_file(PLX_PLUGINS.$plugName.'/config.php')) {
 
86
                                                $output .= '<a title="'.L_PLUGINS_CONFIG_TITLE.'" href="parametres_plugin.php?p='.urlencode($plugName).'">'.L_PLUGINS_CONFIG.'</a><br />';
 
87
                                        }
 
88
                                        # lien pour code css
 
89
                                        $output .= '<a title="'.L_PLUGINS_CSS_TITLE.'" href="parametres_plugincss.php?p='.urlencode($plugName).'">'.L_PLUGINS_CSS.'</a><br />';
82
90
                                        # lien aide
83
91
                                        if(is_file(PLX_PLUGINS.$plugName.'/lang/'.$defaultLang.'-help.php'))
84
 
                                        $output .= '<a title="'.L_PLUGINS_HELP_TITLE.'" href="parametres_pluginhelp.php?p='.urlencode($plugName).'">'.L_PLUGINS_HELP.'</a>';
85
 
                                        # lien configuration
86
 
                                        if(is_file(PLX_PLUGINS.$plugName.'/config.php'))
87
 
                                        $output .= '&nbsp;<a title="'.L_PLUGINS_CONFIG_TITLE.'" href="parametres_plugin.php?p='.urlencode($plugName).'">'.L_PLUGINS_CONFIG.'</a>';
88
 
                                $output .= '&nbsp;</td>';
 
92
                                                $output .= '<a title="'.L_PLUGINS_HELP_TITLE.'" href="parametres_pluginhelp.php?p='.urlencode($plugName).'">'.L_PLUGINS_HELP.'</a>';
 
93
                                $output .= '</td>';
89
94
                        $output .= '</tr>';
90
95
                }
91
96
        }
153
158
<?php endif; ?>
154
159
<p>
155
160
        <?php echo plxToken::getTokenPostMethod() ?>
156
 
        <?php plxUtils::printSelect('selection', $aSelList,'', false,'',false); ?>&nbsp;
157
 
        <input class="button submit" type="submit" name="submit" value="<?php echo L_OK ?>" />
 
161
        <?php plxUtils::printSelect('selection', $aSelList,'', false,'','id_selection'); ?>&nbsp;
 
162
        <input class="button submit" type="submit" name="submit" value="<?php echo L_OK ?>" onclick="return confirmAction(this.form, 'id_selection', 'delete', 'chkAction[]', '<?php echo L_CONFIRM_DELETE ?>')" />
158
163
</p>
159
164
</form>
160
165