summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/controls/SampleLayout.php
blob: 94b7ac74f75c12e7f9f19d5d658169e222ea5477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

class SampleLayout extends TTemplateControl
{

	public function __construct()
	{
		if($this->Request->Items->contains('functionaltest'))
			$this->Service->RequestedPage->EnableTheming=false;
		parent::__construct();
	}

	public function toggleTopicPanel($sender,$param)
	{
		$this->TopicPanel->Visible=!$this->TopicPanel->Visible;
		if($this->TopicPanel->Visible)
			$sender->Text="Hide TOC";
		else
			$sender->Text="Show TOC";
	}
}

?>