Gentelella BladeOne: Render templates using Bootstrap for presentation

Recommend this page to a friend!
  Info   View files Example   View files View files (8245)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-05-18 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 26 All time: 10,307 This week: 259Up
Version License PHP version Categories
gentelella-bladeone 1.0.0GNU Lesser Genera...5PHP 5, Templates
Description Author

This package can render templates using Bootstrap for presentation.

It can take the name of a view and loads the templates from BladeOne template files that are process using given template parameters values.

The package can compile the BladeOne templates and store the resulting PHP scripts in cache files to avoid further processing when the same templates are used again.

The package uses Bootstrap CSS files to render the processed templates.

Picture of Jorge Castro
  Performance   Level  
Innovation award
Innovation award
Nominee: 11x

Winner: 2x

 

Details

gentelella-bladeone

A bootstrap 3 admin using bladeone template system (php).

[Packagist]() [Maintenance]() [npm]() [php]() [php]() [CocoaPods]()

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.

Gentelella Bootstrap Admin Template

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

| Template | Version/Status | |---------|--------| | index.blade.php | 0.1 OK| | calendar.blade.php | 0.1 OK | | chartjs.blade.php | 0.1 OK| | chartjs2.blade.php | 0.1 OK| | contacts.blade.php | 0.1 OK| | echarts.blade.php | 0.1 OK| | e_commerce.blade.php | 0.2 OK| | fixed_footer.blade.php | 0.2 OK| | fixed_sidebar.blade.php | 0.2 OK| | form.blade.php | 0.1 OK| | form_advanced.blade.php | 0.1 OK| | form_buttons.blade.php | 0.1 OK| | form_upload.blade.php | 0.1 OK| | form_validation.blade.php | 0.2 OK| | form_wizards.blade.php | 0.2 OK| | general_elements.blade.php | 0.2 OK| | glyphicons.blade.php | 0.2 OK| | icons.blade.php | 0.2 OK| | inbox.blade.php | 0.2 OK| | index.blade.php | 0.1 OK| | index2.blade.php | 0.2 OK| | index3.blade.php | 0.2 OK| | invoice.blade.php | 0.2 OK| | level2.blade.php | 0.2 OK| | login.blade.php | 0.2 OK| | map.blade.php | 0.1 NOT TESTED| | media_gallery.blade.php | 0.2 OK| | morisjs.blade.php | 0.2 OK| | other_charts.blade.php | 0.2 OK| | page_403.blade.php | 0.1 OK| | page_404.blade.php | 0.1 OK| | page_500.blade.php | 0.1 OK| | plain_page.blade.php | 0.1 OK| | pricing_tables.blade.php | 0.1 OK| | profile.blade.php | 0.2 OK| | projects.blade.php | 0.2 OK| | project_detail.blade.php | 0.2 OK| | tables.blade.php | 0.2 OK| | tables_dynamic.blade.php | 0.2 OK| | typography.blade.php | 0.2 OK| | widgets.blade.php | 0.2 OK| | xx.blade.php | 0.1 What is that? |

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.

  Files folder image Files  
File Role Description
Files folder image.idea (1 file)
Files folder imagecss (8 files)
Files folder imagedata (2 directories)
Files folder imagedocs (1 file)
Files folder imageimages (15 files)
Files folder imagejs (3 files)
Files folder imagerest (1 file)
Files folder imagethird-party-licenses (1 file)
Files folder imagevendor (1 file, 2 directories)
Files folder imagevendors (67 directories)
Files folder imageviews (2 directories)
Accessible without login Plain text file .bowerrc Data Auxiliary data
Accessible without login Plain text file bower.json Data Auxiliary data
Accessible without login Plain text file calendar.php Example Example script
Accessible without login Plain text file chartjs.php Example Example script
Accessible without login Plain text file chartjs2.php Example Example script
Accessible without login Plain text file cleanup.php.bak Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file contacts.php Example Example script
Accessible without login Plain text file echarts.php Example Example script
Accessible without login Plain text file e_commerce.php Example Example script
Accessible without login Plain text file fixed_footer.php Example Example script
Accessible without login Plain text file fixed_sidebar.php Example Example script
Accessible without login Plain text file form.php Example Example script
Accessible without login Plain text file form_advanced.php Example Example script
Accessible without login Plain text file form_buttons.php Example Example script
Accessible without login Plain text file form_upload.php Example Example script
Accessible without login Plain text file form_validation.php Example Example script
Accessible without login Plain text file form_wizards.php Example Example script
Accessible without login Plain text file general_elements.php Example Example script
Accessible without login Plain text file glyphicons.php Example Example script
Accessible without login Plain text file icons.php Example Example script
Accessible without login Plain text file inbox.php Example Example script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file index2.php Example Example script
Accessible without login Plain text file index3.php Example Example script
Accessible without login Plain text file invoice.php Example Example script
Accessible without login Plain text file level2.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file login.php Example Example script
Accessible without login Plain text file map.php Example Example script
Accessible without login Plain text file media_gallery.php Example Example script
Accessible without login Plain text file morisjs.php Example Example script
Accessible without login Plain text file other_charts.php Example Example script
Accessible without login Plain text file page_403.php Example Example script
Accessible without login Plain text file page_404.php Example Example script
Accessible without login Plain text file page_500.php Example Example script
Accessible without login Plain text file plain_page.php Example Example script
Accessible without login Plain text file pricing_tables.php Example Example script
Accessible without login Plain text file profile.php Example Example script
Accessible without login Plain text file projects.php Example Example script
Accessible without login Plain text file project_detail.php Example Example script
Accessible without login Plain text file README.md Doc. Read me
Accessible without login Plain text file tables.php Example Example script
Accessible without login Plain text file tables_dynamic.php Example Example script
Accessible without login Plain text file typography.php Example Example script
Accessible without login Plain text file widgets.php Example Example script
Accessible without login Plain text file xx.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:26
This week:0
All time:10,307
This week:259Up

For more information send a message to info at phpclasses dot org.