Subversion

PopularityWidget

Compare Path:  Rev
With Path: Rev

This comparison shows the changes necessary to convert path / (Rev 1) TO / (Rev 2)

Reverse comparison

popularity-contest-widget.php

@@ -3,7 +3,7 @@
Plugin Name: Popularity Contest Widget
Plugin URI: http://tech.sobriquet.net
Description: A widget to display the most popular posts. Requires <a href="http://alexking.org/">Alex King</a>'s Popularity Contest plugin
Version: 1
Version: 1.01
Author: Richard Rosalion
Author URI: http://tech.sobriquet.net
*/

@@ -14,29 +14,27 @@
$options = get_option('popularityWidget');
$title = $options['title'];
echo $before_widget . $before_title . $title . $after_title;
echo "<!-- Start popularityWidget -->\n";
echo $before_widget . $before_title . $title . $after_title . "\n";
if( !function_exists('akpc_most_popular') ) {
echo "<p>You don't appear to have the Popularity Contest plugin installed.</p>";
echo " <p>You don't appear to have the Popularity Contest plugin installed.</p>\n";
} else {
// Code to display in sidebar goes after here,
// leave closing and opening php tags intact
?>
<!-- Start popularityWidget -->
<li><h2>Most Popular Posts</h2>
<ul>
<?php akpc_most_popular(); ?>
</ul>
</li>
<!-- End popularityWidget -->
<?php
// end of sidebar code
}
echo $after_widget;
echo $after_widget. "\n";
echo "<!-- End popularityWidget -->";
}
function popularity_widget_control() {
$options = get_option('popularityWidget');
if ( !is_array($options) )
$options = array('title' => 'Most Popular Posts');


Powered by WebSVN v2.0rc4