Liquid PHP

Here is a short description of the plugin. This should be no more than 150 characters. No markup here.

Author:TheOnlineHero - Tom Skroza (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:3.5.2
Plugin version:2.7.0
Added to WordPress repository:03-10-2012
Last updated:22-05-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://wordpress.org/extend/plugins/php-liqui...
Total downloads:1 989
plugin download
Click to start download

PHP Liquid is a WordPress plugin that allows you to add liquid tags to your stylesheet and page/posts.

After version 2.0, I’ve even included a handy GUI interface which allows you to create and edit your liquid tag variables.

As part of this plugin, you can also create an image slider using liquid.

To find out what liquid is please go to the following url:

http://liquidmarkup.org/

Please read the install instructions carefully. You need to replace bloginfo( ‘stylesheet_url’ ) with liquid_stylesheet_url() in your header.php if you want to use liquid in your stylesheet.

If you write this method in your theme functions file:

function override_mytheme_liquid_array() {

return array(‘site_url’ => get_option(‘siteurl’), “items” => array(“1″,”2”));

}

and write the following lines in your style.css file:

{% for item in items %}

#banner_{{ item }} {

background: url("/images/test_{{ item }}.png"); 

}

{% endfor %}

your website will actually render the following css:

banner_1 {

background: url(“/images/test_1.png”);

}

banner_2 {

background: url(“/images/test_2.png”);

}

So with this plugin, you can use dynamic css, cool hey.

Introduced in version 1.4 – You can now write:

echo(parse_liquid(“{{site_url}}”));

into your template, and render liquid tags in your template.


ChangeLog