Changeset 346423
- Timestamp:
- 02/16/2011 02:00:25 PM (15 years ago)
- File:
-
- 1 edited
-
just-another-author-widget/trunk/show_author.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
just-another-author-widget/trunk/show_author.php
r346404 r346423 4 4 Plugin URI: http://blog.tommyolsen.net/category/programming/wp-prog/ 5 5 Description: Shows information about the Post author in the Widget Area 6 Version: 0. 3.06 Version: 0.2.5 7 7 Author: Tommy Stigen Olsen 8 8 Author URI: http://blog.tommyolsen.net … … 369 369 $class['classname'] = 'showauthor_widget'; 370 370 wp_register_sidebar_widget('tommy_show_author', __('Just Another Author Widget'), 'showauthor_widget', $class); 371 wp_register_widget_control('tommy_show_author', __('Just Another Author Widget'), 'showauthor_widget_cont 371 wp_register_widget_control('tommy_show_author', __('Just Another Author Widget'), 'showauthor_widget_control', 'width=200&height=200'); 372 373 374 return; 375 } 376 function showauthor_addstyle() 377 { 378 $style = WP_PLUGIN_URL . '/just-another-author-widget/jaaw-style.css'; 379 $location = WP_PLUGIN_DIR . '/just-another-author-widget/jaaw-style.css'; 380 381 if( file_exists($location) ) 382 { 383 wp_register_style('template', $style); 384 wp_enqueue_style( 'template'); 385 386 } 387 } 388 // ACTIONS 389 add_action('activate_'.plugin_basename(__FILE__), 'showauthor_activate'); 390 add_action('deactivate_'.plugin_basename(__FILE__), 'showauthor_deactivate'); 391 add_action('init', 'showauthor_init'); 392 add_action('wp_print_styles', 'showauthor_addstyle'); 393 394 ?>
Note: See TracChangeset
for help on using the changeset viewer.