Exemplo n.º 1
0
            ?>
</a></li>
		<?php 
        }
    }
}
?>
		</ul>
	</div><!-- / #content-header-extra -->
</header><!-- / #content-header -->

<?php 
$job->title = trim(stripslashes($job->title));
$job->description = trim(stripslashes($job->description));
$job->description = preg_replace('/<br\\s*?\\/??>/i', "", $job->description);
$job->description = \Components\Jobs\Helpers\Html::txt_unpee($job->description);
?>

<section class="main section">
	<?php 
if ($owner) {
    // admin status message
    switch ($job->status) {
        case 1:
            $html .= '<p class="statusmsg activead">' . Lang::txt('COM_JOBS_JOB_AD_PUBLISHED') . ' ' . Lang::txt('You can') . ' <a href="' . Route::url('index.php?option=' . $this->option . '&task=editjob&code=' . $job->code) . '">' . strtolower(Lang::txt('COM_JOBS_ACTION_EDIT_JOB')) . '</a> ' . Lang::txt('COM_JOBS_JOB_AD_PUBLISHED_TIPS') . '</p>';
            break;
        case 3:
            $html .= '<p class="statusmsg inactive">' . Lang::txt('COM_JOBS_JOB_AD_UNPUBLISHED') . ' ' . Lang::txt('COM_JOBS_JOB_REOPEN_NOTICE') . '</p>';
            break;
        case 4:
            $html .= '<p class="statusmsg inactive">' . Lang::txt('COM_JOBS_JOB_AD_DRAFT_NOTICE') . '</p>';