2017-03-16 03:56:12 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Widget;
|
2017-03-16 03:56:12 +00:00
|
|
|
|
2021-12-02 22:33:36 +00:00
|
|
|
use App;
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class Design_tools
|
|
|
|
{
|
2017-03-16 03:56:12 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function widget($arr)
|
|
|
|
{
|
2017-03-16 03:56:12 +00:00
|
|
|
|
2021-12-03 03:01:39 +00:00
|
|
|
if (perm_is_allowed(App::$profile['profile_uid'], get_observer_hash(), 'write_pages') || (App::$is_sys && is_site_admin())) {
|
2021-12-02 23:02:31 +00:00
|
|
|
return design_tools();
|
2021-12-03 03:01:39 +00:00
|
|
|
}
|
2017-03-16 03:56:12 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
return EMPTY_STR;
|
|
|
|
}
|
2021-12-03 03:01:39 +00:00
|
|
|
}
|