1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

v0.4: title/subtitle configurable, templates split into parts, several fixes

This commit is contained in:
frankdelange 2014-12-15 01:03:42 +01:00
parent 62ef3b9d4d
commit 74f25cfe7c
17 changed files with 142 additions and 131 deletions

View file

@ -10,6 +10,8 @@
* later.
*/
$l = new \OC_L10N('files_opds');
function checkBox($format) {
foreach($format as $name => $enabled) {
echo '<input type="checkbox" id="opds-preview-' . $name . '" name="opds-preview-' . $name . '" ' . ($enabled == 1 ? 'checked >' : '>');
@ -19,9 +21,14 @@ function checkBox($format) {
?>
<div class="section" id="opds">
<h2><?php p($l->t('OPDS')); ?></h2>
<h3>Enable preview for:<span class="msg"></span></h3>
<div class="section" id="opds-admin">
<h2><?php p($l->t('OPDS')); ?><span class="msg"></span></h2>
<div>
<label for="opds-feed-subtitle"><?php p($l->t('Feed subtitle:')) ?></label>
<input type="text" id="opds-feed-subtitle" title="<?php p($l->t("Enter subtitle for OPDS catalog.")); ?>" value="<?php p($_['feedSubtitle']) ?>" />
</div>
<br>
<p><?php p($l->t('Enable preview for:')); ?></p>
<div class="indent">
<?php foreach ($_['previewFormats'] as $format): ?>
<div>
@ -31,14 +38,14 @@ function checkBox($format) {
</div>
<br>
<div>
<p>Cover size</p>
<p><?php p($l->t('Cover size')); ?></p>
<label for="opds-cover-x"><?php p($l->t('width')) ?></label>
<input type="text" id="opds-cover-x" title="<?php p($l->t("Enter cover image width in pixels")); ?>" value="<?php p($_['cover-x']) ?>" />
<label for="opds-cover-y"><?php p($l->t('height')) ?></label>
<input type="text" id="opds-cover-y" title="<?php p($l->t("Enter cover image height in pixels")); ?>" value="<?php p($_['cover-y']) ?>" />
</div>
<div>
<p>Cover thumbnail size</p>
<p><?php p($l->t('Cover thumbnail size')); ?></p>
<label for="opds-thumb-x"><?php p($l->t('width')) ?></label>
<input type="text" id="opds-thumb-x" title="<?php p($l->t("Enter thumbnail width in pixels")); ?>" value="<?php p($_['thumb-x']) ?>" />
<label for="opds-thumb-y"><?php p($l->t('height')) ?></label>