diff --git a/LICENSE b/LICENSE index f288702..54433ab 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies @@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read -. +. \ No newline at end of file diff --git a/README.md b/README.md index ca05b6d..f7ef3c3 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Bootstrap Album Layout for [Mecha](https://github.com/mecha-cms/mecha) ![Code Size](https://img.shields.io/github/languages/code-size/mecha-cms/y.bootstrap.album?color=%23444&style=for-the-badge) -![Bootstrap Album](index.png?v=2022-11-14) +![Bootstrap Album: Light](index.png?v=2023-05-06) + +![Bootstrap Album: Dark](index/1.png?v=2023-05-06) A fully functional layout from the [Bootstrap’s album example](https://getbootstrap.com/docs/5.3/examples/album). \ No newline at end of file diff --git a/about.page b/about.page index 285521c..7b16053 100644 --- a/about.page +++ b/about.page @@ -5,9 +5,31 @@ image: /lot/y/bootstrap.album/index.png images: - /lot/y/bootstrap.album/index.png - /lot/y/bootstrap.album/index/1.png +- /lot/y/bootstrap.album/index/2.png link: 'https://getbootstrap.com/docs/5.3/examples/album' author: Taufik Nurrohman version: 1.0.0 ... -A fully functional layout from the Bootstrap’s album example. \ No newline at end of file +A fully functional layout from the Bootstrap’s album example. + +### Usage + +Typical page data structure for this layout: + +~~~ .yaml +--- +title: Album Title +description: Album description. +author: Album Author +type: Markdown +image: /lot/image/album/2013/cover.jpg +images: +- /lot/image/album/2013/photo-1.jpg +- /lot/image/album/2013/photo-2.jpg +- /lot/image/album/2013/photo-3.jpg +- /lot/image/album/2013/photo-4.jpg +... + +Album content. +~~~ \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fda8757 --- /dev/null +++ b/composer.json @@ -0,0 +1,15 @@ +{ + "description": "Simple layout for photo galleries, portfolios, and more.", + "license": "GPL-3.0-or-later", + "name": "mecha-cms/y.bootstrap.album", + "require": { + "mecha-cms/x.excerpt": "^1.1.0", + "mecha-cms/x.image": "^2.4.0", + "mecha-cms/x.view": "^3.0.0" + }, + "suggest": { + "mecha-cms/x.panel": "The edit button is not available without this extension.", + "mecha-cms/x.panel.image": "Install this extension if you want to have a proper featured image field in the control panel.", + "mecha-cms/x.user": "The edit button is not available without this extension." + } +} \ No newline at end of file diff --git a/enter.php b/enter.php index d1bfa6c..0815c63 100644 --- a/enter.php +++ b/enter.php @@ -1,5 +1,5 @@ - + @@ -19,5 +19,11 @@ + + + + + +
\ No newline at end of file diff --git a/footer.php b/footer.php index c3371d7..1a36b28 100644 --- a/footer.php +++ b/footer.php @@ -5,7 +5,13 @@

-

Album example is © Bootstrap, but please download and customize it for yourself!

-

New to Bootstrap? Visit the homepage or read our getting started guide.

+

+ © year; ?> · + title; ?> + +

+

+ description; ?> +

\ No newline at end of file diff --git a/header.php b/header.php index 8af3470..5797da0 100644 --- a/header.php +++ b/header.php @@ -7,15 +7,26 @@

title; ?>

-

- excerpt ?? $about->description; ?> -

+
+ excerpt): ?> + + +

+ description; ?> +

+ +

+ " href="url); ?>"> + + +

+

- .\\lot\\page\\" . strtr(trim($state->routeAbout ?? 'about', '/'), '/', "\\") . ".page"); ?> + .\\lot\\page\\" . strtr(trim($state->routeAbout ?? 'about', '/'), '/', "\\") . '.page'); ?>

@@ -24,15 +35,26 @@

title; ?>

-

- excerpt ?? $contact->description; ?> -

+
+ excerpt): ?> + + +

+ description; ?> +

+ +

+ " href="url); ?>"> + + +

+

- .\\lot\\page\\" . strtr(trim($state->routeContact ?? 'contact', '/'), '/', "\\") . ".page"); ?> + .\\lot\\page\\" . strtr(trim($state->routeContact ?? 'contact', '/'), '/', "\\") . '.page'); ?>

diff --git a/index.png b/index.png new file mode 100644 index 0000000..7477066 Binary files /dev/null and b/index.png differ diff --git a/index/1.png b/index/1.png new file mode 100644 index 0000000..a7b853c Binary files /dev/null and b/index/1.png differ diff --git a/index/2.png b/index/2.png new file mode 100644 index 0000000..2ea1e55 Binary files /dev/null and b/index/2.png differ diff --git a/page.php b/page.php index 1acc19c..7396024 100644 --- a/page.php +++ b/page.php @@ -22,9 +22,8 @@
-
@@ -48,9 +47,11 @@ -

- -

+ diff --git a/pages.php b/pages.php index 32217b5..c6ae4d0 100644 --- a/pages.php +++ b/pages.php @@ -15,9 +15,8 @@ - @@ -42,6 +41,12 @@ + + + + + + @@ -85,19 +90,25 @@ has('part')): ?> -

- -

+ -

- -

+ -

- -

+ diff --git a/state.php b/state.php index 5a77fa9..7583679 100644 --- a/state.php +++ b/state.php @@ -2,19 +2,20 @@ return [ 'hero' => [ - 'description' => 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.', + 'description' => 'Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don’t simply skip over it entirely.', 'tasks' => [ 0 => [ 'link' => '/article/1', - 'title' => 'Main Action', + 'title' => 'Action 1', 'type' => 'primary' ], 1 => [ 'link' => '/about', - 'title' => 'Secondary Action', + 'title' => 'Action 2', 'type' => 'secondary', ] ], 'title' => 'Album Example' - ] + ], + 'theme' => 'light' // Try `dark` ;) ]; \ No newline at end of file