mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add new configuration for preview of pdf documents
This commit is contained in:
parent
f8f527a174
commit
f960f69fc9
|
@ -201,6 +201,10 @@ class Settings { /* {{{ */
|
|||
var $_previewWidthList = 40;
|
||||
// Preview image width on document details page
|
||||
var $_previewWidthDetail = 100;
|
||||
// show full preview on document details page
|
||||
var $_showFullPreview = false;
|
||||
// convert to pdf for preview on document details page
|
||||
var $_convertToPdf = false;
|
||||
// Show form to submit missing translations at end of page
|
||||
var $_showMissingTranslations = false;
|
||||
// Extra Path to additional software, will be added to include path
|
||||
|
@ -377,6 +381,8 @@ class Settings { /* {{{ */
|
|||
$this->_previewWidthList = intval($tab["previewWidthList"]);
|
||||
if(isset($tab["previewWidthDetail"]))
|
||||
$this->_previewWidthDetail = intval($tab["previewWidthDetail"]);
|
||||
$this->_showFullPreview = Settings::boolVal($tab["showFullPreview"]);
|
||||
$this->_convertToPdf = Settings::boolVal($tab["convertToPdf"]);
|
||||
|
||||
// XML Path: /configuration/site/edition
|
||||
$node = $xml->xpath('/configuration/site/edition');
|
||||
|
@ -660,6 +666,8 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "theme", $this->_theme);
|
||||
$this->setXMLAttributValue($node, "previewWidthList", $this->_previewWidthList);
|
||||
$this->setXMLAttributValue($node, "previewWidthDetail", $this->_previewWidthDetail);
|
||||
$this->setXMLAttributValue($node, "showFullPreview", $this->_showFullPreview);
|
||||
$this->setXMLAttributValue($node, "convertToPdf", $this->_convertToPdf);
|
||||
|
||||
// XML Path: /configuration/site/edition
|
||||
$node = $this->getXMLNode($xml, '/configuration/site', 'edition');
|
||||
|
|
|
@ -60,6 +60,8 @@ if ($action == "saveSettings")
|
|||
$settings->_theme = $_POST["theme"];
|
||||
$settings->_previewWidthList = $_POST["previewWidthList"];
|
||||
$settings->_previewWidthDetail = $_POST["previewWidthDetail"];
|
||||
$settings->_showFullPreview = getBoolValue("showFullPreview");
|
||||
$settings->_convertToPdf = getBoolValue("convertToPdf");
|
||||
|
||||
// SETTINGS - SITE - EDITION
|
||||
$settings->_strictFormCheck = getBoolValue("strictFormCheck");
|
||||
|
|
|
@ -153,6 +153,14 @@ if(!is_writeable($settings->_configFilePath)) {
|
|||
<td><?php printMLText("settings_previewWidthDetail");?>:</td>
|
||||
<td><?php $this->showTextField("previewWidthDetail", $settings->_previewWidthDetail); ?></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_showFullPreview_desc");?>">
|
||||
<td><?php printMLText("settings_showFullPreview");?>:</td>
|
||||
<td><input name="showFullPreview" type="checkbox" <?php if ($settings->_showFullPreview) echo "checked" ?> /></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_convertToPdf_desc");?>">
|
||||
<td><?php printMLText("settings_convertToPdf");?>:</td>
|
||||
<td><input name="convertToPdf" type="checkbox" <?php if ($settings->_convertToPdf) echo "checked" ?> /></td>
|
||||
</tr>
|
||||
|
||||
<!--
|
||||
-- SETTINGS - SITE - EDITION
|
||||
|
|
Loading…
Reference in New Issue
Block a user