| 1 |
<?php |
| 2 |
defined('ABSPATH') or die("Protected By WT!"); |
| 3 |
|
| 4 |
function wtsec_isActivePage($page){ |
| 5 |
if(wtsec_request()->page === WTSEC_PAGE_PREFIX.$page){ |
| 6 |
return "wtotem_nav__link_active"; |
| 7 |
} |
| 8 |
return ""; |
| 9 |
} |
| 10 |
|
| 11 |
function wtsec_cutString($string, $length){ |
| 12 |
return (strlen($string) > $length) ? substr($string,0,$length).'...' : $string; |
| 13 |
} |