v7‰PNG
IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ±üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0AºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT
path ?
REL_ROOT_URL . "/page/" . urlencode($this->path) :
REL_ROOT_URL . "/content/p/id/" . $this->page_id."/";
}
public function render(Am_View $view, $user = null, $use_layout = true)
{
$html = $this->html;
if (strpos($html, '%user.') !== false) {
$t = new Am_SimpleTemplate();
if ($user)
$t->assign('user', $user);
$t->assignStdVars();
$html = $t->render($html);
}
if ($use_layout && $this->use_layout) {
$view->content = '
' . $html . '
';
$view->title = $this->title;
$view->meta_title = $this->meta_title ? $this->meta_title : $this->title;
if ($this->meta_keywords)
$view->headMeta()->setName('keywords', $this->meta_keywords);
if ($this->meta_description)
$view->headMeta()->setName('description', $this->meta_description);
if ($this->meta_robots)
$view->headMeta()->setName('robots', $this->meta_robots);
return $view->render($this->tpl ? $this->tpl : 'layout.phtml');
} else
return $html;
}
}
class PageTable extends ResourceAbstractTable {
protected $_key = 'page_id';
protected $_table = '?_page';
protected $_recordClass = 'Page';
public function getAccessType()
{
return ResourceAccess::PAGE;
}
public function getAccessTitle()
{
return ___('Pages');
}
public function getPageId()
{
return 'pages';
}
}