<?php
global $post;
$post_id = $post->ID;
$post_type = (!empty($post->post_type)) ? $post->post_type : '';
$post_type_str = ($post_type == 'series') ? 'سریال' : 'فیلم';
$summary_awards = yc_get_post_meta($post_id, 'summary_awards');
$translate_summary = yascode_meta_boxes::translate_summary($summary_awards);
$top_movie = yc_get_post_meta($post_id, 'top250movie');
$content = get_the_content(); ?>
<article class="text-box rt rt-margin">
    <div class="main">
        <?php if (!empty($translate_summary) || !empty($top_movie)) : ?>
            <div class="pms rt">
                <?php if (!empty($translate_summary)) : ?>
                    <div class="pm rt rt-8px rt-fff rt-14"><i class="fa fa-star rt-400 rt-21 right"></i><span class="right"> <?php echo $translate_summary; ?></span></div>
                <?php endif; ?>
                <?php if (!empty($top_movie)) : ?>
                    <div class="pm rt rt-8px rt-fff rt-14 imdv"><i class="fa fa-imdb rt-400 rt-31 right"></i><span class="right">جزو 250 <?php echo $post_type_str; ?> برتر با رتبه <?php echo $top_movie; ?></span></div>
                <?php endif; ?>
            </div>
        <?php endif; ?>
        <?php if (!empty($content)) : ?>
            <div class="rt-matn rt rt-ddd rt-15"><?php echo $content; ?></div>
        <?php endif; ?>
    </div>
</article>