Example #1
0
 public function process(Pagemill_Tag $tag, Pagemill_Data $data, Pagemill_Stream $stream)
 {
     if ($tag->hasAttribute('value')) {
         $checked = $data->parseVariables($this->_checkvalue);
         $value = $data->parseVariables($tag->getAttribute('value'));
         if ($checked == $value) {
             $tag->setAttribute('checked', 'checked');
         } else {
             $tag->removeAttribute('checked');
         }
     }
 }