Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2. function set_active($uri, $output = 'active')
  3. {
  4. if( is_array($uri) ) {
  5. foreach ($uri as $u) {
  6. if (Request::is($u)) {
  7. return $output;
  8. }
  9. }
  10. } else {
  11. if (Request::is($uri)){
  12. return $output;
  13. }
  14. }
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement