[chg] change some class for theme compatibility

This commit is contained in:
Knah Tsaeb 2015-07-20 15:10:22 +02:00
parent 17699d82dc
commit 1f3a7f78a0
7 changed files with 13 additions and 1226 deletions

View file

@ -1493,7 +1493,7 @@ function renderPage()
$GLOBALS['config']['contactLink'] = $_POST['contactLink'];
$_SESSION['LINKS_PER_PAGE'] = (int)$_POST['linkPerPage'];
writeConfig();
echo '<script>alert("Configuration was saved.");document.location=\'?do=tools\';</script>';
echo '<script>alert("Configuration was saved.");document.location=\'?do=configure\';</script>';
exit;
}
else // Show the configuration form.
@ -1507,7 +1507,12 @@ function renderPage()
list($timezone_form,$timezone_js) = templateTZform($GLOBALS['timezone']);
$PAGE->assign('timezone_form',$timezone_form); // FIXME: put entire tz form generation in template ?
$PAGE->assign('timezone_js',$timezone_js);
if($_GET['config'] === 'myshaarli'){
raintpl::$tpl_dir = 'tpl/myShaarli/';
$PAGE->renderPage('configure');
} else {
$PAGE->renderPage('configure');
}
exit;
}
}
@ -2152,7 +2157,7 @@ function lazyThumbnail($url,$href=false)
if (!empty($GLOBALS['disablejquery'])) // (except if jQuery is disabled)
$html.='<img class="lazyimage" src="'.htmlspecialchars($t['src']).'"';
else
$html.='<img class="lazyimage" src="#" data-original="'.htmlspecialchars($t['src']).'"';
$html.='<img class="b-lazy" src="#" data-original="'.htmlspecialchars($t['src']).'" data-src="'.htmlspecialchars($t['src']).'"';
if (!empty($t['width'])) $html.=' width="'.htmlspecialchars($t['width']).'"';
if (!empty($t['height'])) $html.=' height="'.htmlspecialchars($t['height']).'"';

View file

@ -2,6 +2,7 @@
<html>
<head>
{include="includes"}
<link type="text/css" rel="stylesheet" href="myShaarli.css?version={$version|urlencode}" />
</head>
<body>
<div id="pageheader">

View file

@ -23,7 +23,7 @@
{if="empty($GLOBALS['disablejquery'])"}
<script>
$(document).ready(function() {
$("img.lazyimage").show().lazyload();
$(".b-lazy").show().lazyload();
});
</script>
{/if}

View file

@ -23,7 +23,7 @@
{if="empty($GLOBALS['disablejquery'])"}
<script>
$(document).ready(function() {
$("img.lazyimage").show().lazyload();
$(".b-lazy").show().lazyload();
});
</script>
{/if}

View file

@ -9,4 +9,4 @@
<link rel="icon" type="image/png" sizes="64x64" href="images/favicon_64.png#" />
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon_32.png#" />
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon_16.png#" />
<link type="text/css" rel="stylesheet" href="myShaarli.css?version={$version|urlencode}" />
<link type="text/css" rel="stylesheet" href="shaarli.css?version={$version|urlencode}" />

File diff suppressed because it is too large Load diff

View file

@ -23,7 +23,7 @@
{if="empty($GLOBALS['disablejquery'])"}
<script>
$(document).ready(function() {
$("img.lazyimage").show().lazyload();
$(".b-lazy").show().lazyload();
});
</script>
{/if}