mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
Fix markup for profile page
Fix markup for profile page.
This commit is contained in:
parent
2591e69497
commit
557f99c18d
5 changed files with 27 additions and 12 deletions
|
|
@ -312,6 +312,8 @@ function get_bio($author){
|
|||
|
||||
$names = get_author_names();
|
||||
|
||||
$username = 'config/users/' . $author . '.ini';
|
||||
|
||||
$tmp = array();
|
||||
|
||||
if(!empty($names)) {
|
||||
|
|
@ -351,7 +353,13 @@ function get_bio($author){
|
|||
}
|
||||
}
|
||||
}
|
||||
return $tmp;
|
||||
|
||||
if(!empty($tmp) || file_exists($username)) {
|
||||
return $tmp;
|
||||
}
|
||||
else {
|
||||
not_found();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
<div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="post-index">Posts by this author</h2>
|
||||
<?php if(!empty($posts)) {?>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
<div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="post-index">Posts by this author</h2>
|
||||
<?php if(!empty($posts)) {?>
|
||||
|
|
|
|||
|
|
@ -271,6 +271,7 @@ ul li, ol li{
|
|||
font-family: 'Open Sans',sans-serif;
|
||||
font-size:15px;
|
||||
text-shadow: 0 1px 0 #ffffff;
|
||||
padding-bottom:7px;
|
||||
}
|
||||
|
||||
#menu {
|
||||
|
|
@ -287,7 +288,7 @@ ul li, ol li{
|
|||
#menu ul li {
|
||||
padding: 0 10px;
|
||||
float: left;
|
||||
margin:0 0 7px 0;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
#menu ul li.first {
|
||||
|
|
@ -367,7 +368,7 @@ ul li, ol li{
|
|||
-webkit-transition:all .218s ease-in;
|
||||
transition:all .218s ease-in;
|
||||
cursor:pointer;
|
||||
height:22px;
|
||||
height:23px;
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
<div class="profile-wrapper" itemprop="accountablePerson" itemscope="itemscope">
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="post-index">Posts by this author</h2>
|
||||
<?php if(!empty($posts)) {?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue