<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; ?> " />
?> </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>
* 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' : '';
</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) {
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
</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