Guest User

Untitled

a guest
Apr 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class PreHome extends SiteTree {
  2. static $db = array(
  3. );
  4. static $has_one = array(
  5. );
  6.  
  7. public function LinkingMode() {
  8. $this->prepareCurrentAndSection();
  9.  
  10. if($this->ID == self::$currentPageID) {
  11. return "active";
  12. } else if(in_array($this->ID, self::$currentSectionIDs)) {
  13. return "too";
  14. } else {
  15. return "test";
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment