Skip to content

Instantly share code, notes, and snippets.

View florianfiegel's full-sized avatar

Florian Fiegel florianfiegel

  • Bochum, Germany
View GitHub Profile
@florianfiegel
florianfiegel / gist:1265710
Created October 5, 2011 20:58
Output area in templates of Habari themes
<?php $theme->area('sidebar'); ?>
@florianfiegel
florianfiegel / gist:1265697
Created October 5, 2011 20:56
Declaration of areas in theme.xml of Habari themes
<areas>
<area name="sidebar">
<description><![CDATA[The sidebar area]]></description>
</area>
<area name="nav">
<description><![CDATA[The navigation area]]></description>
</area>
</areas>
@florianfiegel
florianfiegel / gist:1265561
Created October 5, 2011 20:18
HowTo Embed Gists with habari-gists
[gist]http://gist.github.com/1243764[/gist]
@florianfiegel
florianfiegel / gist:1243764
Created September 26, 2011 23:30
Script for GrandTotal (http://www.grandtotal.biz/GrandTotal/) that changes the unit "h" as it is exported for example from mite to the unit "Stunden".
if (grandtotalrecord.unit() == "h")
"Stunden"
else
grandtotalrecord.unit();
@florianfiegel
florianfiegel / gist:1243753
Created September 26, 2011 23:26
Script for GrandTotal (http://www.grandtotal.biz/GrandTotal/) that hides the quantity of an item if the unit is "Pauschal" and quantity is 1.
if (grandtotalrecord.quantity() == 1 && grandtotalrecord.unit() == "Pauschal")
"";
else
grandtotalrecord.quantity();