From 4737f4a184e8e40ce19172127a41443b0f475e3e Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 9 Oct 2013 21:58:57 +0200 Subject: [PATCH] Flash support --- src/Controllers/PostController.php | 1 + src/Views/post-view.phtml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 5283d73b..32d6ef8c 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -207,6 +207,7 @@ class PostController PrivilegesHelper::confirmWithException($this->context->user, Privilege::ViewPost); PrivilegesHelper::confirmWithException($this->context->user, Privilege::ViewPost, PostSafety::toString($post->safety)); + $this->context->stylesheets []= 'post-view.css'; $this->context->subTitle = 'showing @' . $post->id; $this->context->transport->post = $post; } diff --git a/src/Views/post-view.phtml b/src/Views/post-view.phtml index 44932a90..7e525f56 100644 --- a/src/Views/post-view.phtml +++ b/src/Views/post-view.phtml @@ -1,5 +1,11 @@ context->transport->errorMessage)): ?>

context->transport->errorMessage ?>

- <?php echo $this->context->transport->post->name ?> +
+ context->transport->post->type == PostType::Image): ?> + <?php echo $this->context->transport->post->name ?> + context->transport->post->type == PostType::Flash): ?> + + +