Esempio n. 1
0
			<?php 
if ($this->registration->Race != REG_HIDE && $this->profile->get('race')) {
    ?>
				<?php 
    if ($this->params->get('access_race') == 0 || $this->params->get('access_race') == 1 && $loggedin || $this->params->get('access_race') == 2 && $isUser) {
        ?>
					<li class="profile-race field">
						<div class="field-content">
							<div class="key"><?php 
        echo Lang::txt('PLG_GROUPS_PROFILE_RACE');
        ?>
</div>
							<div class="value">
								<?php 
        echo \Components\Members\Helpers\Html::propercase_multiresponse($this->profile->get('race'));
        ?>
							</div>
						</div>
					</li>
				<?php 
    }
    ?>
			<?php 
}
?>
		</ul>

		<?php 
$output = Event::trigger('groups.onGroupMemberAfter', array($this->group, $this->profile));
echo implode("\n", $output);
Esempio n. 2
0
echo count($this->guests);
?>
</td>
			</tr>
		</tfoot>
		<tbody>
		<?php 
$html = '';
if (count($this->guests) > 0) {
    $guests = $this->guests;
    $cls = 'even';
    foreach ($guests as $guest) {
        $cls = $cls == 'even' ? 'odd' : 'even';
        $guest['ip'] = $guest['ip'] ? $guest['ip'] : Lang::txt('COM_MEMBERS_ACTIVITY_UNKNOWN');
        $html .= "\t\t" . '<tr class="' . $cls . '">' . "\n";
        $html .= "\t\t\t" . '<td class="textual-data">' . Lang::txt('COM_MEMBERS_ACTIVITY_GUEST') . '</td>' . "\n";
        $html .= "\t\t\t" . '<td class="textual-data">' . $this->escape($guest['ip']) . '</td>' . "\n";
        $html .= "\t\t\t" . '<td class="textual-data">' . \Components\Members\Helpers\Html::valformat($guest['idle'], 3) . '</td>' . "\n";
        $html .= "\t\t" . '</tr>' . "\n";
    }
} else {
    $html .= "\t\t" . '<tr class="odd">' . "\n";
    $html .= "\t\t\t" . '<td colspan="5">' . Lang::txt('COM_MEMBERS_ACTIVITY_NO_RESULTS') . '</td>' . "\n";
    $html .= "\t\t" . '</tr>' . "\n";
}
echo $html;
?>
		</tbody>
	</table>

</section><!-- / .section -->
Esempio n. 3
0
							<a class="email" href="mailto:<?php 
        echo \Components\Members\Helpers\Html::obfuscate($this->profile->get('email'));
        ?>
" rel="nofollow">
								<?php 
        echo \Components\Members\Helpers\Html::obfuscate($this->profile->get('email'));
        ?>
							</a>
						</div>
						<br class="clear" />
						<input type="hidden" class="input-text" name="email" id="email" value="<?php 
        echo $this->escape($this->profile->get('email'));
        ?>
" />
						<?php 
        $this->view('default', 'edit')->set('registration_field', 'email')->set('profile_field', 'email')->set('registration', 1)->set('title', Lang::txt('PLG_MEMBERS_PROFILE_EMAIL'))->set('profile', $this->profile)->set('isUser', $isUser)->set('inputs', '<label class="side-by-side">' . Lang::txt('PLG_MEMBERS_PROFILE_EMAIL_VALID') . ' <input type="text" class="input-text" name="email" id="profile-email" value="' . $this->escape($this->profile->get('email')) . '" /></label>' . '<label class="side-by-side no-padding-right">' . Lang::txt('PLG_MEMBERS_PROFILE_EMAIL_CONFIRM') . ' <input type="text" class="input-text" name="email2" id="profile-email2" value="' . $this->escape($this->profile->get('email')) . '" /></label>' . '<br class="clear" /><p class="warning no-margin-top">' . Lang::txt('PLG_MEMBERS_PROFILE_EMAIL_WARNING') . '</p>')->set('access', '<label>' . Lang::txt('PLG_MEMBERS_PROFILE_PRIVACY') . \Components\Members\Helpers\Html::selectAccess('access[email]', $this->params->get('access_email'), 'input-select') . '</label>')->display();
        ?>
					</div>
					<?php 
        if ($isUser) {
            ?>
						<div class="section-edit">
							<a class="edit-profile-section" href="#">
								<?php 
            echo Lang::txt('PLG_MEMBERS_PROFILE_EDIT');
            ?>
							</a>
						</div>
					<?php 
        }
        ?>
Esempio n. 4
0
</div>
						<br class="clear" />
						<?php 
        //define mail preference options
        $options = array('-1' => Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_OPT_SELECT'), '1' => Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_OPT_YES'), '0' => Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_OPT_NO'));
        //build option list
        $optin_html = '<strong>' . Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_EXPLANATION') . '</strong>';
        $optin_html .= '<label for="mailPreferenceOption">';
        $optin_html .= '<select name="mailPreferenceOption" id="mailPreferenceOption" class="input-select">';
        foreach ($options as $key => $value) {
            $sel = $key == $this->profile->get('mailPreferenceOption') ? 'selected="selected"' : '';
            $optin_html .= '<option ' . $sel . ' value="' . $key . '">' . $value . '</option>';
        }
        $optin_html .= '</select>';
        $optin_html .= '</label>';
        $this->view('default', 'edit')->set('registration_field', 'mailPreferenceOption')->set('profile_field', 'mailPreferenceOption')->set('registration', $this->registration->OptIn)->set('title', Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES'))->set('profile', $this->profile)->set('isUser', $isUser)->set('inputs', $optin_html)->set('access', '<div class="block"><label>' . Lang::txt('PLG_MEMBERS_PROFILE_PRIVACY') . \Components\Members\Helpers\Html::selectAccess('access[optin]', $this->params->get('access_optin'), 'input-select') . '</label></div>')->display();
        ?>
					</div>
					<?php 
        if ($isUser) {
            ?>
						<div class="section-edit">
							<a class="edit-profile-section" href="#">
							<?php 
            echo Lang::txt('PLG_MEMBERS_PROFILE_EDIT');
            ?>
						</a>
						</div>
					<?php 
        }
        ?>