From fc1f1ef3150ce52ec850c4941570fa6b130b8124 Mon Sep 17 00:00:00 2001 From: sinuca <55vitaminado@gmail.com> Date: Sun, 16 Mar 2014 23:21:01 -0300 Subject: "Favelog" theme added. Just a catalog with ordering functionality --- templates/themes/favelog/catalog.css | 75 ++++++ templates/themes/favelog/catalog.html | 79 ++++++ templates/themes/favelog/favelog.js | 64 +++++ templates/themes/favelog/info.php | 58 +++++ templates/themes/favelog/jquery.mixitup.min.js | 43 ++++ templates/themes/favelog/jquery.tooltipster.min.js | 1 + templates/themes/favelog/theme.php | 133 ++++++++++ templates/themes/favelog/thumb.png | Bin 0 -> 11543 bytes templates/themes/favelog/tooltipster.css | 274 +++++++++++++++++++++ 9 files changed, 727 insertions(+) create mode 100644 templates/themes/favelog/catalog.css create mode 100644 templates/themes/favelog/catalog.html create mode 100644 templates/themes/favelog/favelog.js create mode 100644 templates/themes/favelog/info.php create mode 100644 templates/themes/favelog/jquery.mixitup.min.js create mode 100644 templates/themes/favelog/jquery.tooltipster.min.js create mode 100644 templates/themes/favelog/theme.php create mode 100644 templates/themes/favelog/thumb.png create mode 100644 templates/themes/favelog/tooltipster.css diff --git a/templates/themes/favelog/catalog.css b/templates/themes/favelog/catalog.css new file mode 100644 index 00000000..29ff4cbf --- /dev/null +++ b/templates/themes/favelog/catalog.css @@ -0,0 +1,75 @@ +img { + float:none!important; + margin: auto; + margin-bottom: 12px; + /*max-height: 150px; + max-width: 200px;*/ + box-shadow: 0 0 4px rgba(0, 0, 0, 0.55); + border: 2px solid rgba(153, 153, 153, 0); +} + +/* +img:hover { + border: 2px solid rgba(153, 153, 153, 0.27); +} +*/ + +div.threads{ + text-align: center; + margin-left: -20px; +} + +div.thread { + display: inline-block; + vertical-align: top; + margin-bottom:25px; + margin-left: 20px; + margin-right: 15px; + text-align:center; + font-weight:normal; + width:205px; + overflow:hidden; + position: relative; + font-size:11px; + padding: 15px; + background: rgba(182, 182, 182, 0.12); + border: 2px solid rgba(111, 111, 111, 0.34); + max-height:300px; +} + +div.thread:hover { + background: #D6DAF0; + border-color: #B7C5D9; +} + +div.grid-size-small { + width: 200px; + max-width: 200px; + max-height: 350px; +} + +div.grid-size-large { + width: 300px; + max-width: 300px; + max-height: 450px; +} + +img.thread-image { + height: auto; + max-width: 100%; +} + +@media (max-width: 420px) { + ul#Grid { + padding-left: 18px; + } + div.thread { + width: auto; + margin-left: 0; + margin-right: 0; + + } + div.threads { + overflow: hidden; + } +} \ No newline at end of file diff --git a/templates/themes/favelog/catalog.html b/templates/themes/favelog/catalog.html new file mode 100644 index 00000000..02135b94 --- /dev/null +++ b/templates/themes/favelog/catalog.html @@ -0,0 +1,79 @@ +{% filter remove_whitespace %} + + + + + {{ settings.title }} + + + {% if config.url_favicon %}{% endif %} + {% if settings.use_tooltipster %}{% endif %} + + + {% if settings.use_tooltipster %} + {% else %} + + {% endif %} + + {% if config.default_stylesheet.1 != '' %}{% endif %} + {% if config.font_awesome %}{% endif %} + + + + {{ boardlist.top }} +
+

{{ settings.title }} (/{{ board }}/)

+
{{ settings.subtitle }}
+
+ + + + {% trans 'Sort by' %}: + + + {% trans 'Image size' %}: + +
+ +
+ +
+

Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2013 Tinyboard Development Group

+ + +{% endfilter %} diff --git a/templates/themes/favelog/favelog.js b/templates/themes/favelog/favelog.js new file mode 100644 index 00000000..5497cb4a --- /dev/null +++ b/templates/themes/favelog/favelog.js @@ -0,0 +1,64 @@ +$().ready(function(){ + + $("#selectorzilla").change(function(){ + sheit = this.value; + $("#sort-"+sheit).trigger("click"); + }); + + $("#imgurzilla").change(function(){ + sheit = this.value; + if (sheit == "small") { + old = "large"; + } else { + old = "small"; + } + $(".grid-li").removeClass("grid-size-"+old); + $(".grid-li").addClass("grid-size-"+sheit); + }); + + $('#Grid').mixitup({ + onMixEnd: function(){ + if(use_tooltipster) { + buildTooltipster(); + } + } + }); + + if(use_tooltipster) { + buildTooltipster(); + } + +}); + +function buildTooltipster(){ + $(".thread-image").each(function(){ + subject = $(this).attr('data-subject'); + name = $(this).attr('data-name'); + muhdifference = $(this).attr('data-muhdifference'); + last_reply = $(this).attr('data-last-reply'); + last_subject = $(this).attr('data-last-subject'); + last_name = $(this).attr('data-last-name'); + last_difference = $(this).attr('data-last-difference'); + muh_body = ''; + + if (subject) { + muh_body = muh_body + subject + ' por'; + } else { + muh_body = muh_body + 'Postado por'; + }; + muh_body = muh_body + ' ' + name + ' ' + muhdifference + ''; + + if (last_reply) { + muh_body = muh_body + '
'; + if (last_subject) { + muh_body = muh_body + last_subject + ' por'; + } else{ + muh_body = muh_body + 'Última resposta por'; + }; + muh_body = muh_body + ' ' + last_name + ' ' + last_difference + ''; + } + $(this).tooltipster({ + content: $(muh_body) + }); + }); +} \ No newline at end of file diff --git a/templates/themes/favelog/info.php b/templates/themes/favelog/info.php new file mode 100644 index 00000000..5e339930 --- /dev/null +++ b/templates/themes/favelog/info.php @@ -0,0 +1,58 @@ + 'Title', + 'name' => 'title', + 'type' => 'text', + 'default' => 'Favelog' + ); + + $__boards = listBoards(); + $__default_boards = Array(); + foreach ($__boards as $__board) + $__default_boards[] = $__board['uri']; + + $theme['config'][] = Array( + 'title' => 'Included boards', + 'name' => 'boards', + 'type' => 'text', + 'comment' => '(space seperated)', + 'default' => implode(' ', $__default_boards) + ); + + $theme['config'][] = Array( + 'title' => 'CSS file', + 'name' => 'css', + 'type' => 'text', + 'default' => 'catalog.css', + 'comment' => '(eg. "catalog.css")' + ); + + $theme['config'][] = Array( + 'title' => 'Update on new posts', + 'name' => 'update_on_posts', + 'type' => 'checkbox', + 'default' => true, + 'comment' => 'Without this checked, the catalog only updates on new threads.' + ); + + $theme['config'][] = Array( + 'title' => 'Use tooltipster', + 'name' => 'use_tooltipster', + 'type' => 'checkbox', + 'default' => true, + 'comment' => 'Check this if you wish to show a nice tooltip with info about the thread on mouse over. Texts only available in PT-br.' + ); + + // Unique function name for building everything + $theme['build_function'] = 'favelog_build'; diff --git a/templates/themes/favelog/jquery.mixitup.min.js b/templates/themes/favelog/jquery.mixitup.min.js new file mode 100644 index 00000000..5b4e4ce0 --- /dev/null +++ b/templates/themes/favelog/jquery.mixitup.min.js @@ -0,0 +1,43 @@ +/* +* MIXITUP - A CSS3 and JQuery Filter & Sort Plugin +* Version: 1.5.5 +* License: Creative Commons Attribution-NoDerivs 3.0 Unported - CC BY-ND 3.0 +* http://creativecommons.org/licenses/by-nd/3.0/ +* This software may be used freely on commercial and non-commercial projects with attribution to the author/copyright holder. +* Author: Patrick Kunka +* Copyright 2012-2013 Patrick Kunka, Barrel LLC, All Rights Reserved +* +* http://mixitup.io +*/ + +(function(d){function r(e,c,l,b,a){function f(){n.unbind("webkitTransitionEnd transitionend otransitionend oTransitionEnd");c&&x(c,l,b,a);a.startOrder=[];a.newOrder=[];a.origSort=[];a.checkSort=[];v.removeStyle(a.prefix+"filter, filter, "+a.prefix+"transform, transform, opacity, display").css(a.clean).removeAttr("data-checksum");window.atob||v.css({display:"none",opacity:"0"});n.removeStyle(a.prefix+"transition, transition, "+a.prefix+"perspective, perspective, "+a.prefix+"perspective-origin, perspective-origin, "+ +(a.resizeContainer?"height":""));"list"==a.layoutMode?(p.css({display:a.targetDisplayList,opacity:"1"}),a.origDisplay=a.targetDisplayList):(p.css({display:a.targetDisplayGrid,opacity:"1"}),a.origDisplay=a.targetDisplayGrid);a.origLayout=a.layoutMode;setTimeout(function(){v.removeStyle(a.prefix+"transition, transition");a.mixing=!1;if("function"==typeof a.onMixEnd){var b=a.onMixEnd.call(this,a);a=b?b:a}})}clearInterval(a.failsafe);a.mixing=!0;a.filter=e;if("function"==typeof a.onMixStart){var g=a.onMixStart.call(this, +a);a=g?g:a}for(var k=a.transitionSpeed,g=0;2>g;g++){var h=0==g?h=a.prefix:"";a.transition[h+"transition"]="all "+k+"ms linear";a.transition[h+"transform"]=h+"translate3d(0,0,0)";a.perspective[h+"perspective"]=a.perspectiveDistance+"px";a.perspective[h+"perspective-origin"]=a.perspectiveOrigin}var w=a.targetSelector,v=b.find(w);v.each(function(){this.data={}});var n=v.parent();n.css(a.perspective);a.easingFallback="ease-in-out";"smooth"==a.easing&&(a.easing="cubic-bezier(0.25, 0.46, 0.45, 0.94)"); +"snap"==a.easing&&(a.easing="cubic-bezier(0.77, 0, 0.175, 1)");"windback"==a.easing&&(a.easing="cubic-bezier(0.175, 0.885, 0.320, 1.275)",a.easingFallback="cubic-bezier(0.175, 0.885, 0.320, 1)");"windup"==a.easing&&(a.easing="cubic-bezier(0.6, -0.28, 0.735, 0.045)",a.easingFallback="cubic-bezier(0.6, 0.28, 0.735, 0.045)");g="list"==a.layoutMode&&null!=a.listEffects?a.listEffects:a.effects;Array.prototype.indexOf&&(a.fade=-1t.length?s=s.add(b.find(w+":visible")):v.each(function(){var a=d(this);if(r){var b=0;d.each(t,function(d){this.length? +a.is("."+this.join(", ."))&&b++:0g;g++)h=0==g?h=a.prefix:"",e[h+"transform"]=a.scale+" "+a.rotateX+" "+a.rotateY+" "+a.rotateZ,e[h+"filter"]=a.blur+" "+a.grayscale;q.css(e);m.each(function(){var b=this.data,c=d(this);c.hasClass("mix_tohide")?(b.preTX=b.origPos.left-b.hideInterPos.left,b.preTY=b.origPos.top-b.hideInterPos.top):(b.preTX=b.origPos.left-b.preInterPos.left,b.preTY=b.origPos.top-b.preInterPos.top);for(var e={},k=0;2>k;k++){var h= +0==k?h=a.prefix:"";e[h+"transform"]="translate("+b.preTX+"px,"+b.preTY+"px)"}c.css(e)});"list"==a.layoutMode?(b.addClass(a.listClass),b.removeClass(a.gridClass)):(b.addClass(a.gridClass),b.removeClass(a.listClass));setTimeout(function(){if(a.resizeContainer){for(var b={},c=0;2>c;c++){var e=0==c?e=a.prefix:"";b[e+"transition"]="all "+k+"ms ease-in-out";b.height=a.newHeight+"px"}n.css(b)}u.css("opacity",a.fade);q.css("opacity",1);q.each(function(){var b=this.data;b.tX=b.finalPos.left-b.showInterPos.left; +b.tY=b.finalPos.top-b.showInterPos.top;for(var c={},e=0;2>e;e++){var h=0==e?h=a.prefix:"";c[h+"transition-property"]=h+"transform, "+h+"filter, opacity";c[h+"transition-timing-function"]=a.easing+", linear, linear";c[h+"transition-duration"]=k+"ms";c[h+"transition-delay"]="0";c[h+"transform"]="translate("+b.tX+"px,"+b.tY+"px)";c[h+"filter"]="none"}d(this).css("-webkit-transition","all "+k+"ms "+a.easingFallback).css(c)});m.each(function(){var b=this.data;b.tX=0!=b.finalPrePos.left?b.finalPrePos.left- +b.preInterPos.left:0;b.tY=0!=b.finalPrePos.left?b.finalPrePos.top-b.preInterPos.top:0;for(var c={},e=0;2>e;e++){var h=0==e?h=a.prefix:"";c[h+"transition"]="all "+k+"ms "+a.easing;c[h+"transform"]="translate("+b.tX+"px,"+b.tY+"px)"}d(this).css("-webkit-transition","all "+k+"ms "+a.easingFallback).css(c)});b={};for(c=0;2>c;c++)e=0==c?e=a.prefix:"",b[e+"transition"]="all "+k+"ms "+a.easing+", "+e+"filter "+k+"ms linear, opacity "+k+"ms linear",b[e+"transform"]=a.scale+" "+a.rotateX+" "+a.rotateY+" "+ +a.rotateZ,b[e+"filter"]=a.blur+" "+a.grayscale,b.opacity=a.fade;u.css(b);n.bind("webkitTransitionEnd transitionend otransitionend oTransitionEnd",function(a){if(-1e;e++){var d=0==e?d=a.prefix:"";c[d+"transition"]="height "+k+"ms ease-in-out";c.height=a.minHeight+"px"}n.css(c)}v.css(a.transition);if(s.length){c={};for(e=0;2>e;e++)d=0==e?d=a.prefix:"",c[d+"transform"]=a.scale+" "+a.rotateX+" "+a.rotateY+" "+a.rotateZ,c[d+"filter"]=a.blur+" "+a.grayscale,c.opacity=a.fade;u.css(c);n.bind("webkitTransitionEnd transitionend otransitionend oTransitionEnd",function(c){if(-1d?1:0}function f(a){"asc"==c?k.prepend(a).prepend(" "):k.append(a).append(" ")}function g(a){a=a.slice();for(var b=a.length,c=b;c--;){var e=parseInt(Math.random()*b),d=a[c];a[c]=a[e];a[e]=d}return a}l.find(b.targetSelector).wrapAll('
'); +var k=l.find(".mix_sorter");b.origSort.length||k.find(b.targetSelector+":visible").each(function(){d(this).wrap("");b.origSort.push(d(this).parent().html().replace(/\s+/g,""));d(this).unwrap()});k.empty();if("reset"==e)d.each(b.startOrder,function(){k.append(this).append(" ")});else if("default"==e)d.each(b.origOrder,function(){f(this)});else if("random"==e)b.newOrder.length||(b.newOrder=g(b.startOrder)),d.each(b.newOrder,function(){k.append(this).append(" ")});else if("custom"==e)d.each(c,function(){f(this)}); +else{if("undefined"===typeof b.origOrder[0].attr(e))return console.log("No such attribute found. Terminating"),!1;b.newOrder.length||(d.each(b.origOrder,function(){b.newOrder.push(d(this))}),b.newOrder.sort(a));d.each(b.newOrder,function(){f(this)})}b.checkSort=[];k.find(b.targetSelector+":visible").each(function(a){var c=d(this);0==a&&c.attr("data-checksum","1");c.wrap("");b.checkSort.push(c.parent().html().replace(/\s+/g,""));c.unwrap()});l.find(b.targetSelector).unwrap()}function B(e){for(var c= +["Webkit","Moz","O","ms"],d=0;df;f++)c=0==f?c=b.prefix:"",b.transition[c+"transition"]="all "+b.transitionSpeed+"ms ease-in-out",b.perspective[c+"perspective"]=b.perspectiveDistance+"px",b.perspective[c+"perspective-origin"]=b.perspectiveOrigin;for(f=0;2>f;f++)c=0==f?c=b.prefix:"",b.clean[c+"transition"]="none";"list"==b.layoutMode?(a.addClass(b.listClass), +b.origDisplay=b.targetDisplayList):(a.addClass(b.gridClass),b.origDisplay=b.targetDisplayGrid);b.origLayout=b.layoutMode;f=b.showOnLoad.split(" ");d.each(f,function(){d(b.filterSelector+'[data-filter="'+this+'"]').addClass("active")});a.find(b.targetSelector).addClass("mix_all");"all"==f[0]&&(f[0]="mix_all",b.showOnLoad="mix_all");var g=d();d.each(f,function(){g=g.add(d("."+this))});g.each(function(){var a=d(this);"list"==b.layoutMode?a.css("display",b.targetDisplayList):a.css("display",b.targetDisplayGrid); +a.css(b.transition)});setTimeout(function(){b.mixing=!0;g.css("opacity","1");setTimeout(function(){"list"==b.layoutMode?g.removeStyle(b.prefix+"transition, transition").css({display:b.targetDisplayList,opacity:1}):g.removeStyle(b.prefix+"transition, transition").css({display:b.targetDisplayGrid,opacity:1});b.mixing=!1;if("function"==typeof b.onMixLoad){var a=b.onMixLoad.call(this,b);b=a?a:b}},b.transitionSpeed)},10);b.filter=b.showOnLoad;d(b.sortSelector).bind(b.buttonEvent,function(){if(!b.mixing){var c= +d(this),e=c.attr("data-sort"),f=c.attr("data-order");if(!c.hasClass("active"))d(b.sortSelector).removeClass("active"),c.addClass("active");else if("random"!=e)return!1;a.find(b.targetSelector).each(function(){b.startOrder.push(d(this))});r(b.filter,e,f,a,b)}});d(b.filterSelector).bind(b.buttonEvent,function(){if(!b.mixing){var c=d(this);if(!1==b.multiFilter)d(b.filterSelector).removeClass("active"),c.addClass("active"),b.filter=c.attr("data-filter"),d(b.filterSelector+'[data-filter="'+b.filter+'"]').addClass("active"); +else{var e=c.attr("data-filter");c.hasClass("active")?(c.removeClass("active"),b.filter=b.filter.replace(RegExp("(\\s|^)"+e),"")):(c.addClass("active"),b.filter=b.filter+" "+e)}r(b.filter,null,null,a,b)}})})},toGrid:function(){return this.each(function(){var e=this.config;"grid"!=e.layoutMode&&(e.layoutMode="grid",r(e.filter,null,null,d(this),e))})},toList:function(){return this.each(function(){var e=this.config;"list"!=e.layoutMode&&(e.layoutMode="list",r(e.filter,null,null,d(this),e))})},filter:function(e){return this.each(function(){var c= +this.config;c.mixing||(d(c.filterSelector).removeClass("active"),d(c.filterSelector+'[data-filter="'+e+'"]').addClass("active"),r(e,null,null,d(this),c))})},sort:function(e){return this.each(function(){var c=this.config,l=d(this);if(!c.mixing){d(c.sortSelector).removeClass("active");if(d.isArray(e)){var b=e[0],a=e[1];d(c.sortSelector+'[data-sort="'+e[0]+'"][data-order="'+e[1]+'"]').addClass("active")}else d(c.sortSelector+'[data-sort="'+e+'"]').addClass("active"),b=e,a="desc";l.find(c.targetSelector).each(function(){c.startOrder.push(d(this))}); +r(c.filter,b,a,l,c)}})},multimix:function(e){return this.each(function(){var c=this.config,l=d(this);multiOut={filter:c.filter,sort:null,order:"desc",layoutMode:c.layoutMode};d.extend(multiOut,e);c.mixing||(d(c.filterSelector).add(c.sortSelector).removeClass("active"),d(c.filterSelector+'[data-filter="'+multiOut.filter+'"]').addClass("active"),"undefined"!==typeof multiOut.sort&&(d(c.sortSelector+'[data-sort="'+multiOut.sort+'"][data-order="'+multiOut.order+'"]').addClass("active"),l.find(c.targetSelector).each(function(){c.startOrder.push(d(this))})), +c.layoutMode=multiOut.layoutMode,r(multiOut.filter,multiOut.sort,multiOut.order,l,c))})},remix:function(e){return this.each(function(){var c=this.config,l=d(this);c.origOrder=[];l.find(c.targetSelector).each(function(){var b=d(this);b.addClass("mix_all");c.origOrder.push(b)});c.mixing||"undefined"===typeof e||(d(c.filterSelector).removeClass("active"),d(c.filterSelector+'[data-filter="'+e+'"]').addClass("active"),r(e,null,null,l,c))})}};d.fn.mixitup=function(d,c){if(y[d])return y[d].apply(this,Array.prototype.slice.call(arguments, +1));if("object"===typeof d||!d)return y.init.apply(this,arguments)};d.fn.removeStyle=function(e){return this.each(function(){var c=d(this);e=e.replace(/\s+/g,"");var l=e.split(",");d.each(l,function(){var b=RegExp(this.toString()+"[^;]+;?","g");c.attr("style",function(a,c){if(c)return c.replace(b,"")})})})}})(jQuery); \ No newline at end of file diff --git a/templates/themes/favelog/jquery.tooltipster.min.js b/templates/themes/favelog/jquery.tooltipster.min.js new file mode 100644 index 00000000..91c61639 --- /dev/null +++ b/templates/themes/favelog/jquery.tooltipster.min.js @@ -0,0 +1 @@ +/* Tooltipster v3.0.5 */;(function(e,t,n){function o(t,n){this.bodyOverflowX;this.checkInterval=null;this.content;this.$el=e(t);this.elProxyPosition;this.$elProxy;this.enabled=true;this.options=e.extend({},s,n);this.mouseIsOverProxy=false;this.namespace="tooltipster-"+Math.round(Math.random()*1e5);this.status="hidden";this.timerHide=null;this.timerShow=null;this.$tooltip;this.options.iconTheme=this.options.iconTheme.replace(".","");this.options.theme=this.options.theme.replace(".","");this.init()}function u(t,n){var r=true;e.each(t,function(e,i){if(typeof n[e]==="undefined"||t[e]!==n[e]){r=false;return false}});return r}function l(){return!f&&a}function c(){var e=n.body||n.documentElement,t=e.style,r="transition";if(typeof t[r]=="string"){return true}v=["Moz","Webkit","Khtml","O","ms"],r=r.charAt(0).toUpperCase()+r.substr(1);for(var i=0;i');t.$elProxy.text(t.options.icon)}else{if(t.options.iconCloning)t.$elProxy=t.options.icon.clone(true);else t.$elProxy=t.options.icon}t.$elProxy.insertAfter(t.$el)}else{t.$elProxy=t.$el}if(t.options.trigger=="hover"){t.$elProxy.on("mouseenter."+t.namespace,function(){if(!l()||t.options.touchDevices){t.mouseIsOverProxy=true;t.showTooltip()}}).on("mouseleave."+t.namespace,function(){if(!l()||t.options.touchDevices){t.mouseIsOverProxy=false}});if(a&&t.options.touchDevices){t.$elProxy.on("touchstart."+t.namespace,function(){t.showTooltipNow()})}}else if(t.options.trigger=="click"){t.$elProxy.on("click."+t.namespace,function(){if(!l()||t.options.touchDevices){t.showTooltip()}})}}},showTooltip:function(){var e=this;if(e.status!="shown"&&e.status!="appearing"){if(e.options.delay){e.timerShow=setTimeout(function(){if(e.options.trigger=="click"||e.options.trigger=="hover"&&e.mouseIsOverProxy){e.showTooltipNow()}},e.options.delay)}else e.showTooltipNow()}},showTooltipNow:function(){var n=this;clearTimeout(n.timerShow);n.timerShow=null;clearTimeout(n.timerHide);n.timerHide=null;if(n.enabled&&n.content!==null){if(n.options.onlyOne){e(".tooltipstered").not(n.$el).each(function(t,n){var i=e(n),s=i[r]("status"),o=i[r]("option","autoClose");if(s!=="hidden"&&s!=="disappearing"&&o){i[r]("hide")}})}n.options.functionBefore(n.$elProxy,function(){if(n.status!=="hidden"){var r=0;if(n.status==="disappearing"){n.status="appearing";if(c()){n.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+n.options.animation+"-show");if(n.options.speed>0)n.$tooltip.delay(n.options.speed);n.$tooltip.queue(function(){n.status="shown"})}else{n.$tooltip.stop().fadeIn(function(){n.status="shown"})}}}else{n.status="appearing";var r=n.options.speed;n.bodyOverflowX=e("body").css("overflow-x");e("body").css("overflow-x","hidden");var i="tooltipster-"+n.options.animation,s="-webkit-transition-duration: "+n.options.speed+"ms; -webkit-animation-duration: "+n.options.speed+"ms; -moz-transition-duration: "+n.options.speed+"ms; -moz-animation-duration: "+n.options.speed+"ms; -o-transition-duration: "+n.options.speed+"ms; -o-animation-duration: "+n.options.speed+"ms; -ms-transition-duration: "+n.options.speed+"ms; -ms-animation-duration: "+n.options.speed+"ms; transition-duration: "+n.options.speed+"ms; animation-duration: "+n.options.speed+"ms;",o=n.options.fixedWidth>0?"width:"+Math.round(n.options.fixedWidth)+"px;":"",u=n.options.maxWidth>0?"max-width:"+Math.round(n.options.maxWidth)+"px;":"",f=n.options.interactive?"pointer-events: auto;":"";n.$tooltip=e('
');if(c())n.$tooltip.addClass(i);n.insertContent();n.$tooltip.appendTo("body");n.positionTooltip();n.options.functionReady(n.$el,n.$tooltip);if(c()){n.$tooltip.addClass(i+"-show");if(n.options.speed>0)n.$tooltip.delay(n.options.speed);n.$tooltip.queue(function(){n.status="shown"})}else{n.$tooltip.css("display","none").fadeIn(n.options.speed,function(){n.status="shown"})}n.setCheckInterval();e(t).on("scroll."+n.namespace+" resize."+n.namespace,function(){n.positionTooltip()});if(n.options.autoClose){e("body").off("."+n.namespace);if(n.options.trigger=="hover"){if(a){setTimeout(function(){e("body").on("touchstart."+n.namespace,function(){n.hideTooltip()})},0)}if(n.options.interactive){if(a){n.$tooltip.on("touchstart."+n.namespace,function(e){e.stopPropagation()})}var l=null;n.$elProxy.add(n.$tooltip).on("mouseleave."+n.namespace+"-autoClose",function(){clearTimeout(l);l=setTimeout(function(){n.hideTooltip()},n.options.interactiveTolerance)}).on("mouseenter."+n.namespace+"-autoClose",function(){clearTimeout(l)})}else{n.$elProxy.on("mouseleave."+n.namespace+"-autoClose",function(){n.hideTooltip()})}}else if(n.options.trigger=="click"){setTimeout(function(){e("body").on("click."+n.namespace+" touchstart."+n.namespace,function(){n.hideTooltip()})},0);if(n.options.interactive){n.$tooltip.on("click."+n.namespace+" touchstart."+n.namespace,function(e){e.stopPropagation()})}}}}if(n.options.timer>0){n.timerHide=setTimeout(function(){n.timerHide=null;n.hideTooltip()},n.options.timer+r)}})}},setCheckInterval:function(){var t=this;t.checkInterval=setInterval(function(){if(e("body").find(t.$el).length===0||e("body").find(t.$elProxy).length===0||t.status=="hidden"||e("body").find(t.$tooltip).length===0){if(t.status=="shown"||t.status=="appearing")t.hideTooltip();t.cancelCheckInterval()}else{if(t.options.positionTracker){var n=t.positionInfo(t.$elProxy),r=false;if(u(n.dimension,t.elProxyPosition.dimension)){if(t.$elProxy.css("position")==="fixed"){if(u(n.position,t.elProxyPosition.position))r=true}else{if(u(n.offset,t.elProxyPosition.offset))r=true}}if(!r){t.positionTooltip()}}}},200)},cancelCheckInterval:function(){clearInterval(this.checkInterval);this.checkInterval=null},hideTooltip:function(){var n=this;clearTimeout(n.timerShow);n.timerShow=null;clearTimeout(n.timerHide);n.timerHide=null;if(n.status=="shown"||n.status=="appearing"){n.status="disappearing";var r=function(){n.status="hidden";n.$tooltip.remove();n.$tooltip=null;e(t).off("."+n.namespace);e("body").off("."+n.namespace).css("overflow-x",n.bodyOverflowX);n.$elProxy.off("."+n.namespace+"-autoClose");n.options.functionAfter(n.$elProxy)};if(c()){n.$tooltip.clearQueue().removeClass("tooltipster-"+n.options.animation+"-show").addClass("tooltipster-dying");if(n.options.speed>0)n.$tooltip.delay(n.options.speed);n.$tooltip.queue(r)}else{n.$tooltip.stop().fadeOut(n.options.speed,r)}}},setContent:function(e){if(typeof e==="object"&&e!==null&&this.options.contentCloning){e=e.clone(true)}this.content=e},insertContent:function(){var e=this,t=this.$tooltip.find(".tooltipster-content");if(typeof e.content==="string"&&!e.options.contentAsHTML){t.text(e.content)}else{t.empty().append(e.content)}},updateTooltip:function(e){var t=this;t.setContent(e);if(t.content!==null){if(t.status!=="hidden"){t.insertContent();t.positionTooltip();if(t.options.updateAnimation){if(c()){t.$tooltip.css({width:"","-webkit-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing");setTimeout(function(){if(t.status!="hidden"){t.$tooltip.removeClass("tooltipster-content-changing");setTimeout(function(){if(t.status!=="hidden"){t.$tooltip.css({"-webkit-transition":t.options.speed+"ms","-moz-transition":t.options.speed+"ms","-o-transition":t.options.speed+"ms","-ms-transition":t.options.speed+"ms",transition:t.options.speed+"ms"})}},t.options.speed)}},t.options.speed)}else{t.$tooltip.fadeTo(t.options.speed,.5,function(){if(t.status!="hidden"){t.$tooltip.fadeTo(t.options.speed,1)}})}}}}else{t.hideTooltip()}},positionInfo:function(e){return{dimension:{height:e.outerHeight(false),width:e.outerWidth(false)},offset:e.offset(),position:{left:parseInt(e.css("left")),top:parseInt(e.css("top"))}}},positionTooltip:function(){var n=this;if(e("body").find(n.$tooltip).length!==0){n.$tooltip.css("width","");n.elProxyPosition=n.positionInfo(n.$elProxy);var r=null,s=e(t).width(),o=n.elProxyPosition,u=n.$tooltip.outerWidth(false),a=n.$tooltip.innerWidth()+1,f=n.$tooltip.outerHeight(false),l=null;if(n.$elProxy.is("area")){var c=n.$elProxy.attr("shape"),h=n.$elProxy.parent().attr("name"),p=e('img[usemap="#'+h+'"]'),d=p.offset().left,v=p.offset().top,m=n.$elProxy.attr("coords")!==undefined?n.$elProxy.attr("coords").split(","):undefined;if(c=="circle"){var g=parseInt(m[0]),y=parseInt(m[1]),b=parseInt(m[2]);o.dimension.height=b*2;o.dimension.width=b*2;o.offset.top=v+y-b;o.offset.left=d+g-b}else if(c=="rect"){var g=parseInt(m[0]),y=parseInt(m[1]),w=parseInt(m[2]),E=parseInt(m[3]);o.dimension.height=E-y;o.dimension.width=w-g;o.offset.top=v+y;o.offset.left=d+g}else if(c=="poly"){var S=[],x=[],T=0,N=0,C=0,k=0,L="even";for(i=0;iC){C=A;if(i===0){T=C}}if(Ak){k=A;if(i==1){N=k}}if(As){r=O-(s+n-u);O=s+n-u}}function j(n,r){if(o.offset.top-e(t).scrollTop()-f-D-12<0&&r.indexOf("top")>-1){H=n}if(o.offset.top+o.dimension.height+f+12+D>e(t).scrollTop()+e(t).height()&&r.indexOf("bottom")>-1){H=n;_=o.offset.top-f-D-12}}if(H=="top"){var F=o.offset.left+u-(o.offset.left+o.dimension.width);O=o.offset.left+P-F/2;_=o.offset.top-f-D-12;B();j("bottom","top")}if(H=="top-left"){O=o.offset.left+P;_=o.offset.top-f-D-12;B();j("bottom-left","top-left")}if(H=="top-right"){O=o.offset.left+o.dimension.width+P-u;_=o.offset.top-f-D-12;B();j("bottom-right","top-right")}if(H=="bottom"){var F=o.offset.left+u-(o.offset.left+o.dimension.width);O=o.offset.left-F/2+P;_=o.offset.top+o.dimension.height+D+12;B();j("top","bottom")}if(H=="bottom-left"){O=o.offset.left+P;_=o.offset.top+o.dimension.height+D+12;B();j("top-left","bottom-left")}if(H=="bottom-right"){O=o.offset.left+o.dimension.width+P-u;_=o.offset.top+o.dimension.height+D+12;B();j("top-right","bottom-right")}if(H=="left"){O=o.offset.left-P-u-12;M=o.offset.left+P+o.dimension.width+12;var I=o.offset.top+f-(o.offset.top+n.$elProxy.outerHeight(false));_=o.offset.top-I/2-D;if(O<0&&M+u>s){var q=parseFloat(n.$tooltip.css("border-width"))*2,R=u+O-q;n.$tooltip.css("width",R+"px");f=n.$tooltip.outerHeight(false);O=o.offset.left-P-R-12-q;I=o.offset.top+f-(o.offset.top+n.$elProxy.outerHeight(false));_=o.offset.top-I/2-D}else if(O<0){O=o.offset.left+P+o.dimension.width+12;r="left"}}if(H=="right"){O=o.offset.left+P+o.dimension.width+12;M=o.offset.left-P-u-12;var I=o.offset.top+f-(o.offset.top+n.$elProxy.outerHeight(false));_=o.offset.top-I/2-D;if(O+u>s&&M<0){var q=parseFloat(n.$tooltip.css("border-width"))*2,R=s-O-q;n.$tooltip.css("width",R+"px");f=n.$tooltip.outerHeight(false);I=o.offset.top+f-(o.offset.top+n.$elProxy.outerHeight(false));_=o.offset.top-I/2-D}else if(O+u>s){O=o.offset.left-P-u-12;r="right"}}if(n.options.arrow){var U="tooltipster-arrow-"+H;if(n.options.arrowColor.length<1){var z=n.$tooltip.css("background-color")}else{var z=n.options.arrowColor}if(!r){r=""}else if(r=="left"){U="tooltipster-arrow-right";r=""}else if(r=="right"){U="tooltipster-arrow-left";r=""}else{r="left:"+Math.round(r)+"px;"}if(H=="top"||H=="top-left"||H=="top-right"){var W=parseFloat(n.$tooltip.css("border-bottom-width")),X=n.$tooltip.css("border-bottom-color")}else if(H=="bottom"||H=="bottom-left"||H=="bottom-right"){var W=parseFloat(n.$tooltip.css("border-top-width")),X=n.$tooltip.css("border-top-color")}else if(H=="left"){var W=parseFloat(n.$tooltip.css("border-right-width")),X=n.$tooltip.css("border-right-color")}else if(H=="right"){var W=parseFloat(n.$tooltip.css("border-left-width")),X=n.$tooltip.css("border-left-color")}else{var W=parseFloat(n.$tooltip.css("border-bottom-width")),X=n.$tooltip.css("border-bottom-color")}if(W>1){W++}var V="";if(W!==0){var J="",K="border-color: "+X+";";if(U.indexOf("bottom")!==-1){J="margin-top: -"+Math.round(W)+"px;"}else if(U.indexOf("top")!==-1){J="margin-bottom: -"+Math.round(W)+"px;"}else if(U.indexOf("left")!==-1){J="margin-right: -"+Math.round(W)+"px;"}else if(U.indexOf("right")!==-1){J="margin-left: -"+Math.round(W)+"px;"}V=''}n.$tooltip.find(".tooltipster-arrow").remove();var Q='
'+V+'
';n.$tooltip.append(Q)}n.$tooltip.css({top:Math.round(_)+"px",left:Math.round(O)+"px"})}}};e.fn[r]=function(){var t=arguments;if(this.length===0){if(typeof t[0]==="string"){var n=true;switch(t[0]){case"setDefaults":e.extend(s,t[1]);break;default:n=false;break}if(n)return true;else return this}else{return this}}else{if(typeof t[0]==="string"){var r="#*$~&";this.each(function(){var n=e(this).data("tooltipster");if(n){switch(t[0]){case"content":case"update":if(typeof t[1]==="undefined"){r=n.content;return false}else{n.updateTooltip(t[1]);break};case"destroy":n.hideTooltip();if(n.$el[0]!==n.$elProxy[0])n.$elProxy.remove();var i=typeof n.content==="string"?n.content:e("
").append(n.content).html();n.$el.removeClass("tooltipstered").attr("title",i).removeData("tooltipster").off("."+n.namespace);break;case"disable":n.hideTooltip();n.enabled=false;break;case"elementIcon":r=n.$el[0]!==n.$elProxy[0]?n.$elProxy[0]:undefined;return false;case"elementTooltip":r=n.$tooltip?n.$tooltip[0]:undefined;return false;case"enable":n.enabled=true;break;case"hide":n.hideTooltip();break;case"option":r=n.options[t[1]];break;case"reposition":n.positionTooltip();break;case"show":n.showTooltipNow();break;case"status":r=n.status;return false;default:throw new Error('Unknown method .tooltipster("'+t[0]+'")');break}}else{throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element')}});return r!=="#*$~&"?r:this}else{return this.each(function(){if(!e(this).data("tooltipster")){e(this).data("tooltipster",new o(this,t[0]))}})}}};var a=!!("ontouchstart"in t);var f=false;e("body").one("mousemove",function(){f=true})})(jQuery,window,document); \ No newline at end of file diff --git a/templates/themes/favelog/theme.php b/templates/themes/favelog/theme.php new file mode 100644 index 00000000..29a91931 --- /dev/null +++ b/templates/themes/favelog/theme.php @@ -0,0 +1,133 @@ +build($settings, $board); + } + } elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && in_array($board, $boards)) { + $b = new Favelog(); + $b->build($settings, $board); + } + } + + // Wrap functions in a class so they don't interfere with normal Tinyboard operations + class Favelog { + public function build($settings, $board_name) { + global $config, $board; + + openBoard($board_name); + + $recent_images = array(); + $recent_posts = array(); + $stats = array(); + + $query = query(sprintf("SELECT *, `id` AS `thread_id`, (SELECT COUNT(*) FROM ``posts_%s`` WHERE `thread` = `thread_id`) AS `reply_count`, (SELECT COUNT(*) FROM ``posts_%s`` WHERE `thread` = `thread_id` AND `filesize` IS NOT NULL) AS `image_count`, (SELECT `time` FROM ``posts_%s`` WHERE `thread` = `thread_id` ORDER BY `time` DESC LIMIT 1) AS `last_reply`, (SELECT `name` FROM ``posts_%s`` WHERE `thread` = `thread_id` ORDER BY `time` DESC LIMIT 1) AS `last_reply_name`, (SELECT `subject` FROM ``posts_%s`` WHERE `thread` = `thread_id` ORDER BY `time` DESC LIMIT 1) AS `last_reply_subject`, '%s' AS `board` FROM ``posts_%s`` WHERE `thread` IS NULL ORDER BY `bump` DESC", $board_name, $board_name, $board_name, $board_name, $board_name, $board_name, $board_name)) or error(db_error()); + + while ($post = $query->fetch(PDO::FETCH_ASSOC)) { + $post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])); + $post['board_name'] = $board['name']; + $post['file'] = $config['uri_thumb'] . $post['thumb']; + + if ($settings['use_tooltipster']) { + $post['muhdifference'] = $this->getDiferenca($post['time']); + + if ($post['last_reply']) + $post['last_reply_difference'] = $this->getDiferenca($post['last_reply']); + } + + $recent_posts[] = $post; + } + + file_write($config['dir']['home'] . $board_name . '/catalog.html', Element('themes/favelog/catalog.html', Array( + 'settings' => $settings, + 'config' => $config, + 'boardlist' => createBoardlist(), + 'recent_images' => $recent_images, + 'recent_posts' => $recent_posts, + 'stats' => $stats, + 'board' => $board_name, + 'link' => $config['root'] . $board['dir'] + ))); + } + + public function getDiferenca($muhtime) + { + $postagem = new DateTime(date("Y-m-d H:i:s", $muhtime)); + $agora = new DateTime(date("Y-m-d H:i:s")); + $intervalo = $postagem->diff($agora); + $anos = $intervalo->format('%y'); + $meses = $intervalo->format('%m'); + $dias = $intervalo->format('%d'); + $horas = $intervalo->format('%h'); + $minutos = $intervalo->format('%i'); + $segundos = $intervalo->format('%s'); + + $diferenca = ""; // adicionar o 'há' depois + if ($anos) { + if ($meses) { + $diferenca.= ($anos>1)? $anos.' anos e ' : $anos.' ano e '; + $diferenca.= ($meses>1)? $meses.' meses.' : $meses.' mês.'; + } else { + $diferenca.= ($anos>1)? $anos.' anos.' : $anos.' ano.'; + } + } elseif($meses) { + if ($dias) { + $diferenca.= ($meses>1)? $meses.' meses e ' : $meses.' mês e '; + $diferenca.= ($dias>1)? $dias.' dias.' : $dias.' dia.'; + } else { + $diferenca.= ($meses>1)? $meses.' meses.' : $meses.' mês.'; + } + } elseif ($dias) { + if ($horas) { + $diferenca.= ($dias>1)? $dias.' dias e ' : $dias.' dia e '; + $diferenca.= ($horas>1)? $horas.' horas.' : $horas.' hora.'; + } else { + $diferenca.= ($dias>1)? $dias.' dias.' : $dias.' dia.'; + } + } elseif ($horas) { + if ($minutos) { + $diferenca.= ($horas>1)? $horas.' horas e ' : $horas.' hora e '; + $diferenca.= ($minutos>1)? $minutos.' minutos.' : $minutos.' minuto.'; + } else { + $diferenca.= ($horas>1)? $horas.' horas.' : $horas.' hora.'; + } + } elseif ($minutos) { + if ($segundos) { + $diferenca.= ($minutos>1)? $minutos.' minutos e ' : $minutos.' minuto e '; + $diferenca.= ($segundos>1)? $segundos.' segundos.' : $segundos.' segundo.'; + } else { + $diferenca.= ($minutos>1)? $minutos.' minutos.' : $minutos.' minuto.'; + } + } elseif ($segundos) { + $diferenca.= ($segundos>1)? $segundos.' segundos.' : $segundos.' segundo.'; + } + + if (!empty($diferenca)) + $diferenca = 'há '.$diferenca; + return $diferenca; + } + }; diff --git a/templates/themes/favelog/thumb.png b/templates/themes/favelog/thumb.png new file mode 100644 index 00000000..9d78f588 Binary files /dev/null and b/templates/themes/favelog/thumb.png differ diff --git a/templates/themes/favelog/tooltipster.css b/templates/themes/favelog/tooltipster.css new file mode 100644 index 00000000..e5c609cc --- /dev/null +++ b/templates/themes/favelog/tooltipster.css @@ -0,0 +1,274 @@ +/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */ +.tooltipster-default { + border-radius: 5px; + border: 2px solid #000; + background: #4c4c4c; + color: #fff; +} + +/* Use this next selector to style things like font-size and line-height: */ +.tooltipster-default .tooltipster-content { + font-family: Arial, sans-serif; + font-size: 14px; + line-height: 16px; + padding: 8px 10px; + overflow: hidden; +} + +/* This next selector defines the color of the border on the outside of the arrow. This will automatically match the color and size of the border set on the main tooltip styles. Set display: none; if you would like a border around the tooltip but no border around the arrow */ +.tooltipster-default .tooltipster-arrow .tooltipster-arrow-border { + /* border-color: ... !important; */ +} + + +/* If you're using the icon option, use this next selector to style them */ +.tooltipster-icon { + cursor: help; + margin-left: 4px; +} + + + + + + + + +/* This is the base styling required to make all Tooltipsters work */ +.tooltipster-base { + padding: 0; + font-size: 0; + line-height: 0; + position: absolute; + left: 0; + top: 0; + z-index: 9999999; + pointer-events: none; + width: auto; + overflow: visible; +} +.tooltipster-base .tooltipster-content { + overflow: hidden; +} + + +/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */ +.tooltipster-arrow { + display: block; + text-align: center; + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: -1; +} +.tooltipster-arrow span, .tooltipster-arrow-border { + display: block; + width: 0; + height: 0; + position: absolute; +} +.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span { + border-left: 8px solid transparent !important; + border-right: 8px solid transparent !important; + border-top: 8px solid; + bottom: -7px; +} +.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border { + border-left: 9px solid transparent !important; + border-right: 9px solid transparent !important; + border-top: 9px solid; + bottom: -7px; +} + +.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span { + border-left: 8px solid transparent !important; + border-right: 8px solid transparent !important; + border-bottom: 8px solid; + top: -7px; +} +.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { + border-left: 9px solid transparent !important; + border-right: 9px solid transparent !important; + border-bottom: 9px solid; + top: -7px; +} +.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border { + left: 0; + right: 0; + margin: 0 auto; +} +.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span { + left: 6px; +} +.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { + left: 5px; +} +.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span { + right: 6px; +} +.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border { + right: 5px; +} +.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border { + border-top: 8px solid transparent !important; + border-bottom: 8px solid transparent !important; + border-left: 8px solid; + top: 50%; + margin-top: -7px; + right: -7px; +} +.tooltipster-arrow-left .tooltipster-arrow-border { + border-top: 9px solid transparent !important; + border-bottom: 9px solid transparent !important; + border-left: 9px solid; + margin-top: -8px; +} +.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border { + border-top: 8px solid transparent !important; + border-bottom: 8px solid transparent !important; + border-right: 8px solid; + top: 50%; + margin-top: -7px; + left: -7px; +} +.tooltipster-arrow-right .tooltipster-arrow-border { + border-top: 9px solid transparent !important; + border-bottom: 9px solid transparent !important; + border-right: 9px solid; + margin-top: -8px; +} + + +/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */ + +.tooltipster-fade { + opacity: 0; + -webkit-transition-property: opacity; + -moz-transition-property: opacity; + -o-transition-property: opacity; + -ms-transition-property: opacity; + transition-property: opacity; +} +.tooltipster-fade-show { + opacity: 1; +} + +.tooltipster-grow { + -webkit-transform: scale(0,0); + -moz-transform: scale(0,0); + -o-transform: scale(0,0); + -ms-transform: scale(0,0); + transform: scale(0,0); + -webkit-transition-property: -webkit-transform; + -moz-transition-property: -moz-transform; + -o-transition-property: -o-transform; + -ms-transition-property: -ms-transform; + transition-property: transform; + -webkit-backface-visibility: hidden; +} +.tooltipster-grow-show { + -webkit-transform: scale(1,1); + -moz-transform: scale(1,1); + -o-transform: scale(1,1); + -ms-transform: scale(1,1); + transform: scale(1,1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); +} + +.tooltipster-swing { + opacity: 0; + -webkit-transform: rotateZ(4deg); + -moz-transform: rotateZ(4deg); + -o-transform: rotateZ(4deg); + -ms-transform: rotateZ(4deg); + transform: rotateZ(4deg); + -webkit-transition-property: -webkit-transform, opacity; + -moz-transition-property: -moz-transform; + -o-transition-property: -o-transform; + -ms-transition-property: -ms-transform; + transition-property: transform; +} +.tooltipster-swing-show { + opacity: 1; + -webkit-transform: rotateZ(0deg); + -moz-transform: rotateZ(0deg); + -o-transform: rotateZ(0deg); + -ms-transform: rotateZ(0deg); + transform: rotateZ(0deg); + -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 1); + -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + -moz-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + -ms-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + -o-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); +} + +.tooltipster-fall { + top: 0; + -webkit-transition-property: top; + -moz-transition-property: top; + -o-transition-property: top; + -ms-transition-property: top; + transition-property: top; + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); +} +.tooltipster-fall-show { +} +.tooltipster-fall.tooltipster-dying { + -webkit-transition-property: all; + -moz-transition-property: all; + -o-transition-property: all; + -ms-transition-property: all; + transition-property: all; + top: 0px !important; + opacity: 0; +} + +.tooltipster-slide { + left: -40px; + -webkit-transition-property: left; + -moz-transition-property: left; + -o-transition-property: left; + -ms-transition-property: left; + transition-property: left; + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); +} +.tooltipster-slide.tooltipster-slide-show { +} +.tooltipster-slide.tooltipster-dying { + -webkit-transition-property: all; + -moz-transition-property: all; + -o-transition-property: all; + -ms-transition-property: all; + transition-property: all; + left: 0px !important; + opacity: 0; +} + + +/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */ +.tooltipster-content-changing { + opacity: 0.5; + -webkit-transform: scale(1.1, 1.1); + -moz-transform: scale(1.1, 1.1); + -o-transform: scale(1.1, 1.1); + -ms-transform: scale(1.1, 1.1); + transform: scale(1.1, 1.1); +} -- cgit v1.3 From 43545d000d36c67e32044c67436b83ca171497c2 Mon Sep 17 00:00:00 2001 From: sinuca <55vitaminado@gmail.com> Date: Sun, 16 Mar 2014 23:40:40 -0300 Subject: Added css styles czaks: removed blinky stylesheets, rearranged images, made commit sane --- stylesheets/burichan.css | 91 +++++++++++ stylesheets/catalog.css | 75 +++++++++ stylesheets/confraria.css | 145 +++++++++++++++++ stylesheets/cotas.css | 149 ++++++++++++++++++ stylesheets/favela.css | 156 +++++++++++++++++++ stylesheets/favelaframes.css | 84 ++++++++++ stylesheets/img/confraria_bg.png | Bin 0 -> 53882 bytes stylesheets/img/confraria_foot.png | Bin 0 -> 230746 bytes stylesheets/img/confraria_hatstand.png | Bin 0 -> 120488 bytes stylesheets/img/jungle_td_dark.png | Bin 0 -> 183733 bytes stylesheets/nigrachan.css | 146 ++++++++++++++++++ stylesheets/novo_jungle.css | 146 ++++++++++++++++++ stylesheets/tooltipster.css | 274 +++++++++++++++++++++++++++++++++ 13 files changed, 1266 insertions(+) create mode 100644 stylesheets/burichan.css create mode 100644 stylesheets/catalog.css create mode 100644 stylesheets/confraria.css create mode 100644 stylesheets/cotas.css create mode 100644 stylesheets/favela.css create mode 100644 stylesheets/favelaframes.css create mode 100644 stylesheets/img/confraria_bg.png create mode 100644 stylesheets/img/confraria_foot.png create mode 100644 stylesheets/img/confraria_hatstand.png create mode 100644 stylesheets/img/jungle_td_dark.png create mode 100644 stylesheets/nigrachan.css create mode 100644 stylesheets/novo_jungle.css create mode 100644 stylesheets/tooltipster.css diff --git a/stylesheets/burichan.css b/stylesheets/burichan.css new file mode 100644 index 00000000..f1bbd8e6 --- /dev/null +++ b/stylesheets/burichan.css @@ -0,0 +1,91 @@ +/** + * burichan.css + * For 55ch adapted from kusaba by sinuca + */ +body { + font-family: serif; + background: #EEF2FF; + color: #000000; + font-size: 12pt; +} + +h1 { + font-family: serif; + font-size: 24pt; + font-weight: normal; +} + +header div.subtitle { + font-size: 16px; + font-weight: bold; + margin: 1em 0; +} + +a, a:visited { + text-decoration: none; + font-family: sans-serif; +} + +a:hover { + color: #DD0000; +} + +div.banner { + background-color: #0010E0; + color: #FFF; + font-weight: normal; +} + +p.intro span.name { + font-family: serif; + font-size: 12px; +} + +p.fileinfo { + text-decoration: underline; +} + +p.fileinfo span.unimportant, p.fileinfo a { + font-size: 12px; +} + +div.post.reply { + border: none; + font-family: serif; +} + +div.post.reply.post-hover { + border-width: 1px; + border-style: none solid solid none; + border-color: #B7C5D9; +} + +div.post.reply div.body a { + color: #34345C; +} + +div.post.reply div.body a:hover { + color: #DD0000; +} + +hr { + border-top: 1px groove #666; +} + +div.boardlist { + font-size: 12pt; + color: #000; +} + +div.boardlist a { + text-decoration: none; + padding: 0.2em 0.1em; +} + +div#playerW { + display: none!important; +} + +img.board_image { + border:0px; +} \ No newline at end of file diff --git a/stylesheets/catalog.css b/stylesheets/catalog.css new file mode 100644 index 00000000..29ff4cbf --- /dev/null +++ b/stylesheets/catalog.css @@ -0,0 +1,75 @@ +img { + float:none!important; + margin: auto; + margin-bottom: 12px; + /*max-height: 150px; + max-width: 200px;*/ + box-shadow: 0 0 4px rgba(0, 0, 0, 0.55); + border: 2px solid rgba(153, 153, 153, 0); +} + +/* +img:hover { + border: 2px solid rgba(153, 153, 153, 0.27); +} +*/ + +div.threads{ + text-align: center; + margin-left: -20px; +} + +div.thread { + display: inline-block; + vertical-align: top; + margin-bottom:25px; + margin-left: 20px; + margin-right: 15px; + text-align:center; + font-weight:normal; + width:205px; + overflow:hidden; + position: relative; + font-size:11px; + padding: 15px; + background: rgba(182, 182, 182, 0.12); + border: 2px solid rgba(111, 111, 111, 0.34); + max-height:300px; +} + +div.thread:hover { + background: #D6DAF0; + border-color: #B7C5D9; +} + +div.grid-size-small { + width: 200px; + max-width: 200px; + max-height: 350px; +} + +div.grid-size-large { + width: 300px; + max-width: 300px; + max-height: 450px; +} + +img.thread-image { + height: auto; + max-width: 100%; +} + +@media (max-width: 420px) { + ul#Grid { + padding-left: 18px; + } + div.thread { + width: auto; + margin-left: 0; + margin-right: 0; + + } + div.threads { + overflow: hidden; + } +} \ No newline at end of file diff --git a/stylesheets/confraria.css b/stylesheets/confraria.css new file mode 100644 index 00000000..8769c6bb --- /dev/null +++ b/stylesheets/confraria.css @@ -0,0 +1,145 @@ +/** + * confraria.css + * For 55chan adapted from kusaba by sinuca + */ +body{ + font-family: arial,helvetica,sans-serif; + font-size: 10pt; + background-image: url('img/confraria_hatstand.png'), url('img/confraria_foot.png'), url('img/confraria_bg.png'); + background-repeat: no-repeat, repeat-x, repeat; + background-attachment: fixed, fixed, fixed; + background-position: 75% bottom, bottom center, top left; + color: #C5C8C6; + margin-left: 0; + margin-right: 0; + margin-top: 5px; + padding-left: 5px; + padding-right: 5px; +} + +h1 { + color: #C5C8C6; + font-family: Tahoma, sans-serif; + font-size: 28px; + letter-spacing: -2px; +} + +header div.subtitle { + font-size: 16px; + color: #C5C8C6; + font-weight: bold; + margin: 1em 0; +} + +a, a:visited { + color: rgb(129, 162, 190); +} + +a:hover { + color: rgb(95, 137, 172); +} + +div.banner { + background-color: #282A2E; + color: #C5C8C6; + padding: 1px; + font-size: larger; + margin-top: 8px; + border: 1px solid #111; +} + +form table tr th { + background: #282A2E; + color: #C5C8C6; + border: 1px solid #111; + padding: 0px 5px; +} + +p.intro span.name { + color: #C5C8C6; +} + +p.intro span.subject { + color: #CC1105; + font-weight: bold; +} + +p.fileinfo span.unimportant, p.fileinfo a { + font-size: 10pt; +} + +div.post.reply { + background: #282A2E; + border: 1px solid #282A2E; +} + + +div.post.reply.post-hover { + border-width: 0px; +} + +div.post.reply div.body a { + color: rgb(129, 162, 190); +} + +div.post.reply div.body a:hover { + color: rgb(95, 137, 172); +} + +div.post.reply.highlighted { + background: #4A4C4F; +} + +p.intro a.email span.name { + color: rgb(129, 162, 190); +} + +p.intro a.email:hover span.name { + color: rgb(95, 137, 172); +} + +div.pages { + background: transparent; + border: 2px groove; + color: #FFFFFF; +} + +div.pages a { + text-decoration: underline; +} + +div.pages a.selected { + color: #FFFFFF; + font-weight: bolder; +} + +hr { + border-width: 1px medium medium; + border-style: solid none none; + border-color: #282A2E +} + +div.boardlist { + font-size: 9pt; + padding: 8px; +} + +div.boardlist a { + padding: 0.2em 0.1em; +} + +.desktop-style div.boardlist:nth-child(1):hover, .desktop-style div.boardlist.cb-menu:nth-child(1) { + background-color: rgba(50, 50, 50, 0.7); +} + +.desktop-style .sub { + background: none; +} + +div#playerW { + display: none!important; +} + +img.board_image { + border:0px; +} diff --git a/stylesheets/cotas.css b/stylesheets/cotas.css new file mode 100644 index 00000000..0c95c281 --- /dev/null +++ b/stylesheets/cotas.css @@ -0,0 +1,149 @@ +/** + * festaduro.css + * For 55chan adapted from kusaba by sinuca + */ +body { + font-family:arial,helvetica,sans-serif; + background-image: url(img/cotas.gif); + background-repeat:repeat; + background-position: center top; + color: #FFFFFF; + font-size: 10pt; +} + +h1 { + color: #054500; + font-family:arial,helvetica,sans-serif; + font-size: 24pt; + font-weight: normal; +} + +header div.subtitle { + font-size: 16px; + color: #054500; + font-weight: bold; + margin: 1em 0; +} + +a, a:visited { + color: #0000EE; +} + +a:hover { + color: #00990B; +} + +/*reply mode*/ +div.banner { + background-color: #054500; + color: #FFF; + padding: 2px; + font-size: 10pt; + font-weight: normal; +} + +form table tr th { + background-color: #9309C6; + color: #054500; + border: 1px solid #054500; + font-size: 10pt; + padding: 0px 5px; + line-height: 20px; +} + +p.intro { + color: #054500; +} + +p.intro span.name { + color: #800000; +} + +p.fileinfo { + color: #000000; +} + +p.fileinfo span.unimportant, p.fileinfo a { + font-size: 12px; +} + +div.post.reply { + background: #D6F0E4; + border-width: medium 1px 1px medium; + border-style: none solid solid none; + border-color: #E5D959 #E5D959; + color: #000000; +} + +div.post.op div.body { + background-color: #000000; +} + +div.post.reply.post-hover { + background-color: #F0E0D6; + border: 1px dotted #000!important; +} + +div.post.reply div.body a { + color: #0000EE; +} + +div.post.reply div.body a:hover { + color: #00990B; +} + +div.post.reply.highlighted { + background: #F0E0D6; +} + +p.intro a.email span.name { + color: #0000EE; +} + +p.intro a.email:hover span.name { + color: #0000EE; +} + +div.pages { + background: transparent; + border: 2px; + border-style: groove; +} + +hr { + border-width: 1px medium medium; + border-style: solid none none; + border-color: #117743 +} + +div.boardlist { + padding: 0.4em; + font-size: 13px; + color: #000; +} + +div.boardlist a { + text-decoration: none; + padding: 0.2em 0.1em; + color: #000; +} + +div.boardlist a:hover { + color: #00990B; +} + +div#playerW { + display: none!important; +} + +div.delete { + color: #000000; +} + +.unimportant { + color: #000000; +} + +img.board_image { + border:0px; +} \ No newline at end of file diff --git a/stylesheets/favela.css b/stylesheets/favela.css new file mode 100644 index 00000000..6c9f6d58 --- /dev/null +++ b/stylesheets/favela.css @@ -0,0 +1,156 @@ +/** + * favela.css + * For 55chan adapted from kusaba by sinuca + */ +body { + font-family: sans-serif; + background: none repeat scroll 0 0 #EEFDFF; + color: #000; + margin: 0; + padding: 8px; + font-size: 14px; +} + +h1 { + color: #003333; + font-family: sans-serif; + font-size: 24pt; + font-weight: normal; +} + +header div.subtitle { + font-size: 16px; + color: #000; + font-weight: bold; + margin: 1em 0; +} + + +a, a:visited { + text-decoration: none; + color: #345456; +} + +a:hover { + color: #FF7800; +} + +div.banner { + background-color: #00E19A; + color: #FFF; + font-weight: normal; +} + +form table tr th { + background: #FF7800; + color: #FFF; +} + +p.intro span.name { + font-family: serif; +} + +p.fileinfo { + text-decoration: underline; +} + +p.fileinfo span.unimportant, p.fileinfo a { + font-size: 12px; +} + +div.post.reply { + background: #D6F0E4; + border: none; +} + +div.post.reply.post-hover { + border-width: 1px; + border-style: none solid solid none; + border-color: #B7C5D9; +} + +div.post.reply div.body a { + color: #345456; +} + +div.post.reply.highlighted { + background: #B5FFDD; +} + +div[id^="thread_"].highlighted { + background: #B5FFDD; +} + +p.intro a.email span.name { + color: #345456; +} + +div.pages { + background: transparent; + border: none; +} + +hr { + border-top: 1px solid #CCC; +} + +div.boardlist { + font-size: 13px; + color: #000; +} + +div.boardlist a { + text-decoration: none; + padding: 0.2em 0.1em; +} + +div.boardlist a:hover { + background-color: #FF7800; + color: #FFF; +} + +div#playerW { + display: none!important; +} + +/*fixing an issue with the a:hover and its child post-hover thing*/ +div.boardlist a:hover div.post-hover.reply.post { + color: #000; +} + +/* sidebar styles */ + +h2 { + color: #000; + background: #D6F0E4; +} + +div.sidebar h2 { + font-family: Verdana, Tahoma, sans-serif; + font-size: 18px; +} + +div.sidebar h3 { + margin: 0; + background: #D6F0E4; + font-size: 100% +} + +ul.fav_nav { + margin-top: 0; + padding: 0; + list-style: none; +} + +ul.fav_nav a { + text-decoration: none; + color: #555500; +} + +.sidebar a:hover { + text-decoration: underline; +} + +img.board_image { + border:0px; +} \ No newline at end of file diff --git a/stylesheets/favelaframes.css b/stylesheets/favelaframes.css new file mode 100644 index 00000000..5f0f0db6 --- /dev/null +++ b/stylesheets/favelaframes.css @@ -0,0 +1,84 @@ +body { + font-family: sans-serif; + background: none repeat scroll 0 0 #EEFDFF; + font-size: 12px; + margin: 6px; + padding: 0; +} + +h1.title { + font-family: Verdana, Tahoma, sans-serif; + font-size: 23px; + color: #333300; + margin-top: 1em; + background: none; + letter-spacing: normal; +} + +header div.subtitle { + font-family: Verdana, Tahoma, sans-serif; + color: #333300; + font-weight: normal; + font-size: medium; + font-style: italic; +} + +div.favelito { + text-align: center; +} + +.favelito { + display: block; + height: auto; + max-width: 100%; + vertical-align: middle; +} + +div.news-content { + margin-left: 1em; + text-align: justify; +} + +h2 { + color: #000; + background: #D6F0E4; +} + +div.sidebar h2 { + font-family: Verdana, Tahoma, sans-serif; + font-size: 18px; +} + +div.sidebar h3 { + margin: 0; + background: #D6F0E4; + font-size: 100% +} + +div.fav_irc h4 { + font-family: Verdana, Tahoma, sans-serif; + margin: 0; + font-size: 10px; + background: #D6F0E4; +} + +div.fav_irc h4 a { + color: #FF7800; + text-decoration: none; + vertical-align: top; +} + +ul.fav_nav { + margin-top: 0; + padding: 0; + list-style: none; +} + +ul.fav_nav a { + text-decoration: none; + color: #555500; +} + +.sidebar a:hover { + text-decoration: underline; +} \ No newline at end of file diff --git a/stylesheets/img/confraria_bg.png b/stylesheets/img/confraria_bg.png new file mode 100644 index 00000000..703c4b8b Binary files /dev/null and b/stylesheets/img/confraria_bg.png differ diff --git a/stylesheets/img/confraria_foot.png b/stylesheets/img/confraria_foot.png new file mode 100644 index 00000000..70a82310 Binary files /dev/null and b/stylesheets/img/confraria_foot.png differ diff --git a/stylesheets/img/confraria_hatstand.png b/stylesheets/img/confraria_hatstand.png new file mode 100644 index 00000000..2ccc42f0 Binary files /dev/null and b/stylesheets/img/confraria_hatstand.png differ diff --git a/stylesheets/img/jungle_td_dark.png b/stylesheets/img/jungle_td_dark.png new file mode 100644 index 00000000..7b844961 Binary files /dev/null and b/stylesheets/img/jungle_td_dark.png differ diff --git a/stylesheets/nigrachan.css b/stylesheets/nigrachan.css new file mode 100644 index 00000000..6d0a94fa --- /dev/null +++ b/stylesheets/nigrachan.css @@ -0,0 +1,146 @@ +/** + * nigrachan.css + * For 55ch adapted from kusaba by sinuca + */ +body { + background: #000000; + color: #909090; +} +* { +font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif; +font-size: 10pt; +} + +h1 { + color: #FFFFFF; + font-size: 24pt; +} + +header div.subtitle { + font-size: 16px; + color: #FFFFFF; + font-weight: bold; + margin: 1em 0; +} + +a, a:visited { + text-decoration: none; + color: #FFFFFF; +} + +a:hover { + color: #A0A0A0; + text-decoration: underline; +} + +div.banner { + background-color: #000000; + color: #909090; + font-weight: normal; +} + +form table tr th { + background: #202020; + color: #FFF; + padding: 2px 5px; + border: 1px solid #303030; +} + +input[type="text"], input[type="password"], textarea, input[type="submit"], input[type="file"] { + background-color: #101010; + color: #FFF; + border: 1px solid #202020; +} + +p.intro span.name { + font-size: 11pt; + color: #505050; + font-weight: bold; +} + +p.fileinfo span.unimportant, p.fileinfo a { + font-size: 10pt; +} + +div.post.reply { + background: #202020; + border: none; + color: #A0A0A0; + border: 1px solid #101010; +} + +div.post.reply.post-hover { + border-width: 1px; + border-style: none solid solid none; + border-color: #101010; +} + +div.post.reply div.body a { + color: #FFFFFF; +} + +div.post.reply div.body a:hover { + color: #A0A0A0; + text-decoration: underline; +} + +div.post.reply.highlighted { + background: #111111; +} + +p.intro a.email span.name { + color: #FFFFFF; +} + +p.intro a.email:hover span.name { + color: #A0A0A0; + text-decoration: underline; +} + +p.intro span.subject { + color: #606060; +} + +div.pages { + background: transparent; + border: 2px groove #303030; + color: #FFFFFF; +} + +div.pages a.selected { + color: #A0A0A0; +} + +div.pages a:hover { + text-decoration: underline; +} + +hr { + border-top: 2px groove #666; +} + +div.boardlist { + font-size: 10pt; + color: #FFF; + padding: 8px; +} + +div.boardlist a:hover { + text-decoration: underline; +} + +div#playerW { + display: none!important; +} + +.desktop-style div.boardlist:nth-child(1):hover, .desktop-style div.boardlist.cb-menu:nth-child(1) { + background-color: rgba(50, 50, 50, 0.6); +} + +.desktop-style .sub { + background: none; +} + +img.board_image { + border:0px; +} \ No newline at end of file diff --git a/stylesheets/novo_jungle.css b/stylesheets/novo_jungle.css new file mode 100644 index 00000000..70501d0a --- /dev/null +++ b/stylesheets/novo_jungle.css @@ -0,0 +1,146 @@ +/** + * novo_jungle.css + * For 55chan adapted from kusaba by sinuca + */ +body { + font-family: arial,helvetica,sans-serif; + background: url(img/jungle_bg1.png); + background-repeat:repeat-x; + background-position: center top; + color: #000; + font-size: 10pt; + margin: 0; + padding: 8px; +} + +html { + background-image: url(img/jungle_bg.png); + background-position: center top; + background-repeat:repeat; +} + +h1 { + color: #054500; + font-family: Georgia; + font-size: 24pt; + font-weight: normal; + text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8); +} + +header div.subtitle { + font-size: 16px; + color: #000; + font-weight: bold; + margin: 1em 0; +} + +a, a:visited { + color: #0000EE; +} + +a:hover { + color: #00990B; +} + +div.banner { + background-color: #054500; + color: #FFF; + font-weight: normal; + font-size: 10pt; + padding: 2px; +} + +form table tr th { + background: #65AB6B; + color: #054500; + border: 1px solid #054500; + font-size: 10pt; + padding: 0px 5px; + line-height: 20px; + font-weight: 800; +} + +form[name="postcontrols"] { + width: 95%; + margin: 20px auto; +} + +p.intro span.name { + color: #800000; + font-weight: 800; +} + +p.fileinfo span.unimportant, p.fileinfo a { + font-size: 12px; +} + +div.post.reply { + border-width: medium 1px 1px medium; + border-style: none solid solid none; + border-color: #E5D959 #E5D959; + border: none; + padding: 2px; + border-radius: 5px; + box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.35); + background-image: url('img/jungle_td.png'); + color: #054500; +} + +div.post.reply.post-hover { + border-width: 1px; + border-style: none solid solid none; + border-color: #B7C5D9; +} + +div.post.reply div.body a { + color: #0000EE; +} + +div.post.reply div.body a:hover { + color: #00990B; +} + +div.post.reply.highlighted { + background-image: url('img/jungle_td_dark.png');; +} + +p.intro a.email span.name { + color: #0000EE; +} + +p.intro a.email:hover span.name { + color: #00990B; +} + +div.pages { + background: transparent; + border: 2px; + border-style: groove; + color: #000000; +} + +hr { + border: 0px; +} + +div.boardlist { + color: rgb(44, 89, 34); +} + +div.boardlist a { + text-decoration: none; + padding: 0.2em 0.1em; + color: rgb(44, 89, 34);; +} + +div.boardlist a:hover { + color: #00990B; +} + +div#playerW { + display: none!important; +} + +img.board_image { + border:0px; +} \ No newline at end of file diff --git a/stylesheets/tooltipster.css b/stylesheets/tooltipster.css new file mode 100644 index 00000000..e5c609cc --- /dev/null +++ b/stylesheets/tooltipster.css @@ -0,0 +1,274 @@ +/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */ +.tooltipster-default { + border-radius: 5px; + border: 2px solid #000; + background: #4c4c4c; + color: #fff; +} + +/* Use this next selector to style things like font-size and line-height: */ +.tooltipster-default .tooltipster-content { + font-family: Arial, sans-serif; + font-size: 14px; + line-height: 16px; + padding: 8px 10px; + overflow: hidden; +} + +/* This next selector defines the color of the border on the outside of the arrow. This will automatically match the color and size of the border set on the main tooltip styles. Set display: none; if you would like a border around the tooltip but no border around the arrow */ +.tooltipster-default .tooltipster-arrow .tooltipster-arrow-border { + /* border-color: ... !important; */ +} + + +/* If you're using the icon option, use this next selector to style them */ +.tooltipster-icon { + cursor: help; + margin-left: 4px; +} + + + + + + + + +/* This is the base styling required to make all Tooltipsters work */ +.tooltipster-base { + padding: 0; + font-size: 0; + line-height: 0; + position: absolute; + left: 0; + top: 0; + z-index: 9999999; + pointer-events: none; + width: auto; + overflow: visible; +} +.tooltipster-base .tooltipster-content { + overflow: hidden; +} + + +/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */ +.tooltipster-arrow { + display: block; + text-align: center; + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: -1; +} +.tooltipster-arrow span, .tooltipster-arrow-border { + display: block; + width: 0; + height: 0; + position: absolute; +} +.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span { + border-left: 8px solid transparent !important; + border-right: 8px solid transparent !important; + border-top: 8px solid; + bottom: -7px; +} +.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border { + border-left: 9px solid transparent !important; + border-right: 9px solid transparent !important; + border-top: 9px solid; + bottom: -7px; +} + +.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span { + border-left: 8px solid transparent !important; + border-right: 8px solid transparent !important; + border-bottom: 8px solid; + top: -7px; +} +.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { + border-left: 9px solid transparent !important; + border-right: 9px solid transparent !important; + border-bottom: 9px solid; + top: -7px; +} +.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border { + left: 0; + right: 0; + margin: 0 auto; +} +.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span { + left: 6px; +} +.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { + left: 5px; +} +.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span { + right: 6px; +} +.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border { + right: 5px; +} +.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border { + border-top: 8px solid transparent !important; + border-bottom: 8px solid transparent !important; + border-left: 8px solid; + top: 50%; + margin-top: -7px; + right: -7px; +} +.tooltipster-arrow-left .tooltipster-arrow-border { + border-top: 9px solid transparent !important; + border-bottom: 9px solid transparent !important; + border-left: 9px solid; + margin-top: -8px; +} +.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border { + border-top: 8px solid transparent !important; + border-bottom: 8px solid transparent !important; + border-right: 8px solid; + top: 50%; + margin-top: -7px; + left: -7px; +} +.tooltipster-arrow-right .tooltipster-arrow-border { + border-top: 9px solid transparent !important; + border-bottom: 9px solid transparent !important; + border-right: 9px solid; + margin-top: -8px; +} + + +/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */ + +.tooltipster-fade { + opacity: 0; + -webkit-transition-property: opacity; + -moz-transition-property: opacity; + -o-transition-property: opacity; + -ms-transition-property: opacity; + transition-property: opacity; +} +.tooltipster-fade-show { + opacity: 1; +} + +.tooltipster-grow { + -webkit-transform: scale(0,0); + -moz-transform: scale(0,0); + -o-transform: scale(0,0); + -ms-transform: scale(0,0); + transform: scale(0,0); + -webkit-transition-property: -webkit-transform; + -moz-transition-property: -moz-transform; + -o-transition-property: -o-transform; + -ms-transition-property: -ms-transform; + transition-property: transform; + -webkit-backface-visibility: hidden; +} +.tooltipster-grow-show { + -webkit-transform: scale(1,1); + -moz-transform: scale(1,1); + -o-transform: scale(1,1); + -ms-transform: scale(1,1); + transform: scale(1,1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); +} + +.tooltipster-swing { + opacity: 0; + -webkit-transform: rotateZ(4deg); + -moz-transform: rotateZ(4deg); + -o-transform: rotateZ(4deg); + -ms-transform: rotateZ(4deg); + transform: rotateZ(4deg); + -webkit-transition-property: -webkit-transform, opacity; + -moz-transition-property: -moz-transform; + -o-transition-property: -o-transform; + -ms-transition-property: -ms-transform; + transition-property: transform; +} +.tooltipster-swing-show { + opacity: 1; + -webkit-transform: rotateZ(0deg); + -moz-transform: rotateZ(0deg); + -o-transform: rotateZ(0deg); + -ms-transform: rotateZ(0deg); + transform: rotateZ(0deg); + -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 1); + -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + -moz-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + -ms-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + -o-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); + transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); +} + +.tooltipster-fall { + top: 0; + -webkit-transition-property: top; + -moz-transition-property: top; + -o-transition-property: top; + -ms-transition-property: top; + transition-property: top; + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); +} +.tooltipster-fall-show { +} +.tooltipster-fall.tooltipster-dying { + -webkit-transition-property: all; + -moz-transition-property: all; + -o-transition-property: all; + -ms-transition-property: all; + transition-property: all; + top: 0px !important; + opacity: 0; +} + +.tooltipster-slide { + left: -40px; + -webkit-transition-property: left; + -moz-transition-property: left; + -o-transition-property: left; + -ms-transition-property: left; + transition-property: left; + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); + -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); + transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); +} +.tooltipster-slide.tooltipster-slide-show { +} +.tooltipster-slide.tooltipster-dying { + -webkit-transition-property: all; + -moz-transition-property: all; + -o-transition-property: all; + -ms-transition-property: all; + transition-property: all; + left: 0px !important; + opacity: 0; +} + + +/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */ +.tooltipster-content-changing { + opacity: 0.5; + -webkit-transform: scale(1.1, 1.1); + -moz-transform: scale(1.1, 1.1); + -o-transform: scale(1.1, 1.1); + -ms-transform: scale(1.1, 1.1); + transform: scale(1.1, 1.1); +} -- cgit v1.3 From dc07777467c37af27e8916817605340843a4a92e Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 11:21:13 +0100 Subject: i believe tooltipster doesn‘t belong to here MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stylesheets/tooltipster.css | 274 -------------------------------------------- 1 file changed, 274 deletions(-) delete mode 100644 stylesheets/tooltipster.css diff --git a/stylesheets/tooltipster.css b/stylesheets/tooltipster.css deleted file mode 100644 index e5c609cc..00000000 --- a/stylesheets/tooltipster.css +++ /dev/null @@ -1,274 +0,0 @@ -/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */ -.tooltipster-default { - border-radius: 5px; - border: 2px solid #000; - background: #4c4c4c; - color: #fff; -} - -/* Use this next selector to style things like font-size and line-height: */ -.tooltipster-default .tooltipster-content { - font-family: Arial, sans-serif; - font-size: 14px; - line-height: 16px; - padding: 8px 10px; - overflow: hidden; -} - -/* This next selector defines the color of the border on the outside of the arrow. This will automatically match the color and size of the border set on the main tooltip styles. Set display: none; if you would like a border around the tooltip but no border around the arrow */ -.tooltipster-default .tooltipster-arrow .tooltipster-arrow-border { - /* border-color: ... !important; */ -} - - -/* If you're using the icon option, use this next selector to style them */ -.tooltipster-icon { - cursor: help; - margin-left: 4px; -} - - - - - - - - -/* This is the base styling required to make all Tooltipsters work */ -.tooltipster-base { - padding: 0; - font-size: 0; - line-height: 0; - position: absolute; - left: 0; - top: 0; - z-index: 9999999; - pointer-events: none; - width: auto; - overflow: visible; -} -.tooltipster-base .tooltipster-content { - overflow: hidden; -} - - -/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */ -.tooltipster-arrow { - display: block; - text-align: center; - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - z-index: -1; -} -.tooltipster-arrow span, .tooltipster-arrow-border { - display: block; - width: 0; - height: 0; - position: absolute; -} -.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span { - border-left: 8px solid transparent !important; - border-right: 8px solid transparent !important; - border-top: 8px solid; - bottom: -7px; -} -.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border { - border-left: 9px solid transparent !important; - border-right: 9px solid transparent !important; - border-top: 9px solid; - bottom: -7px; -} - -.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span { - border-left: 8px solid transparent !important; - border-right: 8px solid transparent !important; - border-bottom: 8px solid; - top: -7px; -} -.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { - border-left: 9px solid transparent !important; - border-right: 9px solid transparent !important; - border-bottom: 9px solid; - top: -7px; -} -.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border { - left: 0; - right: 0; - margin: 0 auto; -} -.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span { - left: 6px; -} -.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { - left: 5px; -} -.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span { - right: 6px; -} -.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border { - right: 5px; -} -.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border { - border-top: 8px solid transparent !important; - border-bottom: 8px solid transparent !important; - border-left: 8px solid; - top: 50%; - margin-top: -7px; - right: -7px; -} -.tooltipster-arrow-left .tooltipster-arrow-border { - border-top: 9px solid transparent !important; - border-bottom: 9px solid transparent !important; - border-left: 9px solid; - margin-top: -8px; -} -.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border { - border-top: 8px solid transparent !important; - border-bottom: 8px solid transparent !important; - border-right: 8px solid; - top: 50%; - margin-top: -7px; - left: -7px; -} -.tooltipster-arrow-right .tooltipster-arrow-border { - border-top: 9px solid transparent !important; - border-bottom: 9px solid transparent !important; - border-right: 9px solid; - margin-top: -8px; -} - - -/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */ - -.tooltipster-fade { - opacity: 0; - -webkit-transition-property: opacity; - -moz-transition-property: opacity; - -o-transition-property: opacity; - -ms-transition-property: opacity; - transition-property: opacity; -} -.tooltipster-fade-show { - opacity: 1; -} - -.tooltipster-grow { - -webkit-transform: scale(0,0); - -moz-transform: scale(0,0); - -o-transform: scale(0,0); - -ms-transform: scale(0,0); - transform: scale(0,0); - -webkit-transition-property: -webkit-transform; - -moz-transition-property: -moz-transform; - -o-transition-property: -o-transform; - -ms-transition-property: -ms-transform; - transition-property: transform; - -webkit-backface-visibility: hidden; -} -.tooltipster-grow-show { - -webkit-transform: scale(1,1); - -moz-transform: scale(1,1); - -o-transform: scale(1,1); - -ms-transform: scale(1,1); - transform: scale(1,1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); -} - -.tooltipster-swing { - opacity: 0; - -webkit-transform: rotateZ(4deg); - -moz-transform: rotateZ(4deg); - -o-transform: rotateZ(4deg); - -ms-transform: rotateZ(4deg); - transform: rotateZ(4deg); - -webkit-transition-property: -webkit-transform, opacity; - -moz-transition-property: -moz-transform; - -o-transition-property: -o-transform; - -ms-transition-property: -ms-transform; - transition-property: transform; -} -.tooltipster-swing-show { - opacity: 1; - -webkit-transform: rotateZ(0deg); - -moz-transform: rotateZ(0deg); - -o-transform: rotateZ(0deg); - -ms-transform: rotateZ(0deg); - transform: rotateZ(0deg); - -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 1); - -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); - -moz-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); - -ms-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); - -o-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); - transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4); -} - -.tooltipster-fall { - top: 0; - -webkit-transition-property: top; - -moz-transition-property: top; - -o-transition-property: top; - -ms-transition-property: top; - transition-property: top; - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); -} -.tooltipster-fall-show { -} -.tooltipster-fall.tooltipster-dying { - -webkit-transition-property: all; - -moz-transition-property: all; - -o-transition-property: all; - -ms-transition-property: all; - transition-property: all; - top: 0px !important; - opacity: 0; -} - -.tooltipster-slide { - left: -40px; - -webkit-transition-property: left; - -moz-transition-property: left; - -o-transition-property: left; - -ms-transition-property: left; - transition-property: left; - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15); -} -.tooltipster-slide.tooltipster-slide-show { -} -.tooltipster-slide.tooltipster-dying { - -webkit-transition-property: all; - -moz-transition-property: all; - -o-transition-property: all; - -ms-transition-property: all; - transition-property: all; - left: 0px !important; - opacity: 0; -} - - -/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */ -.tooltipster-content-changing { - opacity: 0.5; - -webkit-transform: scale(1.1, 1.1); - -moz-transform: scale(1.1, 1.1); - -o-transform: scale(1.1, 1.1); - -ms-transform: scale(1.1, 1.1); - transform: scale(1.1, 1.1); -} -- cgit v1.3 From eac7d10ee089a7d3b7fb2fe0eed97ce01c833982 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 11:23:23 +0100 Subject: this either --- stylesheets/favelaframes.css | 84 -------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 stylesheets/favelaframes.css diff --git a/stylesheets/favelaframes.css b/stylesheets/favelaframes.css deleted file mode 100644 index 5f0f0db6..00000000 --- a/stylesheets/favelaframes.css +++ /dev/null @@ -1,84 +0,0 @@ -body { - font-family: sans-serif; - background: none repeat scroll 0 0 #EEFDFF; - font-size: 12px; - margin: 6px; - padding: 0; -} - -h1.title { - font-family: Verdana, Tahoma, sans-serif; - font-size: 23px; - color: #333300; - margin-top: 1em; - background: none; - letter-spacing: normal; -} - -header div.subtitle { - font-family: Verdana, Tahoma, sans-serif; - color: #333300; - font-weight: normal; - font-size: medium; - font-style: italic; -} - -div.favelito { - text-align: center; -} - -.favelito { - display: block; - height: auto; - max-width: 100%; - vertical-align: middle; -} - -div.news-content { - margin-left: 1em; - text-align: justify; -} - -h2 { - color: #000; - background: #D6F0E4; -} - -div.sidebar h2 { - font-family: Verdana, Tahoma, sans-serif; - font-size: 18px; -} - -div.sidebar h3 { - margin: 0; - background: #D6F0E4; - font-size: 100% -} - -div.fav_irc h4 { - font-family: Verdana, Tahoma, sans-serif; - margin: 0; - font-size: 10px; - background: #D6F0E4; -} - -div.fav_irc h4 a { - color: #FF7800; - text-decoration: none; - vertical-align: top; -} - -ul.fav_nav { - margin-top: 0; - padding: 0; - list-style: none; -} - -ul.fav_nav a { - text-decoration: none; - color: #555500; -} - -.sidebar a:hover { - text-decoration: underline; -} \ No newline at end of file -- cgit v1.3 From fb2b66e2dd67ceefc94d8e64eedd9300f64d695f Mon Sep 17 00:00:00 2001 From: sinuca <55vitaminado@gmail.com> Date: Mon, 17 Mar 2014 19:11:16 -0300 Subject: Recent posts functionality Conflicts: inc/config.php inc/mod/pages.php mod.php --- inc/config.php | 2 ++ inc/mod/pages.php | 66 +++++++++++++++++++++++++++++++++++++ js/recent-posts.js | 73 +++++++++++++++++++++++++++++++++++++++++ mod.php | 2 ++ templates/mod/recent_posts.html | 5 +++ 5 files changed, 148 insertions(+) create mode 100644 js/recent-posts.js create mode 100644 templates/mod/recent_posts.html diff --git a/inc/config.php b/inc/config.php index 1bf55fb7..b2f62f5e 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1376,6 +1376,8 @@ $config['mod']['view_ban_appeals'] = MOD; // Accept and deny ban appeals $config['mod']['ban_appeals'] = MOD; + // View the recent posts page + $config['mod']['recent'] = MOD; // Config editor permissions $config['mod']['config'] = array(); diff --git a/inc/mod/pages.php b/inc/mod/pages.php index a247e35c..b9f3b045 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2213,6 +2213,72 @@ function mod_report_dismiss($id, $all = false) { header('Location: ?/reports', true, $config['redirect_http']); } +function mod_recent_posts($lim) { + global $config, $mod, $pdo; + + if (!hasPermission($config['mod']['recent'])) + error($config['error']['noaccess']); + + $limit = (is_numeric($lim))? $lim : 25; + + $mod_boards = array(); + $boards = listBoards(); + + //if not all boards + if ($mod['boards'][0]!='*') { + foreach ($boards as $board) { + if (in_array($board['uri'], $mod['boards'])) + $mod_boards[] = $board; + } + } else { + $mod_boards = $boards; + } + + // Manually build an SQL query + $query = 'SELECT * FROM ('; + foreach ($mod_boards as $board) { + $query .= sprintf('SELECT *, %s AS `board` FROM ``posts_%s`` UNION ALL ', $pdo->quote($board['uri']), $board['uri']); + } + // Remove the last "UNION ALL" seperator and complete the query + $query = preg_replace('/UNION ALL $/', ') AS `all_posts` ORDER BY `time` DESC LIMIT ' . $limit, $query); + $query = query($query) or error(db_error()); + $posts = $query->fetchAll(PDO::FETCH_ASSOC); + + $body = '

Viewing last '.$limit.' posts

+

View 25 | 50 | 100

+ Erase local data
'; + foreach ($posts as $post) { + openBoard($post['board']); + if (!$post['thread']) { + // Still need to fix this: + $po = new Thread($post, '?/', $mod, false); + $string = $po->build(true); + $replacement = str_replace('

', + '

/'.$post['board'].'/'.$post['id'].'

', + $string); + } else { + $po = new Post($post, '?/', $mod); + $string = $po->build(true); + $replacement = str_replace('

/'.$post['board'].'/'.$post['id'].'
'; + } + + echo Element('modpage.html', array( + 'config' => $config, + 'mod' => $mod, + 'hide_dashboard_link' => true, + 'title' => _('Recent posts'), + 'subtitle' => '', + 'nojavascript' => false, + 'is_recent_posts' => true, + 'body' => $body + ) + ); + +} function mod_config($board_config = false) { global $config, $mod, $board; diff --git a/js/recent-posts.js b/js/recent-posts.js new file mode 100644 index 00000000..c65f6991 --- /dev/null +++ b/js/recent-posts.js @@ -0,0 +1,73 @@ +/* + * recent-posts.js + * + * Recent posts controlling script + * + * Released under the WTFPL license + * Copyright (c) 2014 sinuca <#55ch@rizon.net> + * + * Requires jquery + * incomplete + * + */ + +$(document).ready(function(){ + + if (!localStorage.hiddenrecentposts) + localStorage.hiddenrecentposts = '{}'; + + if (!localStorage.recentpostscount) + localStorage.recentpostscount = 25; + + // Load data from HTML5 localStorage + var hidden_data = JSON.parse(localStorage.hiddenrecentposts); + + var store_data_posts = function() { + localStorage.hiddenrecentposts = JSON.stringify(hidden_data); + } + + // Delete old hidden posts (7+ days old) + for (var key in hidden_data) { + for (var id in hidden_data[key]) { + if (hidden_data[key][id] < Math.round(Date.now() / 1000) - 60 * 60 * 24 * 7) { + delete hidden_data[key][id]; + store_data_posts(); + } + } + } + + var do_hide_posts = function() { + var data = $(this).attr('id'); + var splitted = data.split('-'); + var id = splitted[2]; + var post_container = $(this).parent(); + + var board = post_container.data("board"); + + if (!hidden_data[board]) { + hidden_data[board] = {}; + } + + $(' Dismiss ') + .insertBefore(post_container.find('a.eita-link:first')) + .click(function(){ + hidden_data[board][id] = Math.round(Date.now() / 1000); + store_data_posts(); + + post_container.closest('hr').hide(); + post_container.children().hide(); + }); + if(hidden_data[board][id]) + post_container.find('a.hide-post-link').click(); + } + + $('a.eita-link').each(do_hide_posts); + + $('#erase-local-data').click(function(){ + hidden_data = {}; + store_data_posts(); + $(this).html('Loading...'); + location.reload(); + }); + +}); \ No newline at end of file diff --git a/mod.php b/mod.php index e5b14878..6918dc57 100644 --- a/mod.php +++ b/mod.php @@ -65,6 +65,8 @@ $pages = array( '/bans/(\d+)' => 'secure_POST bans', // ban list '/ban-appeals' => 'secure_POST ban_appeals', // view ban appeals + '/recent/(\d+)' => 'recent_posts', // view recent posts + '/search' => 'search_redirect', // search '/search/(posts|IP_notes|bans|log)/(.+)/(\d+)' => 'search', // search '/search/(posts|IP_notes|bans|log)/(.+)' => 'search', // search diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html new file mode 100644 index 00000000..c106b4e8 --- /dev/null +++ b/templates/mod/recent_posts.html @@ -0,0 +1,5 @@ +{% if posts|count %} +

({% trans 'There are no active posts.' %})

+{% else %} + +{% endif %} \ No newline at end of file -- cgit v1.3 From e0a89c597d3de8867d0faa01244fe8d5d06c34cc Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 11:37:39 +0100 Subject: move recent-posts to mod --- js/mod/recent-posts.js | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++ js/recent-posts.js | 73 -------------------------------------------------- 2 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 js/mod/recent-posts.js delete mode 100644 js/recent-posts.js diff --git a/js/mod/recent-posts.js b/js/mod/recent-posts.js new file mode 100644 index 00000000..c65f6991 --- /dev/null +++ b/js/mod/recent-posts.js @@ -0,0 +1,73 @@ +/* + * recent-posts.js + * + * Recent posts controlling script + * + * Released under the WTFPL license + * Copyright (c) 2014 sinuca <#55ch@rizon.net> + * + * Requires jquery + * incomplete + * + */ + +$(document).ready(function(){ + + if (!localStorage.hiddenrecentposts) + localStorage.hiddenrecentposts = '{}'; + + if (!localStorage.recentpostscount) + localStorage.recentpostscount = 25; + + // Load data from HTML5 localStorage + var hidden_data = JSON.parse(localStorage.hiddenrecentposts); + + var store_data_posts = function() { + localStorage.hiddenrecentposts = JSON.stringify(hidden_data); + } + + // Delete old hidden posts (7+ days old) + for (var key in hidden_data) { + for (var id in hidden_data[key]) { + if (hidden_data[key][id] < Math.round(Date.now() / 1000) - 60 * 60 * 24 * 7) { + delete hidden_data[key][id]; + store_data_posts(); + } + } + } + + var do_hide_posts = function() { + var data = $(this).attr('id'); + var splitted = data.split('-'); + var id = splitted[2]; + var post_container = $(this).parent(); + + var board = post_container.data("board"); + + if (!hidden_data[board]) { + hidden_data[board] = {}; + } + + $(' Dismiss ') + .insertBefore(post_container.find('a.eita-link:first')) + .click(function(){ + hidden_data[board][id] = Math.round(Date.now() / 1000); + store_data_posts(); + + post_container.closest('hr').hide(); + post_container.children().hide(); + }); + if(hidden_data[board][id]) + post_container.find('a.hide-post-link').click(); + } + + $('a.eita-link').each(do_hide_posts); + + $('#erase-local-data').click(function(){ + hidden_data = {}; + store_data_posts(); + $(this).html('Loading...'); + location.reload(); + }); + +}); \ No newline at end of file diff --git a/js/recent-posts.js b/js/recent-posts.js deleted file mode 100644 index c65f6991..00000000 --- a/js/recent-posts.js +++ /dev/null @@ -1,73 +0,0 @@ -/* - * recent-posts.js - * - * Recent posts controlling script - * - * Released under the WTFPL license - * Copyright (c) 2014 sinuca <#55ch@rizon.net> - * - * Requires jquery - * incomplete - * - */ - -$(document).ready(function(){ - - if (!localStorage.hiddenrecentposts) - localStorage.hiddenrecentposts = '{}'; - - if (!localStorage.recentpostscount) - localStorage.recentpostscount = 25; - - // Load data from HTML5 localStorage - var hidden_data = JSON.parse(localStorage.hiddenrecentposts); - - var store_data_posts = function() { - localStorage.hiddenrecentposts = JSON.stringify(hidden_data); - } - - // Delete old hidden posts (7+ days old) - for (var key in hidden_data) { - for (var id in hidden_data[key]) { - if (hidden_data[key][id] < Math.round(Date.now() / 1000) - 60 * 60 * 24 * 7) { - delete hidden_data[key][id]; - store_data_posts(); - } - } - } - - var do_hide_posts = function() { - var data = $(this).attr('id'); - var splitted = data.split('-'); - var id = splitted[2]; - var post_container = $(this).parent(); - - var board = post_container.data("board"); - - if (!hidden_data[board]) { - hidden_data[board] = {}; - } - - $(' Dismiss ') - .insertBefore(post_container.find('a.eita-link:first')) - .click(function(){ - hidden_data[board][id] = Math.round(Date.now() / 1000); - store_data_posts(); - - post_container.closest('hr').hide(); - post_container.children().hide(); - }); - if(hidden_data[board][id]) - post_container.find('a.hide-post-link').click(); - } - - $('a.eita-link').each(do_hide_posts); - - $('#erase-local-data').click(function(){ - hidden_data = {}; - store_data_posts(); - $(this).html('Loading...'); - location.reload(); - }); - -}); \ No newline at end of file -- cgit v1.3 From b0c837ce9369b932cecff91966dacdaef4a96952 Mon Sep 17 00:00:00 2001 From: sinuca <55vitaminado@gmail.com> Date: Tue, 25 Mar 2014 11:41:20 +0100 Subject: expand-images.js: shrink all images functionality --- js/expand-all-images.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/expand-all-images.js b/js/expand-all-images.js index 6ef58ca9..fc273e5e 100644 --- a/js/expand-all-images.js +++ b/js/expand-all-images.js @@ -7,6 +7,7 @@ * Released under the MIT license * Copyright (c) 2012-2013 Michael Save * Copyright (c) 2013-2014 Marcin Łabanowski + * Copyright (c) 2014 sinuca <#55ch@rizon.net> * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; @@ -25,6 +26,16 @@ onready(function(){ if (!$(this).parent()[0].dataset.expanded) $(this).parent().click(); }); - $(this).parent().remove(); + + $('hr:first').before('
'); + $('div#shrink-all-images a') + .text(_('Shrink all images')) + .click(function(){ + $('a img.post-image').each(function() { + if ($(this).parent()[0].dataset.expanded) + $(this).parent().click(); + }); + $(this).parent().remove(); + }); }); }); -- cgit v1.3 From 1e78987ef638cc899be7993d3a7938e51b16ad6d Mon Sep 17 00:00:00 2001 From: sinuca <55vitaminado@gmail.com> Date: Tue, 18 Mar 2014 00:39:13 -0300 Subject: Added ukko and favelaframes themes --- templates/themes/favelaframes/favelaframes.css | 84 ++++++++++++++++++++ templates/themes/favelaframes/frames.html | 102 +++++++++++++++++++++++++ templates/themes/favelaframes/info.php | 87 +++++++++++++++++++++ templates/themes/favelaframes/news.html | 40 ++++++++++ templates/themes/favelaframes/sidebar.html | 38 +++++++++ templates/themes/favelaframes/theme.php | 74 ++++++++++++++++++ templates/themes/favelaframes/thumb.png | Bin 0 -> 7571 bytes 7 files changed, 425 insertions(+) create mode 100644 templates/themes/favelaframes/favelaframes.css create mode 100644 templates/themes/favelaframes/frames.html create mode 100644 templates/themes/favelaframes/info.php create mode 100644 templates/themes/favelaframes/news.html create mode 100644 templates/themes/favelaframes/sidebar.html create mode 100644 templates/themes/favelaframes/theme.php create mode 100644 templates/themes/favelaframes/thumb.png diff --git a/templates/themes/favelaframes/favelaframes.css b/templates/themes/favelaframes/favelaframes.css new file mode 100644 index 00000000..5f0f0db6 --- /dev/null +++ b/templates/themes/favelaframes/favelaframes.css @@ -0,0 +1,84 @@ +body { + font-family: sans-serif; + background: none repeat scroll 0 0 #EEFDFF; + font-size: 12px; + margin: 6px; + padding: 0; +} + +h1.title { + font-family: Verdana, Tahoma, sans-serif; + font-size: 23px; + color: #333300; + margin-top: 1em; + background: none; + letter-spacing: normal; +} + +header div.subtitle { + font-family: Verdana, Tahoma, sans-serif; + color: #333300; + font-weight: normal; + font-size: medium; + font-style: italic; +} + +div.favelito { + text-align: center; +} + +.favelito { + display: block; + height: auto; + max-width: 100%; + vertical-align: middle; +} + +div.news-content { + margin-left: 1em; + text-align: justify; +} + +h2 { + color: #000; + background: #D6F0E4; +} + +div.sidebar h2 { + font-family: Verdana, Tahoma, sans-serif; + font-size: 18px; +} + +div.sidebar h3 { + margin: 0; + background: #D6F0E4; + font-size: 100% +} + +div.fav_irc h4 { + font-family: Verdana, Tahoma, sans-serif; + margin: 0; + font-size: 10px; + background: #D6F0E4; +} + +div.fav_irc h4 a { + color: #FF7800; + text-decoration: none; + vertical-align: top; +} + +ul.fav_nav { + margin-top: 0; + padding: 0; + list-style: none; +} + +ul.fav_nav a { + text-decoration: none; + color: #555500; +} + +.sidebar a:hover { + text-decoration: underline; +} \ No newline at end of file diff --git a/templates/themes/favelaframes/frames.html b/templates/themes/favelaframes/frames.html new file mode 100644 index 00000000..ccbd377e --- /dev/null +++ b/templates/themes/favelaframes/frames.html @@ -0,0 +1,102 @@ + + + + + + + {% if settings.tryresponsive %} + + + {% endif %} + + {{ settings.title }} + + + + +
+ 55 +
+ + diff --git a/templates/themes/favelaframes/info.php b/templates/themes/favelaframes/info.php new file mode 100644 index 00000000..b82a2b6d --- /dev/null +++ b/templates/themes/favelaframes/info.php @@ -0,0 +1,87 @@ + 'Site title', + 'name' => 'title', + 'type' => 'text' + ); + + $theme['config'][] = Array( + 'title' => 'Slogan', + 'name' => 'subtitle', + 'type' => 'text', + 'comment' => '(optional)' + ); + + $theme['config'][] = Array( + 'title' => 'Main HTML file', + 'name' => 'file_main', + 'type' => 'text', + 'default' => $config['file_index'], + 'comment' => '(eg. "index.html")' + ); + + $theme['config'][] = Array( + 'title' => 'Sidebar file', + 'name' => 'file_sidebar', + 'type' => 'text', + 'default' => 'sidebar.html', + 'comment' => '(eg. "sidebar.html")' + ); + + $theme['config'][] = Array( + 'title' => 'News file', + 'name' => 'file_news', + 'type' => 'text', + 'default' => 'news.html', + 'comment' => '(eg. "news.html")' + ); + + $theme['config'][] = Array( + 'title' => 'IRC url', + 'name' => 'irc_url', + 'type' => 'text', + 'default' => 'http://qchat.rizon.net/?nick=Anao.&channels=55ch&uio=d4', + 'comment' => '(optional) Link to IRC channel' + ); + + $theme['config'][] = Array( + 'title' => 'IRC address', + 'name' => 'irc_address', + 'type' => 'text', + 'default' => '#55ch@rizon.net', + 'comment' => '(optional) IRC channel address to appear as a label to the url entered above' + ); + + $theme['config'][] = Array( + 'title' => 'CSS file', + 'name' => 'css', + 'type' => 'text', + 'default' => 'favelaframes.css', + 'comment' => '(eg. "favelaframes.css")' + ); + + $theme['config'][] = Array( + 'title' => 'Try the little responsive thingy thing', + 'name' => 'tryresponsive', + 'type' => 'checkbox', + 'default' => true, + 'comment' => 'With this checked, the menu frame will become collapsible when viewport width is under 767px.' + ); + + // Unique function name for building everything + $theme['build_function'] = 'favelaframes_build'; +?> diff --git a/templates/themes/favelaframes/news.html b/templates/themes/favelaframes/news.html new file mode 100644 index 00000000..2b32a78b --- /dev/null +++ b/templates/themes/favelaframes/news.html @@ -0,0 +1,40 @@ +{% filter remove_whitespace %} + + + + + {{ settings.title }} + + + + +
+
+ Favelito +
+

{{ settings.title }}

+
"{{ settings.subtitle }}"
+
+ +
+ {% if news|count == 0 %} +

(No news to show.)

+ {% else %} + {% for entry in news %} +

+ {% if entry.subject %} + {{ entry.subject }} + {% else %} + no subject + {% endif %} + — by {{ entry.name }} at {{ entry.time|date(config.post_date) }} +

+

{{ entry.body }}

+ {% endfor %} + {% endif %} +
+ +

Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2012 Tinyboard Development Group

+ + +{% endfilter %} diff --git a/templates/themes/favelaframes/sidebar.html b/templates/themes/favelaframes/sidebar.html new file mode 100644 index 00000000..5ee84d80 --- /dev/null +++ b/templates/themes/favelaframes/sidebar.html @@ -0,0 +1,38 @@ +{% filter remove_whitespace %} + + + + + {{ settings.title }} + + + + + + + + + +{% endfilter %} diff --git a/templates/themes/favelaframes/theme.php b/templates/themes/favelaframes/theme.php new file mode 100644 index 00000000..d31a324e --- /dev/null +++ b/templates/themes/favelaframes/theme.php @@ -0,0 +1,74 @@ + $config, 'settings' => $settings)); + } + + // Build news page + public static function news($settings) { + global $config; + + $query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error()); + $news = $query->fetchAll(PDO::FETCH_ASSOC); + + return Element('themes/favelaframes/news.html', Array( + 'settings' => $settings, + 'config' => $config, + 'news' => $news + )); + } + + // Build sidebar + public static function sidebar($settings) { + global $config, $board; + + $categories = $config['categories']; + + foreach ($categories as &$boards) { + foreach ($boards as &$board) { + $title = boardTitle($board); + if (!$title) + $title = $board; // board doesn't exist, but for some reason you want to display it anyway + $board = Array('title' => $title, 'uri' => sprintf($config['board_path'], $board)); + } + } + + return Element('themes/favelaframes/sidebar.html', Array( + 'settings' => $settings, + 'config' => $config, + 'categories' => $categories + )); + } + }; + +?> diff --git a/templates/themes/favelaframes/thumb.png b/templates/themes/favelaframes/thumb.png new file mode 100644 index 00000000..df18a8e9 Binary files /dev/null and b/templates/themes/favelaframes/thumb.png differ -- cgit v1.3 From 9d9d514919625ac66178198045b2a997d282b5c7 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 11:57:36 +0100 Subject: we no have any modpages.html --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index b9f3b045..9294e801 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2266,7 +2266,7 @@ function mod_recent_posts($lim) { $body .= $replacement . '
'; } - echo Element('modpage.html', array( + echo Element('page.html', array( 'config' => $config, 'mod' => $mod, 'hide_dashboard_link' => true, -- cgit v1.3 From fe95b3302208d6b60e13a9a9399b08c5e43a3972 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 12:05:07 +0100 Subject: recent posts link --- templates/mod/dashboard.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 7b907533..f83edafc 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -100,6 +100,9 @@ {% if mod|hasPermission(config.mod.modlog) %}
  • {% trans 'Moderation log' %}
  • {% endif %} + {% if mod|hasPermission(config.mod.recent_posts) %} +
  • {% trans 'Recent posts' %}
  • + {% endif %} {% if mod|hasPermission(config.mod.rebuild) %}
  • {% trans 'Rebuild' %}
  • {% endif %} -- cgit v1.3 From 1e92e678a61ea588197604a3acb51be35e393f66 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 12:09:12 +0100 Subject: add a javascript --- templates/mod/recent_posts.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index c106b4e8..4a2f9baa 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -1,5 +1,6 @@ + {% if posts|count %}

    ({% trans 'There are no active posts.' %})

    {% else %} -{% endif %} \ No newline at end of file +{% endif %} -- cgit v1.3 From b1490bed316f64e1e4a4215aebe90e990801e446 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 12:09:59 +0100 Subject: favelaframes is nothing more than frameset AFAIC --- templates/themes/favelaframes/favelaframes.css | 84 -------------------- templates/themes/favelaframes/frames.html | 102 ------------------------- templates/themes/favelaframes/info.php | 87 --------------------- templates/themes/favelaframes/news.html | 40 ---------- templates/themes/favelaframes/sidebar.html | 38 --------- templates/themes/favelaframes/theme.php | 74 ------------------ templates/themes/favelaframes/thumb.png | Bin 7571 -> 0 bytes 7 files changed, 425 deletions(-) delete mode 100644 templates/themes/favelaframes/favelaframes.css delete mode 100644 templates/themes/favelaframes/frames.html delete mode 100644 templates/themes/favelaframes/info.php delete mode 100644 templates/themes/favelaframes/news.html delete mode 100644 templates/themes/favelaframes/sidebar.html delete mode 100644 templates/themes/favelaframes/theme.php delete mode 100644 templates/themes/favelaframes/thumb.png diff --git a/templates/themes/favelaframes/favelaframes.css b/templates/themes/favelaframes/favelaframes.css deleted file mode 100644 index 5f0f0db6..00000000 --- a/templates/themes/favelaframes/favelaframes.css +++ /dev/null @@ -1,84 +0,0 @@ -body { - font-family: sans-serif; - background: none repeat scroll 0 0 #EEFDFF; - font-size: 12px; - margin: 6px; - padding: 0; -} - -h1.title { - font-family: Verdana, Tahoma, sans-serif; - font-size: 23px; - color: #333300; - margin-top: 1em; - background: none; - letter-spacing: normal; -} - -header div.subtitle { - font-family: Verdana, Tahoma, sans-serif; - color: #333300; - font-weight: normal; - font-size: medium; - font-style: italic; -} - -div.favelito { - text-align: center; -} - -.favelito { - display: block; - height: auto; - max-width: 100%; - vertical-align: middle; -} - -div.news-content { - margin-left: 1em; - text-align: justify; -} - -h2 { - color: #000; - background: #D6F0E4; -} - -div.sidebar h2 { - font-family: Verdana, Tahoma, sans-serif; - font-size: 18px; -} - -div.sidebar h3 { - margin: 0; - background: #D6F0E4; - font-size: 100% -} - -div.fav_irc h4 { - font-family: Verdana, Tahoma, sans-serif; - margin: 0; - font-size: 10px; - background: #D6F0E4; -} - -div.fav_irc h4 a { - color: #FF7800; - text-decoration: none; - vertical-align: top; -} - -ul.fav_nav { - margin-top: 0; - padding: 0; - list-style: none; -} - -ul.fav_nav a { - text-decoration: none; - color: #555500; -} - -.sidebar a:hover { - text-decoration: underline; -} \ No newline at end of file diff --git a/templates/themes/favelaframes/frames.html b/templates/themes/favelaframes/frames.html deleted file mode 100644 index ccbd377e..00000000 --- a/templates/themes/favelaframes/frames.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - {% if settings.tryresponsive %} - - - {% endif %} - - {{ settings.title }} - - - - -
    - 55 -
    - - diff --git a/templates/themes/favelaframes/info.php b/templates/themes/favelaframes/info.php deleted file mode 100644 index b82a2b6d..00000000 --- a/templates/themes/favelaframes/info.php +++ /dev/null @@ -1,87 +0,0 @@ - 'Site title', - 'name' => 'title', - 'type' => 'text' - ); - - $theme['config'][] = Array( - 'title' => 'Slogan', - 'name' => 'subtitle', - 'type' => 'text', - 'comment' => '(optional)' - ); - - $theme['config'][] = Array( - 'title' => 'Main HTML file', - 'name' => 'file_main', - 'type' => 'text', - 'default' => $config['file_index'], - 'comment' => '(eg. "index.html")' - ); - - $theme['config'][] = Array( - 'title' => 'Sidebar file', - 'name' => 'file_sidebar', - 'type' => 'text', - 'default' => 'sidebar.html', - 'comment' => '(eg. "sidebar.html")' - ); - - $theme['config'][] = Array( - 'title' => 'News file', - 'name' => 'file_news', - 'type' => 'text', - 'default' => 'news.html', - 'comment' => '(eg. "news.html")' - ); - - $theme['config'][] = Array( - 'title' => 'IRC url', - 'name' => 'irc_url', - 'type' => 'text', - 'default' => 'http://qchat.rizon.net/?nick=Anao.&channels=55ch&uio=d4', - 'comment' => '(optional) Link to IRC channel' - ); - - $theme['config'][] = Array( - 'title' => 'IRC address', - 'name' => 'irc_address', - 'type' => 'text', - 'default' => '#55ch@rizon.net', - 'comment' => '(optional) IRC channel address to appear as a label to the url entered above' - ); - - $theme['config'][] = Array( - 'title' => 'CSS file', - 'name' => 'css', - 'type' => 'text', - 'default' => 'favelaframes.css', - 'comment' => '(eg. "favelaframes.css")' - ); - - $theme['config'][] = Array( - 'title' => 'Try the little responsive thingy thing', - 'name' => 'tryresponsive', - 'type' => 'checkbox', - 'default' => true, - 'comment' => 'With this checked, the menu frame will become collapsible when viewport width is under 767px.' - ); - - // Unique function name for building everything - $theme['build_function'] = 'favelaframes_build'; -?> diff --git a/templates/themes/favelaframes/news.html b/templates/themes/favelaframes/news.html deleted file mode 100644 index 2b32a78b..00000000 --- a/templates/themes/favelaframes/news.html +++ /dev/null @@ -1,40 +0,0 @@ -{% filter remove_whitespace %} - - - - - {{ settings.title }} - - - - -
    -
    - Favelito -
    -

    {{ settings.title }}

    -
    "{{ settings.subtitle }}"
    -
    - -
    - {% if news|count == 0 %} -

    (No news to show.)

    - {% else %} - {% for entry in news %} -

    - {% if entry.subject %} - {{ entry.subject }} - {% else %} - no subject - {% endif %} - — by {{ entry.name }} at {{ entry.time|date(config.post_date) }} -

    -

    {{ entry.body }}

    - {% endfor %} - {% endif %} -
    - -

    Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2012 Tinyboard Development Group

    - - -{% endfilter %} diff --git a/templates/themes/favelaframes/sidebar.html b/templates/themes/favelaframes/sidebar.html deleted file mode 100644 index 5ee84d80..00000000 --- a/templates/themes/favelaframes/sidebar.html +++ /dev/null @@ -1,38 +0,0 @@ -{% filter remove_whitespace %} - - - - - {{ settings.title }} - - - - - - - - - -{% endfilter %} diff --git a/templates/themes/favelaframes/theme.php b/templates/themes/favelaframes/theme.php deleted file mode 100644 index d31a324e..00000000 --- a/templates/themes/favelaframes/theme.php +++ /dev/null @@ -1,74 +0,0 @@ - $config, 'settings' => $settings)); - } - - // Build news page - public static function news($settings) { - global $config; - - $query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error()); - $news = $query->fetchAll(PDO::FETCH_ASSOC); - - return Element('themes/favelaframes/news.html', Array( - 'settings' => $settings, - 'config' => $config, - 'news' => $news - )); - } - - // Build sidebar - public static function sidebar($settings) { - global $config, $board; - - $categories = $config['categories']; - - foreach ($categories as &$boards) { - foreach ($boards as &$board) { - $title = boardTitle($board); - if (!$title) - $title = $board; // board doesn't exist, but for some reason you want to display it anyway - $board = Array('title' => $title, 'uri' => sprintf($config['board_path'], $board)); - } - } - - return Element('themes/favelaframes/sidebar.html', Array( - 'settings' => $settings, - 'config' => $config, - 'categories' => $categories - )); - } - }; - -?> diff --git a/templates/themes/favelaframes/thumb.png b/templates/themes/favelaframes/thumb.png deleted file mode 100644 index df18a8e9..00000000 Binary files a/templates/themes/favelaframes/thumb.png and /dev/null differ -- cgit v1.3 From 15810c9bedb5b7d18baec0f845bb3177f867471e Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 25 Mar 2014 12:15:40 +0100 Subject: fix permission name --- templates/mod/dashboard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index f83edafc..2c370a11 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -100,7 +100,7 @@ {% if mod|hasPermission(config.mod.modlog) %}
  • {% trans 'Moderation log' %}
  • {% endif %} - {% if mod|hasPermission(config.mod.recent_posts) %} + {% if mod|hasPermission(config.mod.recent) %}
  • {% trans 'Recent posts' %}
  • {% endif %} {% if mod|hasPermission(config.mod.rebuild) %} -- cgit v1.3