Permalink
Browse files

Внедрён и доработан плагин галереи от direx'а

  • Loading branch information...
Denis Akhrameyev
Denis Akhrameyev committed May 14, 2016
1 parent bbd1a7b commit 6b40729a6ad4a1313de27cac8b97fefbcd4a2757
Showing with 3,043 additions and 19 deletions.
  1. +13 −0 README.md
  2. +6 −0 assets/plugins/gallery/fancybox/lib/jquery-1.10.1.min.js
  3. +4 −0 assets/plugins/gallery/fancybox/lib/jquery-1.9.0.min.js
  4. +13 −0 assets/plugins/gallery/fancybox/lib/jquery.mousewheel-3.0.6.pack.js
  5. BIN assets/plugins/gallery/fancybox/source/blank.gif
  6. BIN assets/plugins/gallery/fancybox/source/fancybox_loading.gif
  7. BIN assets/plugins/gallery/fancybox/source/fancybox_loading@2x.gif
  8. BIN assets/plugins/gallery/fancybox/source/fancybox_overlay.png
  9. BIN assets/plugins/gallery/fancybox/source/fancybox_sprite.png
  10. BIN assets/plugins/gallery/fancybox/source/fancybox_sprite@2x.png
  11. BIN assets/plugins/gallery/fancybox/source/helpers/fancybox_buttons.png
  12. +97 −0 assets/plugins/gallery/fancybox/source/helpers/jquery.fancybox-buttons.css
  13. +122 −0 assets/plugins/gallery/fancybox/source/helpers/jquery.fancybox-buttons.js
  14. +199 −0 assets/plugins/gallery/fancybox/source/helpers/jquery.fancybox-media.js
  15. +55 −0 assets/plugins/gallery/fancybox/source/helpers/jquery.fancybox-thumbs.css
  16. +162 −0 assets/plugins/gallery/fancybox/source/helpers/jquery.fancybox-thumbs.js
  17. +274 −0 assets/plugins/gallery/fancybox/source/jquery.fancybox.css
  18. +2,020 −0 assets/plugins/gallery/fancybox/source/jquery.fancybox.js
  19. +46 −0 assets/plugins/gallery/fancybox/source/jquery.fancybox.pack.js
  20. +2 −4 conf/gallery/albums.txt
  21. +1 −1 conf/gallery/config.json
  22. +5 −13 conf/gallery/photos.txt
  23. +6 −1 conf/pages/gallery.html.txt
  24. +3 −0 themes/2column/index.php
  25. +3 −0 themes/3column/index.php
  26. +3 −0 themes/404/index.php
  27. +3 −0 themes/default/index.php
  28. +3 −0 themes/landing/index.php
  29. +3 −0 themes/simple/index.php
  30. BIN uploads/gallery/source/1.jpg
  31. BIN uploads/gallery/source/14.jpg
  32. BIN uploads/gallery/source/15.jpg
  33. BIN uploads/gallery/source/16.jpg
  34. BIN uploads/gallery/source/17.jpg
  35. BIN uploads/gallery/source/2.jpg
  36. BIN uploads/gallery/source/3.jpg
  37. BIN uploads/gallery/source/4.jpg
  38. BIN uploads/gallery/source/5.jpg
  39. BIN uploads/gallery/source/6.jpg
  40. BIN uploads/gallery/source/7.jpg
  41. BIN uploads/gallery/source/8.jpg
  42. BIN uploads/gallery/source/9.jpg
  43. BIN uploads/gallery/thumbs/1.jpg
  44. BIN uploads/gallery/thumbs/14.jpg
  45. BIN uploads/gallery/thumbs/15.jpg
  46. BIN uploads/gallery/thumbs/16.jpg
  47. BIN uploads/gallery/thumbs/17.jpg
  48. BIN uploads/gallery/thumbs/2.jpg
  49. BIN uploads/gallery/thumbs/3.jpg
  50. BIN uploads/gallery/thumbs/4.jpg
  51. BIN uploads/gallery/thumbs/5.jpg
  52. BIN uploads/gallery/thumbs/6.jpg
  53. BIN uploads/gallery/thumbs/7.jpg
  54. BIN uploads/gallery/thumbs/8.jpg
  55. BIN uploads/gallery/thumbs/9.jpg
