Skip to content

Commit

Permalink
something was deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nehalist committed Jul 23, 2016
1 parent 3bb118f commit 9f42d19
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions comments.php
Expand Up @@ -17,7 +17,7 @@
get_comments_number(),
null,
'gitsta'
),
),
number_format_i18n(
get_comments_number()
)
Expand Down Expand Up @@ -54,11 +54,11 @@
<div class="pull-left" href="#">
<?php
// Show avatar for logged users

global $current_user;
get_currentuserinfo();
echo get_avatar($current_user->user_email, 50);
wp_get_current_user();

echo get_avatar($current_user->user_email, 50);
?>
</div>

Expand All @@ -85,7 +85,7 @@
$gitsta_form_commenter = wp_get_current_commenter();
$gitsta_form_req = get_option('require_name_email');
$gitsta_form_aria_req = ($req ? " aria-required='true'" : '');

$gitsta_form_author = '<div class="row">
<div class="col-md-4">
<input class="form-control" placeholder="' . __('Name', 'gitsta') . '" id="author" name="author" type="text" value="' . esc_attr($gitsta_form_commenter['comment_author']) . '" size="30"' . $gitsta_form_aria_req . ' />
Expand All @@ -109,10 +109,10 @@
'fields' => array(
'author' =>
$gitsta_form_author,

'email' =>
$gitsta_form_mail,

'url' =>
$gitsta_form_url
),
Expand All @@ -122,17 +122,17 @@
));
?>
</div>

<?php
// These tabs are hidden, if markdown support option is disabled
if(get_gitsta_theme_option('comment_markdown_support') == 1):
?>

<div id="preview" class="tab-pane">
<!-- Markdown preview tab -->
<div id="markdown-preview"></div>
</div>

<div id="help" class="tab-pane">
<!-- Markdown help tab -->
<table class="table table-striped">
Expand Down Expand Up @@ -183,12 +183,12 @@
</tbody>
</table>
</div>

<?php endif; // if markdown support for comments is enabled ?>
</div>
</div>
</div>
</div>

</div>
<?php endif; ?>
<?php endif; ?>

0 comments on commit 9f42d19

Please sign in to comment.