PHP Classes

Header from folders: Generate HTML pages with custom JavaScript and CSS

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 453 All time: 6,156 This week: 455Up
Version License PHP version Categories
header-from-folders 1.0GNU General Publi...5.0HTML, PHP 5
Description 

Author

This class can generate HTML pages with custom JavaScript and CSS.

It takes directories with JavaScript and CSS files and generates an HTML for a page head section that includes the JavaScript and CSS files found in the specified directories.

The class may also include the page title, HTML document type, character set and custom head section tags.

Picture of Tiago André
Name: Tiago André <contact>
Classes: 4 packages by
Country: Portugal Portugal
Age: ???
All time rank: 120414 in Portugal Portugal
Week rank: 192 Up2 in Portugal Portugal Up

Details

/* * imdb.class.php * * Copyright 2012 Tiago André <geral.t8bit@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * */ /* * This class adds to the header the content files of the folder css and js * * * Usage: * $header=new header('My title'); * $header->show(); * Doing that you will recive an object with the movie information, * * Aditional options * * $header=new header('My title','jsFolder','CssFolder','doctype','charset'); * * * * or you can set the parameters * * $header->set('JS_files','app/js'); * * $header->set('CSS_files','app/css'); * * $header->set('doctype','<!DOCTYPE html>'); * * $header->set('charset','utf8'); * * * Add a new parameter to header * * $header->add('<script>alert('new param');</script>') */

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file demo.php Example Demo File
Plain text file header.class.php Class main file
Accessible without login Plain text file README Doc. readme file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:453
This week:0
All time:6,156
This week:455Up
User Comments (1)
There are a good and useful class ;-)
12 years ago (José Filipe Lopes Santos)
80%StarStarStarStarStar