diff --git a/include/functions_plugins_admin.inc.php b/include/functions_plugins_admin.inc.php
index 3323e2e1..4d62520a 100644
--- a/include/functions_plugins_admin.inc.php
+++ b/include/functions_plugins_admin.inc.php
@@ -285,7 +285,7 @@ function placement_box($name, $val, $is_plugin_editable = false, $is_event = fal
}
/**
- * Show a placement box on where to move a sidebar plugin to
+ * Show the plugin configuration
*
* @access public
* @param object A plugin object
@@ -311,7 +311,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
if (!is_object($serendipity['smarty'])) {
serendipity_smarty_init();
}
- $tfile = "/admin/out_stack_loop.tpl";
+ $tfile = "/admin/plugin_config_item.tpl";
$data = array();
@@ -725,7 +725,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
$data['ev'] = $ev;
}
- echo serendipity_smarty_show('admin/serendipity_plugin_config.fnc.tpl', $data);
+ echo serendipity_smarty_show('admin/plugin_config.tpl', $data);
return true;
}
diff --git a/templates/2k11/admin/out_stack_loop.tpl b/templates/2k11/admin/out_stack_loop.tpl
deleted file mode 100644
index caf41a0d..00000000
--- a/templates/2k11/admin/out_stack_loop.tpl
+++ /dev/null
@@ -1,167 +0,0 @@
-{* serendipity_plugins_admin.inc.php::serendipity_plugin_config() - the OUT_STACK loop *}
- {if $ctype == 'seperator'}
-
- {/if}
- {if $ctype == 'select'}
-
- {$cname}
- {if $cdesc != ''}{$cdesc} {/if}
-
- {* Make sure id creation actually produces unique identifiers *}
- 0)) ? "size='{$select_size}'" : ''}>
- {foreach $select AS $select_value => $select_desc}
- {assign var="id" value="{$config_item|escape}_{$select_value|escape}"}
-
- {$select_desc|escape}
- {/foreach}
-
-
- {/if}
- {if $ctype == 'radio'}
-
- {$cname}{if $cdesc != ''} {$cdesc} {/if}
-
- {foreach $radio_button AS $r}
-
-
- {$r['index']}{* escapement is already done *}
- {assign var="r" value="counter[0]"}
-
- {/foreach}
-
-
- {/if}
- {if $ctype == 'string'}
-
- {$cname}
- {if $cdesc != ''}{$cdesc} {/if}
-
- {* TODO: Make sure id creation actually produces unique identifiers *}
-
-
- {/if}
- {if (($ctype == 'html') || ($ctype == 'text'))}
-
- {$cname}
- {if $cdesc != ''}{$cdesc} {/if}
-
-
-
-
- {/if}
- {if $ctype == 'content'}
-
- {$cbag_default}
-
- {/if}
- {if $ctype == 'custom'}
-
-
- {$cbag_custom}
-
- {/if}
- {if $ctype == 'hidden'}
-
-
-
- {/if}
- {if $ctype == 'media'}
-
-
{$cname}
- {if $cdesc != ''}{$cdesc} {/if}
-
- {* This should be solved using JS. *}
-
- {* This should be input[type=file] … *}
-
-
-
{$CONST.MEDIA_LIBRARY}
- {* … not touching it in order to not break it for now. *}
-
- {/if}
- {if $ctype == 'sequence'}
- {if !$sequencejs_output}
-
- {/if}
-
- {$cname}{if $cdesc != ''} {$cdesc} {/if}
-
-
-
-
-
-
-
-
- {foreach $order_id as $orid}
-
-
- {if $checkable}
-
-
- {* TODO: needs label *}
-
- {/if}
- {$items[{$orid['id']}]['display']}
- {if isset($items[{$orid['id']}]['img'])}
-
- {/if}
-
-
- {if ($orid['sort_idx'] == 0)}
-
- {else}
- Move Up {* i18n *}
- {/if}
- {if ($orid['sort_idx'] == $last)}
-
- {else}
- Move Down {* i18n *}
- {/if}
-
-
-
- {/foreach}
-
- {if isset($no_sequence)}
- {$no_sequence}
- {/if}
-
-{*** Smarty 3 has a new auto literal option which is enabled by default.
- When the { is surrounded by whitespace it is not interpreted as smarty delimiter but literal. e.g. ' } ;'
- AS tests have proofed, ending javascript delimiters " } ;" and " };" and even "};" work fine as well. So back to origin. ***}
-
- {/if}
diff --git a/templates/2k11/admin/serendipity_plugin_config.fnc.tpl b/templates/2k11/admin/plugin_config.tpl
similarity index 100%
rename from templates/2k11/admin/serendipity_plugin_config.fnc.tpl
rename to templates/2k11/admin/plugin_config.tpl
diff --git a/templates/2k11/admin/plugin_config_item.tpl b/templates/2k11/admin/plugin_config_item.tpl
new file mode 100644
index 00000000..ac7d4d16
--- /dev/null
+++ b/templates/2k11/admin/plugin_config_item.tpl
@@ -0,0 +1,154 @@
+{if $ctype == 'seperator'}
+
+{elseif $ctype == 'select'}
+
+ {$cname}
+ {if $cdesc != ''}{$cdesc} {/if}
+
+ {* Make sure id creation actually produces unique identifiers *}
+ 0)) ? "size='{$select_size}'" : ''}>
+ {foreach $select AS $select_value => $select_desc}
+ {assign var="id" value="{$config_item|escape}_{$select_value|escape}"}
+
+ {$select_desc|escape}
+ {/foreach}
+
+
+{elseif $ctype == 'radio'}
+
+ {$cname}{if $cdesc != ''} {$cdesc} {/if}
+
+ {foreach $radio_button AS $r}
+
+
+ {$r['index']}{* escapement is already done *}
+ {assign var="r" value="counter[0]"}
+
+ {/foreach}
+
+
+{elseif $ctype == 'string'}
+
+ {$cname}
+ {if $cdesc != ''}{$cdesc} {/if}
+
+ {* TODO: Make sure id creation actually produces unique identifiers *}
+
+
+{elseif (($ctype == 'html') || ($ctype == 'text'))}
+
+ {$cname}
+ {if $cdesc != ''}{$cdesc} {/if}
+
+
+
+
+{elseif $ctype == 'content'}
+
+ {$cbag_default}
+
+{elseif $ctype == 'custom'}
+
+
+ {$cbag_custom}
+
+{elseif $ctype == 'hidden'}
+
+
+
+{elseif $ctype == 'media'}
+
+
{$cname}
+ {if $cdesc != ''}{$cdesc} {/if}
+
+ {* This should be solved using JS. *}
+
+ {* This should be input[type=file] … *}
+
+
+
{$CONST.MEDIA_LIBRARY}
+ {* … not touching it in order to not break it for now. *}
+
+{elseif $ctype == 'sequence'}
+ {if !$sequencejs_output}
+
+ {/if}
+
+ {$cname}{if $cdesc != ''} {$cdesc} {/if}
+
+
+
+
+
+
+
+
+ {foreach $order_id as $orid}
+
+
+ {if $checkable}
+
+
+ {* TODO: needs label *}
+
+ {/if}
+ {$items[{$orid['id']}]['display']}
+ {if isset($items[{$orid['id']}]['img'])}
+
+ {/if}
+
+
+ {if ($orid['sort_idx'] == 0)}
+
+ {else}
+ Move Up {* i18n *}
+ {/if}
+ {if ($orid['sort_idx'] == $last)}
+
+ {else}
+ Move Down {* i18n *}
+ {/if}
+
+
+
+ {/foreach}
+
+ {if isset($no_sequence)}
+ {$no_sequence}
+ {/if}
+
+
+{/if}