From 6a473ecc92c9c16bed1dcb5c28cc2f3e85995dcd Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 28 May 2018 11:33:48 +0300 Subject: [PATCH] Flextype 0.4.3 --- site/plugins/feed/CHANGELOG.md | 5 -- site/plugins/feed/LICENSE.txt | 21 ----- site/plugins/feed/README.md | 27 ------ site/plugins/feed/feed.php | 40 --------- site/plugins/feed/feed.yaml | 13 --- site/plugins/feed/languages/en.yaml | 2 - site/plugins/feed/languages/ru.yaml | 2 - site/plugins/feed/views/templates/rss.html | 3 - site/plugins/imgholder/CHANGELOG.md | 2 - site/plugins/imgholder/LICENSE.txt | 21 ----- site/plugins/imgholder/README.md | 89 ------------------- site/plugins/imgholder/imgholder.php | 57 ------------ site/plugins/imgholder/imgholder.yaml | 21 ----- site/plugins/imgholder/languages/en.yaml | 2 - site/plugins/imgholder/languages/ru.yaml | 2 - site/plugins/maintenance/CHANGELOG.md | 2 - site/plugins/maintenance/LICENSE.txt | 21 ----- site/plugins/maintenance/README.md | 32 ------- site/plugins/maintenance/languages/en.yaml | 2 - site/plugins/maintenance/languages/ru.yaml | 2 - site/plugins/maintenance/maintenance.php | 25 ------ site/plugins/maintenance/maintenance.yaml | 17 ---- .../views/templates/maintenance.php | 68 -------------- site/plugins/pixel/CHANGELOG.md | 2 - site/plugins/pixel/LICENSE.txt | 21 ----- site/plugins/pixel/README.md | 67 -------------- site/plugins/pixel/languages/en.yaml | 2 - site/plugins/pixel/languages/ru.yaml | 2 - site/plugins/pixel/pixel.php | 50 ----------- site/plugins/pixel/pixel.yaml | 17 ---- site/plugins/robots/CHANGELOG.md | 2 - site/plugins/robots/LICENSE.txt | 21 ----- site/plugins/robots/README.md | 28 ------ site/plugins/robots/languages/en.yaml | 2 - site/plugins/robots/languages/ru.yaml | 2 - site/plugins/robots/robots.php | 25 ------ site/plugins/robots/robots.yaml | 13 --- .../plugins/robots/views/templates/robots.php | 4 - 38 files changed, 734 deletions(-) delete mode 100755 site/plugins/feed/CHANGELOG.md delete mode 100755 site/plugins/feed/LICENSE.txt delete mode 100755 site/plugins/feed/README.md delete mode 100755 site/plugins/feed/feed.php delete mode 100755 site/plugins/feed/feed.yaml delete mode 100755 site/plugins/feed/languages/en.yaml delete mode 100755 site/plugins/feed/languages/ru.yaml delete mode 100755 site/plugins/feed/views/templates/rss.html delete mode 100755 site/plugins/imgholder/CHANGELOG.md delete mode 100755 site/plugins/imgholder/LICENSE.txt delete mode 100755 site/plugins/imgholder/README.md delete mode 100755 site/plugins/imgholder/imgholder.php delete mode 100755 site/plugins/imgholder/imgholder.yaml delete mode 100755 site/plugins/imgholder/languages/en.yaml delete mode 100755 site/plugins/imgholder/languages/ru.yaml delete mode 100755 site/plugins/maintenance/CHANGELOG.md delete mode 100755 site/plugins/maintenance/LICENSE.txt delete mode 100755 site/plugins/maintenance/README.md delete mode 100755 site/plugins/maintenance/languages/en.yaml delete mode 100755 site/plugins/maintenance/languages/ru.yaml delete mode 100755 site/plugins/maintenance/maintenance.php delete mode 100755 site/plugins/maintenance/maintenance.yaml delete mode 100755 site/plugins/maintenance/views/templates/maintenance.php delete mode 100755 site/plugins/pixel/CHANGELOG.md delete mode 100755 site/plugins/pixel/LICENSE.txt delete mode 100755 site/plugins/pixel/README.md delete mode 100755 site/plugins/pixel/languages/en.yaml delete mode 100755 site/plugins/pixel/languages/ru.yaml delete mode 100755 site/plugins/pixel/pixel.php delete mode 100755 site/plugins/pixel/pixel.yaml delete mode 100755 site/plugins/robots/CHANGELOG.md delete mode 100755 site/plugins/robots/LICENSE.txt delete mode 100755 site/plugins/robots/README.md delete mode 100755 site/plugins/robots/languages/en.yaml delete mode 100755 site/plugins/robots/languages/ru.yaml delete mode 100755 site/plugins/robots/robots.php delete mode 100755 site/plugins/robots/robots.yaml delete mode 100755 site/plugins/robots/views/templates/robots.php diff --git a/site/plugins/feed/CHANGELOG.md b/site/plugins/feed/CHANGELOG.md deleted file mode 100755 index 5a68a7f9..00000000 --- a/site/plugins/feed/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -# v1.1.0, 2018-05-08 -* Updates for Flextype 0.3.0 - -# v1.0.0, 2018-03-26 -* Initial release diff --git a/site/plugins/feed/LICENSE.txt b/site/plugins/feed/LICENSE.txt deleted file mode 100755 index 3f865be1..00000000 --- a/site/plugins/feed/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Flextype - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/site/plugins/feed/README.md b/site/plugins/feed/README.md deleted file mode 100755 index 010bba62..00000000 --- a/site/plugins/feed/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# Sitemap Plugin for [Flextype](http://flextype.org/) -![version](https://img.shields.io/badge/version-1.1.0-brightgreen.svg?style=flat-square "Version") -![Flextype](https://img.shields.io/badge/Flextype-0.x-green.svg?style=flat-square "Flextype Version") -[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-plugins/tiny-url/blob/master/LICENSE.txt) - -Sitemap plugin provide automatically generated XML sitemap for Flextype. - -## Installation -1. Unzip plugin to the folder `/site/plugins/` -2. Go to `/site/config/site.yaml` and add plugin name to plugins section. -3. Save your changes. - -Example: -``` -... -plugins: - - sitemap -``` - -## Settings - -```yaml -enabled: true # or `false` to disable the plugin -``` - -## License -See [LICENSE](https://github.com/flextype-plugins/sitemap/blob/master/LICENSE) diff --git a/site/plugins/feed/feed.php b/site/plugins/feed/feed.php deleted file mode 100755 index b6033d72..00000000 --- a/site/plugins/feed/feed.php +++ /dev/null @@ -1,40 +0,0 @@ - - * @link http://flextype.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Flextype; - -use Flextype\Component\{Event\Event, Http\Http, Arr\Arr, Registry\Registry}; - -$segments = Http::getUriSegments(); -//$uri_string = str_replace("/rss", "", Http::getUriString()); -$rss_uri = array_pop($segments); -//$page_uri = array_pop($segments); - -if ($rss_uri == 'rss') { - Event::addListener('onShortcodesInitialized', function () { - Http::setResponseStatus(200); - Http::setRequestHeaders('Content-Type: text/xml; charset=utf-8'); - - $_pages = Content::getPages(str_replace("/rss", "", Http::getUriString()), false, 'date'); - - foreach ($_pages as $page) { - if ($page['slug'] !== '404') { - $pages[] = $page; - } - } - - Themes::view('feed/views/templates/rss')->display(); - - Http::requestShutdown(); - }); -} diff --git a/site/plugins/feed/feed.yaml b/site/plugins/feed/feed.yaml deleted file mode 100755 index cafb73cc..00000000 --- a/site/plugins/feed/feed.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: Sitemap -version: 1.0.0 -description: "Provide automatically generated XML sitemap." -author: - name: Sergey Romanenko - email: awilum@yandex.ru - url: http://flextype.org -homepage: https://github.com/flextype-plugins/sitemap -bugs: https://github.com/flextype-plugins/sitemap/issues -license: MIT - -# Plugin settings -enabled: true diff --git a/site/plugins/feed/languages/en.yaml b/site/plugins/feed/languages/en.yaml deleted file mode 100755 index 7af0d0dc..00000000 --- a/site/plugins/feed/languages/en.yaml +++ /dev/null @@ -1,2 +0,0 @@ -sitemap: "Sitemap" -sitemap_description: "Sitemap plugin provide automatically generated XML sitemap for Flextype." diff --git a/site/plugins/feed/languages/ru.yaml b/site/plugins/feed/languages/ru.yaml deleted file mode 100755 index 7af0d0dc..00000000 --- a/site/plugins/feed/languages/ru.yaml +++ /dev/null @@ -1,2 +0,0 @@ -sitemap: "Sitemap" -sitemap_description: "Sitemap plugin provide automatically generated XML sitemap for Flextype." diff --git a/site/plugins/feed/views/templates/rss.html b/site/plugins/feed/views/templates/rss.html deleted file mode 100755 index aac5e65d..00000000 --- a/site/plugins/feed/views/templates/rss.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/site/plugins/imgholder/CHANGELOG.md b/site/plugins/imgholder/CHANGELOG.md deleted file mode 100755 index 76181528..00000000 --- a/site/plugins/imgholder/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# v1.0.0, 2018-05-25 -* Initial release diff --git a/site/plugins/imgholder/LICENSE.txt b/site/plugins/imgholder/LICENSE.txt deleted file mode 100755 index 3f865be1..00000000 --- a/site/plugins/imgholder/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Flextype - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/site/plugins/imgholder/README.md b/site/plugins/imgholder/README.md deleted file mode 100755 index 21dd8745..00000000 --- a/site/plugins/imgholder/README.md +++ /dev/null @@ -1,89 +0,0 @@ -# Imgholder Plugin for [Flextype](http://flextype.org/) -![version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg?style=flat-square "Version") -![Flextype](https://img.shields.io/badge/Flextype-0.x-green.svg?style=flat-square "Flextype Version") -[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-plugins/imgholder/blob/master/LICENSE.txt) - -Imgholder plugin to create placeholder images for Flextype - -## Installation -1. Unzip plugin to the folder `/site/plugins/` -2. Go to `/site/config/site.yaml` and add plugin name to plugins section. -3. Save your changes. - -Example: -``` -plugins: - - imgholder -``` - -## Usage in page content - -Simple usage - -``` -![Image]([imgholder]) -``` - -Set width and height - -``` -![Image]([imgholder width=200 height=200]) -``` - -Set text color - -``` -![Image]([imgholder width=200 height=200 text_color=white]) -``` - -Set background color - -``` -![Image]([imgholder width=200 height=200 text_color=white bg_color=black]) -``` - -Set text - -``` -![Image]([imgholder width=200 height=200 text_color=white bg_color=black text_color=white text='Pixel']) -``` - -Set font name - -``` -![Image]([imgholder width=200 height=200 text_color=white bg_color=black text_color=white text='Pixel' font_name=roboto]) -``` - -Set font size - -``` -![Image]([imgholder width=200 height=200 text_color=white bg_color=black text_color=white text='Pixel' font_name=roboto font_size=12]) -``` - -Set image extension - -``` -![Image]([imgholder width=200 height=200 text_color=white bg_color=black text_color=white text='Pixel' font_name=roboto font_size=12 ext="png"]) -``` - -## Usage in template -``` - -``` - -## Options - -| name | value | description | -|---|---|---| -| enabled | true | or `false` to disable the plugin | -| width | 300 | Image width | -| height | 200 | Image height | -| text_color | white | Image text color | -| bg_color | white | Image bg color | -| text | Imgholder | Image text | -| font_name | Imgholder | Image font name (roboto, arial, bebas, bitter, corki, debby, fashon fetish, gtw, kelson, matias, ptsans, ptsans italic, ptserif, robotoslab, tahoma) | -| font_size | 12 | Image font size | -| ext | png | Image extension | - -## License -See [LICENSE](https://github.com/flextype-plugins/imgholder/blob/master/LICENSE) diff --git a/site/plugins/imgholder/imgholder.php b/site/plugins/imgholder/imgholder.php deleted file mode 100755 index 375104ae..00000000 --- a/site/plugins/imgholder/imgholder.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @link http://flextype.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Flextype; - -use Thunder\Shortcode\Shortcode\ShortcodeInterface; -use Flextype\Component\{Event\Event, Registry\Registry}; - -// -// Shortcode: [imgholder text="test"] -// -Event::addListener('onShortcodesInitialized', function () { - Content::shortcode()->addHandler('imgholder', function(ShortcodeInterface $s) { - return imgholder($s->getParameter('text'), - $s->getParameter('width'), - $s->getParameter('height'), - $s->getParameter('bg_color'), - $s->getParameter('text_color'), - $s->getParameter('ext'), - $s->getParameter('font_name'), - $s->getParameter('font_size') - ); - }); -}); - -/** - * Return Pixel Image - * - * @param string $text Image text - * @param int $width Image width - * @param int $height Image height - * @param string $category Image category - * @param bool $gray Image category - * @return string - */ -function imgholder(string $text = null, int $width = null, int $height = null, string $bg_color = null, string $text_color = null, string $ext = null, string $font_name = null, string $font_size = null) : string -{ - (isset($width)) and $width = $width.'x' or $width = Registry::get('plugins.imgholder.width').'x'; - (isset($height)) and $height = $height.'/' or $height = Registry::get('plugins.imgholder.height').'/'; - (isset($bg_color)) and $bg_color = $bg_color.'/' or $bg_color = Registry::get('plugins.imgholder.bg_color').'/'; - (isset($text_color)) and $text_color = $text_color or $text_color = Registry::get('plugins.imgholder.text_color'); - (isset($ext)) and $ext = '.'.$ext or $ext = '.'.Registry::get('plugins.imgholder.ext'); - (isset($text)) and $text = '&text='.$text or $text = '&text='.Registry::get('plugins.imgholder.text'); - (isset($font_name)) and $font_name = '&font='.$font_name or $font_name = '&font='.Registry::get('plugins.imgholder.font_name'); - (isset($font_size)) and $font_size = '&fz='.$font_size or $font_size = '&fz='.Registry::get('plugins.imgholder.font_size'); - return rtrim('https://imgholder.ru/'.$width.$height.$bg_color.$text_color.$ext.$text.$font_name.$font_size, '/\\'); -} diff --git a/site/plugins/imgholder/imgholder.yaml b/site/plugins/imgholder/imgholder.yaml deleted file mode 100755 index c799673f..00000000 --- a/site/plugins/imgholder/imgholder.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Imgholder -version: 1.0.0 -description: "Imgholder plugin to create placeholder images for Flextype" -author: - name: Sergey Romanenko - email: awilum@yandex.ru - url: http://flextype.org -homepage: https://github.com/flextype-plugins/imgholder -bugs: https://github.com/flextype-plugins/imgholder/issues -license: MIT - -# Plugin settings -enabled: true -width: 400 -height: 200 -text: 'Imgholder' -bg_color: black -text_color: white -ext: png -font_name: roboto -font_size: 50 diff --git a/site/plugins/imgholder/languages/en.yaml b/site/plugins/imgholder/languages/en.yaml deleted file mode 100755 index 993dff52..00000000 --- a/site/plugins/imgholder/languages/en.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imgholder: "Imgholder" -imgholder_description: "Imgholder plugin to create placeholder images for Flextype" diff --git a/site/plugins/imgholder/languages/ru.yaml b/site/plugins/imgholder/languages/ru.yaml deleted file mode 100755 index 993dff52..00000000 --- a/site/plugins/imgholder/languages/ru.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imgholder: "Imgholder" -imgholder_description: "Imgholder plugin to create placeholder images for Flextype" diff --git a/site/plugins/maintenance/CHANGELOG.md b/site/plugins/maintenance/CHANGELOG.md deleted file mode 100755 index 1d72694d..00000000 --- a/site/plugins/maintenance/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# v1.0.0, 2018-05-24 -* Initial release diff --git a/site/plugins/maintenance/LICENSE.txt b/site/plugins/maintenance/LICENSE.txt deleted file mode 100755 index 3f865be1..00000000 --- a/site/plugins/maintenance/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Flextype - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/site/plugins/maintenance/README.md b/site/plugins/maintenance/README.md deleted file mode 100755 index d6a646e7..00000000 --- a/site/plugins/maintenance/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# Maintenance Plugin for [Flextype](http://flextype.org/) -![version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg?style=flat-square "Version") -![Flextype](https://img.shields.io/badge/Flextype-0.x-green.svg?style=flat-square "Flextype Version") -[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-plugins/maintenance/blob/master/LICENSE.txt) - -Maintenance plugin allow you to close the website for maintenance. - -## Installation -1. Unzip plugin to the folder `/site/plugins/` -2. Go to `/site/config/site.yaml` and add plugin name to plugins section. -3. Save your changes. - -Example: -``` -... -plugins: - - maintenance -``` - -## Settings - -```yaml -enabled: true # or `false` to disable the plugin -activated: true # or `false` to deactivate the maintenance mode -msg_title: "" # Title -msg_description: "" # Description -bg_img: "" # Background image - -``` - -## License -See [LICENSE](https://github.com/flextype-plugins/maintenance/blob/master/LICENSE) diff --git a/site/plugins/maintenance/languages/en.yaml b/site/plugins/maintenance/languages/en.yaml deleted file mode 100755 index 17dc917e..00000000 --- a/site/plugins/maintenance/languages/en.yaml +++ /dev/null @@ -1,2 +0,0 @@ -maintenance: "Maintenance" -maintenance_description: "Maintenance plugin allow you to close the website for maintenance." diff --git a/site/plugins/maintenance/languages/ru.yaml b/site/plugins/maintenance/languages/ru.yaml deleted file mode 100755 index 17dc917e..00000000 --- a/site/plugins/maintenance/languages/ru.yaml +++ /dev/null @@ -1,2 +0,0 @@ -maintenance: "Maintenance" -maintenance_description: "Maintenance plugin allow you to close the website for maintenance." diff --git a/site/plugins/maintenance/maintenance.php b/site/plugins/maintenance/maintenance.php deleted file mode 100755 index 04a39c7b..00000000 --- a/site/plugins/maintenance/maintenance.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @link http://flextype.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Flextype; - -use Flextype\Component\{Event\Event, Http\Http, Registry\Registry}; - -if (Registry::get('plugins.maintenance.activated')) { - Event::addListener('onPageBeforeRender', function () { - Http::setResponseStatus(503); - Http::setRequestHeaders('Content-Type: text/html; charset=utf-8'); - Themes::view('maintenance/views/templates/maintenance')->display(); - Http::requestShutdown(); - }); -} diff --git a/site/plugins/maintenance/maintenance.yaml b/site/plugins/maintenance/maintenance.yaml deleted file mode 100755 index 5af8b9b6..00000000 --- a/site/plugins/maintenance/maintenance.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Maintenance -version: 1.0.0 -description: "Maintenance plugin allow you to close the website for maintenance." -author: - name: Sergey Romanenko - email: awilum@yandex.ru - url: http://flextype.org -homepage: https://github.com/flextype-plugins/maintenance -bugs: https://github.com/flextype-plugins/maintenance/issues -license: MIT - -# Plugin settings -enabled: true -activated: true -msg_title: "Maintenance mode is on" -msg_description: "Website will be available soon" -bg_img: "https://drscdn.500px.org/photo/224178849/m%3D900/v2?user_id=688458&webp=true&sig=eb8fb384b2a66f8febbaf8d5b57a1e14e652f8a70e879df14e1b3369974d3332" diff --git a/site/plugins/maintenance/views/templates/maintenance.php b/site/plugins/maintenance/views/templates/maintenance.php deleted file mode 100755 index 27b68dc2..00000000 --- a/site/plugins/maintenance/views/templates/maintenance.php +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - <?php echo Registry::get('plugins.maintenance.msg_title'); ?> | <?php echo Registry::get('site.title'); ?> - - - - - - -
-

