Start with Simple CSS

Don't Repeat the Same Steps

h4: Use Fresh to Make Your Own Skin


Login

Hello, Joe. adminlogout

Columns

4
4
4
5
2
5
6
6
7
5
8
4
9
3
10
2
11
1
12

Colors

.light_red .red .dark_red
.light_green .green .dark_green
.light_blue .blue .dark_blue
.white
.light_gray
.gray
.dark_gray
.black

Buttons


Lists

  • This is a Horizontal List
  • .hlist is a class
  • It can be used on any ul
  • This is a Vertical List
  • .vlist is a class
  • It can be used on any ul
  • This is a Fancy Vertical List
  • .fvlist is a class
  • It can be used on any ul
  • Extra Fancy Vertical List
  • .efvlist is a class
  • It can be used on any ul


Tiles

Tile Header

Tile content - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum faucibus nisl eu ullamcorper mollis. Vivamus commodo convallis sapien quis finibus. Sed condimentum aliquet justo ut condimentum. Aenean feugiat fringilla hendrerit. Nullam non faucibus libero. Sed lobortis leo a sapien varius, nec luctus enim euismod. In quis massa odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec vehicula ullamcorper dictum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ante nec orci commodo cursus. Integer quis accumsan lacus, eget maximus lorem.

Another Header

More content - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum faucibus nisl eu ullamcorper mollis. Vivamus commodo convallis sapien quis finibus. Sed condimentum aliquet justo ut condimentum. Aenean feugiat fringilla hendrerit. Nullam non faucibus libero. Sed lobortis leo a sapien varius, nec luctus enim euismod. In quis massa odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec vehicula ullamcorper dictum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ante nec orci commodo cursus. Integer quis accumsan lacus, eget maximus lorem.

Yet another header...

Even more content - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum faucibus nisl eu ullamcorper mollis. Vivamus commodo convallis sapien quis finibus. Sed condimentum aliquet justo ut condimentum. Aenean feugiat fringilla hendrerit. Nullam non faucibus libero. Sed lobortis leo a sapien varius, nec luctus enim euismod. In quis massa odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec vehicula ullamcorper dictum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ante nec orci commodo cursus. Integer quis accumsan lacus, eget maximus lorem.

Stuff

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum faucibus nisl eu ullamcorper mollis. Vivamus commodo convallis sapien quis finibus. Sed condimentum aliquet justo ut condimentum. Aenean feugiat fringilla hendrerit. Nullam non faucibus libero. Sed lobortis leo a sapien varius, nec luctus enim euismod. In quis massa odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec vehicula ullamcorper dictum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ante nec orci commodo cursus. Integer quis accumsan lacus, eget maximus lorem.

More Stuff

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum faucibus nisl eu ullamcorper mollis. Vivamus commodo convallis sapien quis finibus. Sed condimentum aliquet justo ut condimentum. Aenean feugiat fringilla hendrerit. Nullam non faucibus libero. Sed lobortis leo a sapien varius, nec luctus enim euismod. In quis massa odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec vehicula ullamcorper dictum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ante nec orci commodo cursus. Integer quis accumsan lacus, eget maximus lorem.


Forms


Code

file.php

