Exemple #1
0
">
    <div id="page-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>
      <div class="single_content">
        <?php 
        miss_before_entry();
        ?>
        <div class="page_content">
          <?php 
        if (miss_get_setting('review') == 'enable') {
            echo the_score($post->ID);
        }
        ?>
          <?php 
        the_content();
        ?>
          <div class="clearboth"></div>

          <?php 
        if ($meta['enabled']) {
            ?>

            <h3><?php 
            echo $meta['caption'];
            ?>
</h3>
Exemple #2
0
function the_review($post = 0)
{
    $post = get_post($post);
    $id = $post->ID;
    if (is_review()) {
        ?>
		<section id="rating">
			<table id="breakdown">
				<tr>
					<td><i class="icon-heart"></i><?php 
        echo get_option('lg_review_options')['labels']['positives'];
        ?>
</td>
					<td><i class="icon-heart-broken"></i><?php 
        echo get_option('lg_review_options')['labels']['negatives'];
        ?>
</td>
				</tr>
				<tr>
					<td><?php 
        echo get_post_meta($id, 'review', true)['positives'];
        ?>
</td>
					<td><?php 
        echo get_post_meta($id, 'review', true)['negatives'];
        ?>
</td>
				</tr>
			</table>
			<table id="score">
			<?php 
        $scores = get_post_meta($id, 'review', true);
        foreach ($scores as $key => $value) {
            if (is_numeric($value) && $key != 'total_score') {
                ?>
					<tr>
						<td><?php 
                echo strpretty($key);
                ?>
</td>
						<td><hr></td>
						<td><?php 
                the_score($value);
                ?>
</td>
					</tr>
				<?php 
            }
        }
        ?>
			</table>
			<div id="overall-rating">
				<div id="score-ring">
					<div class="ring-half" id="left-half"></div>
					<div class="ring-half" id="right-half"></div>
				</div>
				<div class="score-num">
					<span class="icon-back">
						<i class="icon-heart"></i>
					</span>
					<span class="num">
						<?php 
        the_score(get_the_total_score());
        ?>
					</span>
				</div>
			</div>
			<div id="bottom-line">
				<div>
					<?php 
        echo get_option('lg_review_options')['labels']['bottom_line'];
        ?>
				</div>
				<?php 
        echo get_post_meta($id, 'review', true)['bottom_line'];
        ?>
			</div>
		</section>
		<style type="text/css">
			<?php 
        if (get_the_total_score() > 50) {
            ?>
				#score-ring{
					clip: auto;
				}
				#score-ring #right-half{
					transform: rotate(180deg);
				}
				#score-ring #left-half{
					transform: rotate(<?php 
            echo 360 / 100 * the_score_num(get_the_total_score(), false) . 'deg';
            ?>
);
				}
			<?php 
        } else {
            ?>
				#score-ring #right-half{
					transform: rotate(<?php 
            echo 360 / 100 * the_score_num(get_the_total_score(), false) . 'deg';
            ?>
);
				}
			<?php 
        }
        ?>
		</style>
	<?php 
    }
}
*/
?>
<h3>Related Posts</h3>
<?php 
if ($related_query->have_posts()) {
    ?>
<ol>
	<?php 
    while ($related_query->have_posts()) {
        $related_query->the_post();
        ?>
	<li><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark"><?php 
        the_title();
        ?>
</a><!-- (<?php 
        the_score();
        ?>
)--></li>
	<?php 
    }
    ?>
</ol>
<?php 
} else {
    ?>
<p>No related posts.</p>
<?php 
}
Exemple #4
0
" rel="<?php 
        echo $thumb['rel'];
        ?>
" <?php 
        echo 'data="' . $thumb['data'] . '"';
        ?>
>
					<?php 
        the_post_thumbnail('thumbnail');
        echo $thumb['icon'];
        ?>
					<?php 
        if (is_review()) {
            ?>
<span class="rating"><?php 
            the_score(get_the_total_score());
            ?>
</span><?php 
        }
        ?>
				</a>
			</div>
		<?php 
    }
    ?>
	</header>
<?php 
}
?>
<section class="entry body">
	<?php