Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ronniechong/html-template
- Owner: ronniechong
- License: mit
- Created: 2013-11-05T21:17:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-05T23:56:56.000Z (about 11 years ago)
- Last Synced: 2024-04-14T12:59:02.169Z (9 months ago)
- Language: PHP
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.