noble/app/helpers.php

13 lines
358 B
PHP
Raw Normal View History

2023-05-16 15:54:23 +03:00
<?php
function active_class($path, $active = 'active') {
return call_user_func_array('Request::is', (array)$path) ? $active : '';
}
function is_active_route($path) {
return call_user_func_array('Request::is', (array)$path) ? 'true' : 'false';
}
function show_class($path) {
return call_user_func_array('Request::is', (array)$path) ? 'show' : '';
}