@@ -549,6 +549,19 @@ F.A.Q.
Выводит блок, где ID - идентификатор созданного блока.
### Галерея
Возможности:
1. Создание альбомов (имя альбома, описание альбома, автоматическая миниатюра для альбома (берется из фотографии внутри))
2. Добавление фото в альбом (загрузка сразу нескольких фото, имя фото, описания фото, перемещение фото из альбома в альбом)
3. Настройки (внешний вид альбомов, внешний вид фотографий)
Используйте команду
<?php if (function_exists("here_gallery")) here_gallery(); ?>
### Extended Comments
Собирает комментарии из нескольких новостей и/или разделов комментариев в одном месте.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,13 @@
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.6
*
* Requires: 1.2.2+
*/
(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=
d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,97 @@
#fancybox-buttons {
position: fixed;
left: 0;
width: 100%;
z-index: 8050;
}
#fancybox-buttons.top {
top: 10px;
}
#fancybox-buttons.bottom {
bottom: 10px;
}
#fancybox-buttons ul {
display: block;
width: 166px;
height: 30px;
margin: 0 auto;
padding: 0;
list-style: none;
border: 1px solid #111;
border-radius: 3px;
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
-moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
background: rgb(50,50,50);
background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51)));
background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
background: linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 );
}
#fancybox-buttons ul li {
float: left;
margin: 0;
padding: 0;
}
#fancybox-buttons a {
display: block;
width: 30px;
height: 30px;
text-indent: -9999px;
background-color: transparent;
background-image: url('fancybox_buttons.png');
background-repeat: no-repeat;
outline: none;
opacity: 0.8;
}
#fancybox-buttons a:hover {
opacity: 1;
}
#fancybox-buttons a.btnPrev {
background-position: 5px 0;
}
#fancybox-buttons a.btnNext {
background-position: -33px 0;
border-right: 1px solid #3e3e3e;
}
#fancybox-buttons a.btnPlay {
background-position: 0 -30px;
}
#fancybox-buttons a.btnPlayOn {
background-position: -30px -30px;
}
#fancybox-buttons a.btnToggle {
background-position: 3px -60px;
border-left: 1px solid #111;
border-right: 1px solid #3e3e3e;
width: 35px
}
#fancybox-buttons a.btnToggleOn {
background-position: -27px -60px;
}
#fancybox-buttons a.btnClose {
border-left: 1px solid #111;
width: 35px;
background-position: -56px 0px;
}
#fancybox-buttons a.btnDisabled {
opacity : 0.4;
cursor: default;
}
@@ -0,0 +1,122 @@
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for fancyBox object
var F = $.fancybox;
//Add helper object
F.helpers.buttons = {
defaults : {
skipSingle : false, // disables if gallery contains single image
position : 'top', // 'top' or 'bottom'
tpl : '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'
},
list : null,
buttons: null,
beforeLoad: function (opts, obj) {
//Remove self if gallery do not have at least two items
if (opts.skipSingle && obj.group.length < 2) {
obj.helpers.buttons = false;
obj.closeBtn = true;
return;
}
//Increase top margin to give space for buttons
obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30;
},
onPlayStart: function () {
if (this.buttons) {
this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn');
}
},
onPlayEnd: function () {
if (this.buttons) {
this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn');
}
},
afterShow: function (opts, obj) {
var buttons = this.buttons;
if (!buttons) {
this.list = $(opts.tpl).addClass(opts.position).appendTo('body');
buttons = {
prev : this.list.find('.btnPrev').click( F.prev ),
next : this.list.find('.btnNext').click( F.next ),
play : this.list.find('.btnPlay').click( F.play ),
toggle : this.list.find('.btnToggle').click( F.toggle ),
close : this.list.find('.btnClose').click( F.close )
}
}
//Prev
if (obj.index > 0 || obj.loop) {
buttons.prev.removeClass('btnDisabled');
} else {
buttons.prev.addClass('btnDisabled');
}
//Next / Play
if (obj.loop || obj.index < obj.group.length - 1) {
buttons.next.removeClass('btnDisabled');
buttons.play.removeClass('btnDisabled');
} else {
buttons.next.addClass('btnDisabled');
buttons.play.addClass('btnDisabled');
}
this.buttons = buttons;
this.onUpdate(opts, obj);
},
onUpdate: function (opts, obj) {
var toggle;
if (!this.buttons) {
return;
}
toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
//Size toggle button
if (obj.canShrink) {
toggle.addClass('btnToggleOn');
} else if (!obj.canExpand) {
toggle.addClass('btnDisabled');
}
},
beforeClose: function () {
if (this.list) {
this.list.remove();
}
this.list = null;
this.buttons = null;
}
};
}(jQuery));
Oops, something went wrong.

0 comments on commit 6b40729

Please sign in to comment.