PHP Classes

NiftyCube: Generate rounded corners HTML pages without images

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 1,103 All time: 3,404 This week: 206Up
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: 34
All time rank: 2301 in Norway Norway
Week rank: 200 Up2 in Norway Norway Down
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 (1)  
  • screensht.jpeg
  Files folder image Files (5)  
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

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:1,103
This week:0
All time:3,404
This week:206Up
 User Ratings  
 
 All time
Utility:60%StarStarStarStar
Consistency:60%StarStarStarStar
Documentation:53%StarStarStar
Examples:67%StarStarStarStar
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:2949