Listing - show.php
<?php
require_once __DIR__ . '/location/city.php';
require_once __DIR__ . '/location/district.php';
require_once __DIR__ . '/location/state.php';
?>
<!-- //////////// listing show.php -->
<?= template()->layout('frontend/layout') ?>
<?= template()->push('meta') ?>
<title><?= $listing->replacedMetaTitle() ?: ($listing->keyField('post_company') == 1 ? $listing->keyField('org_1').' Company Recruitment 2026' : $listing->keyField('content_category').' Recruitment 2026') ?></title>
<!--<title><?= $listing->replacedMetaTitle() ?: $listing->keyField('org_1') ?></title>-->
<meta name="description" content="<?= ($listing->replacedMetaDescription() ?? '') !== ''
? $listing->replacedMetaDescription()
: $listing->keyField('organisation') ?>
">
<?= template()->endPush() ?>
<!-- //////////// listing show.php -->
<?= $listing->keyField('org_1') ?>
<?php
$type = null;
if ((int)$listing->keyField('post_company') === 1) {
$type = 'company';
} elseif ((int)$listing->keyField('post_category') === 1) {
$type = 'topic';
} elseif ((int)$listing->keyField('location_state') === 1) {
$type = 'state';
} elseif ((int)$listing->keyField('location_district') === 1) {
$type = 'district';
} elseif ((int)$listing->keyField('location_city') === 1) {
$type = 'city';
}
?>
<?php if ($type === 'company'): ?>
<div class="company">Recruitment Notification, RBI, NABARD, BHEL, HAL...</div>
<?php elseif ($type === 'topic'): ?>
<div class="topic">Bank, SSC, Railway, Police, Teaching...</div>
<?php elseif ($type === 'state'): ?>
<?= $stateContent ?>
<?php elseif ($type === 'district'): ?>
<?= $districtContent ?>
<?php elseif ($type === 'city'): ?>
<?= $cityContent ?>
<?php endif; ?>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.