eftec / gentelella-bladeone
Gentelella Admin Design for BladeOne Template System (PHP)
Installs: 76
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 2
Open Issues: 0
Language:HTML
Type:example
Requires
- composer/installers: ^1.0.20
- eftec/bladeone: ^1.8
This package is auto-updated.
Last update: 2024-12-17 02:38:45 UTC
README
A bootstrap 3 admin using bladeone template system (php).
Unlikely other products, it only requires a single file BladeOne.php to runs. So it could runs in vanilla php without any framework or any other external references.
Live template Running on heroku
Install using composer
composer require EFTEC/gentelella-bladeone
Install plain PHP
All the references and resources are included in this project.
Just download the folder to a web server and run /index.php
How it works:
<?php
include "vendor/autoload.php";
use eftec\bladeone;
$blade=new BladeOne\BladeOne(__DIR__.'/views',__DIR__ . '/compiled');
define("BLADEONE_MODE",1);
$values=['title'=>'Gentelella-bladeone | index ','username'=>'Hillary Trump'];
echo $blade->run("home.index",$values);
where home.index is the index template located in the folder \views\home
folders
-
\ = Controllers files. They simply use Bladeone and reder the views.
-
\views = The templates based in gentelella. The templates are compatible with Laravel's Blade
-
\views\_shared = The shared templates
-
\views\_shared\master.blade.php = The master template. It has the common code used for many pages but the login and error pages.
-
\views\_shared\masterfull.blade.php = Another master page that doesn't have the left and top menu
-
\views\_shared\header.php = The header (upper menu)
-
\views\_shared\head.php = The head <head> content
-
\views\_shared\leftmenu.php = The left menu
-
\views\_shared\leftmenu.php = The footer of the page (where is the copyright)
-
\views\_home = The pages content
-
\images = images used by the views.
-
\js = Custom javascript.
-
\css = Custom stylesheet
-
\vendor = third party php libraries (BladeOne)
-
\vendors = third party javascript libraries
-
\compiled = a folder when the compiled \views are created. It auto generates.
Dependencies PHP
- It requires BladeOne (PHP) 1.8 or higher. Included in the project.
- PHP 5.5 or higher.
Dependencies Javascript / Css
(all included)
- JQuery
- Bootstrap
- TODO: Others.
Important!:
The files:
\views\_shared\master.blade.php
\views\_shared\masterfull.blade.php
contain a code to Google analytics. You could remove it. Google analytics is used for the heroku demo.
<!-- google analytics, please remove it -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-99820696-1', 'auto');
ga('send', 'pageview');
</script>
<!-- google analytics, please remove it -->
Version
- 0.1 - 2017-05-21 first version (beta)
- 0.2 - 2017-05-24 second version. 99% its up and running. SCSS fixes.
Todo
templates
License information
BladeOne is licensed under The MIT License (MIT). Which means that you can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. But you always need to state that Jorge Castro Castillo is the original author of this library.
Gentelella copyright Colorlib (https://colorlib.com/). Licensed under The MIT License (MIT).
Animate copyright Daniel Eden (https://daneden.github.io). Licensed under The MIT License (MIT).
Autosize copyright Jack Moore. Licensed under The MIT License (MIT).
TODO: other licenses.