=== WP-LESS === Contributors: fabrizim,oncletom Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=752034 Tags: dev, theme, themes, toolkit, plugin-toolkit, less, lesscss, lessc, lessphp, productivity, style, stylesheet, api Requires at least: 3.2 Tested up to: 5.8 Stable tag: trunk
Implementation of LESS (Leaner CSS) in order to make themes development easier.
== Description == LESS is a templating language based on top of CSS. It provides numerous enhancements to speed up development and make its maintenance easier.
Theme developers can even bundle the plugin without worrying about conflicts: just include the special bootstrap-for-theme.php
and read its instructions.
= Features =
The plugin lets you concentrate on what you need: coding CSS. Everything else is handled automatically, from cache management to user delivery. Seriously.
= Documentation =
Advanced topics on how to use the plugin API are available on the Github project documentation.
= Requirements =
The sole requirement is to use WordPress API and LESS convention: the .less
extension.
Minimal Requirements: PHP 5.3 and WordPress 3.2. Relies on: Less.php, plugin-toolkit.
Notice: in case you'd like to drop the usage of this plugin, it's safe to do it. You will just need to convert back your stylesheets to CSS.
== Installation ==
= Automatic =
WP-LESS
)= Manual =
wp-content/plugins
)== Upgrade Notice ==
= 1.6.0 =
Warning: this release has some breaking changes. If you the old selector expression syntax (eg. Bootstrap 2.3) then it’s recommended to use 0.3.9.
== Changelog ==
= Version 1.9.0 =
= Version 1.8.0 =
= Version 1.7.6 =
= Version 1.7.5 =
= Version 1.7.4 =
require
(#64)= Version 1.7.3 =
= Version 1.7.0 =
lessphp
or less.php
(#53)= Version 1.6.0 =
Read the UPGRADE NOTICE carefully as this release contains BC change. Hence the version bump to 1.6.0
.
= Version 1.5.4 =
= Version 1.5.3 =
= Version 1.5.2 =
= Version 1.5.1 =
wp-admin
WPLessConfiguration::getTtl
method to let you configure the delay of old-files cleanup= Version 1.5 =
Mostly issues related to lessphp
0.3.8 features.
wp_enqueue_scripts
(prop of @RixTox)@stylesheet_directory_uri
& @template_directory_uri
) following WordPress convention= Version 1.4.3 =
property of non-object in Plugin.class.php
bug= Version 1.4.2 =
WP_DEBUG
is set to true, compilation is done on every page= Version 1.4.1 =
url()
are now properly resolved relative to the theme URL= Version 1.4 =
wp-less_compiler_parse_pre
now takes 3 arguments: class instance, text and variable argumentswp-less_stylesheet_save_pre
now takes 2 arguments: class instance and variable argumentsless_add_variable
to ease manipulations from theme, if needed (the file needs to be included manually)getBuffer()
and setBuffer
will be removed in 1.5 version= Version 1.3.1 =
wp-less_compiler_parse
action to wp-less_compiler_parse_pre
to avoid name conflictswp-less_compiler_construct
action to wp-less_compiler_construct_pre
to avoid name conflicts= Version 1.3 =
wp_print_styles
to wp
actionwp-less_compiler_construct
and wp-less_compiler_parse
WPLessCompiler::getBuffer()
and WPLessCompiler::setBuffer()
method, to enables hooking on LESS content, before being compiled into CSSWPLessStyleseet::getTargetContent
methodplugin-toolkit
$WPLessPlugin->dispatch
instead of $WPLessPlugin->registerHooks
to match the new plugin-toolkit
signatureplugin-toolkit
= Version 1.2.1 =
= Version 1.2 =
wp_enqueue_stylesheet
(can't really recommend this usage)uri
and cached file location= Version 1.1 =
bootstrap-for-theme.php
to let themers bundle the plugin in their own themesWPLessPlugin::registerHooks
methods to ease hooks activationWPLessPlugin::processStylesheets()
and WPLessPlugin::processStylesheet()
now accepts an additional parameter to force the rebuild= Version 1.0 =
== Frequently Asked Questions ==
Lots of efforts have been done to write a consistent documentation to address issues you may encounter.
It covers topics like path customization, declaring LESS variables from PHP, creating new LESS functions etc.
== Upgrade Notice ==
= 1.5 =
Some changes in the API may breaks compatibility with your PHP code dealing with wp-less
.
Please open issues and describe your technical problems if the usage is not documented.
= 1.4 =
As lessphp
has been upgraded to 0.3.0
, its behavior changed a little bit.
Please check your LESS syntax according to the document before applying this update.
== Screenshots ==