Dotclear


Ignore:
Timestamp:
12/17/14 08:19:25 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.7
Message:

dcCKEditor and dcLegacyEditor may be tuned by admin too, not only super-admin, fixes #2018

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/tpl/index.tpl

    r2746 r2855  
    11<html> 
    2   <head> 
    3     <title>dcLegacyEditor</title> 
    4   </head> 
    5   <body> 
    6     <?php echo dcPage::breadcrumb(array(__('Plugins') => '',__('dcLegacyEditor') => '')).dcPage::notices(); ?> 
     2     <head> 
     3          <title>dcLegacyEditor</title> 
     4     </head> 
     5     <body> 
     6          <?php echo dcPage::breadcrumb(array(__('Plugins') => '',__('dcLegacyEditor') => '')).dcPage::notices(); ?> 
    77 
    8     <?php if ($is_super_admin):?> 
    9     <h3 class="hidden-if-js"><?php echo __('Settings');?></h3> 
    10     <form action="<?php echo $p_url;?>" method="post" enctype="multipart/form-data"> 
    11       <div class="fieldset"> 
    12      <h3><?php echo __('Plugin activation');?></h3> 
    13      <p> 
    14        <label class="classic" for="dclegacyeditor_active"> 
    15          <?php echo form::checkbox('dclegacyeditor_active', 1, $dclegacyeditor_active);?> 
    16          <?php echo __('Enable dcLegacyEditor plugin');?> 
    17        </label> 
    18      </p> 
    19       </div> 
     8          <?php if ($is_admin):?> 
     9               <h3 class="hidden-if-js"><?php echo __('Settings');?></h3> 
     10               <form action="<?php echo $p_url;?>" method="post" enctype="multipart/form-data"> 
     11                    <div class="fieldset"> 
     12                         <h3><?php echo __('Plugin activation');?></h3> 
     13                         <p> 
     14                              <label class="classic" for="dclegacyeditor_active"> 
     15                                   <?php echo form::checkbox('dclegacyeditor_active', 1, $dclegacyeditor_active);?> 
     16                                   <?php echo __('Enable dcLegacyEditor plugin');?> 
     17                              </label> 
     18                         </p> 
     19                    </div> 
    2020 
    21       <p> 
    22      <input type="hidden" name="p" value="dcLegacyEditor"/> 
    23      <?php echo $core->formNonce();?> 
    24      <input type="submit" name="saveconfig" value="<?php echo __('Save configuration');?>" /> 
    25       </p> 
    26     </form> 
    27     <?php endif;?> 
    28     <?php dcPage::helpBlock('dcLegacyEditor');?> 
    29   </body> 
     21                    <p> 
     22                    <input type="hidden" name="p" value="dcLegacyEditor"/> 
     23                    <?php echo $core->formNonce();?> 
     24                    <input type="submit" name="saveconfig" value="<?php echo __('Save configuration');?>" /> 
     25                    </p> 
     26               </form> 
     27          <?php endif;?> 
     28 
     29          <?php dcPage::helpBlock('dcLegacyEditor');?> 
     30     </body> 
    3031</html> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map