1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 11:22:40 +01:00
phorge-phorge/src/view/phui/PHUIDocumentView.php

41 lines
710 B
PHP
Raw Normal View History

<?php
final class PHUIDocumentView extends AphrontTagView {
private $offset;
public function setOffset($offset) {
$this->offset = $offset;
return $this;
}
public function getTagAttributes() {
$classes = array();
if ($this->offset) {
$classes[] = 'phui-document-offset';
};
return array(
'class' => $classes,
);
}
public function getTagContent() {
require_celerity_resource('phui-document-view-css');
return phutil_tag(
'div',
array(
'class' => 'phui-document-view',
),
phutil_tag(
'div',
array(
'class' => 'phui-document-content',
),
$this->renderChildren()));
}
}