Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.14 KB

ProfileCardWidget.md

File metadata and controls

46 lines (35 loc) · 1.14 KB

ProfileCardWidget

Since v0.3

This class is extended of CardWidget therefore it has the same properties but it has its own properties listed below.

Public properties (excluding CardWidget properties), its types and default values

  • string $name - username
  • string $image = '' - user image
  • string $position = '' - user role or position
  • array $rows = [] - list of rows (see an example below)

Example

<?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();?>

Rendered ProfileCard

Rendered ProfileCard

Back to doc index or readme