Merge branch 'master' of github.com:dignajar/bludit

This commit is contained in:
Diego Najar 2017-10-25 19:51:13 +02:00
commit 723b6273fd
5 changed files with 52 additions and 13 deletions

View File

@ -14,7 +14,7 @@ Bludit supports **Markdown** and **HTML code** for the content.
[![Bludit PRO](https://img.shields.io/badge/Bludit-PRO-blue.svg)](https://pro.bludit.com/) [![Bludit PRO](https://img.shields.io/badge/Bludit-PRO-blue.svg)](https://pro.bludit.com/)
Social networks Social Networks
--------------- ---------------
- [Twitter](https://twitter.com/bludit) - [Twitter](https://twitter.com/bludit)
@ -27,23 +27,38 @@ Requirements
You just need a web server with PHP support. You just need a web server with PHP support.
PHP v5.3 or higher.
PHP mbstring module for full UTF-8 support.
PHP gd module for image processing.
PHP dom module for DOM manipulation.
PHP json module for JSON manipulation.
Supported web servers:
Bludit supports almost every webserver
PHP Built-in web server
- PHP v5.3 or higher. - PHP v5.3 or higher.
- PHP [mbstring](http://php.net/manual/en/book.mbstring.php) module for full UTF-8 support. - PHP [mbstring](http://php.net/manual/en/book.mbstring.php) module for full UTF-8 support.
- PHP [gd](http://php.net/manual/en/book.image.php) module for image processing. - PHP [gd](http://php.net/manual/en/book.image.php) module for image processing.
- PHP [dom](http://php.net/manual/en/book.dom.php) module for DOM manipulation. - PHP [dom](http://php.net/manual/en/book.dom.php) module for DOM manipulation.
- PHP [json](http://php.net/manual/en/book.json.php) module for JSON manipulation. - PHP [json](http://php.net/manual/en/book.json.php) module for JSON manipulation.
- Webserver with PHP support - Supported web servers:
* PHP Built-in web server * Bludit supports almost every webserver
* PHP Built-in web server
Installation guide Installation Guide
------------------ ------------------
1. Download the latest version from https://cdn.bludit.com/builds/bludit_latest.zip 1. Download the latest version from the official page. [Bludit.com](https://www.bludit.com)
2. Extract the zip file into a directory like `bludit`. 2. Extract the zip file into a directory like bludit.
3. Upload the directory `bludit` to your server/hosting. 3. Upload the directory `bludit` to your web server or hosting.
4. Visit your domain https://example.com/bludit/ 4. Visit your domain https://example.com/bludit/
5. Follow the Bludit Installer to configure the website. 5. Follow the Bludit Installer to configure the website.
Docker Image
------------
Bludit provides an official Docker image.
- https://hub.docker.com/r/bludit/docker/
License License
------- -------
Bludit is open source software licensed under the [MIT license](https://tldrlegal.com/license/mit-license). Bludit is open source software licensed under the [MIT license](https://tldrlegal.com/license/mit-license).

View File

@ -325,7 +325,9 @@ button.aslink:hover {
} }
.bl-publish-sidebar { .bl-publish-sidebar {
display: none !important; width: 100% !important;
padding: 0 !important;
margin-bottom: 25px !important;
} }
.bl-publish-view { .bl-publish-view {

View File

@ -57,6 +57,16 @@ article.page footer {
text-align: right; text-align: right;
} }
/* PAGINATION */
.pagination {
width: 100%;
}
.pagination > li > a.float-right {
float: right;
}
/* PLUGINS */ /* PLUGINS */
div.plugin:not(:last-child) { div.plugin:not(:last-child) {

View File

@ -26,3 +26,15 @@
</article> </article>
<?php endforeach ?> <?php endforeach ?>
</section> </section>
<!-- Pagination -->
<ul class="pagination">
<?php
if (Paginator::showPrev()) {
echo '<li><a href="'.Paginator::prevPageUrl().'">'.$L->get('Previous page').'</a></li>';
}
if (Paginator::showNext()) {
echo '<li><a href="'.Paginator::nextPageUrl().'" class="float-right">'.$L->get('Next page').'</a></li>';
}
?>
</ul>

View File

@ -25,11 +25,11 @@
<ul class="pagination"> <ul class="pagination">
<?php <?php
if (Paginator::showPrev()) { if (Paginator::showPrev()) {
echo '<li><a href="'.Paginator::prevPageUrl().'">'.$L->get('Next').'</a></li>'; echo '<li><a href="'.Paginator::prevPageUrl().'">'.$L->get('Previous page').'</a></li>';
} }
if (Paginator::showNext()) { if (Paginator::showNext()) {
echo '<li><a href="'.Paginator::nextPageUrl().'">'.$L->get('Previous').'</a></li>'; echo '<li><a href="'.Paginator::nextPageUrl().'">'.$L->get('Next page').'</a></li>';
} }
?> ?>
</ul> </ul>