Added video view within lightbox, Comments box fixed, updated CSS classes
This commit is contained in:
parent
f8c96bd93f
commit
b02487e97e
@ -1,19 +1,23 @@
|
||||
/* 3nids specific */
|
||||
.gHeadMap img {
|
||||
.g-movie {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.g-map-head img {
|
||||
display: block;
|
||||
margin: 3px;
|
||||
}
|
||||
|
||||
.gHeadMap a {
|
||||
.g-map-head a {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.gCommentThumb{
|
||||
.g-comment-thumb{
|
||||
padding: 5px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.modcontent{
|
||||
.g-fancy-iframe-body{
|
||||
background-color: #333333;
|
||||
}
|
||||
|
||||
|
@ -121,9 +121,9 @@ div#fancy_close {
|
||||
|
||||
a#fancy_left, a#fancy_right {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
height: 100%;
|
||||
width: 35%;
|
||||
top: 15px;
|
||||
height: 50px;
|
||||
width: 30%;
|
||||
cursor: pointer;
|
||||
z-index: 111;
|
||||
display: none;
|
||||
|
@ -466,15 +466,6 @@ li.g-error select {
|
||||
|
||||
/* Footer content ~~~~~~~~~~~~~~~~~~~~~~~~ */
|
||||
|
||||
#g-banner #g-login-menu li,
|
||||
#g-footer #g-credits li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#g-banner #g-login-menu li {
|
||||
padding-left: 1.2em;
|
||||
}
|
||||
|
||||
#g-footer #g-credits li {
|
||||
padding-right: 1.2em;
|
||||
}
|
||||
@ -500,6 +491,10 @@ li.g-error select {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#g-banner #g-login-menu li {
|
||||
padding-left: 1.2em;
|
||||
}
|
||||
|
||||
/* Site Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
||||
|
||||
#g-site-menu {
|
||||
|
16
themes/3nids_theme/3nids/js/jquery.fancybox.js
vendored
16
themes/3nids_theme/3nids/js/jquery.fancybox.js
vendored
@ -26,6 +26,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
var elem, opts, busy = false, imagePreloader = new Image, loadingTimer, loadingFrame = 1, imageRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i;
|
||||
var isIE = ($.browser.msie && parseInt($.browser.version.substr(0,1)) < 8);
|
||||
|
||||
@ -60,7 +61,7 @@
|
||||
var item = {};
|
||||
|
||||
if (!elem.rel || elem.rel == '') {
|
||||
var item = {href: elem.href, title: elem.title, modules: elem.name};
|
||||
var item = {href: elem.href, title: elem.title, modules: elem.name, fancyclass: elem.className};
|
||||
|
||||
if ($(elem).children("img:first").length) {
|
||||
item.orig = $(elem).children("img:first");
|
||||
@ -75,7 +76,7 @@
|
||||
var item = {};
|
||||
|
||||
for (var i = 0; i < subGroup.length; i++) {
|
||||
item = {href: subGroup[i].href, title: subGroup[i].title, modules: subGroup[i].name};
|
||||
item = {href: subGroup[i].href, title: subGroup[i].title, modules: subGroup[i].name, fancyclass: subGroup[i].className};
|
||||
|
||||
if ($(subGroup[i]).children("img:first").length) {
|
||||
item.orig = $(subGroup[i]).children("img:first");
|
||||
@ -126,9 +127,16 @@
|
||||
_proceed_image();
|
||||
});
|
||||
}
|
||||
} else if (href.match("iframe") || opts.itemArray[opts.itemCurrent].fancyclass.indexOf("iframe") >= 0) {
|
||||
if (href.match('width=') && href.match('height=')){
|
||||
var ifrWidth = parseInt(href.substring(href.indexOf('width=')+6,href.indexOf('endwidth')))+20;
|
||||
var ifrHeight = parseInt(href.substring(href.indexOf('height=')+7,href.indexOf('endheight')))+50;
|
||||
}else{
|
||||
var ifrWidth= opts.frameWidth;
|
||||
var ifrHeight= opts.frameHeight;
|
||||
}
|
||||
|
||||
} else if (href.match("iframe") || elem.className.indexOf("iframe") >= 0) {
|
||||
_set_content('<iframe id="fancy_frame" onload="$.fn.fancybox.showIframe()" name="fancy_iframe' + Math.round(Math.random()*1000) + '" frameborder="0" hspace="0" src="' + href + '"></iframe>', opts.frameWidth, opts.frameHeight);
|
||||
_set_content('<iframe id="fancy_frame" onload="$.fn.fancybox.showIframe()" name="fancy_iframe' + Math.round(Math.random()*1000) + '" frameborder="0" hspace="0" src="' + href + '"></iframe>', ifrWidth, ifrHeight);
|
||||
|
||||
} else {
|
||||
$.get(href, function(data) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
name = "3nids theme"
|
||||
description = "Default theme modified using jquery lightbox slideshow."
|
||||
version = 1
|
||||
version = 2
|
||||
author = "3nids"
|
||||
site = 1
|
||||
admin = 0
|
||||
|
@ -15,12 +15,7 @@
|
||||
<? if (count($children)): ?>
|
||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>"></a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
<? foreach ($children as $i => $child): ?>
|
||||
<? $item_class = "g-photo"; ?>
|
||||
@ -29,38 +24,14 @@
|
||||
<? endif ?>
|
||||
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>">
|
||||
<?= $theme->thumb_top($child) ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>">
|
||||
<?= $child->thumb_img(array("class" => "g-thumbnail")) ?></a>
|
||||
<? if ($user->admin): ?>
|
||||
<br><a href="<?=$child->url()?>">view/edit</a>
|
||||
<? endif ?>
|
||||
<? else: ?>
|
||||
<a href="<?= $child->url() ?>">
|
||||
<?= $child->thumb_img(array("class" => "g-thumbnail")) ?>
|
||||
<h2><span></span><?= html::clean($child->title) ?></h2>
|
||||
</a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"album") ?>
|
||||
<?= $theme->thumb_bottom($child) ?>
|
||||
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
||||
<? if ($child->is_photo() && module::is_active("comment") && module::is_active("comment_3nids")) :?>
|
||||
<ul class="g-metadata">
|
||||
<li><a href="<?=url::site("comments_3nids?item_id={$child->id}")?>" class="iframe fancyclass"><?=comment_3nids::count($child) ?> <?=t("comments")?></a></li>
|
||||
</ul>
|
||||
<? endif ?>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>"></a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
<? else: ?>
|
||||
<? if ($user->admin || access::can("add", $item)): ?>
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
@ -8,7 +7,10 @@
|
||||
<?= $theme->css("yui/reset-fonts-grids.css") ?>
|
||||
<?= $theme->css("superfish/css/superfish.css") ?>
|
||||
<?= $theme->css("themeroller/ui.base.css") ?>
|
||||
<?= $theme->css("gallery.common.css") ?>
|
||||
<?= $theme->css("jquery.fancybox.css") ?>
|
||||
<?= $theme->css("screen.css") ?>
|
||||
<?= $theme->css("3nids.css") ?>
|
||||
<?= $theme->script("jquery.js") ?>
|
||||
<?= $theme->script("jquery.form.js") ?>
|
||||
<?= $theme->script("jquery-ui.js") ?>
|
||||
@ -19,7 +21,6 @@
|
||||
</script>
|
||||
<?= $theme->script("gallery.ajax.js") ?>
|
||||
<?= $theme->script("gallery.dialog.js") ?>
|
||||
<?= $theme->script("gallery.form.js") ?>
|
||||
<?= $theme->script("superfish/js/superfish.js") ?>
|
||||
<?= $theme->script("jquery.localscroll.js") ?>
|
||||
<?= $theme->script("jquery.easing.js") ?>
|
||||
@ -27,14 +28,14 @@
|
||||
<?= $theme->script("ui.init.js") ?>
|
||||
<?= $theme->head() ?>
|
||||
</head>
|
||||
<body class="modcontent">
|
||||
<div class="g-CommentThumb"> <img src="<?=$thumb?>"></div>
|
||||
<a href="<?= url::site("form/add/comments_3nids/{$item_id}") ?>" id="gAddCommentButton"
|
||||
class="g-ButtonLink ui-corner-all ui-icon-left ui-state-default right">
|
||||
<body class="g-fancy-iframe-body">
|
||||
<div class="g-comment-thumb"> <img src="<?=$thumb?>"></div>
|
||||
<a href="<?= url::site("form/add/comments_3nids/{$item_id}") ?>" id="g-admin-comment-button"
|
||||
class="g-button ui-corner-all ui-icon-left ui-state-default right">
|
||||
<span class="ui-icon ui-icon-comment"></span>
|
||||
<?= t("Add a comment") ?>
|
||||
</a>
|
||||
<div id="gCommentDetail">
|
||||
<div id="g-comment-detail">
|
||||
<? if (!$comments->count()): ?>
|
||||
<p id="g-NoCommentsYet">
|
||||
<?= t("No comments yet.") ?>
|
||||
@ -42,11 +43,11 @@
|
||||
<? endif ?>
|
||||
<ul>
|
||||
<? foreach ($comments as $comment): ?>
|
||||
<li id="g-Comment-<?= $comment->id ?>" class="g-CommentBox">
|
||||
<li id="g-Comment-<?= $comment->id ?>" class="g-comment-box">
|
||||
<?= t('<b>%name</b> <small>%date</small>: ',
|
||||
array("date" => date(module::get_var("gallery", "date_time_format", "Y-M-d H:i:s"), $comment->created),
|
||||
"name" => html::clean($comment->author_name()))); ?>
|
||||
<div class="gComment">
|
||||
<div class="g-comment">
|
||||
<?= nl2br(html::purify($comment->text)) ?>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -14,12 +14,7 @@
|
||||
<ul id="g-album-grid" class="ui-helper-clearfix">
|
||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>"></a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
|
||||
<? foreach ($children as $i => $child): ?>
|
||||
@ -27,52 +22,16 @@
|
||||
<!--<li class="g-Item <?= $child->is_album() ? "g-album" : "" ?>">!-->
|
||||
<li id="g-item-id-<?= $child->id ?>" class="g-item g-album">
|
||||
<?= $theme->thumb_top($child) ?>
|
||||
<? if (!($child->is_album())): ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>">
|
||||
<? else: ?>
|
||||
<a href="<?= $child->url() ?>">
|
||||
<? endif ?>
|
||||
<img id="g-photo-id-<?= $child->id ?>" class="g-Thumbnail"
|
||||
alt="photo" src="<?= $child->thumb_url() ?>"
|
||||
width="<?= $child->thumb_width ?>"
|
||||
height="<?= $child->thumb_height ?>" />
|
||||
</a>
|
||||
<a href="<?= $child->parent()->url() ?>?show=<?= $child->id?>"><h2><span></span><?= $child->parent()->title ?></h2></a>
|
||||
<? if ($user->admin): ?>
|
||||
<a href="<?=$child->url()?>">view</a>
|
||||
<? endif ?>
|
||||
<? else: ?>
|
||||
<a href="<?= $child->url() ?>">
|
||||
<img id="g-photo-id-<?= $child->id ?>" class="g-thumbnail"
|
||||
alt="photo" src="<?= $child->thumb_url() ?>"
|
||||
width="<?= $child->thumb_width ?>"
|
||||
height="<?= $child->thumb_height ?>" />
|
||||
<h2><span></span><?= html::clean($child->title) ?></h2>
|
||||
</a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"dynamic") ?>
|
||||
<?= $theme->thumb_bottom($child) ?>
|
||||
<?= $theme->context_menu($child, "#g-ItemId-{$child->id} .g-Thumbnail") ?>
|
||||
<? if ($child->is_photo() && module::is_active("comment") && module::is_active("comment_3nids")) :?>
|
||||
<ul class="g-metadata">
|
||||
<li><a href="<?=url::site("comments_3nids?item_id={$child->id}")?>" class="iframe fancyclass"><?=comment_3nids::count($child) ?> <?=t("comments")?></a></li>
|
||||
</ul>
|
||||
<? endif ?>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>"></a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
</ul>
|
||||
<?= $theme->dynamic_bottom() ?>
|
||||
|
||||
<?= $theme->pager() ?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$item->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$item->id}") . ";;comment_count::" . comment_3nids::count($item) . ";;" ;} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("3nids_theme")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$item->id}") . ";;comment_count::" . comment_3nids::count($item) . ";;" ;} ?>
|
||||
|
||||
<div class="g-image-block">
|
||||
<a href="<?= $item->file_url() ?>" class="fancyclass" title="<?= $item->parent()->title ?>, <?=$item->parent()->description?>" name="<?=$fancymodule?>">
|
||||
|
66
themes/3nids_theme/3nids/views/movie_3nids.html.php
Executable file
66
themes/3nids_theme/3nids/views/movie_3nids.html.php
Executable file
@ -0,0 +1,66 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<?= $theme->css("yui/reset-fonts-grids.css") ?>
|
||||
<?= $theme->css("superfish/css/superfish.css") ?>
|
||||
<?= $theme->css("themeroller/ui.base.css") ?>
|
||||
<?= $theme->css("gallery.common.css") ?>
|
||||
<?= $theme->css("jquery.fancybox.css") ?>
|
||||
<?= $theme->css("screen.css") ?>
|
||||
<?= $theme->css("3nids.css") ?>
|
||||
<?= $theme->script("jquery.js") ?>
|
||||
<?= $theme->script("jquery.form.js") ?>
|
||||
<?= $theme->script("jquery-ui.js") ?>
|
||||
<?= $theme->script("gallery.common.js") ?>
|
||||
<? /* MSG_CANCEL is required by gallery.dialog.js */ ?>
|
||||
<script type="text/javascript">
|
||||
var MSG_CANCEL = <?= t('Cancel')->for_js() ?>;
|
||||
</script>
|
||||
<?= $theme->script("gallery.ajax.js") ?>
|
||||
<?= $theme->script("gallery.dialog.js") ?>
|
||||
<?= $theme->script("superfish/js/superfish.js") ?>
|
||||
<?= $theme->script("jquery.localscroll.js") ?>
|
||||
<?= $theme->script("jquery.easing.js") ?>
|
||||
<?= $theme->script("jquery.fancybox.js") ?>
|
||||
<?= $theme->script("ui.init.js") ?>
|
||||
<?= $theme->script("flowplayer.js") ?>
|
||||
<?= $theme->head() ?>
|
||||
</head>
|
||||
<body class="g-fancy-iframe-body">
|
||||
<center>
|
||||
<div id="g-item">
|
||||
|
||||
<?= html::anchor($item->file_url(true), "", $attrs) ?>
|
||||
<script>
|
||||
flowplayer(
|
||||
"<?= $attrs["id"] ?>",
|
||||
{
|
||||
src: "<?= url::abs_file("lib/flowplayer.swf") ?>",
|
||||
wmode: "transparent"
|
||||
},
|
||||
{
|
||||
plugins: {
|
||||
h264streaming: {
|
||||
url: "<?= url::abs_file("lib/flowplayer.h264streaming.swf") ?>"
|
||||
},
|
||||
controls: {
|
||||
autoHide: 'always',
|
||||
hideDelay: 2000
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
|
||||
<div id="g-info">
|
||||
<h1><?= html::purify($item->title) ?></h1>
|
||||
<div><?= nl2br(html::purify($item->description)) ?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -133,7 +133,7 @@
|
||||
<? endif ?>
|
||||
|
||||
<? if (module::is_active("tagsmap")): ?>
|
||||
<ul class="gHeadMap">
|
||||
<ul class="g-map-head">
|
||||
<a href="<?= url::site("tagsmap/googlemap") ?>"><img src="<?= $theme->url("images/map.png") ?>"></a>
|
||||
</ul>
|
||||
<? endif ?>
|
||||
|
@ -13,60 +13,19 @@
|
||||
<ul id="g-album-grid" class="ui-helper-clearfix">
|
||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>"></a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
<? foreach ($items as $child): ?>
|
||||
<li id="g-item-id-<?= $child->id ?>" class="g-item g-album">
|
||||
<?= $theme->thumb_top($child) ?>
|
||||
<? if (!($child->is_album())): ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>">
|
||||
<? else: ?>
|
||||
<a href="<?= $child->url() ?>">
|
||||
<? endif ?>
|
||||
<img id="g-photo-id-<?= $child->id ?>" class="g-thumbnail"
|
||||
alt="photo" src="<?= $child->thumb_url() ?>"
|
||||
width="<?= $child->thumb_width ?>"
|
||||
height="<?= $child->thumb_height ?>" />
|
||||
</a>
|
||||
<a href="<?= $child->parent()->url() ?>?show=<?= $child->id?>"><h2><span></span><?= $child->parent()->title ?></h2></a>
|
||||
<? if ($user->admin): ?>
|
||||
<a href="<?=$child->url()?>">view</a>
|
||||
<? endif ?>
|
||||
<? else: ?>
|
||||
<a href="<?= $child->url() ?>">
|
||||
<img id="g-photo-id-<?= $child->id ?>" class="g-thumbnail"
|
||||
alt="photo" src="<?= $child->thumb_url() ?>"
|
||||
width="<?= $child->thumb_width ?>"
|
||||
height="<?= $child->thumb_height ?>" />
|
||||
<h2><span></span><?= html::clean($child->title) ?></h2>
|
||||
</a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"dynamic") ?>
|
||||
<?= $theme->thumb_bottom($child) ?>
|
||||
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
||||
<? if ($child->is_photo() && module::is_active("comment") && module::is_active("comment_3nids")) :?>
|
||||
<ul class="gMetadata">
|
||||
<li><a href="<?=url::site("comments_3nids?item_id={$child->id}")?>" class="iframe fancyclass"><?=comment_3nids::count($child) ?> <?=t("comments")?></a></li>
|
||||
</ul>
|
||||
<? endif ?>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
<? $fancymodule = ""; ?>
|
||||
<? if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
|
||||
<? if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
|
||||
<a href="<?=$child->file_url()?>" rel="fancygroup" class="fancyclass" title="<?= $child->parent()->title ?>, <?=$child->parent()->description?>" name="<?=$fancymodule ?>"></a>
|
||||
<? endif ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
</ul>
|
||||
<?= $theme->pager() ?>
|
||||
|
@ -1 +1 @@
|
||||
Updated CSS classes
|
||||
Added video view within lightbox, Comments box fixed, updated CSS classes
|
@ -1,3 +0,0 @@
|
||||
name = "Comments for 3nids theme"
|
||||
description = "Allows the use of comments within 3nids theme"
|
||||
version = 1
|
39
themes/3nids_theme/modules/theme_3nids/controllers/movie_3nids.php
Executable file
39
themes/3nids_theme/modules/theme_3nids/controllers/movie_3nids.php
Executable file
@ -0,0 +1,39 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.");
|
||||
/**
|
||||
* Gallery - a web based photo album viewer and editor
|
||||
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
class Movie_3nids_Controller extends REST_Controller {
|
||||
protected $resource_type = "movie_3nids";
|
||||
|
||||
|
||||
/**
|
||||
* Display comments based on criteria.
|
||||
* @see REST_Controller::_index()
|
||||
*/
|
||||
public function _index() {
|
||||
$item_id = $this->input->get('item_id');
|
||||
$item = ORM::factory("item", $item_id);
|
||||
access::required("view", $item);
|
||||
|
||||
$view = new Theme_View("movie_3nids.html", "page");
|
||||
$view->item = $item;
|
||||
$view->attrs = array("class" => "g-movie", "id" => "g-movie-id-{$item->id}", "style" => "display:block;width:{$item->width}px;height:{$item->height}px");
|
||||
print $view;
|
||||
break;
|
||||
}
|
||||
}
|
76
themes/3nids_theme/modules/theme_3nids/helpers/theme_3nids.php
Executable file
76
themes/3nids_theme/modules/theme_3nids/helpers/theme_3nids.php
Executable file
@ -0,0 +1,76 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.");
|
||||
/**
|
||||
* Gallery - a web based photo album viewer and editor
|
||||
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This is the API for handling comments.
|
||||
*
|
||||
* Note: by design, this class does not do any permission checking.
|
||||
*/
|
||||
class theme_3nids_Core {
|
||||
|
||||
public function fancylink($item, $viewtype="album") {
|
||||
//viewtype = album || dynamic || header
|
||||
$link = "";
|
||||
access::required("view", $item);
|
||||
|
||||
|
||||
|
||||
if ($item->is_photo() || ($item->is_movie()) && module::is_active("theme_3nids")){
|
||||
$fancymodule = "";
|
||||
if (module::is_active("exif")){
|
||||
$fancymodule .= "exif::" . url::site("exif/show/{$item->id}") . ";;";}
|
||||
if (module::is_active("comment") && module::is_active("theme_3nids")){
|
||||
$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$item->id}") . ";;comment_count::" . comment_3nids::count($item) . ";;" ;}
|
||||
if ($item->is_photo()){
|
||||
$link .= "<a href=\"" . $item->file_url() ."\" rel=\"fancygroup\" class=\"fancyclass\" title=\"" . $item->parent()->title .", " . $item->parent()->description ."\" name=\"" . $fancymodule . " \">";
|
||||
}else{
|
||||
$link .= "<a href=\"" . url::site("movie_3nids?item_id={$item->id}") . "&width=" . $item->width . "endwidth&height=" . $item->height . "endheight\" rel=\"fancygroup\" class=\"fancyclass iframe\" title=\"" . $item->parent()->title .", " . $item->parent()->description ."\" name=\"" . $fancymodule . " \">";
|
||||
}
|
||||
} elseif( $item->is_album() && $viewtype != "header"){
|
||||
$link .= "<a href=\"" . $item->url() . "\">";
|
||||
}
|
||||
|
||||
if($viewtype != "header"){
|
||||
$link .= $item->thumb_img(array("class" => "g-thumbnail")) . "</a>";
|
||||
if( $item->is_album() && $viewtype == "album" ){
|
||||
$link .= "<a href=\"" . $item->url() . "?show=" . $item->id . "\"><h2><span></span>" . html::clean($item->title) . "</h2></a>";
|
||||
} elseif ( !($item->is_album()) && $viewtype == "dynamic") {
|
||||
$link .= "<a href=\"" . $item->parent()->url() . "?show=" . $item->id . "\"><h2><span></span>" . html::clean($item->parent()->title) . "</h2></a>";
|
||||
}
|
||||
if ( !($item->is_album()) && $user->admin) {
|
||||
$link .= "<a href=\"" . $item->url() ."\">edit</a>";
|
||||
}
|
||||
|
||||
if (($item->is_photo() || $item->is_movie()) && module::is_active("comment") && module::is_active("theme_3nids")) {
|
||||
$link .= "<ul class=\"g-metadata\"><li><a href=\"" . url::site("comments_3nids?item_id={$item->id}") ."\" class=\"iframe fancyclass\">" . comment_3nids::count($item) . t("comments") . "</a></li></ul>";
|
||||
}
|
||||
}else{
|
||||
$link .= "</a>";
|
||||
}
|
||||
return $link;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
3
themes/3nids_theme/modules/theme_3nids/module.info
Executable file
3
themes/3nids_theme/modules/theme_3nids/module.info
Executable file
@ -0,0 +1,3 @@
|
||||
name = "3nids theme"
|
||||
description = "Module needed to display correctly 3nids theme (especialy videos and comments)"
|
||||
version = 1
|
Reference in New Issue
Block a user