Since v0.3
This class is extended of CardWidget therefore it has the same properties but it has its own properties listed below.
string $name
- usernamestring $image = ''
- user imagestring $position = ''
- user role or positionarray $rows = []
- list of rows (see an example below)
<?php ProfileCardWidget::begin([
'name' => 'Jonathan Burke Jr.',
'position' => 'Software Engineer',
'image' => '../avatars/user2-160x160.jpg',
'color' => 'info',
'outline' => true,
'rows' => [
'Followers' => [
'1,521',
'#url'
],
'Following' => ['373'],
'Friends' => ['3,127'],
'Projects' => [
'7',
'https://example.com'
],
],
]); ?>
<a href="#" class="btn btn-primary btn-block"><b>Follow</b></a>
<?php ProfileCardWidget::end();?>