diff --git a/plugins/ktstandard/PDFGeneratorAction.php b/plugins/ktstandard/PDFGeneratorAction.php index f74ba6d..de7d3ff 100644 --- a/plugins/ktstandard/PDFGeneratorAction.php +++ b/plugins/ktstandard/PDFGeneratorAction.php @@ -72,12 +72,12 @@ class PDFGeneratorAction extends KTDocumentAction { // make sure that the selected document is of an acceptable extension foreach($this->aAcceptedMimeTypes as $acceptType){ if($acceptType == $sDocType){ - // built server path - global $default; - $sHostPath = "http" . ($default->sslEnabled ? "s" : "") . "://".$_SERVER['HTTP_HOST']."/".$GLOBALS['KTRootUrl']."/"; + // build server path + $sHostPath = KTUtil::kt_url(); // create image - $icon = "PDF"; - return _kt('Generate PDF') . "  $this->oDocument->getId(), "action" => "pdfdownload") ) . "\" $icon"; + $icon = "PDF"; + $link = KTUtil::ktLink('action.php', 'ktstandard.pdf.generate', array( 'fDocumentId' => $this->oDocument->getId(), 'action' => 'pdfdownload')); + return _kt('Generate PDF') . " {$icon}"; } } } diff --git a/resources/css/kt-framing.css b/resources/css/kt-framing.css index 787bf15..3c9f6da 100644 --- a/resources/css/kt-framing.css +++ b/resources/css/kt-framing.css @@ -1033,6 +1033,7 @@ a.main_nav_item { background: #ffdd80; padding-left: 10px; margin-top: 20px; + padding-bottom: 8px; } .ktError .err_item { @@ -1052,6 +1053,7 @@ a.main_nav_item { background: #DEDEDE; padding-left: 10px; margin-top: 20px; + padding-bottom: 8px; } .ktInfo .info_item {