Changeset 193853
- Timestamp:
- 01/14/2010 12:31:08 PM (16 years ago)
- Location:
- sk-xkcd-widget/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
sk_xkcd_widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sk-xkcd-widget/trunk/readme.txt
r193263 r193853 2 2 Contributors: skipstorm 3 3 Tags: widget, xkcd, funny 4 Requires at least: 2. 34 Requires at least: 2.7 5 5 Tested up to: 2.9.1 6 6 Stable tag: trunk -
sk-xkcd-widget/trunk/sk_xkcd_widget.php
r193263 r193853 5 5 Description: XKCD Widget 6 6 Author: Skipstorm 7 Version: 1. 07 Version: 1.2 8 8 Author URI: http://www.skipstorm.org/ 9 9 */ … … 23 23 function Sk_xkcd_Widget() { 24 24 /* 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') ); 26 26 27 27 /* 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' ); 29 29 30 30 /* 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 ); 32 32 } 33 33 34 34 function widget($args, $instance) { 35 35 extract($args); 36 36 37 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>'; 38 39 39 40 @$page = $this->getPage('http://xkcd.com/');
Note: See TracChangeset
for help on using the changeset viewer.