PHP Classes
elePHPant
Icontem

NiftyCube: Generate rounded corners HTML pages without images

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-02-11 (9 years ago) RSS 2.0 feedStarStarStar 49%Total: 1,096 All time: 3,303 This week: 1,145Up
Version License PHP version Categories
niftycubed 1GNU General Publi...5HTML, PHP 5, Web services
Description Author

This package can be used to generate HTML pages that have rounded corners but do not use images to draw the corners.

It uses the Nifty Corners Cube Javascript and CSS library originally developed by Alessandro Fulciniti generate HTML pages with a rounded look in using colors. This library needs to be download and installed separately to make this class work.

The generated page may have custom footers, headers and tags inside head section. It also supports both liquid and fixed layouts.

Picture of Jon Gjengset
Name: Jon Gjengset <contact>
Classes: 10 packages by
Country: Norway Norway
Innovation award
Innovation award
Nominee: 3x

Details
The NiftyCube class uses the Nifty Corners Cube script made and developed by Alessandro Fulciniti (http://www.html.it/articoli/niftycube/index.html).
All credit goes to him.

This class utilizes his script to easily make webpages with a rounded look in configurable colors. It allows for custom footers, headers and tags inside <head>, all through simple methods.

To use this class, please download the .class.php file.
Next, download the Nifty Corners Cube files from the NCC homepage (See Links) and put them in the same folder as where you put the class file.

THESE FILES ARE REQUIRED AND NEEDED!



Methods of the class:
The methods of this class are as follows (* are obligatory, ! should not be run by user)
* configureBorder	(  width_of_border_with_unit		,border_color_code,		size_of_corners(big | normal | small)  )	//Configures the border basically
* addToBody			(  content_to_be_added_to_body  )																		//Has to be run at least once, adds content to the page
* setPage			(  width_of_the_page,				[, spacing_from_top		[, padding_in_content_box]]  )				//Sets page measures
setColors			(  outside_color_code				,inside_color_code,		[, border_color_code]]  )					//Sets various colors on the page
setTitle			(  page_title  )																						//Sets the page title (<title> tag)
addToHead			(  lines_of_code  )																						//Adds something inside the <head> tag
addToFooter			(  lines_of_code  )																						//Adds content underneath the page itself
addAbove			(  lines_of_code  )																						//Adds content above the page itself
setTransparency		(  true(on)_or_false(off)  )																			//Turns on and off transparency for the corners of the Cube (Handy for background images etc.)
show				(  return_true_false  )																					//Prints or returns the complete HTML
obShow				(  content  )																							//Made for use with ob_start, see ob_example file!
!draw				(    )																									//Draws all elements (sets up the styles)
!makePage			(    )																									//Sets up all HTML code
Screenshots  
  • screensht.jpeg
  Files folder image Files  
File Role Description
Plain text file niftycubed.class.php Class The class itself
Plain text file niftycubed.example.php Example A complete example
Plain text file niftycubed.ob_example.php Example An example using Output Buffering
Plain text file README.txt Doc. Readme file, instructions and methods inside

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,096
This week:0
All time:3,303
This week:1,145Up
 User Ratings  
 
 All time
Utility:62%StarStarStarStar
Consistency:62%StarStarStarStar
Documentation:54%StarStarStar
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2080