Version Description
Lazy load any image in your theme. Load in head.
Download this release
Release Info
Developer | bjornjohansen |
Plugin | BJ Lazy Load |
Version | 0.3.2 |
Comparing to | |
See all releases |
Code changes from version 0.3.1 to 0.3.2
- bj-lazy-load.php +51 -6
- lang/bj-lazy-load-nb_NO.mo +0 -0
- lang/bj-lazy-load-nb_NO.po +61 -24
- lang/bj-lazy-load.pot +62 -24
- readme.txt +7 -1
bj-lazy-load.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
-
Version: 0.3.
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
License: GPL2
|
@@ -28,7 +28,7 @@ License: GPL2
|
|
28 |
|
29 |
class BJLL {
|
30 |
|
31 |
-
const version = '0.3.
|
32 |
private $_placeholder_url;
|
33 |
|
34 |
private static $_instance;
|
@@ -36,7 +36,7 @@ class BJLL {
|
|
36 |
function __construct() {
|
37 |
|
38 |
$this->_placeholder_url = plugins_url( '/img/placeholder.gif', __FILE__ );
|
39 |
-
|
40 |
if (get_option( 'bjll_include_css', 1 )) {
|
41 |
add_action( 'wp_print_styles', array($this, 'enqueue_styles' ) );
|
42 |
}
|
@@ -45,7 +45,12 @@ class BJLL {
|
|
45 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
46 |
}
|
47 |
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
add_action( 'wp_ajax_BJLL_get_images', array( $this, 'get_images_json' ) );
|
51 |
add_action( 'wp_ajax_nopriv_BJLL_get_images', array( $this, 'get_images_json') );
|
@@ -70,11 +75,17 @@ class BJLL {
|
|
70 |
}
|
71 |
|
72 |
public function enqueue_scripts() {
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
//wp_enqueue_script( 'JAIL', plugins_url( '/js/jail.min.js', __FILE__ ), array( 'jquery'), '0.9.7', true );
|
75 |
//wp_enqueue_script( 'BJLL', plugins_url( '/js/bjll.js', __FILE__ ), array( 'jquery', 'JAIL' ), self::version, true );
|
76 |
|
77 |
-
wp_enqueue_script( 'BJLL', plugins_url( '/js/bjll.min.js', __FILE__ ), array( 'jquery' ), self::version,
|
78 |
|
79 |
}
|
80 |
|
@@ -269,12 +280,14 @@ class BJLL_Admin {
|
|
269 |
register_setting( 'bjll_options', 'bjll_filter_post_thumbnails', 'intval' );
|
270 |
register_setting( 'bjll_options', 'bjll_include_js', 'intval' );
|
271 |
register_setting( 'bjll_options', 'bjll_include_css', 'intval' );
|
|
|
272 |
|
273 |
add_settings_section( 'bjll_general', __('General'), array( 'BJLL_Admin', 'settings_section_general' ), 'bjll' );
|
274 |
|
275 |
add_settings_field( 'bjll_filter_post_thumbnails', __( 'Lazy load post thumbnails', 'bj-lazy-load' ), array( 'BJLL_Admin', 'setting_field_filter_post_thumbnails' ), 'bjll', 'bjll_general', array( 'label_for' => 'bjll_filter_post_thumbnails' ) );
|
276 |
add_settings_field( 'bjll_include_js', __( 'Include JS', 'bj-lazy-load' ), array( 'BJLL_Admin', 'setting_field_include_js'), 'bjll', 'bjll_general', array( 'label_for' => 'bjll_include_js' ) );
|
277 |
add_settings_field( 'bjll_include_css', __( 'Include CSS', 'bj-lazy-load' ), array( 'BJLL_Admin', 'setting_field_include_css'), 'bjll', 'bjll_general', array( 'label_for' => 'bjll_include_css' ) );
|
|
|
278 |
|
279 |
register_setting( 'bjll_options', 'bjll_timeout', 'intval' );
|
280 |
register_setting( 'bjll_options', 'bjll_effect' );
|
@@ -297,6 +310,18 @@ class BJLL_Admin {
|
|
297 |
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
function sanitize_setting_event ( $val ) {
|
301 |
$validoptions = self::_get_valid_setting_options_event();
|
302 |
if ( ! in_array( $val, $validoptions ) ) {
|
@@ -317,6 +342,9 @@ class BJLL_Admin {
|
|
317 |
return $val;
|
318 |
}
|
319 |
|
|
|
|
|
|
|
320 |
private static function _get_valid_setting_options_event () {
|
321 |
return array( 'load+scroll', 'load', 'click', 'mouseover', 'scroll' );
|
322 |
}
|
@@ -367,13 +395,30 @@ class BJLL_Admin {
|
|
367 |
_e( 'Whether to ignore hidden images to be loaded - Default: false/unchecked (so hidden images are loaded)', 'bj-lazy-load' );
|
368 |
|
369 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
function setting_field_event () {
|
371 |
|
372 |
$options = self::_get_valid_setting_options_event();
|
373 |
|
374 |
$currentval = get_option( 'bjll_event' );
|
375 |
|
376 |
-
echo '<select id="bjll_event" name="bjll_event"
|
377 |
foreach ( $options as $option ) {
|
378 |
$selected = '';
|
379 |
if ( $option == $currentval ) {
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
+
Version: 0.3.2
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
License: GPL2
|
28 |
|
29 |
class BJLL {
|
30 |
|
31 |
+
const version = '0.3.2';
|
32 |
private $_placeholder_url;
|
33 |
|
34 |
private static $_instance;
|
36 |
function __construct() {
|
37 |
|
38 |
$this->_placeholder_url = plugins_url( '/img/placeholder.gif', __FILE__ );
|
39 |
+
|
40 |
if (get_option( 'bjll_include_css', 1 )) {
|
41 |
add_action( 'wp_print_styles', array($this, 'enqueue_styles' ) );
|
42 |
}
|
45 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
46 |
}
|
47 |
|
48 |
+
$theme_caller = get_option( 'bjll_theme_caller' );
|
49 |
+
if ( $theme_caller == 'wp_head' ) {
|
50 |
+
add_action( 'wp_print_scripts', array( $this, 'output_js_options' ) );
|
51 |
+
} else {
|
52 |
+
add_action( 'wp_print_footer_scripts', array( $this, 'output_js_options' ) );
|
53 |
+
}
|
54 |
|
55 |
add_action( 'wp_ajax_BJLL_get_images', array( $this, 'get_images_json' ) );
|
56 |
add_action( 'wp_ajax_nopriv_BJLL_get_images', array( $this, 'get_images_json') );
|
75 |
}
|
76 |
|
77 |
public function enqueue_scripts() {
|
78 |
+
|
79 |
+
$in_footer = true;
|
80 |
+
$theme_caller = get_option( 'bjll_theme_caller' );
|
81 |
+
if ( $theme_caller == 'wp_head' ) {
|
82 |
+
$in_footer = false;
|
83 |
+
}
|
84 |
|
85 |
//wp_enqueue_script( 'JAIL', plugins_url( '/js/jail.min.js', __FILE__ ), array( 'jquery'), '0.9.7', true );
|
86 |
//wp_enqueue_script( 'BJLL', plugins_url( '/js/bjll.js', __FILE__ ), array( 'jquery', 'JAIL' ), self::version, true );
|
87 |
|
88 |
+
wp_enqueue_script( 'BJLL', plugins_url( '/js/bjll.min.js', __FILE__ ), array( 'jquery' ), self::version, $in_footer );
|
89 |
|
90 |
}
|
91 |
|
280 |
register_setting( 'bjll_options', 'bjll_filter_post_thumbnails', 'intval' );
|
281 |
register_setting( 'bjll_options', 'bjll_include_js', 'intval' );
|
282 |
register_setting( 'bjll_options', 'bjll_include_css', 'intval' );
|
283 |
+
register_setting( 'bjll_options', 'bjll_theme_caller' );
|
284 |
|
285 |
add_settings_section( 'bjll_general', __('General'), array( 'BJLL_Admin', 'settings_section_general' ), 'bjll' );
|
286 |
|
287 |
add_settings_field( 'bjll_filter_post_thumbnails', __( 'Lazy load post thumbnails', 'bj-lazy-load' ), array( 'BJLL_Admin', 'setting_field_filter_post_thumbnails' ), 'bjll', 'bjll_general', array( 'label_for' => 'bjll_filter_post_thumbnails' ) );
|
288 |
add_settings_field( 'bjll_include_js', __( 'Include JS', 'bj-lazy-load' ), array( 'BJLL_Admin', 'setting_field_include_js'), 'bjll', 'bjll_general', array( 'label_for' => 'bjll_include_js' ) );
|
289 |
add_settings_field( 'bjll_include_css', __( 'Include CSS', 'bj-lazy-load' ), array( 'BJLL_Admin', 'setting_field_include_css'), 'bjll', 'bjll_general', array( 'label_for' => 'bjll_include_css' ) );
|
290 |
+
add_settings_field( 'bjll_theme_caller', __( 'Theme caller function', 'bj-lazy-load' ), array('BJLL_Admin', 'setting_field_theme_caller' ), 'bjll', 'bjll_general', array( 'label_for' => 'bjll_theme_caller' ) );
|
291 |
|
292 |
register_setting( 'bjll_options', 'bjll_timeout', 'intval' );
|
293 |
register_setting( 'bjll_options', 'bjll_effect' );
|
310 |
|
311 |
}
|
312 |
|
313 |
+
function sanitize_setting_theme_caller ( $val ) {
|
314 |
+
$validoptions = self::_get_valid_setting_options_event();
|
315 |
+
if ( ! in_array( $val, $validoptions ) ) {
|
316 |
+
// get previous saved value
|
317 |
+
$val = get_option( 'bjll_theme_caller', 'wp_footer' );
|
318 |
+
if ( ! in_array( $val, $validoptions ) ) {
|
319 |
+
// if still not valid, set to our default
|
320 |
+
$val = $validoptions[0];
|
321 |
+
}
|
322 |
+
}
|
323 |
+
return $val;
|
324 |
+
}
|
325 |
function sanitize_setting_event ( $val ) {
|
326 |
$validoptions = self::_get_valid_setting_options_event();
|
327 |
if ( ! in_array( $val, $validoptions ) ) {
|
342 |
return $val;
|
343 |
}
|
344 |
|
345 |
+
private static function _get_valid_setting_options_theme_caller () {
|
346 |
+
return array( 'wp_footer', 'wp_head' );
|
347 |
+
}
|
348 |
private static function _get_valid_setting_options_event () {
|
349 |
return array( 'load+scroll', 'load', 'click', 'mouseover', 'scroll' );
|
350 |
}
|
395 |
_e( 'Whether to ignore hidden images to be loaded - Default: false/unchecked (so hidden images are loaded)', 'bj-lazy-load' );
|
396 |
|
397 |
}
|
398 |
+
function setting_field_theme_caller () {
|
399 |
+
|
400 |
+
$options = self::_get_valid_setting_options_theme_caller();
|
401 |
+
|
402 |
+
$currentval = get_option( 'bjll_theme_caller' );
|
403 |
+
|
404 |
+
echo '<select id="bjll_theme_caller" name="bjll_theme_caller">';
|
405 |
+
foreach ( $options as $option ) {
|
406 |
+
$selected = '';
|
407 |
+
if ( $option == $currentval ) {
|
408 |
+
$selected = ' selected="selected"';
|
409 |
+
}
|
410 |
+
echo sprintf( '<option value="%1$s"%2$s>%1$s</option>', $option, $selected );
|
411 |
+
}
|
412 |
+
echo '</select> ';
|
413 |
+
_e( 'Put the script in either wp_footer() (should be right before </body>) or wp_head() (in the <head>-element).', 'bj-lazy-load' );
|
414 |
+
}
|
415 |
function setting_field_event () {
|
416 |
|
417 |
$options = self::_get_valid_setting_options_event();
|
418 |
|
419 |
$currentval = get_option( 'bjll_event' );
|
420 |
|
421 |
+
echo '<select id="bjll_event" name="bjll_event">';
|
422 |
foreach ( $options as $option ) {
|
423 |
$selected = '';
|
424 |
if ( $option == $currentval ) {
|
lang/bj-lazy-load-nb_NO.mo
CHANGED
Binary file
|
lang/bj-lazy-load-nb_NO.po
CHANGED
@@ -4,97 +4,134 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: BJ Lazy Load 0.2.4\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/bj-lazy-load\n"
|
7 |
-
"POT-Creation-Date:
|
|
|
|
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2011-12-14 21:39+0100\n"
|
12 |
-
"Last-Translator: Bjørn Johansen <bjorn@gandalf.no>\n"
|
13 |
-
"Language-Team: <post@bjornjohansen.no>\n"
|
14 |
"X-Poedit-Language: Norwegian Bokmal\n"
|
15 |
"X-Poedit-Country: NORWAY\n"
|
16 |
|
17 |
-
#: bj-lazy-load.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
msgid "Lazy load post thumbnails"
|
19 |
msgstr "Lat lasting av fremhevede bilder"
|
20 |
|
21 |
-
#: bj-lazy-load.php:
|
22 |
msgid "Include JS"
|
23 |
msgstr "Inkludér JS"
|
24 |
|
25 |
-
#: bj-lazy-load.php:
|
26 |
msgid "Include CSS"
|
27 |
msgstr "Inkludér CSS"
|
28 |
|
29 |
-
#: bj-lazy-load.php:
|
|
|
|
|
|
|
|
|
30 |
msgid "JAIL Settings"
|
31 |
msgstr "JAIL-innstillinger"
|
32 |
|
33 |
-
#: bj-lazy-load.php:
|
34 |
msgid "Timeout"
|
35 |
msgstr "Tidsterskel"
|
36 |
|
37 |
-
#: bj-lazy-load.php:
|
38 |
msgid "jQuery Effect"
|
39 |
msgstr "jQuery-effekt"
|
40 |
|
41 |
-
#: bj-lazy-load.php:
|
42 |
msgid "Effect Speed"
|
43 |
msgstr "Effekthastighet"
|
44 |
|
45 |
-
#: bj-lazy-load.php:
|
46 |
msgid "Trigger Event"
|
47 |
msgstr "Handlingsutløser"
|
48 |
|
49 |
-
#: bj-lazy-load.php:
|
50 |
msgid "Offset/Threshold"
|
51 |
msgstr "Avstand/terskel"
|
52 |
|
53 |
-
#: bj-lazy-load.php:
|
54 |
msgid "Ignore Hidden Images"
|
55 |
msgstr "Ignorer skjulte bilder"
|
56 |
|
57 |
-
#: bj-lazy-load.php:
|
58 |
msgid "Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best performance you should include it in your combined JS</a>"
|
59 |
msgstr "Nødvendig for at innstikket skal fungere, men <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best ytelse bør du inkludere det i din kombinerte JS-fil</a>"
|
60 |
|
61 |
-
#: bj-lazy-load.php:
|
62 |
msgid "Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best performance you should include it in your combined CSS</a>"
|
63 |
msgstr "Nødvendig for at innstikket skal fungere, men <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best ytelse bør du inkludere det i din kombinerte CSS-fil</a>"
|
64 |
|
65 |
-
#: bj-lazy-load.php:
|
66 |
msgid "Whether to ignore hidden images to be loaded - Default: false/unchecked (so hidden images are loaded)"
|
67 |
msgstr "Om skjulte bilder skal ignoreres - Standard: usann/ikke valgt (slik at skjulte bilder også lastes)"
|
68 |
|
69 |
-
#: bj-lazy-load.php:
|
|
|
|
|
|
|
|
|
70 |
msgid "Event that triggers the image to load. Default: load+scroll"
|
71 |
msgstr "Handling som utløser lasting av bilde. Standard: load+scroll"
|
72 |
|
73 |
-
#: bj-lazy-load.php:
|
74 |
msgid "Number of msec after that the images will be loaded - Default: 10"
|
75 |
msgstr "Antall msec etter handling som bildene lastes - Standard: 10"
|
76 |
|
77 |
-
#: bj-lazy-load.php:
|
78 |
msgid "Any jQuery effect that makes the images display (e.g. \"fadeIn\") - Default: NULL"
|
79 |
msgstr "Hvilken som helst jQuery-effekt som skal vise bildene (f.eks. \"fadeIn\") - Standard: NULL"
|
80 |
|
81 |
-
#: bj-lazy-load.php:
|
82 |
msgid "NOTE: If you are loading a large number of images, it is best to NOT use this setting. Effects calls are very expensive. Even a simple show() can have a major impact on the browser’s responsiveness."
|
83 |
msgstr "MERK: Hvis du laster mange bilder, er det best å IKKE bruke denne innstillingen. Effektkall er veldig ressurskrevende. Til og med en enkel show() kan ha større innvirknign på nettleserens reaksjonsevne."
|
84 |
|
85 |
-
#: bj-lazy-load.php:
|
86 |
msgid "string or number determining how long the animation will run - Default: 400"
|
87 |
msgstr "streng eller tall som angir hvor lenge animasjonen skal kjøres - Standard: 400"
|
88 |
|
89 |
-
#: bj-lazy-load.php:
|
90 |
msgid "An offset of \"500\" would cause any images that are less than 500px below the bottom of the window or 500px above the top of the window to load. - Default: 200"
|
91 |
msgstr "En terskel på \"500\" vil laste bilder som er mindre enn 500px under nedre kant av vinduet eller 500px over øvre kant av vinduet. - Standard: 200"
|
92 |
|
93 |
-
#: bj-lazy-load.php:
|
94 |
msgid "You do not have sufficient permissions to access this page."
|
95 |
msgstr "Du har ikke tilstrekkelig tilgangsnivå til denne siden."
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
#. Description of the plugin/theme
|
98 |
msgid "Lazy image loading makes your site load faster and saves bandwidth."
|
99 |
msgstr "Lat bildelasting gjør nettsteder raskere og sparer båndbredde."
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: BJ Lazy Load 0.2.4\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/bj-lazy-load\n"
|
7 |
+
"POT-Creation-Date: 2012-04-04 08:01:04+00:00\n"
|
8 |
+
"PO-Revision-Date: 2012-04-04 10:07+0100\n"
|
9 |
+
"Last-Translator: Bjørn Johansen <post@bjornjohansen.no>\n"
|
10 |
+
"Language-Team: <post@bjornjohansen.no>\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
14 |
"X-Poedit-Language: Norwegian Bokmal\n"
|
15 |
"X-Poedit-Country: NORWAY\n"
|
16 |
|
17 |
+
#: bj-lazy-load.php:273
|
18 |
+
#: bj-lazy-load.php:465
|
19 |
+
msgid "Settings"
|
20 |
+
msgstr "Innstillinger"
|
21 |
+
|
22 |
+
#: bj-lazy-load.php:285
|
23 |
+
msgid "General"
|
24 |
+
msgstr "Generelt"
|
25 |
+
|
26 |
+
#: bj-lazy-load.php:287
|
27 |
msgid "Lazy load post thumbnails"
|
28 |
msgstr "Lat lasting av fremhevede bilder"
|
29 |
|
30 |
+
#: bj-lazy-load.php:288
|
31 |
msgid "Include JS"
|
32 |
msgstr "Inkludér JS"
|
33 |
|
34 |
+
#: bj-lazy-load.php:289
|
35 |
msgid "Include CSS"
|
36 |
msgstr "Inkludér CSS"
|
37 |
|
38 |
+
#: bj-lazy-load.php:290
|
39 |
+
msgid "Theme caller function"
|
40 |
+
msgstr "Kallfunksjon i tema"
|
41 |
+
|
42 |
+
#: bj-lazy-load.php:302
|
43 |
msgid "JAIL Settings"
|
44 |
msgstr "JAIL-innstillinger"
|
45 |
|
46 |
+
#: bj-lazy-load.php:304
|
47 |
msgid "Timeout"
|
48 |
msgstr "Tidsterskel"
|
49 |
|
50 |
+
#: bj-lazy-load.php:305
|
51 |
msgid "jQuery Effect"
|
52 |
msgstr "jQuery-effekt"
|
53 |
|
54 |
+
#: bj-lazy-load.php:306
|
55 |
msgid "Effect Speed"
|
56 |
msgstr "Effekthastighet"
|
57 |
|
58 |
+
#: bj-lazy-load.php:307
|
59 |
msgid "Trigger Event"
|
60 |
msgstr "Handlingsutløser"
|
61 |
|
62 |
+
#: bj-lazy-load.php:308
|
63 |
msgid "Offset/Threshold"
|
64 |
msgstr "Avstand/terskel"
|
65 |
|
66 |
+
#: bj-lazy-load.php:309
|
67 |
msgid "Ignore Hidden Images"
|
68 |
msgstr "Ignorer skjulte bilder"
|
69 |
|
70 |
+
#: bj-lazy-load.php:375
|
71 |
msgid "Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best performance you should include it in your combined JS</a>"
|
72 |
msgstr "Nødvendig for at innstikket skal fungere, men <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best ytelse bør du inkludere det i din kombinerte JS-fil</a>"
|
73 |
|
74 |
+
#: bj-lazy-load.php:385
|
75 |
msgid "Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best performance you should include it in your combined CSS</a>"
|
76 |
msgstr "Nødvendig for at innstikket skal fungere, men <a href=\"http://developer.yahoo.com/performance/rules.html#num_http\" target=\"_blank\">for best ytelse bør du inkludere det i din kombinerte CSS-fil</a>"
|
77 |
|
78 |
+
#: bj-lazy-load.php:395
|
79 |
msgid "Whether to ignore hidden images to be loaded - Default: false/unchecked (so hidden images are loaded)"
|
80 |
msgstr "Om skjulte bilder skal ignoreres - Standard: usann/ikke valgt (slik at skjulte bilder også lastes)"
|
81 |
|
82 |
+
#: bj-lazy-load.php:413
|
83 |
+
msgid "Put the script in either wp_footer() (should be right before </body>) or wp_head() (in the <head>-element)."
|
84 |
+
msgstr "Legg skriptet enten i wp_footer() (bør være rett før </body>) eller wp_head() (i <head>-elementet)."
|
85 |
+
|
86 |
+
#: bj-lazy-load.php:430
|
87 |
msgid "Event that triggers the image to load. Default: load+scroll"
|
88 |
msgstr "Handling som utløser lasting av bilde. Standard: load+scroll"
|
89 |
|
90 |
+
#: bj-lazy-load.php:435
|
91 |
msgid "Number of msec after that the images will be loaded - Default: 10"
|
92 |
msgstr "Antall msec etter handling som bildene lastes - Standard: 10"
|
93 |
|
94 |
+
#: bj-lazy-load.php:443
|
95 |
msgid "Any jQuery effect that makes the images display (e.g. \"fadeIn\") - Default: NULL"
|
96 |
msgstr "Hvilken som helst jQuery-effekt som skal vise bildene (f.eks. \"fadeIn\") - Standard: NULL"
|
97 |
|
98 |
+
#: bj-lazy-load.php:445
|
99 |
msgid "NOTE: If you are loading a large number of images, it is best to NOT use this setting. Effects calls are very expensive. Even a simple show() can have a major impact on the browser’s responsiveness."
|
100 |
msgstr "MERK: Hvis du laster mange bilder, er det best å IKKE bruke denne innstillingen. Effektkall er veldig ressurskrevende. Til og med en enkel show() kan ha større innvirknign på nettleserens reaksjonsevne."
|
101 |
|
102 |
+
#: bj-lazy-load.php:451
|
103 |
msgid "string or number determining how long the animation will run - Default: 400"
|
104 |
msgstr "streng eller tall som angir hvor lenge animasjonen skal kjøres - Standard: 400"
|
105 |
|
106 |
+
#: bj-lazy-load.php:456
|
107 |
msgid "An offset of \"500\" would cause any images that are less than 500px below the bottom of the window or 500px above the top of the window to load. - Default: 200"
|
108 |
msgstr "En terskel på \"500\" vil laste bilder som er mindre enn 500px under nedre kant av vinduet eller 500px over øvre kant av vinduet. - Standard: 200"
|
109 |
|
110 |
+
#: bj-lazy-load.php:461
|
111 |
msgid "You do not have sufficient permissions to access this page."
|
112 |
msgstr "Du har ikke tilstrekkelig tilgangsnivå til denne siden."
|
113 |
|
114 |
+
#: bj-lazy-load.php:471
|
115 |
+
msgid "Save Changes"
|
116 |
+
msgstr "Lagre Endringer"
|
117 |
+
|
118 |
+
#. Plugin Name of the plugin/theme
|
119 |
+
msgid "BJ Lazy Load"
|
120 |
+
msgstr "BJ Lazy Load"
|
121 |
+
|
122 |
+
#. Plugin URI of the plugin/theme
|
123 |
+
msgid "http://wordpress.org/extend/plugins/bj-lazy-load/"
|
124 |
+
msgstr "http://wordpress.org/extend/plugins/bj-lazy-load/"
|
125 |
+
|
126 |
#. Description of the plugin/theme
|
127 |
msgid "Lazy image loading makes your site load faster and saves bandwidth."
|
128 |
msgstr "Lat bildelasting gjør nettsteder raskere og sparer båndbredde."
|
129 |
|
130 |
+
#. Author of the plugin/theme
|
131 |
+
msgid "Bjørn Johansen"
|
132 |
+
msgstr "Bjørn Johansen"
|
133 |
+
|
134 |
+
#. Author URI of the plugin/theme
|
135 |
+
msgid "http://twitter.com/bjornjohansen"
|
136 |
+
msgstr "http://twitter.com/bjornjohansen"
|
137 |
+
|
lang/bj-lazy-load.pot
CHANGED
@@ -1,114 +1,152 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the BJ Lazy Load package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: BJ Lazy Load 0.2
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/bj-lazy-load\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
-
#: bj-lazy-load.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
msgid "Lazy load post thumbnails"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: bj-lazy-load.php:
|
20 |
msgid "Include JS"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: bj-lazy-load.php:
|
24 |
msgid "Include CSS"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: bj-lazy-load.php:
|
|
|
|
|
|
|
|
|
28 |
msgid "JAIL Settings"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: bj-lazy-load.php:
|
32 |
msgid "Timeout"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: bj-lazy-load.php:
|
36 |
msgid "jQuery Effect"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: bj-lazy-load.php:
|
40 |
msgid "Effect Speed"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: bj-lazy-load.php:
|
44 |
msgid "Trigger Event"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: bj-lazy-load.php:
|
48 |
msgid "Offset/Threshold"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: bj-lazy-load.php:
|
52 |
msgid "Ignore Hidden Images"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: bj-lazy-load.php:
|
56 |
msgid ""
|
57 |
"Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/"
|
58 |
"performance/rules.html#num_http\" target=\"_blank\">for best performance you "
|
59 |
"should include it in your combined JS</a>"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: bj-lazy-load.php:
|
63 |
msgid ""
|
64 |
"Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/"
|
65 |
"performance/rules.html#num_http\" target=\"_blank\">for best performance you "
|
66 |
"should include it in your combined CSS</a>"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: bj-lazy-load.php:
|
70 |
msgid ""
|
71 |
"Whether to ignore hidden images to be loaded - Default: false/unchecked (so "
|
72 |
"hidden images are loaded)"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: bj-lazy-load.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
msgid "Event that triggers the image to load. Default: load+scroll"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: bj-lazy-load.php:
|
80 |
msgid "Number of msec after that the images will be loaded - Default: 10"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: bj-lazy-load.php:
|
84 |
msgid ""
|
85 |
"Any jQuery effect that makes the images display (e.g. \"fadeIn\") - Default: "
|
86 |
"NULL"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: bj-lazy-load.php:
|
90 |
msgid ""
|
91 |
"NOTE: If you are loading a large number of images, it is best to NOT use "
|
92 |
"this setting. Effects calls are very expensive. Even a simple show() can "
|
93 |
"have a major impact on the browser’s responsiveness."
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: bj-lazy-load.php:
|
97 |
msgid ""
|
98 |
"string or number determining how long the animation will run - Default: 400"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: bj-lazy-load.php:
|
102 |
msgid ""
|
103 |
"An offset of \"500\" would cause any images that are less than 500px below "
|
104 |
"the bottom of the window or 500px above the top of the window to load. - "
|
105 |
"Default: 200"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: bj-lazy-load.php:
|
109 |
msgid "You do not have sufficient permissions to access this page."
|
110 |
msgstr ""
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
#. Description of the plugin/theme
|
113 |
msgid "Lazy image loading makes your site load faster and saves bandwidth."
|
114 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012 BJ Lazy Load
|
2 |
# This file is distributed under the same license as the BJ Lazy Load package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: BJ Lazy Load 0.3.2\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/bj-lazy-load\n"
|
7 |
+
"POT-Creation-Date: 2012-04-04 08:01:04+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: bj-lazy-load.php:273 bj-lazy-load.php:465
|
16 |
+
msgid "Settings"
|
17 |
+
msgstr ""
|
18 |
+
|
19 |
+
#: bj-lazy-load.php:285
|
20 |
+
msgid "General"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: bj-lazy-load.php:287
|
24 |
msgid "Lazy load post thumbnails"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: bj-lazy-load.php:288
|
28 |
msgid "Include JS"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: bj-lazy-load.php:289
|
32 |
msgid "Include CSS"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: bj-lazy-load.php:290
|
36 |
+
msgid "Theme caller function"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: bj-lazy-load.php:302
|
40 |
msgid "JAIL Settings"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: bj-lazy-load.php:304
|
44 |
msgid "Timeout"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: bj-lazy-load.php:305
|
48 |
msgid "jQuery Effect"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: bj-lazy-load.php:306
|
52 |
msgid "Effect Speed"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: bj-lazy-load.php:307
|
56 |
msgid "Trigger Event"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: bj-lazy-load.php:308
|
60 |
msgid "Offset/Threshold"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: bj-lazy-load.php:309
|
64 |
msgid "Ignore Hidden Images"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: bj-lazy-load.php:375
|
68 |
msgid ""
|
69 |
"Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/"
|
70 |
"performance/rules.html#num_http\" target=\"_blank\">for best performance you "
|
71 |
"should include it in your combined JS</a>"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: bj-lazy-load.php:385
|
75 |
msgid ""
|
76 |
"Needed for the plugin to work, but <a href=\"http://developer.yahoo.com/"
|
77 |
"performance/rules.html#num_http\" target=\"_blank\">for best performance you "
|
78 |
"should include it in your combined CSS</a>"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: bj-lazy-load.php:395
|
82 |
msgid ""
|
83 |
"Whether to ignore hidden images to be loaded - Default: false/unchecked (so "
|
84 |
"hidden images are loaded)"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: bj-lazy-load.php:413
|
88 |
+
msgid ""
|
89 |
+
"Put the script in either wp_footer() (should be right before </body>) or "
|
90 |
+
"wp_head() (in the <head>-element)."
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: bj-lazy-load.php:430
|
94 |
msgid "Event that triggers the image to load. Default: load+scroll"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: bj-lazy-load.php:435
|
98 |
msgid "Number of msec after that the images will be loaded - Default: 10"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: bj-lazy-load.php:443
|
102 |
msgid ""
|
103 |
"Any jQuery effect that makes the images display (e.g. \"fadeIn\") - Default: "
|
104 |
"NULL"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: bj-lazy-load.php:445
|
108 |
msgid ""
|
109 |
"NOTE: If you are loading a large number of images, it is best to NOT use "
|
110 |
"this setting. Effects calls are very expensive. Even a simple show() can "
|
111 |
"have a major impact on the browser’s responsiveness."
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: bj-lazy-load.php:451
|
115 |
msgid ""
|
116 |
"string or number determining how long the animation will run - Default: 400"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: bj-lazy-load.php:456
|
120 |
msgid ""
|
121 |
"An offset of \"500\" would cause any images that are less than 500px below "
|
122 |
"the bottom of the window or 500px above the top of the window to load. - "
|
123 |
"Default: 200"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: bj-lazy-load.php:461
|
127 |
msgid "You do not have sufficient permissions to access this page."
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: bj-lazy-load.php:471
|
131 |
+
msgid "Save Changes"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#. Plugin Name of the plugin/theme
|
135 |
+
msgid "BJ Lazy Load"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#. Plugin URI of the plugin/theme
|
139 |
+
msgid "http://wordpress.org/extend/plugins/bj-lazy-load/"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
#. Description of the plugin/theme
|
143 |
msgid "Lazy image loading makes your site load faster and saves bandwidth."
|
144 |
msgstr ""
|
145 |
+
|
146 |
+
#. Author of the plugin/theme
|
147 |
+
msgid "Bjørn Johansen"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#. Author URI of the plugin/theme
|
151 |
+
msgid "http://twitter.com/bjornjohansen"
|
152 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: images, lazy loading, jquery, javascript, optimize, performance, bandwidth
|
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.1
|
7 |
Tested up to: 3.3.1
|
8 |
-
Stable tag: 0.3.
|
9 |
|
10 |
Lazy image loading makes your site load faster and saves bandwidth. Uses jQuery and degrades gracefully for non-js users.
|
11 |
|
@@ -58,6 +58,9 @@ Check your HTML source or see the magic at work in Web Inspector, FireBug or sim
|
|
58 |
|
59 |
== Changelog ==
|
60 |
|
|
|
|
|
|
|
61 |
= Version 0.3.1 =
|
62 |
* Also with d.sturm's fix
|
63 |
|
@@ -99,6 +102,9 @@ Check your HTML source or see the magic at work in Web Inspector, FireBug or sim
|
|
99 |
|
100 |
== Upgrade Notice ==
|
101 |
|
|
|
|
|
|
|
102 |
= 0.3.1 =
|
103 |
Lazy load any image in your theme. Load in head.
|
104 |
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.1
|
7 |
Tested up to: 3.3.1
|
8 |
+
Stable tag: 0.3.2
|
9 |
|
10 |
Lazy image loading makes your site load faster and saves bandwidth. Uses jQuery and degrades gracefully for non-js users.
|
11 |
|
58 |
|
59 |
== Changelog ==
|
60 |
|
61 |
+
= Version 0.3.2 =
|
62 |
+
* The wp_head caller selection was added to the option page
|
63 |
+
|
64 |
= Version 0.3.1 =
|
65 |
* Also with d.sturm's fix
|
66 |
|
102 |
|
103 |
== Upgrade Notice ==
|
104 |
|
105 |
+
= 0.3.2 =
|
106 |
+
Lazy load any image in your theme. Load in head.
|
107 |
+
|
108 |
= 0.3.1 =
|
109 |
Lazy load any image in your theme. Load in head.
|
110 |
|