116 lines
4.4 KiB
PHP
116 lines
4.4 KiB
PHP
<html>
|
|
<head>
|
|
<title>
|
|
dcCKEditor
|
|
</title>
|
|
</head>
|
|
<body>
|
|
<?php echo dcPage::breadcrumb([__('Plugins') =>
|
|
'', __('dcCKEditor') => '']) . dcPage::notices(); ?>
|
|
<?php if ($is_admin): ?>
|
|
<h3 class="hidden-if-js">
|
|
<?php echo __('Settings'); ?>
|
|
</h3>
|
|
<form action="<?php echo $p_url; ?>" enctype="multipart/form-data" method="post">
|
|
<div class="fieldset">
|
|
<h3>
|
|
<?php echo __('Plugin activation'); ?>
|
|
</h3>
|
|
<p>
|
|
<label class="classic" for="dcckeditor_active">
|
|
<?php echo form::checkbox('dcckeditor_active', 1, $dcckeditor_active); ?>
|
|
<?php echo __('Enable dcCKEditor plugin'); ?>
|
|
</label>
|
|
</p>
|
|
</div>
|
|
<?php if ($dcckeditor_active): ?>
|
|
<div class="fieldset">
|
|
<h3>
|
|
<?php echo __('Options'); ?>
|
|
</h3>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_alignment_buttons', 1, $dcckeditor_alignment_buttons); ?>
|
|
<label class="classic" for="dcckeditor_alignment_buttons">
|
|
<?php echo __('Add alignment buttons'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_list_buttons', 1, $dcckeditor_list_buttons); ?>
|
|
<label class="classic" for="dcckeditor_list_buttons">
|
|
<?php echo __('Add lists buttons'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_textcolor_button', 1, $dcckeditor_textcolor_button); ?>
|
|
<label class="classic" for="dcckeditor_textcolor_button">
|
|
<?php echo __('Add text color button'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_background_textcolor_button', 1, $dcckeditor_background_textcolor_button); ?>
|
|
<label class="classic" for="dcckeditor_background_textcolor_button">
|
|
<?php echo __('Add background text color button'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_cancollapse_button', 1, $dcckeditor_cancollapse_button); ?>
|
|
<label class="classic" for="dcckeditor_cancollapse_button">
|
|
<?php echo __('Add collapse button'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_format_select', 1, $dcckeditor_format_select); ?>
|
|
<label class="classic" for="dcckeditor_format_select">
|
|
<?php echo __('Add format selection'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<label class="classic" for="dcckeditor_format_tags">
|
|
<?php echo __('Custom formats'); ?>
|
|
</label>
|
|
<?php echo form::field('dcckeditor_format_tags', 100, 255, $dcckeditor_format_tags); ?>
|
|
</p>
|
|
<p class="clear form-note">
|
|
<?php echo __('Default formats are p;h1;h2;h3;h4;h5;h6;pre;address'); ?>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_table_button', 1, $dcckeditor_table_button); ?>
|
|
<label class="classic" for="dcckeditor_table_button">
|
|
<?php echo __('Add table button'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_clipboard_buttons', 1, $dcckeditor_clipboard_buttons); ?>
|
|
<label class="classic" for="dcckeditor_clipboard_buttons">
|
|
<?php echo __('Add clipboard buttons'); ?>
|
|
</label>
|
|
</p>
|
|
<p class="clear form-note">
|
|
<?php echo __('Copy, Paste, Paste Text, Paste from Word'); ?>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_action_buttons', 1, $dcckeditor_action_buttons); ?>
|
|
<label class="classic" for="dcckeditor_action_buttons">
|
|
<?php echo __('Add undo/redo buttons'); ?>
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<?php echo form::checkbox('dcckeditor_disable_native_spellchecker', 1, $dcckeditor_disable_native_spellchecker); ?>
|
|
<label class="classic" for="dcckeditor_disable_native_spellchecker">
|
|
<?php echo __('Disables the built-in spell checker if the browser provides one'); ?>
|
|
</label>
|
|
</p>
|
|
</div>
|
|
<?php endif;?>
|
|
<p>
|
|
<input name="p" type="hidden" value="dcCKEditor"/>
|
|
<?php echo $core->
|
|
formNonce(); ?>
|
|
<input name="saveconfig" type="submit" value="<?php echo __('Save configuration'); ?>"/>
|
|
</p>
|
|
</form>
|
|
<?php endif;?>
|
|
<?php dcPage::helpBlock('dcCKEditor');?>
|
|
</body>
|
|
</html>
|