Plugin Directory

Changeset 346423


Ignore:
Timestamp:
02/16/2011 02:00:25 PM (15 years ago)
Author:
Razesdark
Message:

Uploading Version 0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • just-another-author-widget/trunk/show_author.php

    r346404 r346423  
    44Plugin URI: http://blog.tommyolsen.net/category/programming/wp-prog/
    55Description: Shows information about the Post author in the Widget Area
    6 Version: 0.3.0
     6Version: 0.2.5
    77Author: Tommy Stigen Olsen
    88Author URI: http://blog.tommyolsen.net
     
    369369    $class['classname'] = 'showauthor_widget';
    370370    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}
     376function 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
     389add_action('activate_'.plugin_basename(__FILE__), 'showauthor_activate');
     390add_action('deactivate_'.plugin_basename(__FILE__), 'showauthor_deactivate');
     391add_action('init', 'showauthor_init');
     392add_action('wp_print_styles', 'showauthor_addstyle');
     393
     394?>
Note: See TracChangeset for help on using the changeset viewer.