mflip Sponsor Flip Wall With jQuery & CSS, &Yii

  1. Resources
  2. Usage

This is a wrapper for Sponsor Flip Wall With jQuery & CSS.

Resources

Usage

Extract the zip file under extensions folder.

Just pass the array of items to the widget, then that's it! The array should contain:

1) PNG filename (without the .png extension)

2) Description of the item

3) Hyperlink for the item

4) (Optional) Title for the item (if different from the default title)

  • Example:

Download the sample PNGs zip file (sample_sponsors.zip) so you can appreciate this example better, and then extract the images under extensions/mflip/assets/img/sponsors/ folder. Then in your view file:

$sponsors = array(
	array('facebook','The biggest social network in the world.','http://www.facebook.com/','facebook title'),   //this has custom title
	array('adobe','The leading software developer targeted at web designers and developers.','http://www.adobe.com/'),
	array('microsoft','One of the top software companies of the world.','http://www.microsoft.com/','microsoft title'), //this has custom title
	array('sony','A global multibillion electronics and entertainment company ','http://www.sony.com/'),
	array('dell','One of the biggest computer developers and assemblers.','http://www.dell.com/'),
	array('ebay','The biggest online auction and shopping websites.','http://www.ebay.com/'),
	array('digg','One of the most popular web 2.0 social networks.','http://www.digg.com/'),
	array('google','The company that redefined web search.','http://www.google.com/'),
	array('ea','The biggest computer game manufacturer.','http://www.ea.com/'),
	array('mysql','The most popular open source database engine.','http://www.mysql.com/'),
	array('hp','One of the biggest computer manufacturers.','http://www.hp.com/'),
	array('yahoo','The most popular network of social media portals and services.','http://www.yahoo.com/'),
	array('cisco','The biggest networking and communications technology manufacturer.','http://www.cisco.com/'),
	array('vimeo','A popular video-centric social networking site.','http://www.vimeo.com/'),
	array('canon','Imaging and optical technology manufacturer.','http://www.canon.com/')
);
$this->widget('application.extensions.mflip.MFlip',array(
    'sponsors'=>$sponsors,    //the items to be flipped
    'single'=>false,          //flip one item at a time;default is false
    'shuffle'=>true,          //shuffle the array?
    'title'=>'Click to flip', //default title for all items. Will be bypassed if the 4th item of sponsors array is present
    'openNew'=>true           //opens the link in new tab (or window)
));
17 1
22 followers
2 230 downloads
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: morcen
Created on: Jun 6, 2011
Last updated: 7 years ago

Downloads

show all

Related Extensions