// init.php is deprecated, but this is an easy solution for backward compatibility to OOOLLLDDD installations. include dirname(__FILE__).'/bootstrap.php'; $lf = new LittleFoot(); // initialize $lf with $db connection $lf->cms(); // execute littlefoot as ->cms() and ->render() output /** *@author Joe S *@license LICENSE.txt *@package LittlefootCMS */ // doesn't support below PHP 5.3 if(version_compare(phpversion(), '5.4') == -1) { echo 'You are using PHP '.phpversion().' which is End of Life. You need at least PHP 5.4 to run LittlefootCMS. Contact your hosting provider to resolve this.'; exit; } define('ENV', 'PRODUCTION'); define('APP', getcwd().'/'); // in case it is called as a framework // chdir to lf/ folder and define as ROOT $folder = dirname(__FILE__).'/../'; if(!chdir($folder)) die('Access Denied to '.$folder); // if unable to cd there, kill script define('LF', getcwd().'/'); // The absolute path to the lf/ directory is the ROOT of the application define('ROOT', LF); // backward compatible // Littlefoot require 'system/lib/helpers.php'; // Helpful functions require 'system/lib/db.php'; // OOP Database Wrapper require 'system/lib/app.php'; // Littlefoot app base class require 'system/lib/orm.php'; // Object Relation Model base require 'system/lib/recovery/install.php'; require 'system/lib/user.php'; // user stuff require 'system/lib/auth.php'; // auth stuff require 'system/lib/littlefoot.php'; // Request, Auth, Nav, Content, Render // Add local lib paths to include_path if(is_dir(LF.'lib')) ini_set('include_path', ini_get('include_path').':'.LF.'lib'); if(is_dir(LF.'system/lib')) ini_set('include_path', ini_get('include_path').':'.LF.'system/lib'); // Session name needs to be alphanumeric, // just MD5 it to keep it unique and to not show the docroot session_name(md5(LF.$_SERVER['SERVER_NAME'])); session_start(); // tried putting this in $lf->authenticate // couldn't login when I did that... will fix later

This is an example of placing pre tags within normal text. You can insert $lf = new LittleFoot(); right into a paragraph. This is an example of placing pre tags within normal text. You can flat out just insert require 'system/lib/orm.php'; in any paragraph.


Tables

title title title title title
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data

ORM

Code

$obj = (new LfActions)->limit(4);
$obj->find();
$dump = get_object_vars($obj);
pre($dump, 'print_r');

Output

Array
(
    [table] => lf_actions
    [debug] => 
    [data] => Array
        (
        )

    [joins] => Array
        (
        )

    [conditions] => Array
        (
        )

    [where] => 
    [order] => 
    [limit] =>  LIMIT 4
    [result] => Array
        (
            [0] => Array
                (
                    [id] => 237
                    [parent] => -1
                    [position] => 0
                    [alias] => RedditEmbed
                    [title] => RedditEmbed
                    [label] => RedditEmbed
                    [app] => 1
                    [template] => default
                )

            [1] => Array
                (
                    [id] => 216
                    [parent] => -1
                    [position] => 6
                    [alias] => demo
                    [title] => Littlefoot Demo
                    [label] => Demo
                    [app] => 0
                    [template] => default
                )

            [2] => Array
                (
                    [id] => 220
                    [parent] => -1
                    [position] => 2
                    [alias] => manual
                    [title] => LittlfootCMS Manual
                    [label] => Manual
                    [app] => 1
                    [template] => default
                )

            [3] => Array
                (
                    [id] => 230
                    [parent] => 247
                    [position] => 1
                    [alias] => github
                    [title] => Fork LittlefootCMS on GitHub!
                    [label] => Github
                    [app] => 1
                    [template] => default
                )

        )

    [row] => 0
    [error] => Array
        (
        )

    [mysqli] => mysqli Object
        (
            [affected_rows] => 4
            [client_info] => mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
            [client_version] => 50010
            [connect_errno] => 0
            [connect_error] => 
            [errno] => 0
            [error] => 
            [error_list] => Array
                (
                )

            [field_count] => 8
            [host_info] => Localhost via UNIX socket
            [info] => 
            [insert_id] => 0
            [server_info] => 5.5.5-10.1.22-MariaDB
            [server_version] => 50505
            [stat] => Uptime: 2161949  Threads: 12  Questions: 546316469  Slow queries: 0  Opens: 157494  Flush tables: 1  Open tables: 83848  Queries per second avg: 252.696
            [sqlstate] => 00000
            [protocol_version] => 10
            [thread_id] => 7817548
            [warning_count] => 0
        )

    [pkIndex] => id
    [conf] => Array
        (
            [host] => localhost
            [user] => lfcms_lf
            [pass] => #V8=Jp?CfSp(
            [name] => lfcms_lf
            [prefix] => lf_
        )

    [query_count] => 1
    [tblprefix] => lf_
)