wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r10037: LJSUP-7908. Link to mobile.

Committer: gprochaev
LJSUP-7908. Link to mobile.

U   trunk/cgi-bin/bml/scheme/lanzelot.look
Modified: trunk/cgi-bin/bml/scheme/lanzelot.look
===================================================================
--- trunk/cgi-bin/bml/scheme/lanzelot.look	2011-02-14 11:39:49 UTC (rev 10036)
+++ trunk/cgi-bin/bml/scheme/lanzelot.look	2011-02-15 04:50:56 UTC (rev 10037)
@@ -121,11 +121,11 @@
 
 <?_code {
     my $class = LJ::get_body_class_for_service_pages();
-    my $is_mobile = ($LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) ? 1 : 0;
+    my $is_mobile = (!$LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) ? 1 : 0;
     return "<body class='$class ".($is_mobile ? "mobile-msg" : '')."' %%bodyopts%%>";
 } _code?>
 <?_code
-if ($LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) {
+if (!$LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) {
     my $uri = LJ::Request->uri;
     my $hostname = LJ::Request->hostname;
     my $args = LJ::Request->args;
@@ -135,8 +135,11 @@
     my $url = LJ::eurl ($proto.$hostname.$uri.$args_wq);
     $ret .= "<div class='b-message-mobile b-message-mobile-theme'><div class='b-message-mobile-wrapper'>";
     $ret .= LJ::Lang::ml('link.mobile', { url => $url });
-    $ret .="</div></div>";
-} _code?>
+    $ret .= "</div></div>";
+} else {
+    $ret .= '';
+}
+_code?>
         <div id="header">
                 <h1 class="logo"><a href="<?siteroot?>">LiveJournal.com</a></h1>
                 <?_code use vars '$reskining_html'; return $reskining_html; _code?>

Tags: ljcom, look, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments