diff --git a/assets/js/fileupload.js b/assets/js/fileupload.js index ee13af6b..a2ff96f7 100644 --- a/assets/js/fileupload.js +++ b/assets/js/fileupload.js @@ -8,7 +8,6 @@ jQuery( document ).ready( function ( $ ) { /** * Upload notification bar */ - upload notification bar function notificationBar( message ) { $( '.peek-a-bar' ).hide().remove(); var notification_bar = new $.peekABar( { diff --git a/includes/class-ssp-frontend.php b/includes/class-ssp-frontend.php index 5212fc6c..3ec09196 100644 --- a/includes/class-ssp-frontend.php +++ b/includes/class-ssp-frontend.php @@ -108,7 +108,7 @@ public function __construct( $file, $version ) { add_action( 'wp_enqueue_scripts', array( $this, 'load_styles_and_scripts' ) ); // Enqueue HTML5 scripts only if the page has an HTML5 player on it - add_action( 'wp_print_footer_scripts', array( $this, 'html5_player_conditional_scripts' ) ); + add_action( 'wp_print_footer_scripts', array( $this, 'html5_player_conditional_scripts' ) ); // Add overridable styles to footer add_action( 'wp_footer', array( $this, 'ssp_override_player_styles' ) ); @@ -122,13 +122,13 @@ public function __construct( $file, $version ) { public function html5_player_conditional_scripts(){ global $largePlayerInstanceNumber; if( (int) $largePlayerInstanceNumber > 0 ){ - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; echo ''; - echo ''; - } - } + echo ''; + } + } public function ssp_override_player_styles(){ $player_wave_form_progress_colour = get_option( 'ss_podcasting_player_wave_form_progress_colour', false ); @@ -146,11 +146,7 @@ public function ssp_override_player_styles(){ * Enqueue styles and scripts */ public function load_styles_and_scripts(){ - /*wp_enqueue_style( 'google-font-robotto' , '//fonts.googleapis.com/css?family=Roboto:400,700', array(), SSP_VERSION); - wp_enqueue_style( 'ssp-player-styles', SSP_PLUGIN_URL . 'assets/css/icon_fonts.css', array( 'google-font-robotto' ), SSP_VERSION ); - wp_enqueue_style( 'ssp-player-gizmo', SSP_PLUGIN_URL . 'assets/fonts/Gizmo/gizmo.css', array( 'ssp-player-styles' ), SSP_VERSION ); - wp_enqueue_script( 'ssp-player-waveform', '//cdnjs.cloudflare.com/ajax/libs/wavesurfer.js/1.4.0/wavesurfer.min.js', array( 'jquery' ), SSP_VERSION ); - wp_enqueue_style( 'ssp-large-player-styles', SSP_PLUGIN_URL . 'assets/css/frontend.css', array( 'ssp-player-styles' ), SSP_VERSION );*/ + // @todo load styles and scripts here } /** @@ -425,7 +421,7 @@ private function get_no_album_art_image_array(){ * Load media player for given file * @param string $srcFile Source of file * @param integer $episode_id Episode ID for audio file - * @param string $player_size mini or large + * @param string $player_size mini or large * @return string Media player HTML on success, empty string on failure */ public function media_player ( $srcFile = '', $episode_id = 0, $player_size = "large" ) { @@ -459,7 +455,7 @@ public function media_player ( $srcFile = '', $episode_id = 0, $player_size = "l $player_style = (string) get_option( 'ss_podcasting_player_style' ); if( $player_size == "large" ){ $player_style = "larger"; - } + } if( "larger" !== $player_style || "mini" === $player_size ){ $player = wp_audio_shortcode( $params ); @@ -481,10 +477,10 @@ public function media_player ( $srcFile = '', $episode_id = 0, $player_size = "l ?>
> -
+
- +
@@ -499,10 +495,10 @@ public function media_player ( $srcFile = '', $episode_id = 0, $player_size = "l
- - - -
+ + + +
 
@@ -554,7 +550,7 @@ public function media_player ( $srcFile = '', $episode_id = 0, $player_size = "l