From fc1f1ef3150ce52ec850c4941570fa6b130b8124 Mon Sep 17 00:00:00 2001 From: sinuca <55vitaminado@gmail.com> Date: Sun, 16 Mar 2014 23:21:01 -0300 Subject: [PATCH 01/13] "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 %} + + +
+ +
+
+ R: {{ post.reply_count }} / I: {{ post.image_count }}
+ {{ post.body }}
+
+
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 + 'Jb|w1=CY<4i*|pN&>#;Od=8j&p7FyvC?p`J)x&3
zdw};~4Px3k*uT398gQ~P_V;mgu{U+GGcebdGE^2ZP?OM8erav0lbK!&x_o?GT1-?*
zaA0h(e{^_ITzE)QVtjsHL33RrJnwB=RBTdYWK rKM1U+|
zC$dAxG~g})9xiwWcore@QOGy}cn{PI;DW*l?%u|>c5(*mJ;G4jPp&@ZLx
z=T1qYj&Odx4EyhMz w^Ey5dYDx~tN
zAAA8WC%{Jxvj#bClgiFr^