From a85a3668a00f8a13104c3814657bbd1eaf07939f Mon Sep 17 00:00:00 2001 From: dougal Date: Tue, 6 Nov 2012 15:41:04 +0000 Subject: [PATCH] allow CSS stylesheet URL to be filtered git-svn-id: http://plugins.svn.wordpress.org/documents-shortcode/trunk@621726 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- documents-shortcode.php | 6 ++++-- readme.txt | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/documents-shortcode.php b/documents-shortcode.php index e334545..fb3109f 100644 --- a/documents-shortcode.php +++ b/documents-shortcode.php @@ -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/ */ @@ -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' ); } diff --git a/readme.txt b/readme.txt index af3eb72..dda9248 100644 --- a/readme.txt +++ b/readme.txt @@ -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