diff --git a/modules/slideshow/controllers/slideshow.php b/modules/slideshow/controllers/slideshow.php deleted file mode 100644 index 8c4d1f46..00000000 --- a/modules/slideshow/controllers/slideshow.php +++ /dev/null @@ -1,64 +0,0 @@ -_build_image_list($item->children()))); - } - - function photo($item_id) { - $item = ORM::factory("item", $item_id); - access::required("view", $item); - - $images = $this->_build_image_list($item->parent()->children()); - $this_photo = array_search($item_id, array_keys($images)); - $images = array_merge(array_slice($images, $this_photo), array_slice($images, 0, $this_photo)); - - print json_encode($images); - } - - function tag($tag_id) { - $tag = ORM::factory("tag", $tag_id); - print json_encode(array_values($this->_build_image_list($tag->items()))); - } - - private function _build_image_list($children) { - $resizes = array(); - foreach ($children as $child) { - switch($child->type) { - case "album": - if (!empty($child->album_cover_item_id)) { - $cover = ORM::factory("item", $child->album_cover_item_id); - $resizes[$child->id] = array("url" => $cover->resize_url(), - "width" => $cover->resize_width, "height" => $cover->resize_height); - } - break; - case "photo": - $resizes[$child->id] = array("url" => $child->resize_url(), - "width" => $child->resize_width, "height" => $child->resize_height); - break; - } - } - - return $resizes; - } -} diff --git a/modules/slideshow/css/buttons.png b/modules/slideshow/css/buttons.png deleted file mode 100644 index 6fe50e1b..00000000 Binary files a/modules/slideshow/css/buttons.png and /dev/null differ diff --git a/modules/slideshow/css/slideshow.css b/modules/slideshow/css/slideshow.css deleted file mode 100644 index f635c244..00000000 --- a/modules/slideshow/css/slideshow.css +++ /dev/null @@ -1,101 +0,0 @@ -#gSlideshowOverlay { - border: none; - margin: 0; - padding: 0; - background-color: #000; - position: absolute; - top: 0px; - left: 0px; - width: 100%; - height: 100%; - opacity: 0.7; - filter: alpha(opacity=70); - -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; - -moz-background-inline-policy: -moz-initial; - z-index: 2001; -} - -#gSlideShowImages { - z-index: 2002; -} - -#gSlideShowImages img { - display: none; - float: left; - z-index: 2002; -} - -#gSlideshowButtonPanel { - bottom: .5em; - position: absolute; - width: 100%; - z-index: 2004; -} - -#gSlideshowButtonPanel div { - background-color: #000; - color: #fff; - filter: alpha(opacity=70); - height: 55px; - margin: 0 auto; - opacity: 0.7; - width: 232px; - z-index: 2004; -} - -#gSlideshowPrevious, -#gSlideshowPause, -#gSlideshowResume, -#gSlideshowResume, -#gSlideshowClose, -#gSlideshowNext { - background-image: url(buttons.png); - background-repeat: no-repeat; - display: block; - float: left; - height: 55px; - overflow: hidden; - text-indent: -99999px; - width: 58px; -} - -#gSlideshowPrevious { - background-position: 0 0; -} - -#gSlideshowPrevious:hover { - background-position: -58px 0; -} - -#gSlideshowPause { - background-position: -174px 0; -} - -#gSlideshowPause:hover { - background-position: -116px 0; -} - -#gSlideshowResume { - background-position: -290px 0; - display: none; -} - -#gSlideshowResume:hover { - background-position: -232px 0; -} - -#gSlideshowNext { - background-position: -406px 0; -} - -#gSlideshowNext:hover { - background-position: -348px 0; -} - -#gSlideshowClose { - background-position: -464px 0; -} - -#gSlideshowClose:hover { - background-position: -522px 0; -} diff --git a/modules/slideshow/helpers/slideshow_event.php b/modules/slideshow/helpers/slideshow_event.php deleted file mode 100644 index 926b4da1..00000000 --- a/modules/slideshow/helpers/slideshow_event.php +++ /dev/null @@ -1,47 +0,0 @@ -item(); - $menu->append(Menu::factory("link") - ->id("slideshow") - ->label(t("View slideshow")) - ->url(url::site("slideshow/album/{$item->id}")) - ->css_id("gSlideshowLink")); - } - - static function photo_menu($menu, $theme) { - $item = $theme->item(); - $menu->append(Menu::factory("link") - ->id("slideshow") - ->label(t("View slideshow")) - ->url(url::site("slideshow/photo/{$item->id}")) - ->css_id("gSlideshowLink")); - } - - static function tag_menu($menu, $theme) { - $tag = $theme->tag(); - $menu->append(Menu::factory("link") - ->id("slideshow") - ->label(t("View slideshow")) - ->url(url::site("slideshow/tag/{$tag->id}")) - ->css_id("gSlideshowLink")); - } -} diff --git a/modules/slideshow/helpers/slideshow_installer.php b/modules/slideshow/helpers/slideshow_installer.php deleted file mode 100644 index a71ea183..00000000 --- a/modules/slideshow/helpers/slideshow_installer.php +++ /dev/null @@ -1,30 +0,0 @@ -script("slideshow.js"); - $theme->css("slideshow.css"); - } -} diff --git a/modules/slideshow/js/slideshow.js b/modules/slideshow/js/slideshow.js deleted file mode 100644 index 1dffbf5a..00000000 --- a/modules/slideshow/js/slideshow.js +++ /dev/null @@ -1,145 +0,0 @@ -(function($) { - $.gallery_slideshow = { - interval: 4000, - timer: null, - images: [], - current: -1, - init: function(data) { - var self = this; - var size = $.gallery_get_viewport_size(); - $("body").append( - '
' + - '