1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

Voux theme now sets a default social plugin preference during install. "instant edit" links added to custom menus, other news2. (more to come)

This commit is contained in:
Cameron
2016-12-28 18:37:05 -08:00
parent 8af3a0780a
commit 4c27e56469
8 changed files with 56 additions and 21 deletions

View File

@@ -2889,7 +2889,22 @@ e107::getDebug()->log($sc_parameters);
}
/**
* Render a direct link admin-edit button on the frontend.
* @param $url
* @param string $perms
* @return string
*/
public function instantEditButton($url, $perms='0')
{
if(deftrue("BOOTSTRAP") && getperms($perms))
{
return "<span class='e-instant-edit hidden-print'><a target='_blank' title='".LAN_EDIT."' href='".$url."'>".e107::getParser()->toGlyph('fa-edit')."</a></span>";
}
return '';
}