Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
16
application/helpers/general_helper.php
Normal file
16
application/helpers/general_helper.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
function getCSSPageMenuOpen($tree, $isMenu)
|
||||
{
|
||||
if (is_null($isMenu)) {
|
||||
if (get_instance()->uri->segment(2)) {
|
||||
if (in_array(get_instance()->uri->segment(2), $tree)) {
|
||||
return ' active';
|
||||
}
|
||||
} else if (in_array(get_instance()->uri->segment(1), $tree)) {
|
||||
return ' active';
|
||||
}
|
||||
} else if (in_array(get_instance()->uri->segment(1), $tree)) {
|
||||
return ' ' . ($isMenu ? 'menu-open' : 'active menu-open');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user