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('