Display the site users by their user group
Developer: amir Bassir \ info@onenet.ir
What's New:
As always this isn't possible without your feedback.
Hey PhpfoxClub Users, we have great and amazing release with new features:
namespace Apps\Pfc_StaffBlock\Service;
use Phpfox;
use Phpfox_Url;
use Core;
use Phpfox_Service;
use Phpfox_Database;
use Phpfox_Error;
/**
* Class Process
* @author amir Bassir
* @version 4.5.0
* @package Apps\Pfc_StaffBlock\Service
*/
class Process extends \Phpfox_Service {
/**
* "Add / Update" Groups
*/

{* Developer: amir Bassir *}
{if setting('pfc_staffblocK_is_active')}
{if user('staffblock.can_see_staff_block')}
{if count($aGroups)}
{foreach from=$aGroups key=iKey item=aGroup}
{**
* Trying to get Users by 'user_group_id'
*}
<div class="staffblock_title {if $iKey == 0}border-radius-up{/if}" style="background-color: {$aGroup.color};">
{$aGroup.title|clean|split:30|shorten:50:'...'}
</div>
<div class="staffblock">
<div class="block_listing_inline">
<ul>
<div style="display: block;">
{foreach from=$aUsers item=aUser}
{* All of that I needed :)) *}
{if $aUser.user_group_id == $aGroup.user_group_id}
<li>
{img user=$aUser suffix='_50_square' max_width=50 max_height=50 class='js_hover_title'}
</li>
{/if}
{/foreach}
</div>
</ul>
</div>
</div>
{/foreach}
{/if}
{/if}
{* Get user information *}
{if setting('pfc_staffblocK_user_information')}
{if user('staffblock.can_see_user_info')}
{foreach from=$aInfos key=iKey item=aInfo}
<div class="staffblock_value" style="background-color: {$aInfo.color};">
{$aInfo.name|clean|split:30|shorten:50:'...'}
</div>
<div class="staffblock_title_value{$aInfo.class}" style="color: {$aInfo.color}; {if isset($aInfo.style)}{$aInfo.style}{/if};">
{$aInfo.value}
</div>
{/foreach}
{/if}
{/if}
{/if}
