mirror of
https://github.com/kennethreitz-archive/wp-mustache.git
synced 2026-06-05 15:40:19 +00:00
19 lines
423 B
PHP
19 lines
423 B
PHP
<?php
|
|
|
|
class Complex extends Mustache {
|
|
public $header = 'Colors';
|
|
|
|
public $item = array(
|
|
array('name' => 'red', 'current' => true, 'url' => '#Red'),
|
|
array('name' => 'green', 'current' => false, 'url' => '#Green'),
|
|
array('name' => 'blue', 'current' => false, 'url' => '#Blue'),
|
|
);
|
|
|
|
public function notEmpty() {
|
|
return !($this->isEmpty());
|
|
}
|
|
|
|
public function isEmpty() {
|
|
return count($this->item) === 0;
|
|
}
|
|
} |