mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 12:36:23 +05:30
Small fix, userscalable
This commit is contained in:
parent
bd2e31588d
commit
03c7bf3c7c
1 changed files with 6 additions and 6 deletions
|
|
@ -1579,11 +1579,11 @@ function head_contents($title, $description, $canonical) {
|
||||||
$wmt_id = config('google.wmt.id');
|
$wmt_id = config('google.wmt.id');
|
||||||
|
|
||||||
$title = '<title>' . $title . '</title>';
|
$title = '<title>' . $title . '</title>';
|
||||||
$favicon = '<link href="' . site_url() . 'favicon.ico" rel="icon" type="image/x-icon"/>';
|
$favicon = '<link rel="icon" type="image/x-icon" href="' . site_url() . 'favicon.ico" />';
|
||||||
$charset = '<meta charset="utf-8" />';
|
$charset = '<meta charset="utf-8" />';
|
||||||
$generator = '<meta content="htmly" name="generator"/>';
|
$generator = '<meta name="generator" content="htmly" />';
|
||||||
$xua = '<meta http-equiv="X-UA-Compatible" content="IE=edge" />';
|
$xua = '<meta http-equiv="X-UA-Compatible" content="IE=edge" />';
|
||||||
$viewport = '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no" />';
|
$viewport = '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />';
|
||||||
$description = '<meta name="description" content="' . $description . '"/>';
|
$description = '<meta name="description" content="' . $description . '"/>';
|
||||||
$sitemap = '<link rel="sitemap" href="' . site_url() . 'sitemap.xml" />';
|
$sitemap = '<link rel="sitemap" href="' . site_url() . 'sitemap.xml" />';
|
||||||
$canonical = '<link rel="canonical" href="' . $canonical . '" />';
|
$canonical = '<link rel="canonical" href="' . $canonical . '" />';
|
||||||
|
|
@ -1599,12 +1599,12 @@ function head_contents($title, $description, $canonical) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($styleImage == 'on') {
|
if ($styleImage == 'on') {
|
||||||
$output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $lightboxcss . "\n" . $jquery . "\n" . $lightbox . "\n" . $corejs . "\n" . $webmasterTools . "\n";
|
$output .= $charset . "\n" . $xua . "\n" . $title . "\n" . $description . "\n" . $viewport . "\n" . $generator . "\n" . $webmasterTools . "\n" . $favicon . "\n" . $canonical . "\n" . $sitemap . "\n" . $feed . "\n" . $lightboxcss . "\n" . $jquery . "\n" . $lightbox . "\n" . $corejs . "\n";
|
||||||
} else {
|
} else {
|
||||||
if ($jq == 'enable') {
|
if ($jq == 'enable') {
|
||||||
$output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $jquery . "\n" . $webmasterTools . "\n";
|
$output .= $charset . "\n" . $xua . "\n" . $title . "\n" . $description . "\n" . $viewport . "\n" . $generator . "\n" . $webmasterTools . "\n" . $favicon . "\n" . $canonical . "\n" . $sitemap . "\n" . $feed . "\n" . $jquery . "\n";
|
||||||
} else {
|
} else {
|
||||||
$output .= $title . "\n" . $favicon . "\n" . $charset . "\n" . $generator . "\n" . $xua . "\n" . $viewport . "\n" . $description . "\n" . $sitemap . "\n" . $canonical . "\n" . $feed . "\n" . $webmasterTools . "\n";
|
$output .= $charset . "\n" . $xua . "\n" . $title . "\n" . $description . "\n" . $viewport . "\n" . $generator . "\n" . $webmasterTools . "\n" . $favicon . "\n" . $canonical . "\n" . $sitemap . "\n" . $feed . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue