diff --git a/modules/embedlinks/helpers/embedlinks_installer.php b/modules/embedlinks/helpers/embedlinks_installer.php new file mode 100644 index 00000000..f6a3d4ef --- /dev/null +++ b/modules/embedlinks/helpers/embedlinks_installer.php @@ -0,0 +1,27 @@ +item()->is_album()) { + $block = new Block(); + $block->css_id = "gMetadata"; + $block->title = t("Links"); + $block->content = new View("embedlinks_album_block.html"); + return $block; + } + } + static function photo_bottom($theme) { + $block = new Block(); + $block->css_id = "gMetadata"; + $block->title = t("Links"); + $block->content = new View("embedlinks_photo_block.html"); + return $block; + } + +} diff --git a/modules/embedlinks/module.info b/modules/embedlinks/module.info new file mode 100644 index 00000000..a1636ff9 --- /dev/null +++ b/modules/embedlinks/module.info @@ -0,0 +1,3 @@ +name = EmbedLinks +description = Display HTML code to embed links to albums/images into other web pages. +version = 1 diff --git a/modules/embedlinks/views/embedlinks_album_block.html.php b/modules/embedlinks/views/embedlinks_album_block.html.php new file mode 100644 index 00000000..e67c71c8 --- /dev/null +++ b/modules/embedlinks/views/embedlinks_album_block.html.php @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + +
diff --git a/modules/embedlinks/views/embedlinks_photo_block.html.php b/modules/embedlinks/views/embedlinks_photo_block.html.php new file mode 100644 index 00000000..be73a634 --- /dev/null +++ b/modules/embedlinks/views/embedlinks_photo_block.html.php @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
type}s/{$item->id}") ?>">Click Here" readonly>
type}s/{$item->id}") ?>">thumb_url(true) ?>">" readonly>
type}s/{$item->id}") ?>">resize_url(true) ?>">" readonly>