border cancelling; somewhat of an ugly hack...

This commit is contained in:
Shish 2010-04-19 20:41:38 +01:00
parent b9f21571eb
commit 38c3038ecb
6 changed files with 6 additions and 6 deletions

View file

@ -9,7 +9,7 @@ class ZoomTheme extends Themelet {
global $config; global $config;
$default = $zoom_by_default ? "scale(img);" : ""; $default = $zoom_by_default ? "scale(img);" : "";
return <<<EOD return <<<EOD
<!-- rrcontent --> <!-- cancel border -->
<script type="text/javascript"> <script type="text/javascript">
img = document.getElementById("main_image"); img = document.getElementById("main_image");

View file

@ -116,7 +116,7 @@ EOD;
</div> </div>
"; ";
if(!is_null($b)) { if(!is_null($b)) {
if(strpos($b, "rrcontent")) { if(strpos($b, "<!-- cancel border -->")) {
$html .= "<div class='blockbody' id='$i'>$b</div>"; $html .= "<div class='blockbody' id='$i'>$b</div>";
} }
else { else {

View file

@ -110,7 +110,7 @@ class Themelet {
$pages_html = implode(" | ", $pages); $pages_html = implode(" | ", $pages);
return "<p class='paginator'>$first_html | $prev_html | $random_html | $next_html | $last_html". return "<p class='paginator'>$first_html | $prev_html | $random_html | $next_html | $last_html".
"<br>&lt;&lt; $pages_html &gt;&gt;</p><!-- rrcontent -->"; "<br>&lt;&lt; $pages_html &gt;&gt;</p><!-- cancel border -->";
} }
} }
?> ?>

View file

@ -222,7 +222,7 @@ EOD;
} }
} }
if(!is_null($b)) { if(!is_null($b)) {
//if(strpos($b, "rrcontent")) { //if(strpos($b, "<!-- cancel border -->")) {
if($salt =="main") { if($salt =="main") {
$html .= "<div class='blockbody' id='$i'>$b</div>"; $html .= "<div class='blockbody' id='$i'>$b</div>";
} }

View file

@ -128,7 +128,7 @@ EOD;
</div> </div>
"; ";
if(!is_null($b)) { if(!is_null($b)) {
if(strpos($b, "rrcontent")) { if(strpos($b, "<!-- cancel border -->")) {
$html .= "<div class='blockbody' id='$i'>$b</div>"; $html .= "<div class='blockbody' id='$i'>$b</div>";
} }
else { else {

View file

@ -111,7 +111,7 @@ class Themelet {
$pages_html = implode(" | ", $pages); $pages_html = implode(" | ", $pages);
return "<p class='paginator'>$first_html | $prev_html | $random_html | $next_html | $last_html". return "<p class='paginator'>$first_html | $prev_html | $random_html | $next_html | $last_html".
"<br>&lt;&lt; $pages_html &gt;&gt;</p><!-- rrcontent -->"; "<br>&lt;&lt; $pages_html &gt;&gt;</p><!-- cancel border -->";
} }
} }
?> ?>