Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PreHome extends SiteTree {
- static $db = array(
- );
- static $has_one = array(
- );
- public function LinkingMode() {
- $this->prepareCurrentAndSection();
- if($this->ID == self::$currentPageID) {
- return "active";
- } else if(in_array($this->ID, self::$currentSectionIDs)) {
- return "too";
- } else {
- return "test";
- }
- }
- }
Add Comment
Please, Sign In to add comment