'LocalFiles Editor',
'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__))
)
);
return $menu;
}
function localfiles_css_link()
{
global $template;
$template->set_prefilter('themes', 'localfiles_css_link_prefilter');
}
function localfiles_css_link_prefilter($content, &$smarty)
{
$search = '#{if isset\(\$theme.admin_uri\)}.*?{/if}#s';
$replacement = '
{if isset($theme.admin_uri)}
{\'Configuration\'|@translate}
| CSS
{else}
CSS
{/if}
';
return preg_replace($search, $replacement, $content);
}
add_event_handler('get_admin_plugin_menu_links', 'localfiles_admin_menu');
add_event_handler('loc_begin_admin', 'localfiles_css_link');
?>