Modified how CSS code is inserted.
This commit is contained in:
parent
3472ebc081
commit
46a6db4c9f
@ -19,11 +19,9 @@
|
|||||||
*/
|
*/
|
||||||
class downloadfullsize_theme {
|
class downloadfullsize_theme {
|
||||||
static function head($theme) {
|
static function head($theme) {
|
||||||
if (!$theme->item()) {
|
if ($theme->item && access::can("view_full", $theme->item)) {
|
||||||
return;
|
$theme->css("downloadfullsize_menu.css");
|
||||||
}
|
}
|
||||||
|
|
||||||
return new View("downloadfullsize_header_block.html");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static function sidebar_blocks($theme) {
|
static function sidebar_blocks($theme) {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
name = DownloadFullsize
|
name = "DownloadFullsize"
|
||||||
description = Displays a link to download the fullsize version of the current photo.
|
description = "Displays a link to download the fullsize version of the current photo."
|
||||||
version = 1
|
version = 1
|
||||||
|
@ -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") ?>" />
|
|
Reference in New Issue
Block a user