Plugin Directory

Changeset 613837


Ignore:
Timestamp:
10/17/2012 10:03:31 PM (13 years ago)
Author:
ljasinskipl
Message:

Version 1.2 update - style override

Location:
trakttv-widgets/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trakttv-widgets/trunk/readme.txt

    r613835 r613837  
    4141* Because of simple caching, only one copy of widget will work. Please hold with update until the new release, if you plan to use more than one widget on your blog.
    4242* Some plugin filesystem cleaning and other technical stuff you shouldn't notice
     43* Simple style override - just create file named user-trakttv.css in your theme directory
    4344
    4445= 1.1a =
  • trakttv-widgets/trunk/trakt-widget.php

    r613759 r613837  
    44Plugin URI: http://www.ljasinski.pl/wordpress-plugins/trakttv-wordpress-widget/
    55Description: Gets your last seen and rated movies and episodes from the service
    6 Version: 1.1b
     6Version: 1.2
    77Author: Studio Multimedialne ljasinski.pl
    88Author URI: http://www.ljasinski.pl
     
    6363 */
    6464function trakttv_widget_add_stylesheet( ) {
    65     if(get_option( 'ljpl-trakttv-use-css', 1 ) ) {
     65
     66    $theme_style_file = get_stylesheet_directory() . '/user-trakttv.css';
     67
     68    if ( file_exists($theme_style_file) ) {
     69        wp_register_style( 'user-trakttv', $theme_style_file );
     70        wp_enqueue_style( 'user-trakttv' );
     71    } elseif(get_option( 'ljpl-trakttv-use-css', 1 ) ) {
    6672        wp_register_style( 'trakttvWidgetStyle', LJPL_TRAKTTV_URL . '/assets/csstrakttv.css' );
    6773        wp_enqueue_style( 'trakttvWidgetStyle' );
Note: See TracChangeset for help on using the changeset viewer.