Skip to main content
Easton's stuff

Main navigation

  • Code
  • SnackLinux
  • Home

Breadcrumb

  1. Home

Modules

By Easton , 22 September, 2009
  • Add new comment

As of version 1.3.0, WorkSimple incorporates a new modules system.

 

Modules are stored in modules/

The control panel and index page both contain 'plugs'.

 

For the index page (index.php), they are as follows

  • index, contentleft
  • index, contentcenter
  • index, contentright
  • index, footer
  • index, links

For the control panel (cp.php), they are as follows

  • cp, contentleft

(I forgot to add more for the control panel).

But how do you use them?

Create your module first. Save it in modules/. For the text you want to be displayed at a certain block, prefix it with:

$rack['index']['footer'] = 'my text blah blah ';

Each key in the $rack array corresponds to a plug. So 'index, contentleft' would be:

$rack['index']['contentleft'] = 'my text blah blah ';


This page needs to be cleaned up

Navigation

  • GitHub Profile
  • SnackLinux
  • Popular pages
    • Restoring a Macintosh Plus
    • Getting root access on a $10 Aliexpress Wifi repeater
    • Remote code execution on no-name wifi repeaters: Part 2
    • Building your own handheld GPS with an ESP32
    • Remote code execution with Hitron CGNM-2250
    • NES controller and a RaspberryPi
    • 4000 series CMOS 24 hour clock
  • Toyota Overland
RSS feed



 

Powered by Drupal