TAB to spaces. no other change.

This commit is contained in:
Sébastien Lucas 2013-05-15 21:19:31 +02:00
parent 9ad2624c19
commit c45179fdf5

View file

@ -38,11 +38,11 @@
* HTTP_USER_AGENT = "Mozilla/5.0 (Linux; U; en-us; EBRD1101; EXT) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" * HTTP_USER_AGENT = "Mozilla/5.0 (Linux; U; en-us; EBRD1101; EXT) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
*/ */
if (preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) { if (preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) {
$isEink = 1; $isEink = 1;
} else { } else {
$isEink = 0; $isEink = 0;
} }
?> ?>
@ -60,8 +60,8 @@
<link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo $currentPage->favicon ?>" /> <link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo $currentPage->favicon ?>" />
<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox.css?v=2.1.3" media="screen" /> <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox.css?v=2.1.3" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion("style.css") ?>" media="screen" /> <link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion("style.css") ?>" media="screen" />
<link rel="stylesheet" href="//normalize-css.googlecode.com/svn/trunk/normalize.css" /> <link rel="stylesheet" href="//normalize-css.googlecode.com/svn/trunk/normalize.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300italic,800,300,400italic,600,600italic,700,700italic,800italic' rel='stylesheet' type='text/css' /> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300italic,800,300,400italic,600,600italic,700,700italic,800italic' rel='stylesheet' type='text/css' />
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
// Handler for .ready() called. // Handler for .ready() called.
@ -85,8 +85,8 @@
<?php if ($config['cops_use_fancyapps'] == 1) { ?> <?php if ($config['cops_use_fancyapps'] == 1) { ?>
$(".fancycover").fancybox({ $(".fancycover").fancybox({
'type' : 'image', 'type' : 'image',
prevEffect : 'none', prevEffect : 'none',
nextEffect : 'none' nextEffect : 'none'
<?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?> <?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?>
}); });
<?php } ?> <?php } ?>
@ -94,8 +94,8 @@
$(".fancyabout").fancybox({ $(".fancyabout").fancybox({
'type' : 'ajax', 'type' : 'ajax',
title : 'COPS <?php echo VERSION ?>', title : 'COPS <?php echo VERSION ?>',
prevEffect : 'none', prevEffect : 'none',
nextEffect : 'none' nextEffect : 'none'
<?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?> <?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?>
}); });
@ -202,28 +202,28 @@
if (get_class ($entry) != "EntryBook") { if (get_class ($entry) != "EntryBook") {
?> ?>
<article> <article>
<div class="frontpage"> <div class="frontpage">
<?php foreach ($entry->linkArray as $link) { if ($link->type != Link::OPDS_NAVIGATION_TYPE) { continue; } ?> <a href="<?php echo $link->hrefXhtml () ?>"> <?php foreach ($entry->linkArray as $link) { if ($link->type != Link::OPDS_NAVIGATION_TYPE) { continue; } ?> <a href="<?php echo $link->hrefXhtml () ?>">
<h2><?php echo htmlspecialchars ($entry->title) ?></h2> <h2><?php echo htmlspecialchars ($entry->title) ?></h2>
<?php } ?> <?php } ?>
<h4><?php echo htmlspecialchars ($entry->content) ?></h4> <h4><?php echo htmlspecialchars ($entry->content) ?></h4>
</a> </a>
</div> </div>
</article> </article>
<?php <?php
} }
else else
{ {
?> ?>
<article class="books"> <article class="books">
<?php <?php
if ($entry->book->hasCover) { if ($entry->book->hasCover) {
?> ?>
<span class="cover"><a rel="group" class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="<?php echo localize("i18n.coversection") ?>" /></a></span> <span class="cover"><a rel="group" class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="<?php echo localize("i18n.coversection") ?>" /></a></span>
<?php <?php
} }
?> ?>
<h2 class="download"> <h2 class="download">
<?php <?php
$i = 0; $i = 0;
foreach ($config['cops_prefered_format'] as $format) foreach ($config['cops_prefered_format'] as $format)
@ -233,14 +233,14 @@
$i++; $i++;
?> ?>
<a href="<?php echo $data->getHtmlLink () ?>"><?php echo $format ?></a><br /> <a href="<?php echo $data->getHtmlLink () ?>"><?php echo $format ?></a><br />
<?php <?php
} }
} }
?> ?>
</h2> </h2>
<a class="fancyabout" href="<?php echo $entry->book->getDetailUrl () ?>"> <a class="fancyabout" href="<?php echo $entry->book->getDetailUrl () ?>">
<div class="fullclickpopup"> <div class="fullclickpopup">
<h2><?php echo htmlspecialchars ($entry->title) ?> <h2><?php echo htmlspecialchars ($entry->title) ?>
<?php <?php
if ($entry->book->getPubDate() != "") if ($entry->book->getPubDate() != "")