<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>full_star_half_light.gif</filename>
    </added>
    <added>
      <filename>full_star_highlight.gif</filename>
    </added>
    <added>
      <filename>half_star_half_light.gif</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -292,6 +292,7 @@ class Movie {
         $text_ratings = (isset($options[&quot;text_ratings&quot;]) ? $options[&quot;text_ratings&quot;] : get_option(&quot;wp_movie_ratings_text_ratings&quot;));
         $sidebar_mode = (isset($options[&quot;sidebar_mode&quot;]) ? $options[&quot;sidebar_mode&quot;] : get_option(&quot;wp_movie_ratings_sidebar_mode&quot;));
         $five_stars_ratings = (isset($options[&quot;five_stars_ratings&quot;]) ? $options[&quot;five_stars_ratings&quot;] : get_option(&quot;wp_movie_ratings_five_stars_ratings&quot;));
+		$highlight = (isset($options[&quot;highlight&quot;]) ? $options[&quot;highlight&quot;] : get_option(&quot;wp_movie_ratings_highlight&quot;));
         $page_mode = (isset($options[&quot;page_mode&quot;]) ? $options[&quot;page_mode&quot;] : &quot;no&quot;);
 
         if (!is_plugin_page()) {
@@ -349,7 +350,7 @@ class Movie {
         }
 
         # Text rating
-        $o .= &quot;&lt;span class=\&quot;rating\&quot;&gt;&lt;span class=\&quot;value\&quot;&gt;&quot;;
+        $o .= &quot;&lt;span class=\&quot;rating&quot; . ($this-&gt;_rating == 9 ? &quot; half_light&quot; : &quot;&quot;) . ($this-&gt;_rating == 10 ? &quot; highlight&quot; : &quot;&quot;) . &quot;\&quot;&gt;&lt;span class=\&quot;value\&quot;&gt;&quot;;
         $o .= ($five_stars_ratings == &quot;yes&quot; ? ($this-&gt;_rating / 2) : $this-&gt;_rating);
         $o .= &quot;&lt;/span&gt;/&lt;span class=\&quot;best\&quot;&gt;&quot;;
         $o .= ($five_stars_ratings == &quot;yes&quot; ? &quot;5&quot; : &quot;10&quot;);
@@ -371,14 +372,30 @@ class Movie {
 
             if ($five_stars_ratings == &quot;yes&quot;) {
                 for ($i=1; $i&lt;6; $i++) {
-                    if ($this-&gt;_rating == ($i*2 - 1)) $o .= &quot;&lt;img src=\&quot;&quot; . $img_path . &quot;half_star.gif\&quot; alt=\&quot;+\&quot; /&gt;\n&quot;;
-                    else if ($this-&gt;_rating &gt;= ($i*2)) $o .= &quot;&lt;img src=\&quot;&quot; . $img_path . &quot;full_star.gif\&quot; alt=\&quot;*\&quot; /&gt;\n&quot;;
-                    else $o .= &quot;&lt;img src=\&quot;&quot; . $img_path . &quot;empty_star.gif\&quot; alt=\&quot;\&quot; /&gt;\n&quot;;
+                    if ($this-&gt;_rating == ($i*2 - 1)) {
+						$img_name = &quot;half_star&quot; . ($highlight == &quot;yes&quot; ? ($this-&gt;_rating == 9 ? &quot;_half_light&quot; : &quot;&quot;) : &quot;&quot;) . &quot;.gif&quot;;
+						$img_alt = &quot;+&quot;;
+					}
+                    else if ($this-&gt;_rating &gt;= ($i*2)) {
+						$img_name = &quot;full_star&quot; . ($highlight == &quot;yes&quot; ? ($this-&gt;_rating == 10 ? &quot;_highlight&quot; : &quot;&quot;) . ($this-&gt;_rating == 9 ? &quot;_half_light&quot; : &quot;&quot;) : &quot;&quot;) . &quot;.gif&quot;;
+						$img_alt = &quot;*&quot;;
+					}
+                    else { 
+						$img_name = &quot;empty_star.gif&quot;;
+						$img_alt = &quot;&quot;;
+					}
+					$o .= &quot;&lt;img src=\&quot;$img_path&quot; . &quot;$img_name\&quot; alt=\&quot;$img_alt\&quot; /&gt;\n&quot;;
                 }
             } else {
                 for ($i=1; $i&lt;11; $i++) {
-                    if ($this-&gt;_rating &gt;= $i) $o .= &quot;&lt;img src=\&quot;&quot; . $img_path . &quot;full_star.gif\&quot; alt=\&quot;*\&quot; /&gt;\n&quot;;
-                    else $o .= &quot;&lt;img src=\&quot;&quot; . $img_path . &quot;empty_star.gif\&quot; alt=\&quot;\&quot; /&gt;\n&quot;;
+                    if ($this-&gt;_rating &gt;= $i) {
+						$img_name = &quot;full_star&quot; . ($highlight == &quot;yes&quot; ? ($this-&gt;_rating == 10 ? &quot;_highlight&quot; : &quot;&quot;) . ($this-&gt;_rating == 9 ? &quot;_half_light&quot; : &quot;&quot;) : &quot;&quot;) . &quot;.gif&quot;;
+						$img_alt = &quot;*&quot;;
+					} else {
+						$img_name = &quot;empty_star.gif&quot;;
+						$img_alt = &quot;&quot;;
+					}
+					$o .= &quot;&lt;img src=\&quot;$img_path&quot; . &quot;$img_name\&quot; alt=\&quot;$img_alt\&quot; /&gt;\n&quot;;
                 }
             }
 </diff>
      <filename>movie.class.php</filename>
    </modified>
    <modified>
      <diff>@@ -94,6 +94,10 @@
     position: relative;
 }
 
+#wp_movie_ratings.page_mode #reviews li.separator {
+	padding: 2px 0 5px 0;
+}
+
 #wp_movie_ratings #reviews li.odd {
     background: #FDFDF2;
 }
