Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ronniechong/html-template

HTML5 / PHP template
https://github.com/ronniechong/html-template

Last synced: about 1 month ago
JSON representation

HTML5 / PHP template

Awesome Lists containing this project

README

        

HTML5 / PHP template

Date added: 6th November 2013


Description: This is a HTML/PHP template for a standard web development. It supports a HTML5, mobile/responsive environment and a PHP client server environment.

Structure



The starting point template has the following structure:



index.php

layout.php

_assets/js/ --> JS files here

_assets/images/ --> Image files here

_assets/css/ --> CSS files here

_assets/lib/ --> PHP include or library files here

Getting started


You will need a Apache/PHP webserver environment to host the HTML templates.



layout.php


This is the template for the layout of the website. It defines your basic structure of the website (header and footer) as well as global calls for scripts and stylesheets

index.php


This is the template for the invidual page of the website. You can populate your local content here as well as define scripts or stylesheets.

settings.php


This file is located in _assets/lib folder. It serves as a settings page where you define how the template will behave. See Settings below for options

Settings



$objSettings -> isDEVMODE


Setting this option to TRUE will display internal information during development. This is useful when you wish to debug issues.

NOTE: Remember to turn it to FALSE before going live with your website or internal information will be revealed to the public. The default value is FALSE.

$objSettings -> isMobileResponsive


This is for mobile/responsive development. If set to TRUE, a viewport tag will be embedded into the layout. The default value is FALSE.


$objSettings -> isSession


If set to TRUE, a session() will start for the website. The default value is FALSE.


$objSettings -> strMobileViewport


This is the tag for mobile/responsive mode. This will be embedded in the layout is isMobileResponsive is set to TRUE.

CSS


The CSS (default.css) contains a standard reset and a basic set of styling and declarations.