]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'dev-0.7.x' into framebusting
authorMeitar Moscovitz <meitarm@gmail.com>
Wed, 18 Feb 2009 02:01:52 +0000 (13:01 +1100)
committerMeitar Moscovitz <meitarm@gmail.com>
Wed, 18 Feb 2009 02:01:52 +0000 (13:01 +1100)
Conflicts:
lib/action.php

1  2 
lib/action.php

diff --combined lib/action.php
index 48d5821a17324ea6573429f6b42a02b8ba847f68,8ff9e646b8cb769e3c60bc4bdde2e99af07c9daa..e2d09ace2bc8d52822a07cfceff70dac1a1de3f7
@@@ -153,14 -153,26 +153,26 @@@ class Action extends HTMLOutputter // l
      {
          if (Event::handle('StartShowStyles', array($this))) {
              if (Event::handle('StartShowLaconicaStyles', array($this))) {
                  $this->element('link', array('rel' => 'stylesheet',
                                               'type' => 'text/css',
                                               'href' => theme_path('css/display.css', 'base') . '?version=' . LACONICA_VERSION,
                                               'media' => 'screen, projection, tv'));
+                 $this->element('link', array('rel' => 'stylesheet',
+                                              'type' => 'text/css',
+                                              'href' => theme_path('css/modal.css', 'base') . '?version=' . LACONICA_VERSION,
+                                              'media' => 'screen, projection, tv'));
                  $this->element('link', array('rel' => 'stylesheet',
                                               'type' => 'text/css',
                                               'href' => theme_path('css/display.css', null) . '?version=' . LACONICA_VERSION,
                                               'media' => 'screen, projection, tv'));
+                 if (common_config('site', 'mobile')) {
+                     $this->element('link', array('rel' => 'stylesheet',
+                                                  'type' => 'text/css',
+                                                  'href' => theme_path('css/mobile.css', 'base') . '?version=' . LACONICA_VERSION,
+                                                  // TODO: "handheld" CSS for other mobile devices
+                                                  'media' => 'only screen and (max-device-width: 480px)')); // Mobile WebKit
+                 }
                  Event::handle('EndShowLaconicaStyles', array($this));
              }
              if (Event::handle('StartShowUAStyles', array($this))) {
                  $this->element('script', array('type' => 'text/javascript',
                                                 'src' => common_path('js/jquery.form.js')),
                                 ' ');
+                 $this->element('script', array('type' => 'text/javascript',
+                                                'src' => common_path('js/jquery.simplemodal-1.2.2.pack.js')),
+                                ' ');
                  Event::handle('EndShowJQueryScripts', array($this));
              }
              if (Event::handle('StartShowLaconicaScripts', array($this))) {
                  $this->element('script', array('type' => 'text/javascript',
                                                 'src' => common_path('js/util.js?version='.LACONICA_VERSION)),
                                 ' ');
 -
 +                // Frame-busting code to avoid clickjacking attacks.
 +                $this->element('script', array('type' => 'text/javascript'),
 +                               'if (window.top !== window.self) { window.top.location.href = window.self.location.href; }');
+                 $this->element('script', array('type' => 'text/javascript',
+                                                'src' => common_path('js/flowplayer-3.0.5.min.js')),
+                                ' ');
+                 $this->element('script', array('type' => 'text/javascript',
+                                                'src' => common_path('js/video.js')),
+                                ' ');
 -
 -
 -
                  Event::handle('EndShowLaconicaScripts', array($this));
              }
              Event::handle('EndShowScripts', array($this));