public function init_flow_handle(Flow $flow) { if (Mobile::is_mobile()) { $vars = $flow->vars(); mb_convert_variables('utf-8', 'utf-8,SJIS-win', $vars); $flow->vars($vars); } }
private function m_not_mobile(&$src, Template $template) { while (Tag::setof($tag, $src, 'm:not_mobile')) { if (!Mobile::is_mobile()) { $src = str_replace($tag->plain(), $tag->value(), $src); } else { $src = str_replace($tag->plain(), '', $src); } } $src = $template->parse_vars($src); }