-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mihail
authored
Oct 23, 2016
1 parent
595d6d7
commit 43636e7
Showing
1 changed file
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
# Widget Newuser | ||
This widget allow you to display new users in website template block on ffcms 3.*. | ||
This widget allow you to display new users in website template block on ffcms 3. **Demo**: | ||
|
||
 | ||
|
||
To use this widget you should require it by composer: | ||
|
||
``` | ||
composer require phpffcms/widget-newuser:1.*@stable | ||
``` | ||
|
||
or insert in composer.json to section "require": {} | ||
|
||
``` | ||
"require": { | ||
"phpffcms/widget-newuser": "1.*@stable" | ||
} | ||
``` | ||
Then in ffcms admin panel follow to widgets -> All widgets ... -> press "Install" and type in field ``Newuser`` and push "Try install". | ||
|
||
Then in ffcms admin panel follow to *Widgets* -> *All widgets* ... -> press *Install* and type in field ``Newuser`` and push **Try install**. | ||
|
||
After installation is complete you can use anywhere in front templates (ex. in /Apps/Views/Front/default/layout/main.php) block like this: | ||
``` | ||
<?php if (Widgets\Front\Newuser\Newuser::enabled()): ?> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"><?= __('New users') ?></div> | ||
<div class="panel-body"> | ||
<?= Widgets\Front\Newuser\Newuser::widget(); ?> | ||
</div> | ||
</div> | ||
<?php endif; ?> | ||
``` |