Skip to content

Commit

Permalink
improved usage of Gravatar
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 23, 2015
1 parent dcae140 commit fc14599
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/views/ticket/_leftBlock.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

use cebe\gravatar\Gravatar;
use hipanel\base\Re;
use hipanel\modules\client\grid\ClientGridView;
use hipanel\modules\ticket\models\Thread;
use hipanel\modules\ticket\widgets\Label;
use hipanel\modules\ticket\widgets\Topic;
use hipanel\widgets\Box;
use hipanel\widgets\ClientSellerLink;
use hipanel\widgets\Gravatar;
use hipanel\widgets\Pjax;
use hiqdev\assets\flagiconcss\FlagIconCssAsset;
use yii\helpers\Html;
Expand Down Expand Up @@ -94,11 +94,10 @@
]);
print Gravatar::widget([
'emailHash' => $watcherEmailHash,
'defaultImage' => 'identicon',
'options' => [
'alt' => reset($piece),
'class' => '',
'class' => 'img-circle',
'title' => reset($piece),
'alt' => reset($piece),
],
'size' => 32,
]);
Expand Down Expand Up @@ -161,9 +160,7 @@
if ($model->author_email) {
print Gravatar::widget([
'emailHash' => $model->author_email,
'defaultImage' => 'identicon',
'options' => [
'alt' => '',
'class' => 'img-circle',
],
'size' => 160,
Expand Down

0 comments on commit fc14599

Please sign in to comment.