1
0

Modified how CSS code is inserted.

This commit is contained in:
rWatcher 2009-10-12 16:28:42 -04:00
parent 73b6c7785e
commit 886021dbed
3 changed files with 4 additions and 9 deletions

View File

@ -19,11 +19,9 @@
*/
class downloadfullsize_theme {
static function head($theme) {
if (!$theme->item()) {
return;
if ($theme->item && access::can("view_full", $theme->item)) {
$theme->css("downloadfullsize_menu.css");
}
return new View("downloadfullsize_header_block.html");
}
static function sidebar_blocks($theme) {

View File

@ -1,3 +1,3 @@
name = DownloadFullsize
description = Displays a link to download the fullsize version of the current photo.
name = "DownloadFullsize"
description = "Displays a link to download the fullsize version of the current photo."
version = 1

View File

@ -1,3 +0,0 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<link rel="stylesheet" type="text/css" href="<?= url::file("modules/downloadfullsize/css/downloadfullsize_menu.css") ?>" />