separated modifiers, added standard
This commit is contained in:
@@ -9,18 +9,20 @@ class APIgoatDoc extends APIgoatTemplate
|
||||
$menu = '';
|
||||
|
||||
foreach ($data as $row) {
|
||||
|
||||
$menu .= li(href($row['name'], '#' . $row['title']), "class='page_item wd-state-closed'");
|
||||
$content .= div(
|
||||
anchor($row['title'])
|
||||
. h2($row['title'], "class='entry-title'")
|
||||
. h3($row['name'])
|
||||
. span($row['type'] . " " . $row['value'])
|
||||
. p(trim($row['text']))
|
||||
. ((!empty($row['example'])) ? div(span("Example:") . pre(htmlentities($row['example']))) : ''),
|
||||
"",
|
||||
"class='doc-item'"
|
||||
);
|
||||
if (!empty($row['name'])) {
|
||||
$menu .= li(href($row['name'], '#' . $row['title']), "class='page_item wd-state-closed'");
|
||||
$content .= div(
|
||||
anchor($row['title'])
|
||||
. h2($row['title'], "class='entry-title'")
|
||||
. h3($row['name'])
|
||||
. h4($row['group'])
|
||||
. span($row['type'] . " " . $row['value'])
|
||||
. p(trim($row['text']))
|
||||
. ((!empty($row['example'])) ? div(span("Example:") . pre(htmlentities($row['example']))) : ''),
|
||||
"",
|
||||
"class='doc-item'"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($headers as $name => $header) {
|
||||
|
||||
Reference in New Issue
Block a user