aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/editleftbar.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-10-18 15:50:34 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-10-18 15:50:34 +0200
commit0968351067f99e8afc882d4237902642e608e6f5 (patch)
tree202d554dcc6135a88c11bee78660c53a47df2931 /app/view/templates/editleftbar.php
parent917a3971302791d9df67c047c4e663c9fb04f0c4 (diff)
downloadwcms-0968351067f99e8afc882d4237902642e608e6f5.tar.gz
wcms-0968351067f99e8afc882d4237902642e608e6f5.zip
Big naming Clean-up Art -> Page
Diffstat (limited to 'app/view/templates/editleftbar.php')
-rw-r--r--app/view/templates/editleftbar.php70
1 files changed, 35 insertions, 35 deletions
diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php
index bd3fd15..d169473 100644
--- a/app/view/templates/editleftbar.php
+++ b/app/view/templates/editleftbar.php
@@ -3,40 +3,40 @@
<label for="showleftpanel" class="toogle">◧</label>
<div id="leftbarpanel" class="panel">
- <input type="hidden" name="thisdatemodif" value="<?= $art->datemodif('string') ?>">
+ <input type="hidden" name="thisdatemodif" value="<?= $page->datemodif('string') ?>">
<details id="editinfo" open>
<summary>Infos</summary>
<fieldset>
<label for="title">title :</label>
- <input type="text" name="title" id="title" value="<?= $art->title(); ?>">
+ <input type="text" name="title" id="title" value="<?= $page->title(); ?>">
<label for="description">Description :</label>
- <input type="text" name="description" id="description" value="<?= $art->description(); ?>">
+ <input type="text" name="description" id="description" value="<?= $page->description(); ?>">
<label for="tag">Tag(s) :</label>
- <input type="text" name="tag" id="tag" value="<?= $art->tag('string'); ?>">
+ <input type="text" name="tag" id="tag" value="<?= $page->tag('string'); ?>">
<label for="secure">Privacy level :</label>
<select name="secure" id="secure">
- <option value="0" <?= $art->secure() == 0 ? 'selected' : '' ?>>public</option>
- <option value="1" <?= $art->secure() == 1 ? 'selected' : '' ?>>private</option>
- <option value="2" <?= $art->secure() == 2 ? 'selected' : '' ?>>not published</option>
+ <option value="0" <?= $page->secure() == 0 ? 'selected' : '' ?>>public</option>
+ <option value="1" <?= $page->secure() == 1 ? 'selected' : '' ?>>private</option>
+ <option value="2" <?= $page->secure() == 2 ? 'selected' : '' ?>>not published</option>
</select>
<label for="date">Date</label>
- <input type="date" name="pdate" value="<?= $art->date('pdate') ?>" id="date">
+ <input type="date" name="pdate" value="<?= $page->date('pdate') ?>" id="date">
<label for="time">Time</label>
- <input type="time" name="ptime" value="<?= $art->date('ptime') ?>" id="time">
+ <input type="time" name="ptime" value="<?= $page->date('ptime') ?>" id="time">
<label for="favicon">Favicon</label>
<select name="favicon" id="favicon">
<?php
- if(!empty($art->templatecss()) && $art->template()['cssfavicon']) {
+ if(!empty($page->templatecss()) && $page->template()['cssfavicon']) {
?>
- <option value="<?= $art->favicon() ?>">--using template favicon--</option>
+ <option value="<?= $page->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>
+ <option value="<?= $favicon ?>" <?= $page->favicon() === $favicon ? 'selected' : '' ?>><?= $favicon ?></option>
<?php
}
}
@@ -46,7 +46,7 @@
<div id="thumbnail">
<label for="thumbnail">Thumbnail</label>
<input type="file" id="thumbnail" name="thumbnail" accept=".jpg, .JPG, .jpeg, .JPEG">
- <img src="<?= Model::thumbnailpath() ?><?= $art->id() ?>.jpg" alt="no-thumbnail">
+ <img src="<?= Model::thumbnailpath() ?><?= $page->id() ?>.jpg" alt="no-thumbnail">
</div>
@@ -61,16 +61,16 @@
- <details <?= !empty($art->templatebody()) || !empty($art->templatecss()) || !empty($art->templatejavascript()) ? 'open' : '' ?>>
+ <details <?= !empty($page->templatebody()) || !empty($page->templatecss()) || !empty($page->templatejavascript()) ? 'open' : '' ?>>
<summary>Template</summary>
<fieldset>
<label for="templatebody">BODY template</label>
<select name="templatebody" id="templatebody">
- <option value="" <?= empty($art->templatebody()) ? 'selected' : '' ?>>--no template--</option>
+ <option value="" <?= empty($page->templatebody()) ? 'selected' : '' ?>>--no template--</option>
<?php
- foreach ($artlist as $template) {
+ foreach ($pagelist as $template) {
?>
- <option value="<?= $template ?>" <?= $art->templatebody() === $template ? 'selected' : '' ?>><?= $template ?></option>
+ <option value="<?= $template ?>" <?= $page->templatebody() === $template ? 'selected' : '' ?>><?= $template ?></option>
<?php
}
?>
@@ -79,39 +79,39 @@
<label for="templatecss">CSS template</label>
<select name="templatecss" id="templatecss">
- <option value="" <?= empty($art->templatecss()) ? 'selected' : '' ?>>--no template--</option>
+ <option value="" <?= empty($page->templatecss()) ? 'selected' : '' ?>>--no template--</option>
<?php
- foreach ($artlist as $template) {
+ foreach ($pagelist as $template) {
?>
- <option value="<?= $template ?>" <?= $art->templatecss() === $template ? 'selected' : '' ?>><?= $template ?></option>
+ <option value="<?= $template ?>" <?= $page->templatecss() === $template ? 'selected' : '' ?>><?= $template ?></option>
<?php
}
?>
</select>
<?php
- if(!empty($art->templatecss())) {
+ if(!empty($page->templatecss())) {
?>
<div class="subtemplate">
- <input type="checkbox" name="templateoptions[]" id="oreccursivecss" value="reccursivecss" <?= in_array('reccursivecss', $art->templateoptions()) ? 'checked' : '' ?>>
+ <input type="checkbox" name="templateoptions[]" id="oreccursivecss" value="reccursivecss" <?= in_array('reccursivecss', $page->templateoptions()) ? 'checked' : '' ?>>
<label for="oreccursivecss">Reccursive template</label>
</div>
<div class="subtemplate">
- <input type="checkbox" name="templateoptions[]" id="oquickcss" value="quickcss" <?= in_array('quickcss', $art->templateoptions()) ? 'checked' : '' ?>>
+ <input type="checkbox" name="templateoptions[]" id="oquickcss" value="quickcss" <?= in_array('quickcss', $page->templateoptions()) ? 'checked' : '' ?>>
<label for="oquickcss">Quickcss</label>
</div>
<div class="subtemplate">
- <input type="checkbox" name="templateoptions[]" id="oexternalcss" value="externalcss" <?= in_array('externalcss', $art->templateoptions()) ? 'checked' : '' ?>>
+ <input type="checkbox" name="templateoptions[]" id="oexternalcss" value="externalcss" <?= in_array('externalcss', $page->templateoptions()) ? 'checked' : '' ?>>
<label for="oexternalcss">External CSS</label>
</div>
<div class="subtemplate">
- <input type="checkbox" name="templateoptions[]" id="ofavicon" value="favicon" <?= in_array('favicon', $art->templateoptions()) ? 'checked' : '' ?>>
+ <input type="checkbox" name="templateoptions[]" id="ofavicon" value="favicon" <?= in_array('favicon', $page->templateoptions()) ? 'checked' : '' ?>>
<label for="ofavicon">Favicon</label>
</div>
<?php
} else {
- foreach($art->templateoptions() as $option) {
+ foreach($page->templateoptions() as $option) {
if($option != 'externaljavascript') {
echo '<input type="hidden" name="templateoptions[]" value="'.$option.'">';
}
@@ -123,11 +123,11 @@
<label for="templatejavascript">Javascript template</label>
<select name="templatejavascript" id="templatejavascript">
- <option value="" <?= empty($art->templatejavascript()) ? 'selected' : '' ?>>--no template--</option>
+ <option value="" <?= empty($page->templatejavascript()) ? 'selected' : '' ?>>--no template--</option>
<?php
- foreach ($artlist as $template) {
+ foreach ($pagelist as $template) {
?>
- <option value="<?= $template ?>" <?= $art->templatejavascript() === $template ? 'selected' : '' ?>><?= $template ?></option>
+ <option value="<?= $template ?>" <?= $page->templatejavascript() === $template ? 'selected' : '' ?>><?= $template ?></option>
<?php
}
?>
@@ -135,15 +135,15 @@
<?php
- if(!empty($art->templatejavascript())) {
+ if(!empty($page->templatejavascript())) {
?>
<div class="subtemplate">
- <input type="checkbox" name="templateoptions[]" value="externaljavascript" id="oexternaljs" <?= in_array('externaljavascript', $art->templateoptions()) ? 'checked' : '' ?>>
+ <input type="checkbox" name="templateoptions[]" value="externaljavascript" id="oexternaljs" <?= in_array('externaljavascript', $page->templateoptions()) ? 'checked' : '' ?>>
<label for="oexternaljs">external js</label>
</div>
<?php } else {
- if(in_array('externaljavascript', $art->templateoptions())) {
+ if(in_array('externaljavascript', $page->templateoptions())) {
echo '<input type="hidden" name="templateoptions[]" value="externaljavascript">';
}
@@ -152,7 +152,7 @@
</fieldset>
</details>
- <details id="advanced" <?= !empty($art->externalcss()) || !empty($art->customhead()) ? 'open' : '' ?>>
+ <details id="advanced" <?= !empty($page->externalcss()) || !empty($page->customhead()) ? 'open' : '' ?>>
<summary>Advanced</summary>
@@ -163,7 +163,7 @@
<label for="externalcss">External CSS</label>
<input type="text" name="externalcss[]" id="externalcss" placeholder="add external adress">
<?php
- foreach ($art->externalcss() as $css) {
+ foreach ($page->externalcss() as $css) {
?>
<div class="checkexternal">
<input type="checkbox" name="externalcss[]" id="<?= $css ?>" value="<?= $css ?>" checked>
@@ -174,7 +174,7 @@
?>
<label for="customhead">Custom head</label>
- <textarea name="customhead" wrap="off" spellcheck="false" rows="<?= $art->customhead('int') ?>"><?= $art->customhead() ?></textarea>
+ <textarea name="customhead" wrap="off" spellcheck="false" rows="<?= $page->customhead('int') ?>"><?= $page->customhead() ?></textarea>
</fieldset>