Featured Products
- Home
- PHP Scripts
- Sticklr PHP - Easy Sticky Side Panel Builder
Sticklr PHP - Easy Sticky Side Panel Builder
By : amatyr4n Published on Sunday, January 17, 2016,08:54:50 in PHP Scripts
Sticklr PHP is a PHP script which provides an easy way to generate sticky side panel navigation menu in server-side from various sources of formats: PHP, JSON, or MySQL database table. Requirements:
<?php
// import Sticklr classes
require_once('Sticklr.php');
// instantiate new Sticklr object
$sticklr = new Sticklr();
// Option 1: import data from MySQL
$sticklr->importMySQL($mysql_host, $mysql_user, $mysql_pass, $db_name, $table_name)
// Option 2: import data from JSON text/file
$sticklr->importJSON($json);
// Option 3: PHP way
$sticklr
->addMenu((new SticklrMenu('Label', '#', 'tag'))
->addMenuItem(new SticklrMenuItem('title', '#', '', 'Title'))
->addMenuItem(new SticklrMenuItem('link', 'https://fb.com', 'fb', 'FB'))
->addMenuItem())
->addMenu((new SticklrMenu())->addMenuItem())
->setOption('panelSize', 32);
// Finally: draw as HTML
$sticklr->writeHTML();
?>




![Spell Robo Contains more then 5000 English words to help you learn how to spell words. Start with easy words like [Lab] or [name] and then learn complex words l](https://0.s3.envato.com/files/197766875/screen2.jpg)