Qrcode.class.php (356B)
1 <?php 2 3 namespace template_engine\components; 4 5 class QrcodeComponent extends Component 6 { 7 8 public $title; 9 10 11 12 protected function begin() 13 { 14 $value = $this->htmlvalue($this->value); 15 $title = lang('QRCODE_SHOW'); 16 echo <<<HTML 17 <i class="image-icon image-icon--menu-qrcode or-qrcode or-info" data-qrcode="{$value}" title="{$title}"></i> 18 HTML; 19 } 20 21 } 22 23 ?>