Open the file /engine/skins/default.skin.php
Find
<div class="action-nav-normal action-nav-line" style="display: inline-block;">
<div class="action-nav-button nav-small" style="width:180px;">
<a href="{$PHP_SELF}?mod=editnews&action=list" class="tip" title="{$lang['edit_news']}">
<i class="icon-edit"></i>
<span>{$lang['edit_news']}</span>
</a>
<span class="triangle-button blue"><i class="icon-pencil"></i></span>
</div>
</div>
Below add
<div class="action-nav-normal action-nav-line" style="display: inline-block;">
<div class="action-nav-button nav-small" style="width:120px;">
<a id="clrbtn" class="tip" title="{$lang['btn_clearcache']}">
<i class="icon-trash"></i>
<span>{$lang['btn_clearcache']}</span>
</a>
<span class="triangle-button red"><i class="icon-remove"></i></span>
</div>
</div>
To find
$skin_footer = <<<HTML
<!-- maincontent end -->
</div>
Below insert
<script type="text/javascript">
$(function(){
$('#clrbtn').click(function() {
$.get("engine/ajax/adminfunction.php?action=clearcache", function( data ){
$('#cachesize').html('0 b');
Growl.info({
title: '{$lang[p_info]}',
text: data
});
});
return false;
});
});
</script>
Done!
Author: yackers version DataLife Engine: DLE 10.2 and above for example on Dle 10.5
Aucun commentaire:
Enregistrer un commentaire