Exemple #1
0
 /**
  * 公共头标题关键字
  */
 public static function setTitle($paramArr)
 {
     $options = array('title' => '', 'description' => '', 'keywords' => '', 'css' => '');
     if (is_array($paramArr)) {
         $options = array_merge($options, $paramArr);
     }
     extract($options);
     $outStr = "<!DOCTYPE html>\n";
     $outStr .= '<html lang="zh-CN">' . "\n";
     $outStr .= "<head>\n";
     $outStr .= '<meta charset="gbk">' . "\n";
     $outStr .= '<meta name="renderer" content="webkit">' . "\n";
     #为360浏览器置顶内核设置为chrome
     if ($title) {
         $outStr .= '<title>' . $title . '</title>' . "\n";
     }
     if ($description) {
         $outStr .= '<meta name="description" content="' . $description . '">' . "\n";
     }
     if ($keywords) {
         $outStr .= '<meta name="keywords" content="' . $keywords . '">' . "\n";
     }
     if ($css) {
         $outStr .= Libs_Global_PageHtml::getMergeFrontendLink($css, "css");
     }
     $outStr .= "</head><body>";
     return $outStr;
 }
Exemple #2
0
<!doctype html>
<html>
    <head>
        <?php 
echo Libs_Global_PageHtml::getPageMeta($seoArr);
?>
        <link href="<?php 
echo $_SFP;
?>
css/style.css" type="text/css" rel="stylesheet">
        <?php 
if ($pageType === 'Detail') {
    ?>
            <link type="text/css" rel="stylesheet" href="<?php 
    echo $_SFP;
    ?>
css/embed.default.css">
        <?php 
}
?>
        <meta http-equiv="Cache-Control" content="no-transform" /> 
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes" />
        <style  >
            #wapfl{display:none;}
            @media(max-width:960px)
            {
	            body{width:100%}
                	.wp,#wp{width:95%;margin:0 auto;}
                	.hidden2{display:none;}
                #wapfl{display:block;margin:0 auto;width:95%;}