Plugin Directory

Changeset 152898


Ignore:
Timestamp:
09/08/2009 12:19:17 AM (17 years ago)
Author:
toddiceton
Message:

Returning library hook to init instead of template_redirect so pages, home, etc can use player

Location:
wpaudio-mp3-player/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wpaudio-mp3-player/trunk/wpaudio.js

    r151806 r152898  
    1616        for (i in wpa_params) {
    1717            wpa.push(new wpaClip(wpa_params[i]));
    18             jQuery('#wpa' + i + '_placeholder').hide();
    1918        }
    2019    }
  • wpaudio-mp3-player/trunk/wpaudio.php

    r151812 r152898  
    7070## WP handlers
    7171# Calling scripts
    72 add_action('template_redirect', 'wpaLibraries');
     72add_action('init', 'wpaLibraries');
    7373# Add header action to include CSS and JS vars
    7474add_action('wp_head', 'wpaHead');
     
    105105    $head = <<<WPA
    106106<style type="text/css">
    107 .wpa_container {margin: 0; border: 0; padding: 0; font-family: Arial, Sans-serif; font-size: 11px; font-weight: normal; text-align: left; line-height: 1; letter-spacing: 0;}
     107.wpa_container {margin: 0; border: 0; padding: 0; font-family: Arial, Sans-serif; font-size: 11px; font-weight: normal; font-style: normal; text-align: left; line-height: 1; letter-spacing: 0;}
    108108.wpa_container a {margin: 0; border: 0; padding: 0; color: WPA_STYLE_LINK_COLOR; text-decoration: none;}
    109109.wpa_container a:hover {color: WPA_STYLE_LINK_HOVER_COLOR;}
     
    111111.wpa_play {font-size: 18px; font-weight: bold; letter-spacing: -1px; line-height: 18px; color: WPA_STYLE_TEXT_COLOR;}
    112112.wpa_button, .wpa_play img {width: 16px; height: 14px; margin: 0 5px 0 0; border: 0; padding: 0; background: #777; vertical-align: baseline;}
    113 .wpa_bar, .wpa_sub, .wpa_noscript {margin-left: 21px;}
     113.wpa_container div.wpa_bar, .wpa_container div.wpa_sub, .wpa_container div.wpa_noscript {margin: 2px 0 0 21px; border: 0; padding: 0;}
    114114.wpa_bar {display: none; position: relative; height: 5px; margin-top: 2px; background: WPA_STYLE_BAR_BASE_BG; overflow: hidden;}
    115 .wpa_bar_load {position: absolute; top: 0; left: 0; width: 0; height: 5px; z-index: 10; background: WPA_STYLE_BAR_LOAD_BG;}
    116 .wpa_bar_position {position: absolute; top: 0; left: 0; width: 0; height: 5px; z-index: 11; background: WPA_STYLE_BAR_POSITION_BG;}
    117 .wpa_bar_click {position: absolute; top: 0; left: 0; width: 100%; height: 5px; z-index: 12; background: transparent; cursor: pointer;}
    118 .wpa_sub {display: none; margin-top: 2px; color: #999;}
     115.wpa_bar div {margin: 0; border: 0; padding: 0; height: 5px;}
     116.wpa_bar_load {position: absolute; top: 0; left: 0; width: 0; z-index: 10; background: WPA_STYLE_BAR_LOAD_BG;}
     117.wpa_bar_position {position: absolute; top: 0; left: 0; width: 0; z-index: 11; background: WPA_STYLE_BAR_POSITION_BG;}
     118.wpa_bar_click {position: absolute; top: 0; left: 0; width: 100%; z-index: 12; background: transparent; cursor: pointer;}
     119.wpa_sub {display: none; color: #999;}
    119120.wpa_time {float: left;}
    120121.wpa_download {float: right;}
Note: See TracChangeset for help on using the changeset viewer.