Skip to content

Instantly share code, notes, and snippets.

@Logiks
Created May 18, 2014 23:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Logiks/84dac51faad84559123e to your computer and use it in GitHub Desktop.
Save Logiks/84dac51faad84559123e to your computer and use it in GitHub Desktop.
Logiks boiler plate code for a basic DigiOffice plugin based on page module (apppage). Just put these to files in a custom made folder. rename 'digioffice-module-apppage.php' to 'index.php', and the module is ready to be used with a pretty decent gui of toolbar,sidebar and content space.
<?php
if(!defined('ROOT')) exit('No direct script access allowed');
//session_check(true);
loadModule("page");
$params["toolbar"]="printToolbar";
$params["contentarea"]="printContent";
printPageContent("apppage",$params);
function printToolbar() { ?>
<button onclick="window.location.reload()" style='width:46px;' ><div class='reloadicon'>&nbsp;</div></button>
<?php
}
function printContent() {
?>
<div style='width:100%;height:100%;overflow:hidden;'>
<div class='pageSidebar'>
</div>
<div class="componentSpace">
</div>
</div>
<?php } ?>
<?php
if(!defined('ROOT')) exit('No direct script access allowed');
//checkServiceSession();
if(isset($_REQUEST['action'])) {
switch($_REQUEST['action']) {
default:
break;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment