Browse Source

Add html lang

pull/457/head
danpros 4 years ago
parent
commit
1848c024cd
7 changed files with 14 additions and 14 deletions
  1. +4
    -4
      themes/blog/layout.html.php
  2. +2
    -2
      themes/blog/post.html.php
  3. +2
    -2
      themes/clean/layout.html.php
  4. +2
    -2
      themes/logs/layout.html.php
  5. +2
    -2
      themes/readable/layout.html.php
  6. +1
    -1
      themes/twentyfifteen/layout.html.php
  7. +1
    -1
      themes/twentysixteen/layout.html.php

+ 4
- 4
themes/blog/layout.html.php View File

@ -1,8 +1,8 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!--[if IE 8]> <html lang="<?php echo str_replace('_', '-', config('language'));?>" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="<?php echo str_replace('_', '-', config('language'));?>" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="<?php echo str_replace('_', '-', config('language'));?>"> <!--<![endif]-->
<head> <head>
<?php echo head_contents();?> <?php echo head_contents();?>
<title><?php echo $title;?></title> <title><?php echo $title;?></title>
@ -33,7 +33,7 @@
<body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog"> <body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div class="hide"> <div class="hide">
<meta content="<?php echo blog_title() ?>" itemprop="name"/> <meta content="<?php echo blog_title() ?>" itemprop="name"/>
<meta content="<?php echo blog_description() ?>" itemprop="description"/>
<meta content="<?php echo strip_tags(blog_description()); ?>" itemprop="description"/>
</div> </div>
<?php if (facebook()) { echo facebook(); } ?> <?php if (facebook()) { echo facebook(); } ?>
<?php if (login()) { toolbar(); } ?> <?php if (login()) { toolbar(); } ?>


+ 2
- 2
themes/blog/post.html.php View File

@ -50,8 +50,8 @@
<i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> comments</span></a> <i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> comments</span></a>
<?php } ?> <?php } ?>
<span class="share pull-right"> <span class="share pull-right">
<a target=" " class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a>
<a target=" " href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
<a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
</span> </span>
<div style="clear:both;"></div> <div style="clear:both;"></div>
</div> </div>


+ 2
- 2
themes/clean/layout.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html>
<html lang="<?php echo str_replace('_', '-', config('language'));?>">
<head> <head>
<?php echo head_contents() ?> <?php echo head_contents() ?>
<title><?php echo $title;?></title> <title><?php echo $title;?></title>
@ -15,7 +15,7 @@
<body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog"> <body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div class="hide"> <div class="hide">
<meta content="<?php echo blog_title() ?>" itemprop="name"/> <meta content="<?php echo blog_title() ?>" itemprop="name"/>
<meta content="<?php echo blog_description() ?>" itemprop="description"/>
<meta content="<?php echo strip_tags(blog_description()); ?>" itemprop="description"/>
</div> </div>
<?php if (facebook()) { echo facebook(); } ?> <?php if (facebook()) { echo facebook(); } ?>
<?php if (login()) { toolbar(); } ?> <?php if (login()) { toolbar(); } ?>


+ 2
- 2
themes/logs/layout.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html>
<html lang="<?php echo str_replace('_', '-', config('language'));?>">
<head> <head>
<?php echo head_contents() ?> <?php echo head_contents() ?>
<title><?php echo $title;?></title> <title><?php echo $title;?></title>
@ -15,7 +15,7 @@
<body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog"> <body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div class="hide"> <div class="hide">
<meta content="<?php echo blog_title() ?>" itemprop="name"/> <meta content="<?php echo blog_title() ?>" itemprop="name"/>
<meta content="<?php echo blog_description() ?>" itemprop="description"/>
<meta content="<?php echo strip_tags(blog_description()); ?>" itemprop="description"/>
</div> </div>
<?php if (facebook()) { echo facebook(); } ?> <?php if (facebook()) { echo facebook(); } ?>
<?php if (login()) { toolbar(); } ?> <?php if (login()) { toolbar(); } ?>


+ 2
- 2
themes/readable/layout.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html>
<html lang="<?php echo str_replace('_', '-', config('language'));?>">
<head> <head>
<?php echo head_contents() ?> <?php echo head_contents() ?>
<title><?php echo $title;?></title> <title><?php echo $title;?></title>
@ -15,7 +15,7 @@
<body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog"> <body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div class="hide"> <div class="hide">
<meta content="<?php echo blog_title() ?>" itemprop="name"/> <meta content="<?php echo blog_title() ?>" itemprop="name"/>
<meta content="<?php echo blog_description() ?>" itemprop="description"/>
<meta content="<?php echo strip_tags(blog_description()); ?>" itemprop="description"/>
</div> </div>
<?php if (facebook()) { echo facebook(); } ?> <?php if (facebook()) { echo facebook(); } ?>
<?php if (login()) { toolbar(); } ?> <?php if (login()) { toolbar(); } ?>


+ 1
- 1
themes/twentyfifteen/layout.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en">
<html lang="<?php echo str_replace('_', '-', config('language'));?>">
<head> <head>
<?php echo head_contents();?> <?php echo head_contents();?>
<title><?php echo $title;?></title> <title><?php echo $title;?></title>


+ 1
- 1
themes/twentysixteen/layout.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en">
<html lang="<?php echo str_replace('_', '-', config('language'));?>">
<head> <head>
<?php echo head_contents();?> <?php echo head_contents();?>
<title><?php echo $title;?></title> <title><?php echo $title;?></title>


Loading…
Cancel
Save