Skip to content

Commit

Permalink
fixed problem with plugin url when installing with zipfile, now only …
Browse files Browse the repository at this point in the history
…works with 2.8+ as plugins_url takes an extra param in 2.8+ to make my life easier
  • Loading branch information
ayn committed Jul 1, 2009
1 parent 6a083c6 commit e2b24fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions jq_img_lazy_load.php
Expand Up @@ -4,13 +4,13 @@
Plugin Name: jQuery lazy load plugin
Plugin URI: http://github.com/ayn/wp-jquery-lazy-load/
Description: a quick and dirty wordpress plugin to enable image lazy loading.
Version: v0.3
Version: v0.4
Author: Andrew Ng
Author URI: http://blog.andrewng.com
*/

function jquery_lazy_load_headers() {
$plugin_path = plugins_url('/wp-jquery-lazy-load/');
$plugin_path = plugins_url('', __FILE__);
$lazy_url = $plugin_path . 'javascripts/jquery.lazyload.pack.js';
$jq_url = $plugin_path . 'javascripts/jquery.js';
wp_deregister_script('jquery');
Expand All @@ -19,7 +19,7 @@ function jquery_lazy_load_headers() {
}

function jquery_lazy_load_ready() {
$placeholdergif = plugins_url('/wp-jquery-lazy-load/images/grey.gif');
$placeholdergif = plugins_url('images/grey.gif', __FILE__);
echo <<<EOF
<script type="text/javascript">
$(document).ready(function($){
Expand Down
6 changes: 3 additions & 3 deletions readme.txt
@@ -1,9 +1,9 @@
=== jQuery Image Lazy Load WP ===
Contributors: ayn
Tags: images, jquery, javascript, optimization
Requires at least: 2.0
Tested up to: 2.7.x
Stable tag: 0.3
Requires at least: 2.8
Tested up to: 2.8.x
Stable tag: 0.4

add jquery lazy loading to images

Expand Down

0 comments on commit e2b24fd

Please sign in to comment.