-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_form.php
63 lines (56 loc) · 2.04 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
$link_target_value = get_option('default_link_target_value');
$link_text_value = get_option('default_link_text_value');
$embed_width_value = get_option('default_embed_width_value');
$embed_height_value = get_option('default_embed_height_value');
$view = get_view();
?>
<div class="field">
<h3>GoogleDoc Link Behavior</h3>
<div class="inputs">
<div class="input-block">
<div class="inputs five columns omega">
<?php echo get_view()->formCheckbox('link_target_value', null, array('checked' => $link_target_value)); echo " Checking this box sets the hyperlink to a GoogleDrive item to open in a new tab or window."; ?>
</div>
</div>
</div>
</div>
<div class="field">
<h3>Default Text for GoogleDoc Link</h3>
<div class="inputs">
<div class="input-block">
<div class="input">
<?php echo $view->formTextarea('link_text_value', $link_text_value, array('rows' => '3', 'cols' => '50', 'class' => array('textinput'))); ?>
</div>
<p class="explanation">
Enter text for the hotlink.
</p>
</div>
</div>
</div>
<div class="field">
<h3>Default Height for Embedded GoogleDoc</h3>
<div class="inputs">
<div class="input-block">
<div class="input">
<?php echo $view->formTextarea('embed_height_value', $embed_height_value, array('rows' => '3', 'cols' => '50', 'class' => array('textinput'))); ?>
</div>
<p class="explanation">
Enter a value for the height of the embedded GoogleDoc.
</p>
</div>
</div>
</div>
<div class="field">
<h3>Default Width for Embedded GoogleDoc</h3>
<div class="inputs">
<div class="input-block">
<div class="input">
<?php echo $view->formTextarea('embed_width_value', $embed_width_value, array('rows' => '3', 'cols' => '50', 'class' => array('textinput'))); ?>
</div>
<p class="explanation">
Enter a value for the width of the embedded GoogleDoc. Use %, if desired.
</p>
</div>
</div>
</div>