-

-
- - diff --git a/site/plugins/pixel/CHANGELOG.md b/site/plugins/pixel/CHANGELOG.md deleted file mode 100755 index 1d72694d..00000000 --- a/site/plugins/pixel/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# v1.0.0, 2018-05-24 -* Initial release diff --git a/site/plugins/pixel/LICENSE.txt b/site/plugins/pixel/LICENSE.txt deleted file mode 100755 index 3f865be1..00000000 --- a/site/plugins/pixel/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Flextype - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/site/plugins/pixel/README.md b/site/plugins/pixel/README.md deleted file mode 100755 index 2e7cca7d..00000000 --- a/site/plugins/pixel/README.md +++ /dev/null @@ -1,67 +0,0 @@ -# Pixel Plugin for [Flextype](http://flextype.org/) -![version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg?style=flat-square "Version") -![Flextype](https://img.shields.io/badge/Flextype-0.x-green.svg?style=flat-square "Flextype Version") -[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-plugins/pixel/blob/master/LICENSE.txt) - -Pixel plugin to create placeholder images for Flextype - -## Installation -1. Unzip plugin to the folder `/site/plugins/` -2. Go to `/site/config/site.yaml` and add plugin name to plugins section. -3. Save your changes. - -Example: -``` -plugins: - - pixel -``` - -## Usage in page content - -Simple usage - -``` -![Image]([pixel]) -``` - -Set width and height - -``` -![Image]([pixel width=200 height=200]) -``` - -Set category name - -``` -![Image]([pixel width=200 height=200 category=city]) -``` - -Set gray filter - -``` -![Image]([pixel width=200 height=200 category=city gray=true]) -``` - -Set text - -``` -![Image]([pixel width=200 height=200 category=city gray=true text='Pixel']) -``` - -## Usage in template -``` -" alt=""> -``` - -## Options - -| name | value | description | -|---|---|---| -| enabled | true | or `false` to disable the plugin | -| width | 300 | Image width | -| height | 200 | Image height | -| category | sports | Image category (abstract, animals, business, cats, city, food, night, life, fashion, people, nature, sports, technics, transport) | -| text | '' | Image text | - -## License -See [LICENSE](https://github.com/flextype-plugins/pixel/blob/master/LICENSE) diff --git a/site/plugins/pixel/languages/en.yaml b/site/plugins/pixel/languages/en.yaml deleted file mode 100755 index 51705765..00000000 --- a/site/plugins/pixel/languages/en.yaml +++ /dev/null @@ -1,2 +0,0 @@ -pixel: "Pixel" -pixel_description: "Maintenance plugin allow you to close the website for maintenance." diff --git a/site/plugins/pixel/languages/ru.yaml b/site/plugins/pixel/languages/ru.yaml deleted file mode 100755 index a44939a9..00000000 --- a/site/plugins/pixel/languages/ru.yaml +++ /dev/null @@ -1,2 +0,0 @@ -pixel: "Pixel" -pixel_description: "Pixel plugin to create placeholder images for Flextype" diff --git a/site/plugins/pixel/pixel.php b/site/plugins/pixel/pixel.php deleted file mode 100755 index f0880623..00000000 --- a/site/plugins/pixel/pixel.php +++ /dev/null @@ -1,50 +0,0 @@ - - * @link http://flextype.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Flextype; - -use Thunder\Shortcode\Shortcode\ShortcodeInterface; -use Flextype\Component\{Event\Event, Registry\Registry}; - -// -// Shortcode: [pixel text="test"] -// -Event::addListener('onShortcodesInitialized', function () { - Content::shortcode()->addHandler('pixel', function(ShortcodeInterface $s) { - return pixel($s->getParameter('text'), - $s->getParameter('width'), - $s->getParameter('category'), - $s->getParameter('gray') - ); - }); -}); - -/** - * Return Pixel Image - * - * @param string $text Image text - * @param int $width Image width - * @param int $height Image height - * @param string $category Image category - * @param bool $gray Image category - * @return string - */ -function pixel(string $text, $width = null, $height = null, $category = null, bool $gray = true) : string -{ - (isset($gray) && $gray == true) and $gray = 'g/' or $gray = ''; - (isset($width)) and $width = $width.'/' or $width = Registry::get('plugins.pixel.width').'/'; - (isset($height)) and $height = $height.'/' or $height = Registry::get('plugins.pixel.height').'/'; - (isset($category)) and $category = $category.'/' or $category = Registry::get('plugins.pixel.category').'/'; - (isset($text)) and $text = $text.'/' or $text = ''; - return rtrim('http://lorempixel.com/'.$gray.$width.$height.$category.$text, '/\\'); -} diff --git a/site/plugins/pixel/pixel.yaml b/site/plugins/pixel/pixel.yaml deleted file mode 100755 index 874f961d..00000000 --- a/site/plugins/pixel/pixel.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Pixel -version: 1.0.0 -description: "Pixel plugin to create placeholder images for Flextype" -author: - name: Sergey Romanenko - email: awilum@yandex.ru - url: http://flextype.org -homepage: https://github.com/flextype-plugins/pixel -bugs: https://github.com/flextype-plugins/pixel/issues -license: MIT - -# Plugin settings -enabled: true -width: 400 -height: 200 -category: sports -text: '' diff --git a/site/plugins/robots/CHANGELOG.md b/site/plugins/robots/CHANGELOG.md deleted file mode 100755 index fc1ef5a4..00000000 --- a/site/plugins/robots/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# v1.0.0, 2018-05-27 -* Initial release diff --git a/site/plugins/robots/LICENSE.txt b/site/plugins/robots/LICENSE.txt deleted file mode 100755 index 3f865be1..00000000 --- a/site/plugins/robots/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Flextype - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/site/plugins/robots/README.md b/site/plugins/robots/README.md deleted file mode 100755 index f413b987..00000000 --- a/site/plugins/robots/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# Robots Plugin for [Flextype](http://flextype.org/) -![version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg?style=flat-square "Version") -![Flextype](https://img.shields.io/badge/Flextype-0.x-green.svg?style=flat-square "Flextype Version") -[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-plugins/robots/blob/master/LICENSE.txt) - -Robots plugin to generate a robots.txt file for your site. - -## Installation -1. Unzip plugin to the folder `/site/plugins/` -2. Go to `/site/config/site.yaml` and add plugin name to plugins section. -3. Save your changes. - -Example: -``` -... -plugins: - - robots -``` - -## Settings - -```yaml -enabled: true # or `false` to disable the plugin - -``` - -## License -See [LICENSE](https://github.com/flextype-plugins/robots/blob/master/LICENSE) diff --git a/site/plugins/robots/languages/en.yaml b/site/plugins/robots/languages/en.yaml deleted file mode 100755 index 01a64f9b..00000000 --- a/site/plugins/robots/languages/en.yaml +++ /dev/null @@ -1,2 +0,0 @@ -robots: "Robots" -robots_description: "Robots plugin to generate a robots.txt file for your site." diff --git a/site/plugins/robots/languages/ru.yaml b/site/plugins/robots/languages/ru.yaml deleted file mode 100755 index 01a64f9b..00000000 --- a/site/plugins/robots/languages/ru.yaml +++ /dev/null @@ -1,2 +0,0 @@ -robots: "Robots" -robots_description: "Robots plugin to generate a robots.txt file for your site." diff --git a/site/plugins/robots/robots.php b/site/plugins/robots/robots.php deleted file mode 100755 index 5ef3221b..00000000 --- a/site/plugins/robots/robots.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @link http://flextype.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Flextype; - -use Flextype\Component\{Event\Event, Http\Http}; - -if (Http::getUriSegment(0) == 'robots.txt') { - Event::addListener('onPageBeforeRender', function () { - Http::setResponseStatus(200); - Http::setRequestHeaders('Content-Type: text/plain; charset=utf-8'); - Themes::view('robots/views/templates/robots')->display(); - Http::requestShutdown(); - }); -} diff --git a/site/plugins/robots/robots.yaml b/site/plugins/robots/robots.yaml deleted file mode 100755 index 50a29740..00000000 --- a/site/plugins/robots/robots.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: Robots -version: 1.0.0 -description: "Robots plugin to generate a robots.txt file for your site." -author: - name: Sergey Romanenko - email: awilum@yandex.ru - url: http://flextype.org -homepage: https://github.com/flextype-plugins/robots -bugs: https://github.com/flextype-plugins/robots/issues -license: MIT - -# Plugin settings -enabled: true diff --git a/site/plugins/robots/views/templates/robots.php b/site/plugins/robots/views/templates/robots.php deleted file mode 100755 index a067e9bc..00000000 --- a/site/plugins/robots/views/templates/robots.php +++ /dev/null @@ -1,4 +0,0 @@ -User-agent: * -Disallow: /flextype/ -Disallow: /site/ -Disallow: /vendor/