Changeset 504461
- Timestamp:
- 02/13/2012 08:44:02 PM (14 years ago)
- Location:
- bw-less-css/trunk
- Files:
-
- 2 edited
-
bw_less_css.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bw-less-css/trunk/bw_less_css.php
r503375 r504461 3 3 Plugin Name: #BW LESS-CSS 4 4 Plugin URI: http://support.briteweb.com/plugins/bw-less-css/ 5 Version: 1.6 5 Version: 1.6.1 6 6 Description: Helper plugin to compile and include LESS CSS files. 7 7 Author: #BRITEWEB … … 12 12 13 13 define( 'BW_LESSCSS_SETTINGS_OPTION', 'bw_lesscss' ); 14 define( 'BW_LESSCSS_DB_VERSION', "1.6 " );14 define( 'BW_LESSCSS_DB_VERSION', "1.6.1" ); 15 15 16 16 global $bw_less_mobile_devices, $bw_less_options; … … 94 94 $defaults = array( 'media' => 'all', 'minify' => false, 'mobile' => false, 'hide_mobile' => false, 'force' => false ); 95 95 extract( wp_parse_args( $args, $defaults ), EXTR_SKIP ); 96 97 if ( $mobile && ! BW_LESSCSS_IS_MOBILE && !$media) return;96 97 if ( $mobile == 1 && ! BW_LESSCSS_IS_MOBILE ) return; 98 98 if ( $hide_mobile == 1 && !$mobile && BW_LESSCSS_IS_MOBILE ) return; 99 100 if ( !is_admin() && !empty( $less ) ) { 99 if ( is_admin() || empty( $less ) ) return; 101 100 102 101 $output_name = $less . '.css'; 102 103 $changed = false; 103 104 if ( file_exists( STYLESHEETPATH . '/' . $output_name ) && filemtime( STYLESHEETPATH . '/' . $less ) > filemtime( STYLESHEETPATH . '/' . $output_name ) ) $changed = true; 105 if ( $force ) $changed = true; 104 106 105 107 try { … … 121 123 wp_enqueue_style( $name, get_bloginfo( 'stylesheet_directory' ) . '/' . $output_name, false, false, $media ); 122 124 123 }124 125 125 } 126 126 … … 205 205 <th scope="col">Media</th> 206 206 <th scope="col">…or Custom Media</th> 207 <th scope="col">Mobile </th>207 <th scope="col">Mobile Only</th> 208 208 <th scope="col">Minify</th> 209 209 <th scope="col">Active</th> … … 217 217 <th scope="col">Media</th> 218 218 <th scope="col">…or Custom Media</th> 219 <th scope="col">Mobile </th>219 <th scope="col">Mobile Only</th> 220 220 <th scope="col">Minify</th> 221 221 <th scope="col">Active</th> -
bw-less-css/trunk/readme.txt
r503375 r504461 59 59 == Changelog == 60 60 61 = 1.6.1 = 62 * Mobile checkbox now includes stylesheet only on mobile devices (previously only worked if media field was empty) 63 61 64 = 1.6 = 62 65 * Added option to hide non-mobile stylesheets on mobile devices
Note: See TracChangeset
for help on using the changeset viewer.