# 'show' sections will be shown unless the corresponding data
# value === false
-
function tem_auto_show(&$value) {
if($value === null) $value = array(array());
return $value;
# 'nonempty' sections will not be shown if the corresponding data
# value is the empty string
-
function tem_auto_nonempty(&$value) {
if($value === '') $value = null;
return $value;
# 'evenodd' sections are given an 'evenodd' attribute whose value
# alternates between 'even' and 'odd'.
-
function tem_auto_evenodd(&$values) {
$even = true;
if($values) foreach($values as &$value) {
$this->data[$key] = $value;
}
+ function sets($hash) {
+ foreach($hash as $key => $value) {
+ $this->set($key, $value);
+ }
+ }
+
function append($key, $value) {
$this->data[$key] .= $value;
}
$GLOBALS['wfpl_template']->set($key, $value);
}
+function tem_sets($hash) {
+ tem_init();
+ $GLOBALS['wfpl_template']->sets($hash);
+}
+
function tem_get($key) {
tem_init();
return $GLOBALS['wfpl_template']->get($key);