-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig-form.php
41 lines (41 loc) · 1.47 KB
/
config-form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php $view = get_view(); ?>
<div id="pdf-embed-settings">
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('height', __('Height')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php
echo __(
'Height of the embedded PDF viewer, in pixels. Width will automatically adjust '
. 'to fit the surrounding content.'
);
?>
</p>
<?php echo $view->formText('height', $settings['height']); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('pdf_embed_type', __('Embed Type')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php
echo __(
'Choose the method to use to embed PDF documents. "Object" uses the browser\'s native '
. 'PDF viewer or plugins like Adobe Reader. "PDF.js" uses a cross-browser '
. 'JavaScript-based PDF viewer.'
);
?>
</p>
<?php
echo $view->formSelect('pdf_embed_type', $settings['pdf_embed_type'], array(), array(
'object' => 'Object',
'pdf_js' => 'PDF.js'
));
?>
</div>
</div>
</div>