} ?> <?php if (is_array($attribs) && count($attribs)) { $af = Loader::helper('form/attribute'); $af->setAttributeObject($profile); foreach ($attribs as $ak) { print '<div class="ccm-profile-attribute">'; print $af->display($ak, $ak->isAttributeKeyRequiredOnProfile()); print '</div>'; } } ?> </fieldset> <?php $ats = AuthenticationType::getList(true, true); $ats = array_filter($ats, function (AuthenticationType $type) { return $type->hasHook(); }); $count = count($ats); if ($count) { ?> <fieldset> <legend><?php echo t('Authentication Types'); ?> </legend> <?php foreach ($ats as $at) { $at->renderHook(); }
<?php use Concrete\Core\Attribute\Key\Key; use Concrete\Core\Http\ResponseAssetGroup; defined('C5_EXECUTE') or die('Access denied.'); $r = ResponseAssetGroup::get(); $r->requireAsset('javascript', 'underscore'); $r->requireAsset('javascript', 'core/events'); $activeAuths = AuthenticationType::getList(true, true); $form = Loader::helper('form'); $active = null; if ($authType) { $active = $authType; $activeAuths = array($authType); } $image = date('Ymd') . '.jpg'; /** @var Key[] $required_attributes */ $attribute_mode = isset($required_attributes) && count($required_attributes); ?> <div class="login-page"> <div class="col-sm-6 col-sm-offset-3"> <h1><?php echo !$attribute_mode ? t('Sign In.') : t('Required Attributes'); ?> </h1> </div> <div class="col-sm-6 col-sm-offset-3 login-form"> <div class="row"> <div class="visible-xs ccm-authentication-type-select form-group text-center"> <?php