summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-28 21:11:16 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-02-28 21:11:16 -0800
commitfc44c9a7f456a146a20884c56676baf7343dd923 (patch)
treebcc572d966709bfa19277eb48c3f2f831d49d8ba /lib/action.php
parent02ba71b0f186b406071a97c3267603d4863a4b21 (diff)
parent458c03786735bd3e3b6619b2d20538bd55acd0c6 (diff)
Merge branch '0.7.x' into 0.8.x
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php
index f19a047cf..2ba877c9c 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -93,7 +93,10 @@ class Action extends HTMLOutputter // lawsuit
*/
function showPage()
{
- $this->startHTML();
+ if (Event::handle('StartShowHTML', array($this))) {
+ $this->startHTML();
+ Event::handle('EndShowHTML', array($this));
+ }
$this->showHead();
$this->showBody();
$this->endHTML();
@@ -173,6 +176,10 @@ class Action extends HTMLOutputter // lawsuit
// TODO: "handheld" CSS for other mobile devices
'media' => 'only screen and (max-device-width: 480px)')); // Mobile WebKit
}
+ $this->element('link', array('rel' => 'stylesheet',
+ 'type' => 'text/css',
+ 'href' => theme_path('css/print.css', 'base') . '?version=' . LACONICA_VERSION,
+ 'media' => 'print'));
Event::handle('EndShowLaconicaStyles', array($this));
}
if (Event::handle('StartShowUAStyles', array($this))) {