83 lines
3.2 KiB
PHTML
Executable File
83 lines
3.2 KiB
PHTML
Executable File
<?php if (!defined('ENLIGHTER_INIT')) die('DIRECT ACCESS PROHIBITED'); ?>
|
|
|
|
<!-- ADVANCED SETTINGS -->
|
|
<div class="postbox enlighter-postbox">
|
|
<h3 class="hndle"><span><?php _e('EnlighterJS', 'enlighter'); ?></span></h3>
|
|
<div class="inside enlighter-setting-section">
|
|
|
|
<p class="enlighter-text-false">
|
|
<?php _e('Warning: These options are for advanced users only! Unaware changed may break the plugin!', 'enlighter'); ?>
|
|
</p>
|
|
|
|
<h4><?php _e('EnlighterJS CSS Selectors', 'enlighter'); ?></h4>
|
|
<p><?php _e('The selectors are used to match all generated tags. Normally pre.EnlighterJSRAW/code.EnlighterJSRAW should be perfect (all tags which are generated by the plugin will be highlighted)', 'enlighter'); ?></p>
|
|
|
|
<!-- Block Code !-->
|
|
<?php $this->_settingsUtility->displayInput(
|
|
__('CSS block selector', 'enlighter'),
|
|
'enlighterjs-selector-block',
|
|
array(
|
|
'label' => 'Default: pre.EnlighterJSRAW',
|
|
'description' => __('The CSS selector used to match generated block code', 'enlighter')
|
|
));
|
|
?>
|
|
|
|
<!-- Inline Code !-->
|
|
<?php $this->_settingsUtility->displayInput(
|
|
__('CSS inline selector', 'enlighter'),
|
|
'enlighterjs-selector-inline',
|
|
array(
|
|
'label' => 'Default: code.EnlighterJSRAW',
|
|
'description' => __('The CSS selector used to match generated inline code', 'enlighter')
|
|
));
|
|
?>
|
|
|
|
<h4><?php _e('EnlighterJS options', 'enlighter'); ?></h4>
|
|
|
|
<!-- Fallback language -->
|
|
<?php $this->_settingsUtility->displaySelect(__('Fallback language', 'enlighter'), 'enlighterjs-language',
|
|
$V_languages,
|
|
array(
|
|
'description' => __('For legacy compatibility only! The selected language is used in case that no language property of a codeblock has been set.', 'enlighter')
|
|
)
|
|
); ?>
|
|
|
|
<!-- Ampersand escape sequence handling -->
|
|
<?php $this->_settingsUtility->displayCheckbox(__('Ampersand cleanup', 'enlighter'), 'enlighterjs-ampersandcleanup',
|
|
array(
|
|
'label' => 'Enable',
|
|
'description' => __('Replace the ampersand html escape sequence with the character.', 'enlighter')
|
|
)
|
|
); ?>
|
|
|
|
<!-- Retain CSS Classes -->
|
|
<?php $this->_settingsUtility->displayCheckbox(__('Retain CSS Classes', 'enlighter'), 'enlighterjs-retaincss',
|
|
array(
|
|
'label' => 'Enable',
|
|
'description' => __('Copy css classes from the pre/code container (editor) to the EnlighterJS generated markup. This option is targeted to advanced users and should kept disabled!', 'enlighter')
|
|
)
|
|
); ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- ADVANCED SETTINGS -->
|
|
<div class="postbox enlighter-postbox">
|
|
<h3 class="hndle"><span><?php _e('Plugin', 'enlighter'); ?></span></h3>
|
|
<div class="inside enlighter-setting-section">
|
|
|
|
<h4><?php _e('I18n (Internationalization)', 'enlighter'); ?></h4>
|
|
<!-- I18N !-->
|
|
<?php $this->_settingsUtility->displayCheckbox(
|
|
__('I18n', 'enlighter'),
|
|
'translation-enabled',
|
|
array(
|
|
'label' => 'Enable',
|
|
'description' =>__('Should the plugin load language files (if available) to translate the settings page ?', 'enlighter')
|
|
));
|
|
?>
|
|
</div>
|
|
</div>
|
|
|