Skip to content

Commit

Permalink
allow CSS stylesheet URL to be filtered
Browse files Browse the repository at this point in the history
git-svn-id: http://plugins.svn.wordpress.org/documents-shortcode/trunk@621726 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
dougal committed Nov 6, 2012
1 parent 1896601 commit a85a366
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions documents-shortcode.php
Expand Up @@ -4,7 +4,7 @@
Plugin URI: http://dougal.gunters.org/
Description: Shortcode to display a list of attached documents, optionally filtered by mime-type and/or file extension.
Author: Dougal Campbell
Version: 1.0
Version: 1.0.1
Min WP Version: 2.5
Author URI: http://dougal.gunters.org/
*/
Expand Down Expand Up @@ -89,7 +89,9 @@ function dc_document_shortcode_add_style() {
// Don't need plugin styles in dashboard
if ( is_admin() ) return;

wp_register_style( 'dc_document_shortcode' , plugins_url( 'dc_documents.css', __FILE__ ) );
$css_url = apply_filters( 'dc_document_shortcode_css_url', plugins_url( 'dc_documents.css', __FILE__ ) );

wp_register_style( 'dc_document_shortcode' , $css_url );
wp_enqueue_style( 'dc_document_shortcode' );
}

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Expand Up @@ -112,6 +112,9 @@ future, and I am open to suggestions.
At this time, the only supported icon size is 32 x 32 pixels.

== Changelog ==
= 1.0.1=
* Allow CSS URL to be filtered.

= 1.0 =
* Initial release. 2012-09-10

0 comments on commit a85a366

Please sign in to comment.