PHP Classes

NiftyCube: Generate rounded corners HTML pages without images

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (8 years ago) RSS 2.0 feedStarStarStar 49%Total: 1,092 All time: 3,260 This week: 1,107Up
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 is available for providing paid consulting. Contact Jon Gjengset .
Classes: 10 packages by
Country: Norway Norway
Age: 25
All time rank: 2301 in Norway Norway
Week rank: 287 Down1 in Norway Norway Equal
Innovation award
Innovation award
Nominee: 3x

The NiftyCube class uses the Nifty Corners Cube script made and developed by Alessandro Fulciniti (
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.


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
  • 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,092All time:3,260
 This week:0This week:1,107Up
 User Ratings  
 All time