Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.
Please keep in mind:
Support response
Support checklist
<?php
if (getSetting('website_privacy_mode') == 'public' || (getSetting('website_privacy_mode') == 'private' && Login::isLoggedUser())) {
?>
<?php
if (Handler::var('pages_link_visible')) {
?>
<li data-nav="about" class="phone-hide pop-btn pop-keep-click">
<span class="top-btn-text">
<span class="icon far fa-question-circle"></span><span class="btn-text phone-hide phablet-hide laptop-hide tablet-hide desktop-hide"><?php _se('About'); ?></span>
</span>
<div class="pop-box arrow-box arrow-box-top anchor-right">
<div class="pop-box-inner pop-box-menu">
<ul>
<?php
foreach (Handler::var('pages_link_visible') as $page) {
?>
<li<?php if ($page['icon']) {
echo ' class="with-icon"';
} ?>><a <?php echo ($page['link_attr'] ?? ''); ?>><?php echo ($page['title_html'] ?? ''); ?></a>
</li>
<?php
} ?>
</ul>
</div>
</div>
</li>
<?php
} ?>
<?php
} ?>
</ul>
</div>
$api_page = [
'type' => 'link',
'link_url' => get_base_url('api-v1'),
'icon' => 'fas fa-project-diagram',
'title' => 'API',
'is_active' => 0,
'is_link_visible' => 1,
'attr_target' => '_self',
'sort_display' => -2,
];
Page::fill($api_page);
$pages_visible[] = $api_page;
Maybe need one more thing, prevent API key generation.Ok to answer the original question I've managed to remove the API entry from the menu by removing some code code located in web.php
app/legacy/load/web.php
Removed the following from around line 531:
Code:$api_page = [ 'type' => 'link', 'link_url' => get_base_url('api-v1'), 'icon' => 'fas fa-project-diagram', 'title' => 'API', 'is_active' => 0, 'is_link_visible' => 1, 'attr_target' => '_self', 'sort_display' => -2, ]; Page::fill($api_page); $pages_visible[] = $api_page;
Remember that any future updates may overwrite the change.
$routes = [
'account' => _s('Account'),
'profile' => _s('Profile'),
'password' => _s('Password'),
'security' => _s('Security'),
#'api' => 'API',
'connections' => _s('Connections'),
'homepage' => _s('Homepage'),
'powered' => _s('Powered by'),
];
$icons = [
'account' => 'fas fa-user',
'profile' => 'fas fa-id-card',
#'api' => 'fas fa-project-diagram',
'password' => 'fas fa-key',
'security' => 'fas fa-shield-alt',
'connections' => 'fas fa-plug',
'homepage' => 'fas fa-home',
'powered' => 'fas fa-power-off',
];