Example #1
0
?>
</time></span>
							</span>
						</p>
					</div><!-- / .attribution -->
				</div><!-- / .content -->
			</div><!-- / .post -->

			<div class="post-comments">
				<?php 
if ($item->get('comments')) {
    ?>
					<ol class="comments">
					<?php 
    foreach ($item->comments() as $comment) {
        $cuser = Components\Members\Models\Member::oneOrNew($comment->created_by);
        $cname = $this->escape(stripslashes($cuser->get('name')));
        ?>
						<li class="comment" id="c<?php 
        echo $comment->id;
        ?>
">
							<p class="comment-member-photo">
								<img src="<?php 
        echo $cuser->picture($comment->anonymous);
        ?>
" alt="<?php 
        echo Lang::txt('COM_COLLECTIONS_PROFILE_PICTURE', $cname);
        ?>
" />
							</p>
Example #2
0
						<h3>
							<?php 
            echo Lang::txt('COM_ANSWERS_YOUR_ANSWER');
            ?>
						</h3>
						<?php 
            if (!User::isGuest()) {
                ?>
							<form action="<?php 
                echo Route::url('index.php?option=' . $this->option);
                ?>
" method="post" id="commentform">
								<p class="comment-member-photo">
									<span class="comment-anchor"></span>
									<?php 
                $jxuser = Components\Members\Models\Member::oneOrNew(User::get('id'));
                $anon = !User::isGuest() ? 0 : 1;
                ?>
									<img src="<?php 
                echo $jxuser->picture($anon);
                ?>
" alt="<?php 
                echo Lang::txt('COM_ANSWERS_MEMBER_PICTURE');
                ?>
" />
								</p>
								<fieldset>
									<input type="hidden" name="option" value="<?php 
                echo $this->option;
                ?>
" />
Example #3
0
 /**
  * Display a member's profile
  *
  * @return  void
  */
 private function profile()
 {
     if (!$this->group->isSuperGroup()) {
         return;
     }
     include_once PATH_CORE . DS . 'components' . DS . 'com_members' . DS . 'models' . DS . 'member.php';
     $id = Request::getInt('member', 0);
     $profile = Components\Members\Models\Member::oneOrFail($id);
     if (!$profile->get('id')) {
         App::abort(404, Lang::txt('PLG_GROUPS_MEMBERS_PROFILE_NOT_FOUND'));
     }
     include_once PATH_CORE . DS . 'components' . DS . 'com_members' . DS . 'models' . DS . 'profile' . DS . 'field.php';
     $fields = Components\Members\Models\Profile\Field::all()->including(['options', function ($option) {
         $option->select('*')->ordered();
     }])->where('action_edit', '!=', Components\Members\Models\Profile\Field::STATE_HIDDEN)->ordered()->rows();
     // Set the page title
     Document::setTitle(Lang::txt(strtoupper($this->name)) . ': ' . $this->group->get('description') . ': ' . Lang::txt(strtoupper($profile->get('name'))));
     $params = Plugin::params('members', 'profile');
     $params->merge(new \Hubzero\Config\Registry($profile->get('params')));
     // Display form asking for a reason to deny membership
     $view = $this->view('default', 'profile')->set('params', $params)->set('option', $this->_option)->set('profile', $profile)->set('fields', $fields)->set('group', $this->group)->set('authorized', $this->authorized)->set('membership_control', $this->membership_control);
     $this->_output = $view->loadTemplate();
 }
Example #4
0
			<a href="<?php 
    echo Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&active=members');
    ?>
">
				<?php 
    echo Lang::txt('COM_GROUPS_OVERVIEW_MEMBERS_BTN_TEXT') . ' &rarr;';
    ?>
			</a>
		</div>
	</div>

	<div id="member_browser" class="member_browser">
		<?php 
    $counter = 1;
    require_once Component::path('com_members') . DS . 'models' . DS . 'member.php';
    $profiles = Components\Members\Models\Member::all()->including('profiles')->whereIn('id', $members)->rows();
    foreach ($profiles as $profile) {
        ?>
			<?php 
        if ($counter <= 12 && $profile->get('id')) {
            ?>
				<?php 
            if (in_array($profile->get('access'), User::getAuthorisedViewLevels())) {
                ?>
					<a href="<?php 
                echo Route::url($profile->link());
                ?>
" class="member" title="<?php 
                echo Lang::txt('COM_GROUPS_MEMBER_PROFILE', stripslashes($profile->get('name')));
                ?>
">
Example #5
0
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @author    Shawn Rice <*****@*****.**>
 * @copyright Copyright 2005-2015 HUBzero Foundation, LLC.
 * @license   http://opensource.org/licenses/MIT MIT
 */
// No direct access
defined('_HZEXEC_') or die;
$database = App::get('db');
$jt = new \Components\Jobs\Tables\JobType($database);
$jc = new \Components\Jobs\Tables\JobCategory($database);
$profile = Components\Members\Models\Member::oneOrNew($this->seeker->uid);
$jobtype = $jt->getType($this->seeker->sought_type, strtolower(Lang::txt('COM_JOBS_TYPE_ANY')));
$jobcat = $jc->getCat($this->seeker->sought_cid, strtolower(Lang::txt('COM_JOBS_CATEGORY_ANY')));
$title = Lang::txt('COM_JOBS_ACTION_DOWNLOAD') . ' ' . $this->seeker->name . ' ' . ucfirst(Lang::txt('COM_JOBS_RESUME'));
// Get the configured upload path
$base_path = DS . trim($this->params->get('webpath', '/site/members'), DS);
$path = $base_path . DS . \Hubzero\Utility\String::pad($this->seeker->uid);
if (!is_dir(PATH_APP . $path)) {
    if (!Filesystem::makeDirectory(PATH_APP . $path)) {
        $path = '';
    }
}
$resume = is_file(PATH_APP . $path . DS . $this->seeker->filename) ? $path . DS . $this->seeker->filename : '';
?>
<div class="aboutme<?php 
echo $this->seeker->mine && $this->list ? ' mine' : '';
Example #6
0
			</div>
			<?php 
}
$instructors = $this->course->instructors();
if (count($instructors) > 0) {
    require_once \Component::path('com_members') . DS . 'models' . DS . 'member.php';
    ?>
			<div class="course-instructors" data-bio-length="200">
				<h3>
					<?php 
    echo count($instructors) > 1 ? Lang::txt('COM_COURSES_ABOUT_THE_INSTRUCTORS') : Lang::txt('COM_COURSES_ABOUT_THE_INSTRUCTOR');
    ?>
				</h3>
				<?php 
    foreach ($instructors as $i) {
        $this->view('_instructor')->set('biolength', 200)->set('instructor', Components\Members\Models\Member::oneOrNew($i->get('user_id')))->display();
    }
    ?>
			</div>
			<?php 
} else {
    ?>
			<div class="course-instructors-none">
				<?php 
    echo Lang::txt('COM_COURSES_NO_INSTRUCTORS_FOUND');
    ?>
			</div>
			<?php 
}
if ($this->plugins) {
    foreach ($this->plugins as $plugin) {
Example #7
0
								<?php 
        echo date("F d, Y @ g:ia", strtotime($session->accesstime));
        ?>
							</div>

							<?php 
        if (User::get('username') != $session->username) {
            ?>
								<div class="session-sharing">
									<span><?php 
            echo Lang::txt('MOD_MYSESSIONS_SESSION_OWNER');
            ?>
</span>
									<?php 
            $name = $session->username;
            $user = Components\Members\Models\Member::oneByUsername($session->username);
            if ($user->get('id')) {
                $name = $user->get('name');
                if (in_array($user->get('access'), User::getAuthorisedViewLevels())) {
                    $name = '<a href="' . Route::url($user->link()) . '">' . $name . '</a>';
                }
            }
            echo $name;
            ?>
								</div>
							<?php 
        }
        ?>

							<div class="session-buttons">
								<a class="btn icon-resume resume" href="<?php 
Example #8
0
                    break;
                    // published
                // published
                case 2:
                    $class = 'draft';
                    break;
                    // draft
                // draft
                case 3:
                    $class = 'pending';
                    break;
                    // pending
            }
            // Get author login
            $author_login = Lang::txt('MOD_MYCONTRIBUTIONS_UNKNOWN');
            $author = Components\Members\Models\Member::oneOrNew($contributions[$i]->created_by);
            if ($author->get('id')) {
                $author_login = stripslashes($author->get('name'));
                if (in_array($author->get('access'), User::getAuthorisedViewLevels())) {
                    $author_login = '******' . Route::url($author->link()) . '">' . $author_login . '</a>';
                }
            }
            $html .= "\t" . '<li class="' . $class . '">' . "\n";
            $html .= "\t\t" . '<a href="' . Route::url('index.php?option=com_resources&task=draft&step=1&id=' . $contributions[$i]->id) . '">' . \Hubzero\Utility\String::truncate(stripslashes($contributions[$i]->title), 40) . '</a>' . "\n";
            $html .= "\t\t" . '<span class="under">' . Lang::txt('MOD_MYCONTRIBUTIONS_TYPE') . ': ' . $contributions[$i]->typetitle . '<br />' . Lang::txt('MOD_MYCONTRIBUTIONS_SUBMITTED_BY', $author_login) . '</span>' . "\n";
            $html .= "\t" . '</li>' . "\n";
        }
    }
    $html .= '</ul>' . "\n";
}
// Output final HTML
Example #9
0
								</p>
								<dl class="entry-meta">
									<dt>
										<span>
											<?php 
        echo Lang::txt('COM_COURSES_COURSE_NUMBER', $course->get('id'));
        ?>
										</span>
									</dt>
									<dd class="instructors">
										<?php 
        $instructors = $course->instructors();
        if (count($instructors) > 0) {
            $names = array();
            foreach ($instructors as $i) {
                $instructor = Components\Members\Models\Member::oneOrNew($i->get('user_id'));
                $name = $this->escape(stripslashes($instructor->get('name')));
                $names[] = in_array($instructor->get('access'), User::getAuthorisedViewLevels()) ? '<a href="' . Route::url($instructor->link()) . '">' . $name . '</a>' : $name;
            }
            echo Lang::txt('COM_COURSES_COURSE_INSTRUCTORS');
            ?>
: <span class="entry-instructors"><?php 
            echo implode(', ', $names);
            ?>
</span><?php 
        }
        ?>
									</dd>
								</dl>
								<p class="entry-content">
									<?php