@@ -128,7 +132,7 @@
 	font-weight: bold;
 	font-style: normal;
 	padding: 0 0 2px 0;
-	margin: 35px 0 2px -2px;
+	margin: 35px 0 2px 0;
 }
 
 #wp_movie_ratings #reviews li.separator h3.first {
@@ -205,6 +209,14 @@
     text-align: left;
 }
 
+#wp_movie_ratings #reviews li p span.half_light {
+	color: #A83D5D;
+}
+
+#wp_movie_ratings #reviews li p span.highlight {
+	color: #BC2857;
+}
+
 
 /* STARS RATING */
 </diff>
      <filename>wp_movie_ratings.css</filename>
    </modified>
    <modified>
      <diff>@@ -89,6 +89,7 @@ function wp_movie_ratings_install() {
 	add_option('wp_movie_ratings_char_limit', 44, 'Display that much characters when the movie title is too long to fit', 'no');
 	add_option('wp_movie_ratings_sidebar_mode', 'no', 'Display rating below movie title as to not use too much space', 'no');
 	add_option('wp_movie_ratings_five_stars_ratings', 'no', 'Display ratings using 5 stars instead of 10', 'no');
+	add_option('wp_movie_ratings_highlight', 'yes', 'Highlight top rated movies?', 'no');
 	add_option('wp_movie_ratings_dialog_title', 'Movies I\'ve watched recently:', 'Dialog title for movie ratings box', 'no');
 	add_option('wp_movie_ratings_page_url', '', 'Movie ratings page url', 'no');
 }
