faae4b0533
This supports custom ckeditor plugins and a custom ckeditor config and reads $eventData for - normal entry form (case1) textareas, - staticpage (case2) textareas and - other nugget plugins (case3) textareas. They all are build differently, therfore we needed three cases. Please test! Based to following commits8e26bd9prepare core ckeditor for custom config and plugins44ea050fix virtual js40609d8add backend_footer hook References #72
68 lines
2.7 KiB
Smarty
68 lines
2.7 KiB
Smarty
{if $showSubmit_head}
|
|
<div class="form_buttons">
|
|
{if $postKey == "template"}
|
|
<a class="button_link" href="?serendipity[adminModule]=templates">{$CONST.BACK}</a>
|
|
{/if}
|
|
<input name="SAVECONF" type="submit" value="{$CONST.SAVE}">
|
|
</div>
|
|
{/if}
|
|
{if is_array($config_groups)}
|
|
<button id="show_config_all" class="button_link" type="button" data-href="#serendipity_config_options" title="{$CONST.TOGGLE_ALL}">
|
|
<span class="icon-right-dir"></span><span class="visuallyhidden"> {$CONST.TOGGLE_ALL}</span>
|
|
</button>
|
|
|
|
<div id="serendipity_config_options">
|
|
{foreach $config_groups AS $config_header => $config_groupkeys}
|
|
<div class="configuration_group">
|
|
<h3 class="toggle_headline"><button id="optionel{$config_groupkeys@iteration}" class="show_config_option" type="button" data-href="#el{$config_groupkeys@iteration}" title="{$CONST.TOGGLE_OPTION}"><span class="icon-right-dir"></span> {$config_header}</button></h3>
|
|
|
|
<fieldset id="el{$config_groupkeys@iteration}" class="config_optiongroup{if $config_groupkeys@last} config_optiongroup_last{/if} additional_info">
|
|
{foreach $config_groupkeys AS $config_groupkey}
|
|
<div class="{cycle values='odd,even'}">
|
|
{$plugin_options[$config_groupkey]}
|
|
</div>
|
|
{/foreach}
|
|
</fieldset>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
{/if}
|
|
|
|
{* Those are only needed if the plugin contains a config item of type sequence, liek the entryproperty-plugin *}
|
|
<script src="{serendipity_getFile file="admin/js/jquery.autoscroll.js"}"></script>
|
|
<script src="{serendipity_getFile file="admin/js/jquery.sortable.js"}"></script>
|
|
<script src="{serendipity_getFile file="admin/js/dragdrop.js"}"></script>
|
|
{foreach $plugin_options_ungrouped as $plugin_option}
|
|
<div class="configuration_group {cycle values='odd,even'}">
|
|
{$plugin_option}
|
|
</div>
|
|
{/foreach}
|
|
{if $showSubmit_foot}
|
|
<div class="form_buttons">
|
|
{if $postKey == "template"}
|
|
<a class="button_link" href="?serendipity[adminModule]=templates">{$CONST.BACK}</a>
|
|
{/if}
|
|
<input name="SAVECONF" type="submit" value="{$CONST.SAVE}">
|
|
</div>
|
|
{/if}
|
|
{if $showExample}
|
|
<div>{$plugin_example}</div>
|
|
{/if}
|
|
{if $spawnNuggets}
|
|
{serendipity_hookPlugin hook="backend_wysiwyg_nuggets" eventData=$ev hookAll=true}
|
|
{if $ev['skip_nuggets'] === false}
|
|
|
|
<script type="text/javascript">
|
|
function Spawnnugget() {
|
|
{foreach $ev['nuggets'] AS $nuggetid}
|
|
|
|
if (window.Spawnnuggets) Spawnnuggets('{$nuggetid}');//case3{* plugin nuggets via function serendipity_plugin_config() eg side html nuggets *}
|
|
|
|
{/foreach}
|
|
|
|
}
|
|
</script>
|
|
|
|
{/if}
|
|
{/if}
|