blob: ff08bfcf5ee5c893e452f28e6544a25cbcbd98a4 (
plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
<div id="leftbar" class="bar">
<input id="showleftpanel" name="workspace[showleftpanel]" value="1" class="toggle" type="checkbox" <?= $showleftpanel == true ? 'checked' : '' ?>>
<label for="showleftpanel" class="toogle">◧</label>
<div id="leftbarpanel" class="panel">
<details id="editinfo" open>
<summary>Infos</summary>
<fieldset>
<label for="title">title :</label>
<input type="text" name="title" id="title" value="<?= $art->title(); ?>">
<label for="description">Description :</label>
<input type="text" name="description" id="description" value="<?= $art->description(); ?>">
<label for="tag">Tag(s) :</label>
<input type="text" name="tag" id="tag" value="<?= $art->tag('string'); ?>">
<label for="secure">Privacy level :</label>
<select name="secure" id="secure">
<option value="0" <?= $art->secure() == 0 ? 'selected' : '' ?>>0</option>
<option value="1" <?= $art->secure() == 1 ? 'selected' : '' ?>>1</option>
<option value="2" <?= $art->secure() == 2 ? 'selected' : '' ?>>2</option>
<option value="3" <?= $art->secure() == 3 ? 'selected' : '' ?>>3</option>
</select>
<label for="date">Date</label>
<input type="date" name="pdate" value="<?= $art->date('pdate') ?>" id="date">
<label for="time">Time</label>
<input type="time" name="ptime" value="<?= $art->date('ptime') ?>" id="time">
</fieldset>
</details>
<details open>
<summary>Tempalte</summary>
<fieldset>
<label for="templatebody">BODY template</label>
<select name="templatebody" id="templatebody">
<option value="" <?= empty($art->templatebody()) ? 'selected' : '' ?>>--no template--</option>
<?php
foreach ($artlist as $template) {
?>
<option value="<?= $template ?>" <?= $art->templatebody() === $template ? 'selected' : '' ?>><?= $template ?></option>
<?php
}
?>
</select>
<label for="templatecss">CSS template</label>
<select name="templatecss" id="templatecss">
<option value="" <?= empty($art->templatecss()) ? 'selected' : '' ?>>--no template--</option>
<?php
foreach ($artlist as $template) {
?>
<option value="<?= $template ?>" <?= $art->templatecss() === $template ? 'selected' : '' ?>><?= $template ?></option>
<?php
}
?>
</select>
<?php
if(!empty($art->templatecss())) {
?>
<div class="subtemplate">
<input type="checkbox" name="templateoptions['reccursivecss']" id="oreccursivecss" <?= $art->template()['cssreccursive'] === true ? 'checked' : '' ?>>
<label for="oreccursivecss">Reccursive template</label>
</div>
<div class="subtemplate">
<input type="checkbox" name="templateoptions['quickcss']" id="oquickcss" <?= $art->template()['cssquickcss'] === true ? 'checked' : '' ?>>
<label for="oquickcss">Quickcss</label>
</div>
<div class="subtemplate">
<input type="checkbox" name="templateoptions['externalcss']" id="oexternalcss" <?= $art->template()['externalcss'] === true ? 'checked' : '' ?>>
<label for="pexternalcss">External CSS</label>
</div>
<div class="subtemplate">
<input type="checkbox" name="templateoptions['favicon']" id="ofavicon" <?= $art->template()['cssfavicon'] === true ? 'checked' : '' ?>>
<label for="ofavicon">Favicon</label>
</div>
<?php
}
?>
<label for="templatejavascript">Javascript template</label>
<select name="templatejavascript" id="templatejavascript">
<option value="" <?= empty($art->templatejavascript()) ? 'selected' : '' ?>>--no template--</option>
<?php
foreach ($artlist as $template) {
?>
<option value="<?= $template ?>" <?= $art->templatejavascript() === $template ? 'selected' : '' ?>><?= $template ?></option>
<?php
}
?>
</select>
<div class="subtemplate">
<input type="checkbox" name="iexternaljs" id="iexternaljs">
<label for="iexternaljs">external js</label>
</div>
</fieldset>
</details>
<details id="advanced" open>
<summary>Advanced</summary>
<fieldset>
<?php
?>
<label for="favicon">Favicon</label>
<select name="favicon" id="favicon">
<?php
if(!empty($art->templatecss()) && $art->template()['cssfavicon']) {
?>
<option value="<?= $art->favicon() ?>">--using template favicon--</option>
<?php
} else {
echo '<option value="">--no favicon--</option>';
foreach ($faviconlist as $favicon) {
?>
<option value="<?= $favicon ?>" <?= $art->favicon() === $favicon ? 'selected' : '' ?>><?= $favicon ?></option>
<?php
}
}
?>
</select>
</fieldset>
</details>
<details>
<summary>Help</summary>
<div id="help">
<?php $this->insert('edithelp') ?>
</div>
</details>
</div>
</div>
|