Plugin Directory

Changeset 193853


Ignore:
Timestamp:
01/14/2010 12:31:08 PM (16 years ago)
Author:
skipstorm
Message:
 
Location:
sk-xkcd-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sk-xkcd-widget/trunk/readme.txt

    r193263 r193853  
    22Contributors: skipstorm
    33Tags: widget, xkcd, funny
    4 Requires at least: 2.3
     4Requires at least: 2.7
    55Tested up to: 2.9.1
    66Stable tag: trunk
  • sk-xkcd-widget/trunk/sk_xkcd_widget.php

    r193263 r193853  
    55Description: XKCD Widget
    66Author: Skipstorm
    7 Version: 1.0
     7Version: 1.2
    88Author URI: http://www.skipstorm.org/
    99*/
     
    2323    function Sk_xkcd_Widget() {
    2424        /* Widget settings. */
    25         $widget_ops = array( 'classname' => 'sk_latest_posts_widget', 'description' => __('Shows the latest post of a forum in a widget.', 'sk_latest_posts_widget') );
     25        $widget_ops = array( 'classname' => 'sk_xkcd_widget', 'description' => __('Shows the latest image from xkcd.', 'sk_xkcd_widget') );
    2626
    2727        /* Widget control settings. */
    28         $control_ops = array( 'width' => 350, 'height' => 350, 'id_base' => 'sk_latest_posts_widget-widget' );
     28        $control_ops = array( 'width' => 350, 'height' => 350, 'id_base' => 'sk_xkcd_widget-widget' );
    2929
    3030        /* Create the widget. */
    31         $this->WP_Widget( 'sk_latest_posts_widget-widget', __('sk_latest_posts_widget', 'sk_latest_posts_widget'), $widget_ops, $control_ops );
     31        $this->WP_Widget( 'sk_xkcd_widget-widget', __('sk XKCD widget', 'sk_xkcd_widget'), $widget_ops, $control_ops );
    3232    }
    3333   
    3434    function widget($args, $instance) {
    3535        extract($args);
     36       
    3637        global $wp_query,$wpdb,$wp_rewrite;
    37         $title = '<a href="http://xkcd.com" target="_blank">'.'<img src="/wp-content/plugins/sk_xkcd_widget/xkcdLogo.png" style="width:100%;"/></a>';
     38        $title = '<a href="http://xkcd.com" target="_blank">'.'<img src="'.get_option( 'siteurl' ).'/wp-content/plugins/sk-xkcd-widget/xkcdLogo.png" style="width:100%;"/></a>';
    3839       
    3940        @$page = $this->getPage('http://xkcd.com/');
Note: See TracChangeset for help on using the changeset viewer.