[chg] change some class for theme compatibility
This commit is contained in:
parent
17699d82dc
commit
1f3a7f78a0
7 changed files with 13 additions and 1226 deletions
|
@ -1493,7 +1493,7 @@ function renderPage()
|
||||||
$GLOBALS['config']['contactLink'] = $_POST['contactLink'];
|
$GLOBALS['config']['contactLink'] = $_POST['contactLink'];
|
||||||
$_SESSION['LINKS_PER_PAGE'] = (int)$_POST['linkPerPage'];
|
$_SESSION['LINKS_PER_PAGE'] = (int)$_POST['linkPerPage'];
|
||||||
writeConfig();
|
writeConfig();
|
||||||
echo '<script>alert("Configuration was saved.");document.location=\'?do=tools\';</script>';
|
echo '<script>alert("Configuration was saved.");document.location=\'?do=configure\';</script>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else // Show the configuration form.
|
else // Show the configuration form.
|
||||||
|
@ -1507,7 +1507,12 @@ function renderPage()
|
||||||
list($timezone_form,$timezone_js) = templateTZform($GLOBALS['timezone']);
|
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_form',$timezone_form); // FIXME: put entire tz form generation in template ?
|
||||||
$PAGE->assign('timezone_js',$timezone_js);
|
$PAGE->assign('timezone_js',$timezone_js);
|
||||||
|
if($_GET['config'] === 'myshaarli'){
|
||||||
|
raintpl::$tpl_dir = 'tpl/myShaarli/';
|
||||||
$PAGE->renderPage('configure');
|
$PAGE->renderPage('configure');
|
||||||
|
} else {
|
||||||
|
$PAGE->renderPage('configure');
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2152,7 +2157,7 @@ function lazyThumbnail($url,$href=false)
|
||||||
if (!empty($GLOBALS['disablejquery'])) // (except if jQuery is disabled)
|
if (!empty($GLOBALS['disablejquery'])) // (except if jQuery is disabled)
|
||||||
$html.='<img class="lazyimage" src="'.htmlspecialchars($t['src']).'"';
|
$html.='<img class="lazyimage" src="'.htmlspecialchars($t['src']).'"';
|
||||||
else
|
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['width'])) $html.=' width="'.htmlspecialchars($t['width']).'"';
|
||||||
if (!empty($t['height'])) $html.=' height="'.htmlspecialchars($t['height']).'"';
|
if (!empty($t['height'])) $html.=' height="'.htmlspecialchars($t['height']).'"';
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
|
<link type="text/css" rel="stylesheet" href="myShaarli.css?version={$version|urlencode}" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
{if="empty($GLOBALS['disablejquery'])"}
|
{if="empty($GLOBALS['disablejquery'])"}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("img.lazyimage").show().lazyload();
|
$(".b-lazy").show().lazyload();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
{if="empty($GLOBALS['disablejquery'])"}
|
{if="empty($GLOBALS['disablejquery'])"}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("img.lazyimage").show().lazyload();
|
$(".b-lazy").show().lazyload();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -9,4 +9,4 @@
|
||||||
<link rel="icon" type="image/png" sizes="64x64" href="images/favicon_64.png#" />
|
<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="32x32" href="images/favicon_32.png#" />
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon_16.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
|
@ -23,7 +23,7 @@
|
||||||
{if="empty($GLOBALS['disablejquery'])"}
|
{if="empty($GLOBALS['disablejquery'])"}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("img.lazyimage").show().lazyload();
|
$(".b-lazy").show().lazyload();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue