Ejemplo n.º 1
0
 public function displayDownloadButton(Module_Slaytags $module)
 {
     if (false === ($href = $this->hrefRKO())) {
         return '';
     }
     return sprintf('<a class="gwf_button" href="%s" title="%s"><span class="gwf_btn_generic">%s</span></a> ', $href, $module->lang('dl_from_rko'), 'D');
 }
Ejemplo n.º 2
0
 public static function validateTag(Module_Slaytags $module, $tagid, $allowEmpty = true, $blank = true, $name = 'searchtag')
 {
     if ($allowEmpty && $tagid == 0) {
         return false;
     }
     if (false === Slay_Tag::getByID($tagid)) {
         if ($blank) {
             unset($_POST[$name]);
         }
         return $module->lang('err_searchtag');
     }
     return false;
 }