>
Download This Plugin | |
Download Elegant Themes | |
Name | PHP Liquid |
Version | 2.7.0 |
Author | TheOnlineHero - Tom Skroza |
Rating | 0 |
Last updated | 2013-04-18 03:31:00 |
Downloads |
728
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
PHP Liquid plugin added 249431 bytes of resources to the Home page and 322989 bytes of resources to the sample Post page.
PHP Liquid plugin added -1 new host(s) to the Home page and -3 new host(s) to the sample Post page.
PHP Liquid plugins ads the following DB table(s) to your Wordpress blog database:Table name | Table size (in bytes) |
---|---|
wp_php_liquid_sliders | 16384 |
wp_php_liquid_slides | 16384 |
wp_php_liquid_variables | 16384 |
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:
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.