Пример #1
0
					<?php 
echo Lang::txt('COM_DEVELOPER_API_APPLICATION_TOKENS_REVOKE_ALL_TOKEN');
?>
				</a>
			</h3>
			<ul class="entries-list tokens access-tokens">
				<?php 
if ($total > 0) {
    ?>
					<?php 
    foreach ($this->application->accessTokens($filters) as $token) {
        ?>
						<li>
							<h4>
								<?php 
        echo Hubzero\User\Profile::getInstance($token->get('uidNumber'))->get('name');
        ?>
							</h4>

							<a class="btn btn-secondary revoke confirm" data-txt-confirm="<?php 
        echo Lang::txt('COM_DEVELOPER_API_APPLICATION_TOKENS_REVOKE_TOKEN_CONFIRM');
        ?>
" href="<?php 
        echo Route::url($this->application->link('revoke') . '&token=' . $token->get('id') . '&return=tokens');
        ?>
">
								<?php 
        echo Lang::txt('COM_DEVELOPER_API_APPLICATION_TOKENS_REVOKE_TOKEN');
        ?>
							</a>
Пример #2
0
    echo Lang::txt('COM_RESOURCES_IMPORT_EDIT_FIELD_ID');
    ?>
</th>
							<td><?php 
    echo $this->import->get('id');
    ?>
</td>
						</tr>
						<tr>
							<th><?php 
    echo Lang::txt('COM_RESOURCES_IMPORT_EDIT_FIELD_CREATEDBY');
    ?>
</th>
							<td>
								<?php 
    if ($created_by = Hubzero\User\Profile::getInstance($this->import->get('created_by'))) {
        echo $created_by->get('name');
    }
    ?>
							</td>
						</tr>
						<tr>
							<th><?php 
    echo Lang::txt('COM_RESOURCES_IMPORT_EDIT_FIELD_CREATEDON');
    ?>
</th>
							<td>
								<?php 
    echo Date::of($this->import->get('created_at'))->toLocal('m/d/Y @ g:i a');
    ?>
							</td>
Пример #3
0
            echo Lang::txt('COM_MEMBERS_IMPORT_DISPLAY_ON');
            ?>
</strong>
								<time datetime="<?php 
            echo $import->get('ran_at');
            ?>
"><?php 
            echo Date::of($lastRun->get('ran_at'))->toLocal('m/d/Y @ g:i a');
            ?>
</time><br />
								<strong><?php 
            echo Lang::txt('COM_MEMBERS_IMPORT_DISPLAY_BY');
            ?>
</strong>
								<?php 
            if ($created_by = Hubzero\User\Profile::getInstance($lastRun->get('ran_by'))) {
                echo $created_by->get('name');
            }
            ?>
							<?php 
        } else {
            ?>
								n/a
							<?php 
        }
        ?>
						</td>
						<td class="priority-4">
							<?php 
        $runs = $import->runs('list', array('import' => $import->get('id'), 'dry_run' => 0));
        echo $runs->count();
Пример #4
0
    ?>
														<?php 
    echo $group->description;
    ?>
													</td>
												</tr>
												<tr>
													<td>
														<?php 
    foreach ($posts as $post) {
        ?>
															<table id="course-discussions" width="650" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;">
																<tr>
																	<td width="75" style="padding: 10px 0;">
																		<?php 
        $path = Hubzero\User\Profile::getInstance($post->created_by)->getPicture(0, true, false);
        ?>
																		<img width="50" src="<?php 
        echo Request::root() . $path;
        ?>
" />
																	</td>
																	<td style="padding: 10px 0;">
																		<div style="position: relative; border: 1px solid #CCCCCC; padding: 12px; -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px;">
																			<div style="background: #FFFFFF; border: 1px solid #CCCCCC; width: 15px; height: 15px;
																				position: absolute; top: 50%; left: -10px; margin-top: -7px;
																				transform:rotate(45deg); -ms-transform:rotate(45deg); -webkit-transform:rotate(45deg);"></div>
																			<div style="background: #FFFFFF; width: 11px; height: 23px; position: absolute; top: 50%; left: -1px; margin-top: -10px;"></div>
																			<div style="color: #AAAAAA; font-size: 11px;">
																				<?php 
        echo User::getInstance($post->created_by)->get('name');
Пример #5
0
 /**
  * Defines a belongs to one relationship between article and user
  *
  * @return  object  \Hubzero\Database\Relationship\BelongsToOne
  */
 public function voter()
 {
     return Hubzero\User\Profile::getInstance($this->get('created_by'));
 }
Пример #6
0
 /**
  * [sortAlphabetically description]
  * @param  [type] $userIds [description]
  * @return [type]          [description]
  */
 private function sortAlphabetically($userIds)
 {
     // get each users name
     $users = array();
     $emails = array();
     foreach ($userIds as $k => $userid) {
         $profile = Hubzero\User\Profile::getInstance($userid);
         if ($profile) {
             $users[$profile->get('uidNumber')] = $profile->get('surname');
         } elseif (preg_match("/^[_\\.\\%0-9a-zA-Z-]+@([0-9a-zA-Z-]+\\.)+[a-zA-Z]{2,6}\$/i", $userid)) {
             $emails[] = $userid;
         }
     }
     // sort by last name
     natcasesort($users);
     // return sorted member ids
     return array_merge(array_keys($users), $emails);
 }