From d7f3313ff4514e38c9f53439cd1a1287e56e45f7 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 17:19:26 +0100 Subject: reboot folder --- app/view/templates/arthead.php | 6 ++ app/view/templates/body.php | 0 app/view/templates/connect.php | 30 ++++++++++ app/view/templates/delete.php | 44 +++++++++++++++ app/view/templates/edit.php | 35 ++++++++++++ app/view/templates/edithelp.php | 27 +++++++++ app/view/templates/editleftbar.php | 70 +++++++++++++++++++++++ app/view/templates/editrightbar.php | 20 +++++++ app/view/templates/edittabs.php | 19 +++++++ app/view/templates/edittopbar.php | 29 ++++++++++ app/view/templates/home.php | 109 ++++++++++++++++++++++++++++++++++++ app/view/templates/homeopt.php | 84 +++++++++++++++++++++++++++ app/view/templates/layout.php | 20 +++++++ app/view/templates/media.php | 4 ++ app/view/templates/navart.php | 85 ++++++++++++++++++++++++++++ app/view/templates/navback.php | 54 ++++++++++++++++++ app/view/templates/read.php | 67 ++++++++++++++++++++++ app/view/templates/readart.php | 25 +++++++++ app/view/templates/readcreate.php | 5 ++ app/view/templates/readerlayout.php | 15 +++++ 20 files changed, 748 insertions(+) create mode 100644 app/view/templates/arthead.php create mode 100644 app/view/templates/body.php create mode 100644 app/view/templates/connect.php create mode 100644 app/view/templates/delete.php create mode 100644 app/view/templates/edit.php create mode 100644 app/view/templates/edithelp.php create mode 100644 app/view/templates/editleftbar.php create mode 100644 app/view/templates/editrightbar.php create mode 100644 app/view/templates/edittabs.php create mode 100644 app/view/templates/edittopbar.php create mode 100644 app/view/templates/home.php create mode 100644 app/view/templates/homeopt.php create mode 100644 app/view/templates/layout.php create mode 100644 app/view/templates/media.php create mode 100644 app/view/templates/navart.php create mode 100644 app/view/templates/navback.php create mode 100644 app/view/templates/read.php create mode 100644 app/view/templates/readart.php create mode 100644 app/view/templates/readcreate.php create mode 100644 app/view/templates/readerlayout.php (limited to 'app/view/templates') diff --git a/app/view/templates/arthead.php b/app/view/templates/arthead.php new file mode 100644 index 0000000..b137c7f --- /dev/null +++ b/app/view/templates/arthead.php @@ -0,0 +1,6 @@ + + + +<?= $title ?> + + \ No newline at end of file diff --git a/app/view/templates/body.php b/app/view/templates/body.php new file mode 100644 index 0000000..e69de29 diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php new file mode 100644 index 0000000..3e2aeba --- /dev/null +++ b/app/view/templates/connect.php @@ -0,0 +1,30 @@ +layout('layout', ['title' => 'Connect', 'description' => 'connect']) ?> + + + + +start('page') ?> + + +level() ?> + + +isvisitor()) { ?> + +
+ + +
+ + + + +
+ +
+ + + + + +stop() ?> \ No newline at end of file diff --git a/app/view/templates/delete.php b/app/view/templates/delete.php new file mode 100644 index 0000000..be54451 --- /dev/null +++ b/app/view/templates/delete.php @@ -0,0 +1,44 @@ +layout('layout', ['title' => 'delete', 'description' => 'delete']) ?> + + +start('page') ?> + + +insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + +
+ +

Delete

+ + + +linkto())) { ?> + +

Article linked to :

+ + + + + +
+ + +
+ + +
+ + + +stop() ?> \ No newline at end of file diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php new file mode 100644 index 0000000..33d42f4 --- /dev/null +++ b/app/view/templates/edit.php @@ -0,0 +1,35 @@ +layout('layout', ['title' => '✏ '.$art->title()]) ?> + + + + +start('page') ?> + + + + +
+ + insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + + + + insert('edittopbar', ['art' => $art]) ?> + +
+ + insert('editleftbar', ['art' => $art, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel]) ?> + insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface()]) ?> + insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel]) ?> + +
+ + + + + + +
+ + +stop() ?> \ No newline at end of file diff --git a/app/view/templates/edithelp.php b/app/view/templates/edithelp.php new file mode 100644 index 0000000..fee94c7 --- /dev/null +++ b/app/view/templates/edithelp.php @@ -0,0 +1,27 @@ + +