@@ -146,6 +147,7 @@ function wp_movie_ratings_show($count = null, $options = array()) {
 #	    'sidebar_mode' -&gt; compact view for sidebar mode ('yes'/'no')
 #	    'five_stars_ratings' -&gt; display movie ratings using 5 stars instead of 10 ('yes'/'no')
 #       'page_mode' -&gt; display all movie ratings on a separate page (with additional options, etc.)
+#       'highlight' -&gt; will highlight the stars of top rated movies
 function wp_movie_ratings_get($count = null, $options = array()) {
 	global $wpdb, $table_prefix;
 
@@ -159,6 +161,7 @@ function wp_movie_ratings_get($count = null, $options = array()) {
 	$expand_review = (isset($options[&quot;expand_review&quot;]) ? $options[&quot;expand_review&quot;] : get_option(&quot;wp_movie_ratings_expand_review&quot;));
 	$sidebar_mode = (isset($options[&quot;sidebar_mode&quot;]) ? $options[&quot;sidebar_mode&quot;] : get_option(&quot;wp_movie_ratings_sidebar_mode&quot;));
 	$five_stars_ratings = (isset($options[&quot;five_stars_ratings&quot;]) ? $options[&quot;five_stars_ratings&quot;] : get_option(&quot;wp_movie_ratings_five_stars_ratings&quot;));
+	$highlight = (isset($options[&quot;highlight&quot;]) ? $options[&quot;highlight&quot;] : get_option(&quot;wp_movie_ratings_highlight&quot;));
 	$page_mode = (isset($options[&quot;page_mode&quot;]) ? $options[&quot;page_mode&quot;] : &quot;no&quot;);
 	$page_url = get_option(&quot;wp_movie_ratings_page_url&quot;);
 
@@ -232,6 +235,8 @@ function wp_movie_ratings_get($count = null, $options = array()) {
 		$separator_last = &quot;&quot;;
 		
 		foreach($movies as $movie) {
+
+			# Separator logic
 			if (($page_mode == &quot;yes&quot;) &amp;&amp; ($order_by == &quot;watched_on&quot;)) {
 				$separator = substr($movie-&gt;_watched_on, 0, 7);
 				if (($i == 0) || ($separator != $separator_last)) {
@@ -243,17 +248,16 @@ function wp_movie_ratings_get($count = null, $options = array()) {
 				$separator_last = $separator;
 			}
 
+			# Movie display
 			$o .= &quot;&lt;li&quot; . ((++$i % 2) == 0 ? &quot; class=\&quot;odd\&quot;&quot; : &quot;&quot;) . &quot;&gt;\n&quot;;
-			$o .= $movie-&gt;show(get_plugin_path(&quot;absolute&quot;), array(&quot;include_review&quot; =&gt; $include_review, &quot;text_ratings&quot; =&gt; $text_ratings, &quot;sidebar_mode&quot; =&gt; $sidebar_mode, &quot;five_stars_ratings&quot; =&gt; $five_stars_ratings, &quot;page_mode&quot; =&gt; $page_mode));
-			# $o .= $movie-&gt;_watched_on; 2006-08-07 22:18
-			 
+			$o .= $movie-&gt;show(get_plugin_path(&quot;absolute&quot;), array(&quot;include_review&quot; =&gt; $include_review, &quot;text_ratings&quot; =&gt; $text_ratings, &quot;sidebar_mode&quot; =&gt; $sidebar_mode, &quot;five_stars_ratings&quot; =&gt; $five_stars_ratings, &quot;highlight&quot; =&gt; $highlight, &quot;page_mode&quot; =&gt; $page_mode));
 			$o .= &quot;&lt;/li&gt;\n&quot;;
 		}
 	}
 
 	$o .= &quot;&lt;/ul&gt;\n&quot;;
 
-	# Please do not remove it. Thank you :)
+	# Please do not remove the love ad. Thank you :)
 	if ($page_mode == &quot;yes&quot;) $o .= &quot;&lt;p id=\&quot;link_love\&quot;&gt;List generated by &lt;a href=\&quot;http://paulgoscicki.com/projects/wp-movie-ratings/\&quot;&gt;WP Movie Ratings&lt;/a&gt;.&lt;/p&gt;\n&quot;;
 	else if (strlen($page_url) &gt; 0) $o .= &quot;&lt;p id=\&quot;page_url\&quot;&gt;&lt;a href=\&quot;$page_url\&quot;&gt;Movie ratings archive &amp;raquo;&lt;/a&gt;&lt;/p&gt;\n&quot;;
 
@@ -416,6 +420,7 @@ function get_plugin_options() {
 	$options[&quot;char_limit&quot;] = get_option(&quot;wp_movie_ratings_char_limit&quot;);
 	$options[&quot;sidebar_mode&quot;] = get_option(&quot;wp_movie_ratings_sidebar_mode&quot;);
 	$options[&quot;five_stars_ratings&quot;] = get_option(&quot;wp_movie_ratings_five_stars_ratings&quot;);
+	$options[&quot;highlight&quot;] = get_option(&quot;wp_movie_ratings_highlight&quot;);
 	$options[&quot;dialog_title&quot;] = get_option(&quot;wp_movie_ratings_dialog_title&quot;);
 	$options[&quot;page_url&quot;] = get_option(&quot;wp_movie_ratings_page_url&quot;);
 	return $options;
@@ -437,6 +442,7 @@ function wp_movie_ratings_options_page() {
 		update_option(&quot;wp_movie_ratings_char_limit&quot;, $_POST[&quot;wp_movie_ratings_char_limit&quot;]);
 		update_option(&quot;wp_movie_ratings_sidebar_mode&quot;, $_POST[&quot;wp_movie_ratings_sidebar_mode&quot;]);
 		update_option(&quot;wp_movie_ratings_five_stars_ratings&quot;, $_POST[&quot;wp_movie_ratings_five_stars_ratings&quot;]);
+		update_option(&quot;wp_movie_ratings_highlight&quot;, $_POST[&quot;wp_movie_ratings_highlight&quot;]);
 		update_option(&quot;wp_movie_ratings_dialog_title&quot;, stripslashes($_POST[&quot;wp_movie_ratings_dialog_title&quot;]));
 		update_option(&quot;wp_movie_ratings_page_url&quot;, stripslashes($_POST[&quot;wp_movie_ratings_page_url&quot;]));
 		echo &quot;&lt;div id=\&quot;message\&quot; class=\&quot;updated fade\&quot;&gt;&lt;p&gt;Options updated&lt;/p&gt;&lt;/div&gt;\n&quot;;
@@ -544,6 +550,18 @@ Display ratings using 5 stars instead of 10.
 &lt;/tr&gt;
 
 &lt;tr valign=&quot;top&quot;&gt;
+&lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;wp_movie_ratings_highlight_yes&quot;&gt;Highlight top rated movies?&lt;/label&gt;&lt;/th&gt;
+&lt;td&gt;
+&lt;input type=&quot;radio&quot; value=&quot;yes&quot; id=&quot;wp_movie_ratings_highlight_yes&quot; name=&quot;wp_movie_ratings_highlight&quot;&lt;?= ($plugin_options[&quot;highlight&quot;] == &quot;yes&quot; ? &quot; checked=\&quot;checked\&quot;&quot; : &quot;&quot;) ?&gt; /&gt;
+&lt;label for=&quot;wp_movie_ratings_highlight_yes&quot;&gt;yes&lt;/label&gt;
+&lt;input type=&quot;radio&quot; value=&quot;no&quot; id=&quot;wp_movie_ratings_highlight_no&quot; name=&quot;wp_movie_ratings_highlight&quot;&lt;?= ($plugin_options[&quot;highlight&quot;] == &quot;no&quot; ? &quot; checked=\&quot;checked\&quot;&quot; : &quot;&quot;) ?&gt; /&gt;
+&lt;label for=&quot;wp_movie_ratings_highlight_no&quot;&gt;no&lt;/label&gt;&lt;br /&gt;
+Will highlight movies rated 9 and 10 (4,5 and 5 for five stars mode).
+&lt;/td&gt;
+&lt;/tr&gt;
+
+
+&lt;tr valign=&quot;top&quot;&gt;
 &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;wp_movie_ratings_page_url&quot;&gt;Movie ratings page url:&lt;/label&gt;&lt;/th&gt;
 &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;wp_movie_ratings_page_url&quot; id=&quot;wp_movie_ratings_page_url&quot; class=&quot;text&quot; size=&quot;50&quot; value=&quot;&lt;?= stripslashes($plugin_options[&quot;page_url&quot;]) ?&gt;&quot;/&gt;&lt;br /&gt;
 If you enter the link (absolute) to the page listing all movie ratings it will create a link from movie ratings box to full archive.</diff>
      <filename>wp_movie_ratings.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2a46866890af751658a8e46cfefd33f27896876e</id>
    </parent>
  </parents>
  <author>
    <name>Pawe&#322; Go&#347;cicki</name>
    <email>pawel.goscicki@gmail.com</email>
  </author>
  <url>http://github.com/pjg/wp_movie_ratings/commit/cc674ecd1c5eb2cc61b2a9f8c12c71bc30cc8e1b</url>
  <id>cc674ecd1c5eb2cc61b2a9f8c12c71bc30cc8e1b</id>
  <committed-date>2006-09-01T09:34:52-07:00</committed-date>
  <authored-date>2006-09-01T09:34:52-07:00</authored-date>
  <message>Added option to highlight top rated movies.</message>
  <tree>206039d6bdeb39f03088bd8168acb83633ad19ea</tree>
  <committer>
    <name>Pawe&#322; Go&#347;cicki</name>
    <email>pawel.goscicki@gmail.com</email>
  </committer>
</commit>
