|
@@ 609-613 (lines=5) @@
|
| 606 |
|
} |
| 607 |
|
|
| 608 |
|
$html .= ' '; |
| 609 |
|
if ($config->get('cms.allow.pdf.versions')) { |
| 610 |
|
$html .= ' '; |
| 611 |
|
$temp = new Button("document.location = '".FrontController::generateSecureURL("act=Alpha\Controller\ArticleController&mode=pdf&title=".$this->record->get('title'))."';", 'Open PDF Version', 'pdfBut'); |
| 612 |
|
$html .= $temp->render(); |
| 613 |
|
} |
| 614 |
|
|
| 615 |
|
// render edit button for admins only |
| 616 |
|
if ($session->get('currentUser') instanceof Alpha\Model\Person && $session->get('currentUser')->inGroup('Admin')) { |
|
@@ 616-620 (lines=5) @@
|
| 613 |
|
} |
| 614 |
|
|
| 615 |
|
// render edit button for admins only |
| 616 |
|
if ($session->get('currentUser') instanceof Alpha\Model\Person && $session->get('currentUser')->inGroup('Admin')) { |
| 617 |
|
$html .= ' '; |
| 618 |
|
$button = new Button("document.location = '".FrontController::generateSecureURL('act=Alpha\Controller\ArticleController&mode=edit&ActiveRecordOID='.$this->record->getID())."'", 'Edit', 'editBut'); |
| 619 |
|
$html .= $button->render(); |
| 620 |
|
} |
| 621 |
|
} |
| 622 |
|
|
| 623 |
|
if ($config->get('cms.display.standard.footer')) { |