=== Plugin Name === Contributors: MMDeveloper Tags: php, liquid, php_liquid, slider, javascript Requires at least: 3.0.1 Tested up to: 3.4.2 Stable tag: 2.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Use liquid markup in your posts/pages/stylesheets. == Description == 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. == Installation == 1) Install WordPress 3.4.2 or higher 2) Download the following file: http://downloads.wordpress.org/plugin/php-liquid.2.2.zip 3) Login to WordPress admin, click on Plugins / Add New / Upload, then upload the zip file you just downloaded. 4) Activate the plugin. 5) Edit your header.php and find bloginfo( 'stylesheet_url' ). Replace this with liquid_stylesheet_url(). 6) Thats it, but if you want your own liquid tags, in your functions.php file write the following method function override_mytheme_liquid_array() { // Declare your liquid tags in this array. return array('site_url' => get_option('siteurl'), "dude" => "TheOnlineHero"); // Then in your post/page or stylesheet type {{site_url}}, {{dude}}, to use them. // Example: // body { // background: url({{site_url}}/images/test_image.png); // } } == Upgrade Information == Before upgrading to 2.1, make sure you backup your slider css, the location is different since version 2.0. == Changelog == = 2.2 = * Allows you to create a js file that can use your liquid tag variables. Made the UI for slider easier to understand. Ability to remove auto slide by using javascript to remove the "auto-slide" class. * If you have a slider called Car, you can add the following line to your liquid js file to stop it from auto sliding jQuery("#car").removeClass("auto-slide"); = 2.1.2 = * Changed compression, so only compresses css and slider js. Previous version broke youtube plugin. = 2.1.1 = * Fixed bug with compression. = 2.1 = * Fix bugs - change location of slider css file, better compression for both css and posts. = 2.0 = * Handy GUI for managing your Liquid variables. * Ability to create a image slider. = 1.4 = * You can now render liquid in your templates * echo(parse_liquid("{{site_url}}")); = 1.3 = * Minimise css = 1.2 = * Fixed stylesheet url = 1.1 = * Initial Checkin