Browse Source

Fix markup for profile page

Fix markup for profile page.
pull/31/merge
Danang Probo Sayekti 11 years ago
parent
commit
557f99c18d
5 changed files with 27 additions and 12 deletions
  1. +9
    -1
      system/includes/functions.php
  2. +5
    -3
      themes/clean/profile.html.php
  3. +5
    -3
      themes/default/profile.html.php
  4. +3
    -2
      themes/logs/css/style.css
  5. +5
    -3
      themes/logs/profile.html.php

+ 9
- 1
system/includes/functions.php View File

@ -312,6 +312,8 @@ function get_bio($author){
$names = get_author_names(); $names = get_author_names();
$username = 'config/users/' . $author . '.ini';
$tmp = array(); $tmp = array();
if(!empty($names)) { if(!empty($names)) {
@ -351,7 +353,13 @@ function get_bio($author){
} }
} }
} }
return $tmp;
if(!empty($tmp) || file_exists($username)) {
return $tmp;
}
else {
not_found();
}
} }


+ 5
- 3
themes/clean/profile.html.php View File

@ -1,7 +1,9 @@
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?> <?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> </div>
<h2 class="post-index">Posts by this author</h2> <h2 class="post-index">Posts by this author</h2>
<?php if(!empty($posts)) {?> <?php if(!empty($posts)) {?>


+ 5
- 3
themes/default/profile.html.php View File

@ -1,7 +1,9 @@
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?> <?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> </div>
<h2 class="post-index">Posts by this author</h2> <h2 class="post-index">Posts by this author</h2>
<?php if(!empty($posts)) {?> <?php if(!empty($posts)) {?>


+ 3
- 2
themes/logs/css/style.css View File

@ -271,6 +271,7 @@ ul li, ol li{
font-family: 'Open Sans',sans-serif; font-family: 'Open Sans',sans-serif;
font-size:15px; font-size:15px;
text-shadow: 0 1px 0 #ffffff; text-shadow: 0 1px 0 #ffffff;
padding-bottom:7px;
} }
#menu { #menu {
@ -287,7 +288,7 @@ ul li, ol li{
#menu ul li { #menu ul li {
padding: 0 10px; padding: 0 10px;
float: left; float: left;
margin:0 0 7px 0;
margin:0;
} }
#menu ul li.first { #menu ul li.first {
@ -367,7 +368,7 @@ ul li, ol li{
-webkit-transition:all .218s ease-in; -webkit-transition:all .218s ease-in;
transition:all .218s ease-in; transition:all .218s ease-in;
cursor:pointer; cursor:pointer;
height:22px;
height:23px;
padding: 0 3px; padding: 0 3px;
} }


+ 5
- 3
themes/logs/profile.html.php View File

@ -1,7 +1,9 @@
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?> <?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> </div>
<h2 class="post-index">Posts by this author</h2> <h2 class="post-index">Posts by this author</h2>
<?php if(!empty($posts)) {?> <?php if(!empty($posts)) {?>


Loading…
Cancel
Save