Help !

+

To save your article, press the HOME, UPDATE, or DISPLAY buttons. You can use the keyboard shortcuts as well.

+
ALT + W : home
+
ALT + X : update
+
ALT + C : display
+

Markdown

+

The html section use Markdown encoding. Actualy, W is using Michel Fortin's Markdown Extra.

+

Links

+
[text](=article_id)
+

where article_id is the article's id you want to point to.

+

Images

+
[altimage](/img_id.extension)
+

Where img_id is the id of your image and its extension.

+

Shortcuts

+
%TITLE%
+

Show the title of your article.

+
%DESCRIPTION%
+

Show the description of your article.

+
%SUMMARY%
+

Generate a summary, the list of all your head titles using #, ##, ###...

+
%%tag_name%%
+

Generate a menu, a list of links to all articles under this tag.

+

vv

+

vv

+

vv

+

\ No newline at end of file diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php new file mode 100644 index 0000000..7533599 --- /dev/null +++ b/app/view/templates/editleftbar.php @@ -0,0 +1,70 @@ +
+ > + +
+
+ Infos +
+ + + + + + + + +
+
+
+ Advanced +
+

Template options

+
    + $value) { + if(isset($art->template()[$element])) { + $template = $art->template()[$element]; + } else { + $template = ''; + } + echo '
  • '; + echo ''; + echo '> + +
    +
    + Links + + + + +
    + +
    + +
\ No newline at end of file diff --git a/app/view/templates/edittabs.php b/app/view/templates/edittabs.php new file mode 100644 index 0000000..efb1650 --- /dev/null +++ b/app/view/templates/edittabs.php @@ -0,0 +1,19 @@ +
+ + $value) { + echo '
'; + if ($key == $opentab) { + echo ''; + } else { + echo ''; + } + echo ''; + echo '
'; + echo ''; + echo '
'; + echo '
'; +} +?> + +
\ No newline at end of file diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php new file mode 100644 index 0000000..20c2d8b --- /dev/null +++ b/app/view/templates/edittopbar.php @@ -0,0 +1,29 @@ +
+
+ +
+ +
+ + + + + + + + + + + + + πŸ‘ + ΒΆ + + id() ?> + + + + + + +
\ No newline at end of file diff --git a/app/view/templates/home.php b/app/view/templates/home.php new file mode 100644 index 0000000..2303f0f --- /dev/null +++ b/app/view/templates/home.php @@ -0,0 +1,109 @@ +layout('layout', ['title' => 'home']) ?> + + + + +start('page') ?> + + + + + insert('navback', ['user' => $user]) ?> + +canedit()) { ?> + +
+ +
+ + + + + + + + + +
+ +
+ + +
+ + +
+ + + insert('homeopt', ['opt' => $opt]) ?> + + + +
+

Articles

+
+ + +
+

Mass Edit

+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
xideditseedellogtagsummaryβ†˜ toβ†— fromlast modificationdate of creationprivacy
βœπŸ‘πŸ—‘ΒΆtag('sort') ?>description() ?>linkto('sort') ?>linkfrom('sort') ?>datemodif('hrdi') ?>datecreation('hrdi') ?>secure('string') ?>
+
+
+
+
+ + + + + + + +stop() ?> \ No newline at end of file diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php new file mode 100644 index 0000000..cecb79b --- /dev/null +++ b/app/view/templates/homeopt.php @@ -0,0 +1,84 @@ +
+

Options

+
+ +β¬… + + + + +
Sort + +
+order() == '1' ? "checked" : "" ?>/> +
+order() == '-1' ? "checked" : "" ?>/> + +
+ +
Privacy
    +
  • secure() == 4 ? "checked" : "" ?>/>
  • +
  • secure() == 3 ? "checked" : "" ?>/>
  • +
  • secure() == 2 ? "checked" : "" ?>/>
  • +
  • secure() == 1 ? "checked" : "" ?>/>
  • +
  • secure() == 0 ? "checked" : "" ?>/>
  • +
+ +
Tag
    + + +tagcompare() == "OR" ? "checked" : "" ?> > +tagcompare() == "AND" ? "checked" : "" ?>> + +taglist() as $tagfilter => $count) { + + if ($count > $limit && $in == false) { + echo '
    >' . $limit . ''; + $in = true; + } + if ($count == $limit && $in == true && $out == false) { + echo '
    ' . $limit . ''; + $out = true; + } + + if (in_array($tagfilter, $opt->tagfilter())) { + + echo '
  • '; + } else { + echo '
  • '; + } +} +if ($in = true || $out = true) { + echo '
    '; +} +?> + +
+ + invert() == 1) { + echo ''; + } else { + echo ''; + } + echo '
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php new file mode 100644 index 0000000..7439f48 --- /dev/null +++ b/app/view/templates/layout.php @@ -0,0 +1,20 @@ + + + + + + + + <?= $title ?> + + section('customhead')?> + section('arthead')?> + + + + + +section('page')?> + + + \ No newline at end of file diff --git a/app/view/templates/media.php b/app/view/templates/media.php new file mode 100644 index 0000000..8b189d5 --- /dev/null +++ b/app/view/templates/media.php @@ -0,0 +1,4 @@ +layout('base', ['title' => 'Media']) ?> + +

Media

+

Hello, e($interface)?>

\ No newline at end of file diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php new file mode 100644 index 0000000..b6a7219 --- /dev/null +++ b/app/view/templates/navart.php @@ -0,0 +1,85 @@ + + + + \ No newline at end of file diff --git a/app/view/templates/navback.php b/app/view/templates/navback.php new file mode 100644 index 0000000..c738ae2 --- /dev/null +++ b/app/view/templates/navback.php @@ -0,0 +1,54 @@ + \ No newline at end of file diff --git a/app/view/templates/read.php b/app/view/templates/read.php new file mode 100644 index 0000000..35b1e7d --- /dev/null +++ b/app/view/templates/read.php @@ -0,0 +1,67 @@ +layout('readerlayout') ?> + +start('head'); + +if ($artexist) { + if ($canread) { + echo $head; + } else { + $this->insert('arthead', ['title' => $art->title(), 'description' => $art->description()]); + } +} else { + $this->insert('arthead', ['title' => $art->id(), 'description' => $alertnotexist]); +} + + + +$this->stop(); +?> + + + + + + + + + +start('page') ?> + + + + + + insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]); + } + ?> + + + + '.$alertprivate.''; + } + + } else { + echo '

' . $alertnotexist . '

'; + if ($cancreate) { + $this->insert('readcreate', ['id' => $art->id()]); + } + } + + + + ?> + + + + +stop() ?> \ No newline at end of file diff --git a/app/view/templates/readart.php b/app/view/templates/readart.php new file mode 100644 index 0000000..e44877d --- /dev/null +++ b/app/view/templates/readart.php @@ -0,0 +1,25 @@ + + + + +
+header()?> +
+ + + + + +
+section()?> +
+ +
+footer()?> +
diff --git a/app/view/templates/readcreate.php b/app/view/templates/readcreate.php new file mode 100644 index 0000000..dc36420 --- /dev/null +++ b/app/view/templates/readcreate.php @@ -0,0 +1,5 @@ +
+ + + +
\ No newline at end of file diff --git a/app/view/templates/readerlayout.php b/app/view/templates/readerlayout.php new file mode 100644 index 0000000..51ab406 --- /dev/null +++ b/app/view/templates/readerlayout.php @@ -0,0 +1,15 @@ + + + + + section('head')?> + + + + + + +section('page')?> + + + \ No newline at end of file -- cgit v1.2.3