Skip to content

Instantly share code, notes, and snippets.

View Logiks's full-sized avatar

Logiks : Framework Of Frameworks Logiks

View GitHub Profile
@Logiks
Logiks / digioffice-module-apppage.php
Created May 18, 2014 23:54
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);
@Logiks
Logiks / widget-socialicons.php
Created February 4, 2014 06:22
Generate Social Links Using Social Feature File. This allows the social features to be able to manipulated using CMS->Configurations->Feature Settings. #Logiks-Core
<?php
$arrF=loadFeature("socials");
foreach($arrF as $a=>$b) {
if(strlen($b)<=0) continue;
echo "<li><a href='$b' target=_blank><img src='".
loadMedia("images/socials/".strtolower($a).".png")."' width=20px height=20px ></a></li>";
}
?>