อ้ะ เอามาให้อีกที อันนี้คือ decode ทั้งหมดให้เลยค่ะ เริ่มตั้งแต่ < ?php $o= ที่คุณส่งมาให้ทาง pm น่ะค่ะ
เอาโค้ดข้างล่างนี้ไปแทนที่ทั้งหมดได้เลยค่ะ
<?php get_header(); ?>
<div class="content" id="page">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$mypost = get_post($post->ID);
$posttime = $mypost->post_date;
$posttime = explode(" ", $posttime);
$currenttime = current_time(mysql);
$currenttime = explode(" ", $currenttime);
$inposttime = $posttime[0];
$inposttime = explode("-", $inposttime);
$incurrenttime = $currenttime[0];
$incurrenttime = explode("-", $incurrenttime);
///////////////////////////////////////////////////////////////////////////
$message = "new";
if ( $inposttime[0] < $incurrenttime[0] ) {
$message = "old";
}
else if ( $inposttime[0] == $incurrenttime[0] ) {
if ( $inposttime[1] < $incurrenttime[1] ) {
$message = "old";
}
}
if ( $message == "old" ) {
echo "<div class=\"atention\"><strong>Atention</strong>! This Job is older than 30 days!</div>";
}
?>
<h2><?php $key="jobtitle"; echo get_post_meta($post->ID, $key, true); ?></h2>
<div class="company-details">
<big>at <a href="<?php $key="companylink"; echo get_post_meta($post->ID, $key, true); ?>"><?php $key="company"; echo get_post_meta($post->ID, $key, true); ?></a> <span>(<?php $key="location"; echo get_post_meta($post->ID, $key, true); ?>)</span></big>
<small><?php $key="jobtype"; $jobtype = get_post_meta($post->ID, $key, true); if($jobtype == "freelance") { echo "<span class=\"fl\">Freelance</span>"; } else { if($jobtype == "parttime") { echo "<span class=\"pt\">Part Time</span>"; } else { if($jobtype == "fulltime") { echo "<span class=\"ft\">Full Time</span>"; } } } ?> <?php the_time('l, F jS, Y'); ?></small>
</div>
<div class="job-details">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>