public static function appUrlSwitch($pu, $applist, $aladdin, $aladetail) { if ($aladdin == 'map') { $mapConf = Bd_Conf::getAppConf('device/map'); #最低框版本 $clientversion = Utils_Common::analyseClient($pu, 'clientversion'); //如果小于最低版本 -1 if (version_compare($clientversion, $mapConf['clientversion'], '<') == 1) { return 0; } #屏蔽机型 $model = Utils_Common::analyseClient($pu, 'model'); $mapConf['model'] = explode(",", $mapConf['model']); if (is_array($mapConf['model'])) { foreach ($mapConf['model'] as $modelk => $modelv) { if (strcasecmp(trim($modelv), trim($model)) == 0) { return 0; } } } #最低机型版本 $osversion = Utils_Common::analyseClient($pu, 'osversion'); if (version_compare($osversion, $mapConf['osversion'], '<') == 1) { return 0; } #客户端名称 $osname = self::getValueFromPu($pu, 'osname'); if ($mapConf['osname'] != $osname) { //return 0; } #高于最低地图版本返回1 $mapVersion = empty($mapConf['mapv'][$aladetail]) ? $mapConf['mapv']['default'] : $mapConf['mapv'][$aladetail]; if (is_array($applist)) { foreach ($applist as $versionk => $versionv) { if ($versionv['package'] == $mapConf['mappackage'] && $versionv['version'] >= $mapVersion) { return $mapConf['switch']; } } } } return 0; //if($product == 'vedio'){} }
function smarty_template_function_fe_fn_c_img_delay_1774553027562772e371cd06_40569116($_smarty_tpl,$params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; $params = array_merge(array('size'=>60,'imgattr'=>"data-imagedelaysrc"), $params); foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value); }?> <div class="c-img c-img-<?php echo (($tmp = @$_smarty_tpl->tpl_vars['type']->value)===null||$tmp==='' ? "s" : $tmp);?> "> <img <?php echo $_smarty_tpl->tpl_vars['imgattr']->value;?> ="<?php echo Utils_Common::timgUrl($_smarty_tpl->tpl_vars['imgsrc']->value,8,$_smarty_tpl->tpl_vars['size']->value);?> " /> </div> <?php foreach (Smarty::$global_tpl_vars as $key => $value){ if ($_smarty_tpl->tpl_vars[$key] === $value) $saved_tpl_vars[$key] = $value; } $_smarty_tpl->tpl_vars = $saved_tpl_vars; }
function smarty_template_function_fe_fn_c_img_delay_49074763255f3c84c5f78a4_14536676($_smarty_tpl,$params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value); }?> <div class="c-img c-img-<?php echo (($tmp = @$_smarty_tpl->tpl_vars['type']->value)===null||$tmp==='' ? "s" : $tmp);?> "> <img data-imagedelaysrc="<?php echo Utils_Common::timgUrl($_smarty_tpl->tpl_vars['imgsrc']->value,8);?> " /> </div> <?php foreach (Smarty::$global_tpl_vars as $key => $value){ if ($_smarty_tpl->tpl_vars[$key] === $value) $saved_tpl_vars[$key] = $value; } $_smarty_tpl->tpl_vars = $saved_tpl_vars; }