From 71dbb2cf67962d7272093cfbe6e229ee91cce7ac Mon Sep 17 00:00:00 2001 From: rWatcher Date: Sat, 13 Jun 2009 03:58:54 +0800 Subject: [PATCH] Initial commit Signed-off-by: Bharat Mediratta --- .../helpers/embedlinks_installer.php | 27 ++++++++ .../embedlinks/helpers/embedlinks_theme.php | 38 +++++++++++ modules/embedlinks/module.info | 3 + .../views/embedlinks_album_block.html.php | 18 ++++++ .../views/embedlinks_photo_block.html.php | 63 +++++++++++++++++++ 5 files changed, 149 insertions(+) create mode 100644 modules/embedlinks/helpers/embedlinks_installer.php create mode 100644 modules/embedlinks/helpers/embedlinks_theme.php create mode 100644 modules/embedlinks/module.info create mode 100644 modules/embedlinks/views/embedlinks_album_block.html.php create mode 100644 modules/embedlinks/views/embedlinks_photo_block.html.php 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +