Changeset 919717
- Timestamp:
- 05/23/2014 02:09:05 AM (12 years ago)
- Location:
- less-compiler
- Files:
-
- 2 added
- 1 edited
-
img (added)
-
img/menu-icon.png (added)
-
trunk/plugin.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
less-compiler/trunk/plugin.php
r912476 r919717 6 6 Author URI: http://webmaestro.fr 7 7 Description: Less Compiler for Wordpress 8 Version: 1.2. 18 Version: 1.2.2 9 9 License: GNU General Public License 10 10 License URI: license.txt … … 68 68 'parent' => false, 69 69 'title' => __( 'LESS', 'wm-less' ), 70 'icon_url' => 'dashicons-art',70 'icon_url' => plugin_dir_url( __FILE__ ) . 'img/menu-icon.png', 71 71 ), array( 72 72 'less' => array( … … 119 119 } 120 120 121 public static function cache_permissions_notice() { ?> 122 <div id="setting-error-cache_permissions" class="updated settings-error" style="border-left-color: #ffba00;"> 123 <p><strong><?php echo sprintf( __( 'The cache directory (<code>%s</code>) is not writable. No big deal, but caching would make the compiling step a bit smoother.', 'wm-less' ), plugin_dir_path( __FILE__ ) . 'cache' ); ?></strong></p> 124 </div> 125 <?php } 126 121 127 public static function compile() 122 128 { … … 125 131 $cache_dir = plugin_dir_path( __FILE__ ) . 'cache'; 126 132 if ( ! is_writable( $cache_dir ) ) { 127 add_ settings_error( 'less_compiler', 'cache_permissions', sprintf( __( 'The cache directory (<code>%s</code>) is not writable. No big deal, but caching would make the compiling step a bit smoother.', 'wm-less' ), $cache_dir ), 'error');133 add_action( 'admin_notices', array( __CLASS__, 'cache_permissions_notice' ) ); 128 134 } 129 135 $parser = new Less_Parser( array(
Note: See TracChangeset
for help on using the changeset viewer.