Dotclear


Ignore:
Timestamp:
03/22/15 15:10:20 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Allow customizing CKEditor formats
Fixes #2070

File:
1 edited

Legend:

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

    r2855 r2972  
    11<html> 
    2      <head> 
    3           <title>dcCKEditor</title> 
    4      </head> 
    5      <body> 
    6           <?php echo dcPage::breadcrumb(array(__('Plugins') => '',__('dcCKEditor') => '')).dcPage::notices(); ?> 
     2  <head> 
     3    <title>dcCKEditor</title> 
     4  </head> 
     5  <body> 
     6    <?php echo dcPage::breadcrumb(array(__('Plugins') => '',__('dcCKEditor') => '')).dcPage::notices(); ?> 
    77 
    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="dcckeditor_active"> 
    15                                    <?php echo form::checkbox('dcckeditor_active', 1, $dcckeditor_active);?> 
    16                                    <?php echo __('Enable dcCKEditor 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="dcckeditor_active"> 
     15         <?php echo form::checkbox('dcckeditor_active', 1, $dcckeditor_active);?> 
     16         <?php echo __('Enable dcCKEditor plugin');?> 
     17       </label> 
     18     </p> 
     19      </div> 
    2020 
    21                     <?php if ($dcckeditor_active):?> 
    22                          <div class="fieldset"> 
    23                               <h3><?php echo __('Options'); ?></h3> 
    24                               <p> 
    25                                    <?php echo form::checkbox('dcckeditor_alignment_buttons', 1, $dcckeditor_alignment_buttons); ?> 
    26                                    <label class="classic" for="dcckeditor_alignment_buttons">&nbsp;<?php echo __('Add alignment buttons');?></label> 
    27                               </p> 
    28                               <p> 
    29                                    <?php echo form::checkbox('dcckeditor_list_buttons', 1, $dcckeditor_list_buttons); ?> 
    30                                    <label class="classic" for="dcckeditor_list_buttons">&nbsp;<?php echo __('Add lists buttons');?></label> 
    31                               </p> 
    32                               <p> 
    33                                    <?php echo form::checkbox('dcckeditor_textcolor_button', 1, $dcckeditor_textcolor_button); ?> 
    34                                    <label class="classic" for="dcckeditor_textcolor_button">&nbsp;<?php echo __('Add text color button');?></label> 
    35                               </p> 
    36                               <p> 
    37                                    <?php echo form::checkbox('dcckeditor_cancollapse_button', 1, $dcckeditor_cancollapse_button); ?> 
    38                                    <label class="classic" for="dcckeditor_cancollapse_button">&nbsp;<?php echo __('Add collapse button');?></label> 
    39                               </p> 
    40                               <p> 
    41                                    <?php echo form::checkbox('dcckeditor_format_select', 1, $dcckeditor_format_select);?> 
    42                                    <label class="classic" for="dcckeditor_format_select">&nbsp;<?php echo __('Add format selection');?></label> 
    43                               </p> 
    44                               <p> 
    45                                    <?php echo form::checkbox('dcckeditor_table_button', 1, $dcckeditor_table_button);?> 
    46                                    <label class="classic" for="dcckeditor_table_button">&nbsp;<?php echo __('Add table button');?></label> 
    47                               </p> 
    48                               <p> 
    49                                    <?php echo form::checkbox('dcckeditor_clipboard_buttons', 1, $dcckeditor_clipboard_buttons);?> 
    50                                    <label class="classic" for="dcckeditor_clipboard_buttons">&nbsp;<?php echo __('Add clipboard buttons');?></label> 
    51                               </p> 
    52                               <p class="clear form-note"> 
    53                                    <?php echo __('Copy, Paste, Paste Text, Paste from Word');?> 
    54                               </p> 
    55                          </div> 
    56                     <?php endif;?> 
     21      <?php if ($dcckeditor_active):?> 
     22      <div class="fieldset"> 
     23     <h3><?php echo __('Options'); ?></h3> 
     24     <p> 
     25       <?php echo form::checkbox('dcckeditor_alignment_buttons', 1, $dcckeditor_alignment_buttons); ?> 
     26       <label class="classic" for="dcckeditor_alignment_buttons">&nbsp;<?php echo __('Add alignment buttons');?></label> 
     27     </p> 
     28     <p> 
     29       <?php echo form::checkbox('dcckeditor_list_buttons', 1, $dcckeditor_list_buttons); ?> 
     30       <label class="classic" for="dcckeditor_list_buttons">&nbsp;<?php echo __('Add lists buttons');?></label> 
     31     </p> 
     32     <p> 
     33       <?php echo form::checkbox('dcckeditor_textcolor_button', 1, $dcckeditor_textcolor_button); ?> 
     34       <label class="classic" for="dcckeditor_textcolor_button">&nbsp;<?php echo __('Add text color button');?></label> 
     35     </p> 
     36     <p> 
     37       <?php echo form::checkbox('dcckeditor_cancollapse_button', 1, $dcckeditor_cancollapse_button); ?> 
     38       <label class="classic" for="dcckeditor_cancollapse_button">&nbsp;<?php echo __('Add collapse button');?></label> 
     39     </p> 
     40     <p> 
     41       <?php echo form::checkbox('dcckeditor_format_select', 1, $dcckeditor_format_select);?> 
     42       <label class="classic" for="dcckeditor_format_select">&nbsp;<?php echo __('Add format selection');?></label> 
     43     </p> 
     44     <p> 
     45       <label class="classic" for="dcckeditor_format_tags">&nbsp;<?php echo __('Custom formats');?></label> 
     46       <?php echo form::field('dcckeditor_format_tags',100,255, $dcckeditor_format_tags);?> 
     47     </p> 
     48     <p class="clear form-note"> 
     49       <?php echo __('Default formats are p;h1;h2;h3;h4;h5;h6;pre;address');?> 
     50     </p> 
     51     <p> 
     52       <?php echo form::checkbox('dcckeditor_table_button', 1, $dcckeditor_table_button);?> 
     53       <label class="classic" for="dcckeditor_table_button">&nbsp;<?php echo __('Add table button');?></label> 
     54     </p> 
     55     <p> 
     56       <?php echo form::checkbox('dcckeditor_clipboard_buttons', 1, $dcckeditor_clipboard_buttons);?> 
     57       <label class="classic" for="dcckeditor_clipboard_buttons">&nbsp;<?php echo __('Add clipboard buttons');?></label> 
     58     </p> 
     59     <p class="clear form-note"> 
     60       <?php echo __('Copy, Paste, Paste Text, Paste from Word');?> 
     61     </p> 
     62      </div> 
     63      <?php endif;?> 
    5764 
    58                     <p> 
    59                          <input type="hidden" name="p" value="dcCKEditor"/> 
    60                          <?php echo $core->formNonce();?> 
    61                          <input type="submit" name="saveconfig" value="<?php echo __('Save configuration');?>" /> 
    62                     </p> 
    63                </form> 
    64           <?php endif;?> 
     65      <p> 
     66     <input type="hidden" name="p" value="dcCKEditor"/> 
     67     <?php echo $core->formNonce();?> 
     68     <input type="submit" name="saveconfig" value="<?php echo __('Save configuration');?>" /> 
     69      </p> 
     70    </form> 
     71    <?php endif;?> 
    6572 
    66           <?php dcPage::helpBlock('dcCKEditor');?> 
    67      </body> 
     73    <?php dcPage::helpBlock('dcCKEditor');?> 
     74  </body> 
    6875</html> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map