PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 453 This week: 1All time: 6,149 This week: 560Up
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: 120314 in Portugal Portugal
Week rank: 411 Up3 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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:453
This week:1
All time:6,149
This week:560Up
User Comments (1)
There are a good and useful class ;-)
11 years ago (José Filipe Lopes Santos)
80%StarStarStarStarStar