diff --git a/KÉZIKÖNYV.md b/KÉZIKÖNYV.md
index e121abd..3036a85 100644
--- a/KÉZIKÖNYV.md
+++ b/KÉZIKÖNYV.md
@@ -16,7 +16,7 @@ settings>reading>Blog pages show at most 6
#### Egyéni mezők
-Ezek a cikk alján láthatóak a szerkesztő felületen
+Ezek a cikk alján láthatóak a szerkesztő felületen. Ha nem látszik jobb felül ... ->Beállítások -> Egyéni mezők
dis-alcim:
@@ -44,6 +44,18 @@ Formátum:
- Ide a bejegyzés formátumát kell beírni, pl interjú, portfólió, hír, stb...
- A kereső felajánlja gépelés elkezdése után a már korábban szereplőket
+Cikkíró:
+
+- A cikk végén megjelenő szerző neve
+- A kereső felajánlja gépelés elkezdése után a már korábban szereplőket
+
+#### Blokkok és egyéb megjegyzések
+
+Az első blokk nincs automatikusan megkülönböztetve. Egyhe kiemelés eléréséhez jelöld ki az 9sszes szöveget az első blokkban és állítsd félkövérre
+
+Elválasztók azaz vízszintes vonalak: A cikk elejére és végére automatikusan kerül egy-egy, az összes többit kézzel kell belerakni, a méretezésük automatikus.
+
+Lightbox működéséhez be kell kapcsolni a hivatkozást! A hivatkozás célját média fájlra állítani!
### Események
diff --git a/_jegyzet.md b/_jegyzet.md
index 398e699..382afd9 100644
--- a/_jegyzet.md
+++ b/_jegyzet.md
@@ -22,4 +22,9 @@ nagy képek, metadata ipad: nem férnek be a rublikába ha hosszúak, mi legy, e
## bedo magasság:
margin: $v-unit-1 => 4rem
- top: calc(#{$v-unit-1}/ 2); => 2rem
\ No newline at end of file
+ top: calc(#{$v-unit-1}/ 2); => 2rem
+
+
+## További kérdések, július 4
+
+Lightbox: Egybe galériába menjen az összes kép cikkenként, vagy külön külön külön?
\ No newline at end of file
diff --git a/_teendők.md b/_teendők.md
index ee86a64..f53c1cb 100644
--- a/_teendők.md
+++ b/_teendők.md
@@ -25,5 +25,11 @@ alapből lehet hogy több látszódjon
Kurzor: Nyíl az nem túl halovány? 32x32 pixel lehet maximum
+## mobil nézet
+
+képek magassága és maszk
+
+
+
# Kategória oldalak
diff --git a/css/base.css b/css/base.css
index 8c90338..bfdc79c 100644
--- a/css/base.css
+++ b/css/base.css
@@ -100,7 +100,7 @@ object {
flex-direction: row;
justify-content: space-between;
align-items: center;
- z-index: 3;
+ z-index: 3000;
/* -------------------------------------------------------------------------- */
/* header elements */
/* -------------------------------------------------------------------------- */
@@ -1571,7 +1571,8 @@ body.category.category-esemeny main {
/* single */
/* -------------------------------------------------------------------------- */
.single {
- /* ---------------------------- single on mobile ---------------------------- */ }
+ /* ---------------------------- single on mobile ---------------------------- */
+ /* -------------------------------- lightbox -------------------------------- */ }
@media (min-width: 769px) {
.single .wrapper {
height: unset;
@@ -1809,6 +1810,62 @@ body.category.category-esemeny main {
border-top: 5rem solid #fff;
position: absolute;
z-index: -1; }
+ .single #cboxOverlay {
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ background-color: #000;
+ z-index: 10; }
+ .single #colorbox {
+ z-index: 12; }
+ .single #colorbox:focus {
+ border: none;
+ outline: none; }
+ .single #colorbox #cboxContent #cboxTitle {
+ padding: 1rem;
+ font: 900 1rem "Westeinde Caption";
+ color: #fff;
+ -webkit-text-stroke-width: 1px;
+ -webkit-text-stroke: #fff 1px;
+ color: transparent;
+ width: 100%;
+ text-align: center; }
+ .single #colorbox #cboxContent #cboxCurrent {
+ display: none !important; }
+ .single #colorbox #cboxContent button {
+ position: absolute;
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 100%; }
+ .single #colorbox #cboxContent button#cboxPrevious, .single #colorbox #cboxContent button#cboxNext {
+ background-image: url(../img/curvy_arrow.svg);
+ width: 2rem;
+ height: 4rem;
+ bottom: -5rem;
+ filter: invert(100);
+ z-index: 14; }
+ .single #colorbox #cboxContent button#cboxPrevious {
+ left: 1rem;
+ -moz-transform: scaleX(-1);
+ -o-transform: scaleX(-1);
+ -ms-transform: scaleX(-1);
+ -webkit-transform: scaleX(-1);
+ transform: scaleX(-1); }
+ .single #colorbox #cboxContent button#cboxNext {
+ right: 1rem; }
+ .single #colorbox #cboxContent button#cboxClose {
+ background-image: url(../img/dis-plus.svg);
+ width: 2rem;
+ height: 2rem;
+ -moz-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ -webkit-transform: rotate(45deg);
+ transform: rotate(45deg);
+ top: -3rem;
+ right: 1rem; }
/* -------------------------------------------------------------------------- */
/* TAG COLORS */
diff --git a/functions.php b/functions.php
index b3b0898..66c96eb 100644
--- a/functions.php
+++ b/functions.php
@@ -135,16 +135,16 @@ function dis2019_header_scripts()
wp_register_script('modernizr', get_template_directory_uri() . '/js/lib/modernizr-custom.js', array(), '2.7.1'); // Modernizr
wp_enqueue_script('modernizr'); // Enqueue it!
- wp_register_script('simpler-sidebar', get_template_directory_uri() . '/js/lib/jquery.simpler-sidebar.min.js', array('jquery'), '2.2.5'); // Modernizr
+ wp_register_script('simpler-sidebar', get_template_directory_uri() . '/js/lib/jquery.simpler-sidebar.min.js', array('jquery'), '2.2.5'); //
wp_enqueue_script('simpler-sidebar'); // Enqueue it!
- wp_register_script('snap-scroll', get_template_directory_uri() . '/js/lib/snap-scroll.min.js', array('jquery'), '1.0.0'); // Modernizr
+ wp_register_script('snap-scroll', get_template_directory_uri() . '/js/lib/snap-scroll.min.js', array('jquery'), '1.0.0'); //
wp_enqueue_script('snap-scroll'); // Enqueue it!
- //wp_register_script('jquery.corner', get_template_directory_uri() . '/js/lib/jquery.corner.js', array('jquery'), '1.0.0'); // Modernizr
- //wp_enqueue_script('jquery.corner'); // Enqueue it!
+ wp_register_script('jquery.colorbox', get_template_directory_uri() . '/js/lib/jquery.colorbox-min.js', array('jquery'), '1.0.0'); //
+ wp_enqueue_script('jquery.colorbox'); // Enqueue it!
- wp_register_script('lettering', get_template_directory_uri() . '/js/lib/jquery.lettering.js', array('jquery'), '1.0.0'); // Modernizr
+ wp_register_script('lettering', get_template_directory_uri() . '/js/lib/jquery.lettering.js', array('jquery'), '1.0.0'); //
wp_enqueue_script('lettering'); // Enqueue it!
wp_register_script('dis2019scripts', get_template_directory_uri() . '/js/scripts.js', array(
@@ -153,7 +153,7 @@ function dis2019_header_scripts()
'modernizr',
'simpler-sidebar',
'snap-scroll',
- //'jquery.corner',
+ 'jquery.colorbox',
'lettering',
), '1.0.0'); // Custom scripts
wp_enqueue_script('dis2019scripts'); // Enqueue it!
@@ -666,17 +666,25 @@ Custom taxonomy
function dis2019_register_taxonomy_format()
{
$labels = [
- 'name' => _x('Format', 'taxonomy general name'),
- 'singular_name' => _x('Format', 'taxonomy singular name'),
- 'search_items' => __('Search Formats'),
- 'all_items' => __('All Formats'),
- 'parent_item' => __('Parent Format'),
- 'parent_item_colon' => __('Parent Format:'),
- 'edit_item' => __('Edit Format'),
- 'update_item' => __('Update Format'),
- 'add_new_item' => __('Add New Format'),
- 'new_item_name' => __('New Format Name'),
- 'menu_name' => __('Formats'),
+ 'name' => _x('Format', 'taxonomy general name', 'dis2019'),
+ 'singular_name' => _x('Format', 'taxonomy singular name', 'dis2019'),
+ 'search_items' => __('Search Formats', 'dis2019'),
+ 'all_items' => __('All Formats', 'dis2019'),
+ 'parent_item' => __('Parent Format', 'dis2019'),
+ 'parent_item_colon' => __('Parent Format:', 'dis2019'),
+ 'edit_item' => __('Edit Format', 'dis2019'),
+ 'update_item' => __('Update Format', 'dis2019'),
+ 'add_new_item' => __('Add New Format', 'dis2019'),
+ 'new_item_name' => __('New Format Name', 'dis2019'),
+ 'menu_name' => __('Formats', 'dis2019'),
+
+ 'view_item' => __('View Formats', 'dis2019'),
+ 'popular_items' => __('Popular Formats', 'dis2019'),
+ 'separate_items_with_commas' => __('Separate formats with commas', 'dis2019'),
+ 'add_or_remove_items' => __('Add or remove formats', 'dis2019'),
+ 'choose_from_most_used' => __('Choose from most used formats', 'dis2019'),
+ 'not_found' => __('No formats found', 'dis2019'),
+ 'back_to_items' => __('Back to formats', 'dis2019'),
];
$args = [
'hierarchical' => false, // make it hierarchical (like categories)
@@ -684,27 +692,38 @@ function dis2019_register_taxonomy_format()
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
- 'rewrite' => ['slug' => 'Format'],
+ 'rewrite' => ['slug' => 'format'],
'show_in_rest' => true,
+ 'public' => true,
];
register_taxonomy('Format', ['post'], $args);
}
add_action('init', 'dis2019_register_taxonomy_format');
-function dis2019_register_taxonomy_author()
+function dis2019_register_taxonomy_writer()
{
$labels = [
- 'name' => _x('Author', 'taxonomy general name'),
- 'singular_name' => _x('Author', 'taxonomy singular name'),
- 'search_items' => __('Search Authors'),
- 'all_items' => __('All Authors'),
- 'parent_item' => __('Parent Author'),
- 'parent_item_colon' => __('Parent Author:'),
- 'edit_item' => __('Edit Author'),
- 'update_item' => __('Update Author'),
- 'add_new_item' => __('Add New Author'),
- 'new_item_name' => __('New Author Name'),
- 'menu_name' => __('Authors'),
+ 'name' => _x('Writers', 'taxonomy general name', 'dis2019'),
+ 'singular_name' => _x('Writer', 'taxonomy singular name', 'dis2019'),
+ 'search_items' => __('Search Writers', 'dis2019'),
+ 'all_items' => __('All Writers', 'dis2019'),
+ 'parent_item' => __('Parent Writer', 'dis2019'),
+ 'parent_item_colon' => __('Parent Writer:', 'dis2019'),
+ 'edit_item' => __('Edit Writer', 'dis2019'),
+ 'update_item' => __('Update Writer', 'dis2019'),
+ 'add_new_item' => __('Add New Writer', 'dis2019'),
+ 'new_item_name' => __('New Writer Name', 'dis2019'),
+ 'menu_name' => __('Writers', 'dis2019'),
+
+ 'view_item' => __('View Writers', 'dis2019'),
+ 'popular_items' => __('Popular Writers', 'dis2019'),
+ 'separate_items_with_commas' => __('Separate writers with commas', 'dis2019'),
+ 'add_or_remove_items' => __('Add or remove writers', 'dis2019'),
+ 'choose_from_most_used' => __('Choose from most used writer', 'dis2019'),
+ 'not_found' => __('No writer found', 'dis2019'),
+ 'back_to_items' => __('Back to writers', 'dis2019'),
+
+
];
$args = [
'hierarchical' => false, // make it hierarchical (like categories)
@@ -712,11 +731,12 @@ function dis2019_register_taxonomy_author()
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
- 'rewrite' => ['slug' => 'Author'],
+ 'rewrite' => ['slug' => 'writer'],
'show_in_rest' => true,
+ 'public' => true,
];
- register_taxonomy('Author', ['post'], $args);
+ register_taxonomy('Writer', ['post'], $args);
}
-add_action('init', 'dis2019_register_taxonomy_author');
+add_action('init', 'dis2019_register_taxonomy_writer');
?>
diff --git a/js/lib/jquery.colorbox-min.js b/js/lib/jquery.colorbox-min.js
new file mode 100644
index 0000000..b5109a2
--- /dev/null
+++ b/js/lib/jquery.colorbox-min.js
@@ -0,0 +1,6 @@
+/*!
+ Colorbox 1.6.4
+ license: MIT
+ http://www.jacklmoore.com/colorbox
+*/
+(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('').attr({id:Z+"Previous"}),K=t('').attr({id:Z+"Next"}),S=t('').attr({id:Z+"Slideshow"}),L),B=t('').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;U&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),U&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if($=!0,q=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e).eq(0);r=t("").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),q=_.get("createImg"),t(q).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){q.height-=q.height*e,q.width-=q.width*e},_.mw&&q.width>_.mw&&(e=(q.width-_.mw)/q.width,o()),_.mh&&q.height>_.mh&&(e=(q.height-_.mh)/q.height,o())),_.h&&(q.style.marginTop=Math.max(_.mh-q.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(q.style.cursor="pointer",t(q).bind("click."+Z,function(){J.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",h(q)},1)}),q.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("
"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("
"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),$=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;U&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if(U){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(q).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;U&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!$&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!$&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){U&&!G&&(G=!0,U=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
\ No newline at end of file
diff --git a/js/scripts.js b/js/scripts.js
index 81e8932..f921740 100644
--- a/js/scripts.js
+++ b/js/scripts.js
@@ -59,33 +59,34 @@
}
})()
- //isHome
- const isHome = (_ => {
- if ($('body').hasClass("home")) {
- return true
+ // checks if body has a class
+ function bodyHasClass(classname, notclassname){
+ if ($('body').hasClass(classname)) {
+ if (notclassname) {
+ if ($('body').hasClass(notclassname)) {
+ return false
+ }else{
+ return true
+ }
+ } else{
+ return true
+ }
} else {
return false
}
- })()
+ }
+ //isHome
+ const isHome = bodyHasClass('home')
//isArchive
- const isArchive = (_ => {
- if ($('body').hasClass("archive") & !$('body').hasClass("category-esemeny")) {
- return true
- } else {
- return false
- }
- })()
+ const isArchive = bodyHasClass('archive','category-esemeny')
//isEsemeny
- const isEsemeny = (_ => {
- if ($('body').hasClass("category-esemeny")) {
- return true
- } else {
- return false
- }
- })()
+ const isEsemeny = bodyHasClass('category-esemeny')
+
+ //isSingle
+ const isSingle = bodyHasClass('single')
@@ -689,6 +690,50 @@
})
+ /* -------------------------------------------------------------------------- */
+ /* SINGLE */
+ /* -------------------------------------------------------------------------- */
+
+
+ if (isSingle) {
+
+ /* -------------------------------- Lightbox -------------------------------- */
+
+
+
+ //group gallery images:
+ $('.wp-block-gallery a, .wp-block-image a').addClass('cb-gallery')
+
+ //copy figcaption to title
+ $("a.cb-gallery ~ figcaption").each(function(){
+ let captiotext = $(this).html()
+ $(this).prev('.cb-gallery').attr({title:captiotext})
+ })
+
+ //http://www.jacklmoore.com/colorbox/
+ const colorboxSettings = {
+ transition:'fade',
+ rel:'cb-ballery',
+ maxWidth: '90%',
+ maxHeight: '80%',
+ trapFocus: false,
+ scrolling: false,
+ fixed: true,
+ previous: '',
+ next:'',
+ close:'',
+
+ }
+
+ // lightbox for galleries
+ $(".wp-block-gallery a").colorbox(colorboxSettings)
+
+ //single images
+ $(".wp-block-image a").colorbox(colorboxSettings)
+ }
+
+
+ /* ------------------------------- END OF FILE ------------------------------ */
});
diff --git a/languages/HTML5Blank.pot b/languages/HTML5Blank.pot
index 95ffc42..0ad39c0 100644
--- a/languages/HTML5Blank.pot
+++ b/languages/HTML5Blank.pot
@@ -1,199 +1,298 @@
+#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: dis-2019 WordPress Theme\n"
-"POT-Creation-Date: 2013-09-18 00:26+0100\n"
+"POT-Creation-Date: 2019-07-03 20:35+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Jürgen Rabe | www.egado.de
\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 1.5.5\n"
+"X-Generator: Poedit 2.0.6\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: _e;__\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPath-1: ..\n"
-#: ../404.php:9
+#: ../404.php:10
msgid "Page not found"
msgstr ""
-#: ../404.php:11
+#: ../404.php:12
msgid "Return home?"
msgstr ""
-#: ../archive.php:6
-msgid "Archives"
-msgstr ""
-
-#: ../author.php:8
-msgid "Author Archives for "
-msgstr ""
-
-#: ../author.php:14
-msgid "About "
-msgstr ""
-
-#: ../author.php:41 ../loop.php:22 ../single.php:27
-msgid "Published by"
-msgstr ""
-
-#: ../author.php:42 ../loop.php:23 ../single.php:28
-msgid "Leave your thoughts"
-msgstr ""
-
-#: ../author.php:42 ../loop.php:23 ../single.php:28
-msgid "1 Comment"
-msgstr ""
-
-#: ../author.php:42 ../loop.php:23 ../single.php:28
-msgid "% Comments"
-msgstr ""
-
-#: ../author.php:61 ../loop.php:39 ../page.php:31 ../single.php:53
-#: ../template-demo.php:31
+#: ../category-esemeny.php:74 ../loop.php:99 ../page.php:30 ../single.php:85
msgid "Sorry, nothing to display."
msgstr ""
-#: ../category.php:6
-msgid "Categories for"
+#: ../functions.php:229
+msgid "Main menu left"
msgstr ""
-#: ../comments.php:3
-msgid "Post is password protected. Enter the password to view any comments."
+#: ../functions.php:230
+msgid "Main menu right"
msgstr ""
-#: ../comments.php:18
-msgid "Comments are closed here."
+#: ../functions.php:232
+msgid "Circular tags"
msgstr ""
-#: ../footer.php:6
-msgid "Powered by"
-msgstr ""
-
-#: ../functions.php:133
-msgid "Header Menu"
-msgstr ""
-
-#: ../functions.php:134
-msgid "Sidebar Menu"
-msgstr ""
-
-#: ../functions.php:135
-msgid "Extra Menu"
-msgstr ""
-
-#: ../functions.php:181
-msgid "Widget Area 1"
-msgstr ""
-
-#: ../functions.php:182 ../functions.php:193
-msgid "Description for this widget-area..."
-msgstr ""
-
-#: ../functions.php:192
-msgid "Widget Area 2"
-msgstr ""
-
-#: ../functions.php:258
+#: ../functions.php:358
msgid "View Article"
msgstr ""
-#: ../functions.php:319
+#: ../functions.php:422
#, php-format
msgid "%s says:"
msgstr ""
-#: ../functions.php:322
+#: ../functions.php:425
msgid "Your comment is awaiting moderation."
msgstr ""
-#: ../functions.php:328
+#: ../functions.php:431
#, php-format
msgid "%1$s at %2$s"
msgstr ""
-#: ../functions.php:328
+#: ../functions.php:431
msgid "(Edit)"
msgstr ""
-#: ../functions.php:411 ../functions.php:412
-msgid "dis-2019 Custom Post"
+#: ../functions.php:671
+msgid "Search Formats"
msgstr ""
-#: ../functions.php:413
-msgid "Add New"
+#: ../functions.php:672
+msgid "All Formats"
msgstr ""
-#: ../functions.php:414
-msgid "Add New dis-2019 Custom Post"
+#: ../functions.php:673
+msgid "Parent Format"
msgstr ""
-#: ../functions.php:415
-msgid "Edit"
+#: ../functions.php:674
+msgid "Parent Format:"
msgstr ""
-#: ../functions.php:416
-msgid "Edit dis-2019 Custom Post"
+#: ../functions.php:675
+msgid "Edit Format"
msgstr ""
-#: ../functions.php:417
-msgid "New dis-2019 Custom Post"
+#: ../functions.php:676
+msgid "Update Format"
msgstr ""
-#: ../functions.php:418 ../functions.php:419
-msgid "View dis-2019 Custom Post"
+#: ../functions.php:677
+msgid "Add New Format"
msgstr ""
-#: ../functions.php:420
-msgid "Search dis-2019 Custom Post"
+#: ../functions.php:678
+msgid "New Format Name"
msgstr ""
-#: ../functions.php:421
-msgid "No dis-2019 Custom Posts found"
+#: ../functions.php:679
+msgid "Formats"
msgstr ""
-#: ../functions.php:422
-msgid "No dis-2019 Custom Posts found in Trash"
+#: ../functions.php:681
+msgid "View Formats"
msgstr ""
-#: ../index.php:6
-msgid "Latest Posts"
+#: ../functions.php:682
+msgid "Popular Formats"
msgstr ""
-#: ../search.php:6
+#: ../functions.php:683
+msgid "Separate formats with commas"
+msgstr ""
+
+#: ../functions.php:684
+msgid "Add or remove formats"
+msgstr ""
+
+#: ../functions.php:685
+msgid "Choose from most used formats"
+msgstr ""
+
+#: ../functions.php:686
+msgid "No formats found"
+msgstr ""
+
+#: ../functions.php:687
+msgid "Back to formats"
+msgstr ""
+
+#: ../functions.php:708
+msgid "Search Writers"
+msgstr ""
+
+#: ../functions.php:709
+msgid "All Writers"
+msgstr ""
+
+#: ../functions.php:710
+msgid "Parent Writer"
+msgstr ""
+
+#: ../functions.php:711
+msgid "Parent Writer:"
+msgstr ""
+
+#: ../functions.php:712
+msgid "Edit Writer"
+msgstr ""
+
+#: ../functions.php:713
+msgid "Update Writer"
+msgstr ""
+
+#: ../functions.php:714
+msgid "Add New Writer"
+msgstr ""
+
+#: ../functions.php:715
+msgid "New Writer Name"
+msgstr ""
+
+#: ../functions.php:716
+msgid "Writers"
+msgstr ""
+
+#: ../functions.php:718
+msgid "View Writers"
+msgstr ""
+
+#: ../functions.php:719
+msgid "Popular Writers"
+msgstr ""
+
+#: ../functions.php:720
+msgid "Separate writers with commas"
+msgstr ""
+
+#: ../functions.php:721
+msgid "Add or remove writers"
+msgstr ""
+
+#: ../functions.php:722
+msgid "Choose from most used writer"
+msgstr ""
+
+#: ../functions.php:723
+msgid "No writer found"
+msgstr ""
+
+#: ../functions.php:724
+msgid "Back to writers"
+msgstr ""
+
+#: ../node_modules/yargs-parser/index.js:301
+#, javascript-format
+msgid "Not enough arguments following: %s"
+msgstr ""
+
+#: ../node_modules/yargs-parser/index.js:449
+#, javascript-format
+msgid "Invalid JSON config file: %s"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:169
+msgid "Commands:"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:177
+#: ../node_modules/yargs/lib/usage.js:407
+msgid "default:"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:179
+msgid "aliases:"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:241
+msgid "boolean"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:242
+msgid "count"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:243
+#: ../node_modules/yargs/lib/usage.js:244
+msgid "string"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:245
+msgid "array"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:246
+msgid "number"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:250
+msgid "required"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:251
+msgid "choices:"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:270
+msgid "Examples:"
+msgstr ""
+
+#: ../node_modules/yargs/lib/usage.js:385
+msgid "generated-value"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:26
+#: ../node_modules/yargs/lib/validation.js:49
+#, javascript-format
+msgid "Not enough non-option arguments: got %s, need at least %s"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:37
+#, javascript-format
+msgid "Too many non-option arguments: got %s, maximum of %s"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:185
+msgid "Invalid values:"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:188
+#, javascript-format
+msgid "Argument: %s, Given: %s, Choices: %s"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:218
+#, javascript-format
+msgid "Argument check failed: %s"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:283
+msgid "Implications failed:"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:313
+#, javascript-format
+msgid "Arguments %s and %s are mutually exclusive"
+msgstr ""
+
+#: ../node_modules/yargs/lib/validation.js:332
+#, javascript-format
+msgid "Did you mean %s?"
+msgstr ""
+
+#: ../search.php:7
#, php-format
msgid "%s Search Results for "
msgstr ""
-#: ../searchform.php:3
-msgid "To search, type and hit enter."
-msgstr ""
-
-#: ../searchform.php:4
-msgid "Search"
-msgstr ""
-
-#: ../single.php:33
-msgid "Tags: "
-msgstr ""
-
-#: ../single.php:35
-msgid "Categorised in: "
-msgstr ""
-
-#: ../single.php:37
-msgid "This post was written by "
-msgstr ""
-
-#: ../tag.php:6
-msgid "Tag Archive: "
-msgstr ""
-
-#: ../searchform.php:3
-msgid "To search, type and hit enter."
-msgstr ""
-
#~ msgid "%s results for "
#~ msgstr "%s Ergebnisse für "
diff --git a/languages/hu_HU.mo b/languages/hu_HU.mo
index a3da03b..4c92aa1 100644
Binary files a/languages/hu_HU.mo and b/languages/hu_HU.mo differ
diff --git a/languages/hu_HU.po b/languages/hu_HU.po
index f365d29..bd092b1 100644
--- a/languages/hu_HU.po
+++ b/languages/hu_HU.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: dis-2019 WordPress Theme\n"
-"POT-Creation-Date: 2019-07-03 17:51+0200\n"
+"POT-Creation-Date: 2019-07-03 20:36+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Sallay Arnold \n"
"Language-Team: \n"
@@ -24,7 +24,7 @@ msgstr "A keresett oldal nem található"
msgid "Return home?"
msgstr "Vissza a főoldalra?"
-#: ../category-esemeny.php:74 ../loop.php:99 ../page.php:30 ../single.php:68
+#: ../category-esemeny.php:74 ../loop.php:99 ../page.php:30 ../single.php:85
msgid "Sorry, nothing to display."
msgstr "Nincs tartalom."
@@ -98,41 +98,97 @@ msgstr "Új formátum neve"
msgid "Formats"
msgstr "Formátumok"
-#: ../functions.php:699
-msgid "Search Authors"
-msgstr "Szerző keresése"
+#: ../functions.php:681
+msgid "View Formats"
+msgstr "Formátumok megjelenítése"
-#: ../functions.php:700
-msgid "All Authors"
-msgstr "Minden szerző"
+#: ../functions.php:682
+msgid "Popular Formats"
+msgstr "Népszerű formátumok"
-#: ../functions.php:701
-msgid "Parent Author"
-msgstr "Szülő szerző"
+#: ../functions.php:683
+msgid "Separate formats with commas"
+msgstr "Formátumokat vesszővel válaszd el"
-#: ../functions.php:702
-msgid "Parent Author:"
-msgstr "Szülő szerző:"
+#: ../functions.php:684
+msgid "Add or remove formats"
+msgstr "Formátumok hozzáadása vagy eltávolítása"
-#: ../functions.php:703
-msgid "Edit Author"
-msgstr "Szerző szerkesztése"
+#: ../functions.php:685
+msgid "Choose from most used formats"
+msgstr "Választás a leggyakoribb formátumok közül"
-#: ../functions.php:704
-msgid "Update Author"
-msgstr "Szerző frissítése"
+#: ../functions.php:686
+msgid "No formats found"
+msgstr "Formátum nem található"
-#: ../functions.php:705
-msgid "Add New Author"
-msgstr "Új szerző hozzáadása"
+#: ../functions.php:687
+msgid "Back to formats"
+msgstr "Vissza a formátumokhoz"
-#: ../functions.php:706
-msgid "New Author Name"
-msgstr "Új szerző neve"
+#: ../functions.php:708
+msgid "Search Writers"
+msgstr "Cikkírók keresése"
-#: ../functions.php:707
-msgid "Authors"
-msgstr ""
+#: ../functions.php:709
+msgid "All Writers"
+msgstr "Minden cikkíró"
+
+#: ../functions.php:710
+msgid "Parent Writer"
+msgstr "Szülő cikkíró"
+
+#: ../functions.php:711
+msgid "Parent Writer:"
+msgstr "Szülő cikkíró:"
+
+#: ../functions.php:712
+msgid "Edit Writer"
+msgstr "Cikkíró szerkesztése"
+
+#: ../functions.php:713
+msgid "Update Writer"
+msgstr "Cikkíró frissítése"
+
+#: ../functions.php:714
+msgid "Add New Writer"
+msgstr "Új cikkíró hozzáadása"
+
+#: ../functions.php:715
+msgid "New Writer Name"
+msgstr "Új cikkíró neve"
+
+#: ../functions.php:716
+msgid "Writers"
+msgstr "Cikkírók"
+
+#: ../functions.php:718
+msgid "View Writers"
+msgstr "Cikkírók Megtekintése"
+
+#: ../functions.php:719
+msgid "Popular Writers"
+msgstr "Népszerű cikkírók"
+
+#: ../functions.php:720
+msgid "Separate writers with commas"
+msgstr "Cikkírókat vesszővel válaszd el"
+
+#: ../functions.php:721
+msgid "Add or remove writers"
+msgstr "Cikkírók hozzáadása vagy eltávolítása"
+
+#: ../functions.php:722
+msgid "Choose from most used writer"
+msgstr "Választás a leggyakoribb cikkírók közül"
+
+#: ../functions.php:723
+msgid "No writer found"
+msgstr "Cikkíró nem található"
+
+#: ../functions.php:724
+msgid "Back to writers"
+msgstr "Vissza a cikkírókhoz"
#: ../node_modules/yargs-parser/index.js:301
#, javascript-format
@@ -146,12 +202,12 @@ msgstr "Érvénytelen JSON fájl: %s"
#: ../node_modules/yargs/lib/usage.js:169
msgid "Commands:"
-msgstr "Parancsok"
+msgstr "Parancsok:"
#: ../node_modules/yargs/lib/usage.js:177
#: ../node_modules/yargs/lib/usage.js:407
msgid "default:"
-msgstr "Alapértelmezett:"
+msgstr "alapértelmezett:"
#: ../node_modules/yargs/lib/usage.js:179
msgid "aliases:"
@@ -238,6 +294,57 @@ msgstr ""
msgid "%s Search Results for "
msgstr "%s Találatok "
+#~ msgid "Search Authors"
+#~ msgstr "Szerző keresése"
+
+#~ msgid "All Authors"
+#~ msgstr "Minden szerző"
+
+#~ msgid "Parent Author"
+#~ msgstr "Szülő szerző"
+
+#~ msgid "Parent Author:"
+#~ msgstr "Szülő szerző:"
+
+#~ msgid "Edit Author"
+#~ msgstr "Szerző szerkesztése"
+
+#~ msgid "Update Author"
+#~ msgstr "Szerző frissítése"
+
+#~ msgid "Add New Author"
+#~ msgstr "Új szerző hozzáadása"
+
+#~ msgid "Authors"
+#~ msgstr "Szerzők"
+
+#~ msgid "View Authors"
+#~ msgstr "Szerzők megjelenítése"
+
+#~ msgid "Popular Authors"
+#~ msgstr "Népszerű szerzők"
+
+#~ msgid "Add or remove authors"
+#~ msgstr "Szerzők hozzáadása vagy eltávolítása"
+
+#~ msgid "Choose from most used authors"
+#~ msgstr "Választás a leggyakoribb szerzők közül"
+
+#~ msgid "No authors found"
+#~ msgstr "Szerző nem található"
+
+#~ msgid "Back to authors"
+#~ msgstr "Vissza a szerzőkhöz"
+
+#~ msgid "Format"
+#~ msgstr "Formátum"
+
+#~ msgid "Author"
+#~ msgstr "Szerző"
+
+#~ msgid "%s results for "
+#~ msgstr "%s Ergebnisse für "
+
#~ msgid "Archives"
#~ msgstr "Archívum"
@@ -330,6 +437,3 @@ msgstr "%s Találatok "
#~ msgid "Tag Archive: "
#~ msgstr "Archívim: "
-
-#~ msgid "%s results for "
-#~ msgstr "%s Ergebnisse für "
diff --git a/loop.php b/loop.php
index 1d30928..2dba058 100644
--- a/loop.php
+++ b/loop.php
@@ -30,7 +30,7 @@
ID, 'Format');
- if ($terms) {
+ if ($terms && ! is_wp_error( $terms )) {
foreach ($terms as $term) {
echo '| ';
echo $term->name;
diff --git a/sass/base.scss b/sass/base.scss
index 2135d25..4399032 100644
--- a/sass/base.scss
+++ b/sass/base.scss
@@ -299,7 +299,7 @@ $v-unit-6: 24rem;
flex-direction: row;
justify-content: space-between;
align-items: center;
- z-index: 3;
+ z-index: 3000;
@media #{$smalldesktop} {
height: 0;
position: relative;
@@ -1525,7 +1525,70 @@ body.category.category-esemeny {
}
}
}
-}
+ /* -------------------------------- lightbox -------------------------------- */
+
+ #cboxOverlay {
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ background-color: #000;
+ z-index: 10;
+ }
+ #colorbox {
+ z-index: 12;
+ &:focus{
+ border: none;
+ outline: none;
+ }
+ #cboxContent {
+ #cboxTitle {
+ padding: 1rem;
+ @include captiontext();
+ -webkit-text-stroke: #fff 1px;
+ color: transparent;
+ width: 100%;
+ text-align: center;
+
+ }
+ #cboxCurrent {
+ display: none !important;
+ }
+ button {
+ position: absolute;
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 100%;
+
+ cboxPrevious,
+ cboxNext {
+ background-image: url(../img/curvy_arrow.svg);
+ width: 2rem;
+ height: 4rem;
+ bottom: -5rem;
+ filter: invert(100);
+ z-index: 14;
+ }
+ cboxPrevious{
+ left: 1rem;
+ @include transform(scaleX(-1))
+ }
+ cboxNext {
+ right: 1rem;
+ }
+ cboxClose{
+ background-image: url(../img/dis-plus.svg);
+ width: 2rem;
+ height: 2rem;
+ @include transform(rotate(45deg));
+ top: -3rem;
+ right: 1rem;
+ }
+ }
+ }
+ }
+} //body.single end
/* -------------------------------------------------------------------------- */
/* TAG COLORS */
diff --git a/single.php b/single.php
index 2c14555..47a52c8 100644
--- a/single.php
+++ b/single.php
@@ -32,7 +32,7 @@