Merge branch '2.0' of github.com:s9y/Serendipity into 2.0
This commit is contained in:
@ -42,6 +42,9 @@
|
||||
{if $postKey == "template"}
|
||||
<a class="button_link" href="?serendipity[adminModule]=templates">{$CONST.BACK}</a>
|
||||
{/if}
|
||||
{if $postKey == "plugin"}
|
||||
<a class="button_link" href="?serendipity[adminModule]=plugins">{$CONST.BACK}</a>
|
||||
{/if}
|
||||
<input name="SAVECONF" type="submit" value="{$CONST.SAVE}">
|
||||
</div>
|
||||
{/if}
|
||||
|
@ -146,6 +146,9 @@
|
||||
{if $save}
|
||||
<span class="msg_success"><span class="icon-ok-circled"></span> {$CONST.DONE}:{$CONST.SETTINGS_SAVED_AT|sprintf:"$timestamp"}</span>
|
||||
{/if}
|
||||
{if $new_plugin_failed}
|
||||
<span class="msg_error"><span class="icon-attention-circled"></span> {$CONST.ERROR}: Plugin not stackable and already installed</span> {* i18n *}
|
||||
{/if}
|
||||
<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>
|
||||
|
@ -164,7 +164,7 @@
|
||||
|
||||
// Opens media db image selection in new window
|
||||
serendipity.choose_media = function(id) {
|
||||
serendipity.openPopup('serendipity_admin.php?serendipity[adminModule]=media&serendipity[noBanner]=true&serendipity[noSidebar]=true&serendipity[noFooter]=true&serendipity[showMediaToolbar]=false&serendipity[htmltarget]=' + id + '&serendipity[filename_only]=true');
|
||||
serendipity.openPopup('serendipity_admin.php?serendipity[adminModule]=media&serendipity[noBanner]=true&serendipity[noSidebar]=true&serendipity[noFooter]=true&serendipity[showMediaToolbar]=false&serendipity[showUpload]=true&serendipity[htmltarget]=' + id + '&serendipity[filename_only]=true');
|
||||
}
|
||||
|
||||
// "Transfer" value from media db popup to form element, used for example for selecting a category-icon
|
||||
@ -1404,7 +1404,18 @@ $(function() {
|
||||
progress.disabled = true;
|
||||
progressContainer.innerHTML += "{$CONST.ERROR_UNKNOWN_NOUPLOAD}";
|
||||
$(progressContainer).find('.uploadIcon').replaceWith(errorIcon.cloneNode(true));
|
||||
})
|
||||
}).always(function() {
|
||||
if ($('#ml_link').length == 0) {
|
||||
var mlLink = document.createElement('a');
|
||||
mlLink.id = "ml_link";
|
||||
mlLink.className = "button_link";
|
||||
mlLink.href = $('#uploadform').attr('action');
|
||||
mlLink.innerHTML = "{$CONST.MEDIA_LIBRARY}";
|
||||
$(mlLink).hide();
|
||||
$('.form_buttons').prepend(mlLink);
|
||||
$(mlLink).fadeIn();
|
||||
}
|
||||
});
|
||||
}, type);
|
||||
}
|
||||
image.src = readerEvent.target.result;
|
||||
|
@ -6,12 +6,6 @@ if (IN_serendipity !== true) { die ("Don't hack!"); }
|
||||
$serendipity['smarty']->assign(array('currpage' => "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],
|
||||
'currpage2' => $_SERVER['REQUEST_URI']));
|
||||
|
||||
if (!function_exists('serendipity_smarty_html5time')) {
|
||||
function serendipity_smarty_html5time($timestamp) { return date("c", $timestamp); }
|
||||
|
||||
$serendipity['smarty']->registerPlugin('modifier', 'serendipity_html5time', 'serendipity_smarty_html5time');
|
||||
}
|
||||
|
||||
if (class_exists('serendipity_event_spamblock')) {
|
||||
$required_fieldlist = serendipity_db_query("SELECT value FROM {$serendipity['dbPrefix']}config WHERE name LIKE '%spamblock%required_fields'", true, 'assoc');
|
||||
} elseif (class_exists('serendipity_event_commentspice')) {
|
||||
|
Reference in New Issue
Block a user