The smartified code as forked from master to 2.0 being outsourced, now is to find in /include/admin/tplold, which will still be used as the default backend template dir. To switch to the new version, please paste the dirs and files of s9y-admin-tpl as adviced in the readme and reload, but also add a ```php // End of Serendipity configuration file // You can place your own special variables after here: define('SWITCH_TEMPLATE_VERSION', 'true'); ``` to the end of your serendipity_config_local.inc.php. To switch back to the old smartified files, just set a // to the define().
58 lines
2.0 KiB
Smarty
58 lines
2.0 KiB
Smarty
{if $importForm}
|
|
{if $die}
|
|
FAILURE: Unable to require import module, possible syntax error?
|
|
{else}
|
|
{if $validateData}
|
|
{$CONST.IMPORT_STARTING}<br />
|
|
{if $result != true}
|
|
{$CONST.IMPORT_FAILED}: {$result}<br />
|
|
{else}
|
|
{$CONST.IMPORT_DONE}<br />
|
|
{/if}
|
|
{else}
|
|
{$CONST.IMPORT_PLEASE_ENTER}
|
|
<br />
|
|
<form action="" method="POST" enctype="multipart/form-data">
|
|
{$formToken}
|
|
<table cellpadding="3" cellspacing="2">
|
|
{foreach $fields as $field}
|
|
<tr>
|
|
<td>{$field.text}</td>
|
|
<td>{$field.guessedInput}</td>
|
|
</tr>
|
|
{/foreach}
|
|
{if $notes}
|
|
<tr>
|
|
<td colspan="2">
|
|
<b>{$CONST.IMPORT_NOTES}</b><br />
|
|
{$notes}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td colspan="2" align="right"><input type="submit" value="{$CONST.IMPORT_NOW}" class="serendipityPrettyButton input_button"></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
{/if}
|
|
{/if}
|
|
{else}
|
|
{$CONST.IMPORT_WELCOME}.<br />
|
|
{$CONST.IMPORT_WHAT_CAN}. <br />
|
|
<br />
|
|
{$CONST.IMPORT_SELECT}:<br />
|
|
<br />
|
|
<form action="" method="GET">
|
|
<input type="hidden" name="serendipity[adminModule]" value="import">
|
|
{$formToken}
|
|
<strong>{$CONST.IMPORT_WEBLOG_APP}: </strong>
|
|
<select name="serendipity[importFrom]">
|
|
{foreach $list as $v => $k}
|
|
<option value="{$v}">{$k}</option>
|
|
{/foreach}
|
|
</select>
|
|
<input type="submit" value="{$CONST.GO}" class="serendipityPrettyButton input_button">
|
|
</form>
|
|
{/if}
|
|
|
|
|