diff --git a/assets/css/custom.css b/assets/css/custom.css index 8bb1d4c..4c6fcf6 100755 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -779,59 +779,6 @@ img.avatar.avatar-64.photo { } } -/* Keresés */ -/* Search Overlay Container */ -#search-overlay { - display: none; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.85); - z-index: 9999; -} - -/* Centered Search Form */ -#search-overlay .search-container { - position: absolute; - top: 20%; - left: 50%; - transform: translateX(-50%); - width: 80%; - max-width: 600px; - border: 1px solid; - background-color: #000; -} - -/* Form Control Styling */ -#search-form .form-control { - border-radius: 0; - box-shadow: none; - font-size: 18px; -} - -/* Input Group Text Styling */ -#search-overlay .input-group-text { - background: none; - border: none; - padding: 0.75rem; -} - -.searchbox-input { - position: relative; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - width: 100%; - border: 2px solid white; -} - /* Figure */ .hover-caption { @@ -864,3 +811,47 @@ img.avatar.avatar-64.photo { .hover-caption figcaption { transition: translate 200ms; } + +/** + * ToC + */ + #toc-container { + background-image: url(../../assets/img/black-paper.webp); + background-color: rgba(0, 0, 0, 0.25); + margin-bottom: 20px; + padding: 10px; +} + +#toc-container details summary { + cursor: pointer; + font-weight: bold; +} + +#toc-container ul { + list-style-type: none; + padding-left: 20px; + margin: 10px 0; +} + +#toc-container ul li { + margin-bottom: 5px; + padding-left: 6px; +} + +#toc-container ul li a { + text-decoration: none; + color: #cacaca; +} + +#toc-container ul li a:hover { + text-decoration: underline; + color: #6441a5; +} + +#toc-container ul li::marker { + content: "•"; /* Marker karaktere */ + color: #b5b5b5; /* Marker színe */ + font-size: 1.2em; /* Marker mérete */ + font-weight: bold; /* Marker stílusa */ +} + diff --git a/assets/css/post.css b/assets/css/post.css index 0aaef79..02091a9 100644 --- a/assets/css/post.css +++ b/assets/css/post.css @@ -1,169 +1,169 @@ /* Author */ .box-author { - background-image: url("../../assets/img/black-paper.webp"); - background-color: rgba(0, 0, 0, 0.25); - padding: 0 !important; - /* box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.5); */ - margin: 50px -25px; + background-image: url("../../assets/img/black-paper.webp"); + background-color: rgba(0, 0, 0, 0.25); + padding: 0 !important; + /* box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.5); */ + margin: 50px -25px; } .author { - width: 55%; - padding: 30px; - float: left; - position: relative; - overflow: hidden; - margin-bottom: 0 !important; - background-color: rgba(0, 0, 0, 0.25); + width: 55%; + padding: 30px; + float: left; + position: relative; + overflow: hidden; + margin-bottom: 0 !important; + background-color: rgba(0, 0, 0, 0.25); } .author:before, .author:after { - content: ""; - display: block; - position: absolute; - left: 30px; + content: ""; + display: block; + position: absolute; + left: 30px; } .author:before { - z-index: 100; - top: 0; - width: 40px; - height: 70px; - background: #6442a5 url("../../assets/img/icons/1x/author-w.png") no-repeat - center 29px; - background-size: 22px auto; + z-index: 100; + top: 0; + width: 40px; + height: 70px; + background: #6442a5 url("../../assets/img/icons/1x/author-w.png") no-repeat + center 29px; + background-size: 22px auto; } .author:after { - top: 50px; - border: 20px solid transparent; - border-left-color: #6442a5; - border-right-color: #6442a5; + top: 50px; + border: 20px solid transparent; + border-left-color: #6442a5; + border-right-color: #6442a5; } .author-content { - margin-left: 70px; + margin-left: 70px; } .author-links { - margin-top: 18px; + margin-top: 18px; } .author-links a { - display: inline-block; - width: 36px; - height: 36px; - background-color: rgba(255, 255, 255, 0.1); - background-repeat: no-repeat; - background-position: center; - background-size: 16px auto; - margin-left: 5px; - border-radius: 999px; - text-indent: -9999px; + display: inline-block; + width: 36px; + height: 36px; + background-color: rgba(255, 255, 255, 0.1); + background-repeat: no-repeat; + background-position: center; + background-size: 16px auto; + margin-left: 5px; + border-radius: 999px; + text-indent: -9999px; } .author-links a:first-child { - margin-left: 0; + margin-left: 0; } .author-links a.author-link-posts { - background-image: url("../../assets/img/icons/1x/archive-w.png"); + background-image: url("../../assets/img/icons/1x/archive-w.png"); } .author-links a.author-link-website { - background-image: url("../../assets/img/icons/1x/home-w.png"); + background-image: url("../../assets/img/icons/1x/home-w.png"); } .author-links a.author-link-mail { - background-image: url("../../assets/img/icons/1x/social/mail-w.png"); + background-image: url("../../assets/img/icons/1x/social/mail-w.png"); } .author-links a.author-link-twitter { - background-image: url("../../assets/img/icons/1x/social/twitter-w.png"); + background-image: url("../../assets/img/icons/1x/social/twitter-w.png"); } .author-links a:hover { - background-color: #6442a5; + background-color: #6442a5; } /* single post meta */ .single .post-meta-container { - position: relative; - background: #2b3542; + position: relative; + background: #2b3542; } .single .post-meta-container:after { - content: ""; - display: block; - background: #3f4854; - position: absolute; - z-index: 1; - top: 0; - right: 0; - bottom: 0; - left: 60%; + content: ""; + display: block; + background: #3f4854; + position: absolute; + z-index: 1; + top: 0; + right: 0; + bottom: 0; + left: 60%; } .single .post-meta { - float: right; - width: 45%; - padding: 30px; - position: relative; - z-index: 10; + float: right; + width: 45%; + padding: 30px; + position: relative; + z-index: 10; } .single .post-meta p, .single .post-meta > a, .post-nav a { - display: block; - margin-top: 12px; - font-size: 0.85em; - line-height: 120%; - font-weight: 700; - min-height: 20px; - /* padding: 1px 0 1px 23px; */ - background: no-repeat left center; - background-size: 16px auto; - color: #9499a0; + display: block; + margin-top: 12px; + font-size: 0.85em; + line-height: 120%; + font-weight: 700; + min-height: 20px; + /* padding: 1px 0 1px 23px; */ + background: no-repeat left center; + background-size: 16px auto; + color: #9499a0; } .single .post-meta p:first-child { - margin-top: 0; + margin-top: 0; } .single .post-meta a { - color: #9499a0; + color: #9499a0; } .single .post-meta a:hover { - color: #6442a5; + color: #6442a5; } /* post navigation */ .post-nav { - padding-top: 20px; - border-top: 1px solid rgba(255, 255, 255, 0.1); - margin-top: 20px; + padding-top: 20px; + border-top: 1px solid rgba(255, 255, 255, 0.1); + margin-top: 20px; } .post-nav a { - background-position: left 3px; + background-position: left 3px; } .post-nav a:first-child { - margin-top: 0; + margin-top: 0; } .single a.post-edit-link { - background-image: url("../../assets/img/icons/1x/edit-g.png"); - background-position: left 5px; - padding-left: 25px; + background-image: url("../../assets/img/icons/1x/edit-g.png"); + background-position: left 5px; + padding-left: 25px; } .single a.post-edit-link:hover { - background-image: url("../../assets/img/icons/1x/edit-c.png"); + background-image: url("../../assets/img/icons/1x/edit-g.png"); } .icon-padding { - padding: 0 10px 0 0; + padding: 0 10px 0 0; } /* -------------------------------------------------------------------------------- */ /* 8. Comments @@ -171,86 +171,86 @@ .content .comments, div#disqus_thread { - padding: 4%; + padding: 4%; } .nocomments { - padding: 10%; - text-align: center; - text-transform: uppercase; - font-weight: 700; - color: #999; + padding: 10%; + text-align: center; + text-transform: uppercase; + font-weight: 700; + color: #999; } .comments + .nocomments { - border-top: 1px solid #eee; + border-top: 1px solid #eee; } .comments-title-container { - padding-bottom: 20px; - border-bottom: 1px solid #eee; - margin-bottom: 40px; + padding-bottom: 20px; + border-bottom: 1px solid #eee; + margin-bottom: 40px; } .comments-title { - font-size: 1.75em; - font-weight: 700; + font-size: 1.75em; + font-weight: 700; } .add-comment-title { - font-size: 1rem; - text-transform: uppercase; - font-weight: 700; - margin-top: 14px; + font-size: 1rem; + text-transform: uppercase; + font-weight: 700; + margin-top: 14px; } .add-comment-title a:hover { - text-decoration: underline; + text-decoration: underline; } /* comment */ .comments div.comment { - margin-top: 40px; + margin-top: 40px; } .comments .commentlist > li.comment:first-child > div.comment:first-child { - margin-top: 0; + margin-top: 0; } .comments div.comment { - position: relative; + position: relative; } .comments .children { - margin-left: 5%; + margin-left: 5%; } .comment-inner { - margin-left: 110px; - padding: 20px; - background: #eeeeee24; - position: relative; + margin-left: 110px; + padding: 20px; + background: #eeeeee24; + position: relative; } .comment-inner:after { - content: ""; - display: block; - border: 12px solid transparent; - border-right-color: #eeeeee24; - position: absolute; - top: 28px; - left: 0; - margin-left: -24px; + content: ""; + display: block; + border: 12px solid transparent; + border-right-color: #eeeeee24; + position: absolute; + top: 28px; + left: 0; + margin-left: -24px; } .comment .avatar { - float: left; - width: 80px; + float: left; + width: 80px; } .comment.bypostauthor { - position: relative; + position: relative; } /* .comment.bypostauthor:after { @@ -270,53 +270,53 @@ div#disqus_thread { } */ .comment-header { - margin-bottom: 25px; + margin-bottom: 25px; } .comment-header cite { - display: block; - font-size: 1em; - font-weight: 700; - margin-bottom: 8px; + display: block; + font-size: 1em; + font-weight: 700; + margin-bottom: 8px; } .comment-header p { - font-size: 0.85em; + font-size: 0.85em; } .comment-header p, .comment-header p a { - color: #999; + color: #999; } .comment-header p a:hover { - color: #666; + color: #666; } /* comment-content */ .comment-content { - font-size: 0.9em; + font-size: 0.9em; } .comment-content a:hover { - text-decoration: underline; + text-decoration: underline; } .comment-content p, .comment-content li, .comment-content blockquote { - line-height: 150%; - margin-top: 1em; - -ms-word-wrap: break-word; - word-wrap: break-word; + line-height: 150%; + margin-top: 1em; + -ms-word-wrap: break-word; + word-wrap: break-word; } .comment-content *:first-child { - margin-top: 0; + margin-top: 0; } .comment-content *:last-child { - margin-bottom: 0; + margin-bottom: 0; } .comment-content h1, @@ -325,176 +325,176 @@ div#disqus_thread { .comment-content h4, .comment-content h5, .comment-content h6 { - margin: 50px 0 20px; - font-weight: 400; - font-size: 1.2em; + margin: 50px 0 20px; + font-weight: 400; + font-size: 1.2em; } .comment-content blockquote { - padding: 20px; - background: #ddd; + padding: 20px; + background: #ddd; } .comment-content ul { - list-style: disc; - margin-left: 1.5em; + list-style: disc; + margin-left: 1.5em; } .comment-content ul ul { - list-style: circle; + list-style: circle; } .comment-content ul ul ul { - list-style: square; + list-style: square; } .comment-content ol { - list-style: decimal; - margin-left: 1.5em; + list-style: decimal; + margin-left: 1.5em; } .comment-content ol ol { - list-style: lower-alpha; + list-style: lower-alpha; } .comment-content ol ol ol { - list-style: lower-roman; + list-style: lower-roman; } .comment-content ul ul, .comment-content ul ol, .comment-content ol ul, .comment-content ol ol { - margin-bottom: 0; + margin-bottom: 0; } .comment-content li { - margin-top: 0.5em; - line-height: 170%; + margin-top: 0.5em; + line-height: 170%; } .comment-content ol > li:last-child, .comment-content ul > li:last-child { - margin-bottom: 0; + margin-bottom: 0; } .comment-content address { - padding: 20px; - background: #ddd; - line-height: 140%; + padding: 20px; + background: #ddd; + line-height: 140%; } .comment-content pre { - padding: 20px; - background: #ddd; - line-height: 150%; - overflow-x: scroll; + padding: 20px; + background: #ddd; + line-height: 150%; + overflow-x: scroll; } /* comment actions */ .comment-actions { - position: absolute; - top: 22px; - right: 20px; + position: absolute; + top: 22px; + right: 20px; } .comment-actions a { - display: block; - position: relative; - float: left; - width: 32px; - height: 32px; - background: #2b3542 no-repeat center; - background-size: 16px auto; - border-radius: 999px; - text-indent: -9999px; - margin-right: 12px; + display: block; + position: relative; + float: left; + width: 32px; + height: 32px; + background: #2b3542 no-repeat center; + background-size: 16px auto; + border-radius: 999px; + text-indent: -9999px; + margin-right: 12px; } .comment-actions a + a { - margin-left: -8px; + margin-left: -8px; } .comment-actions .comment-reply-link { - background-image: url("../../assets/img/icons/1x/reply-w.png"); + background-image: url("../../assets/img/icons/1x/reply-w.png"); } .comment-actions .comment-edit-link { - background-image: url("../../assets/img/icons/1x/edit-w.png"); + background-image: url("../../assets/img/icons/1x/edit-w.png"); } .comment-actions a:hover { - background-color: #6441a5; - color: #fff; - z-index: 10; + background-color: #6441a5; + color: #fff; + z-index: 10; } /* comment navigation */ .comment-nav-below { - margin-top: 40px; - border-top: 1px solid #eee; - padding-top: 20px; - font-size: 0.9em; - font-weight: 700; + margin-top: 40px; + border-top: 1px solid #eee; + padding-top: 20px; + font-size: 0.9em; + font-weight: 700; } .comment-nav-below a { - color: #666; + color: #666; } /* pingbacks */ .comments .pingbacks { - padding-top: 40px; - border-top: 1px solid #eee; - margin-top: 40px; + padding-top: 40px; + border-top: 1px solid #eee; + margin-top: 40px; } .pingbacks-title { - font-size: 1.25em; - margin-bottom: 20px; - color: #2b3542; + font-size: 1.25em; + margin-bottom: 20px; + color: #2b3542; } .pingbacklist .pingback { - padding: 15px; - line-height: 130%; + padding: 15px; + line-height: 130%; } .pingbacklist .pingback a { - color: #767676; + color: #767676; } .pingbacklist .pingback a:hover { - color: #13c4a5; + color: #13c4a5; } .pingbacklist .pingback:nth-child(2n) { - background-color: #eee; + background-color: #eee; } /* Comments fix */ .bypostauthor { - border-left: none !important; - padding: 0 !important; + border-left: none !important; + padding: 0 !important; } /* Heart achievement */ .heart-container { - background-image: url("../../assets/img/black-paper.webp"); - background-color: rgba(0, 0, 0, 0.25); - padding: 30px !important; - /* box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.5); */ - margin: 50px -25px; - text-align: center; + background-image: url("../../assets/img/black-paper.webp"); + background-color: rgba(0, 0, 0, 0.25); + padding: 30px !important; + /* box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.5); */ + margin: 50px -25px; + text-align: center; } .heart { - font-size: 28px; - cursor: pointer; - color: red; + font-size: 28px; + cursor: pointer; + color: red; } .heart-count { - font-size: 24px; + font-size: 24px; } /* .heart-text { @@ -507,208 +507,208 @@ div#disqus_thread { /* -------------------------------------------------------------------------------- */ .comment-respond { - padding: 10%; - border-top: 1px solid #eee; + padding: 10%; + border-top: 1px solid #eee; } .comments .comment-respond { - padding: 10% 0; - border-top: none; + padding: 10% 0; + border-top: none; } .comment-reply-title { - font-size: 1.75em; - font-weight: 700; + font-size: 1.75em; + font-weight: 700; } .comment-reply-title #cancel-comment-reply-link { - font-size: 0.9rem; - text-transform: uppercase; - font-weight: 700; - margin-left: 5px; + font-size: 0.9rem; + text-transform: uppercase; + font-weight: 700; + margin-left: 5px; } .comment-reply-title #cancel-comment-reply-link:hover { - text-decoration: underline; + text-decoration: underline; } .comment-notes, .logged-in-as { - color: #666; - line-height: 130%; - margin-bottom: 40px; - margin-top: 25px; + color: #666; + line-height: 130%; + margin-bottom: 40px; + margin-top: 25px; } .logged-in-as a:hover { - text-decoration: underline; + text-decoration: underline; } .comment-form { - margin-top: 10px; + margin-top: 10px; } .comment-form p { - margin-top: 18px; - position: relative; + margin-top: 18px; + position: relative; } .comment-form p:first-child { - margin-top: 0; + margin-top: 0; } .comment-form label { - display: block; - font-size: 16px; - margin-bottom: 0.5rem; + display: block; + font-size: 16px; + margin-bottom: 0.5rem; } .comment-form input[type="checkbox"] + label { - display: inline; - font-size: 14px; - margin: 0 0 0 0.5rem; + display: inline; + font-size: 14px; + margin: 0 0 0 0.5rem; } .comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { - display: block; - width: 100%; - padding: 16px 18px; - border-radius: 3px; - color: #cacaca; - border: 1px solid #eee; - font-size: 1em; - -webkit-font-smoothing: antialiased; - margin: 0; - background: transparent; + display: block; + width: 100%; + padding: 16px 18px; + border-radius: 3px; + color: #cacaca; + border: 1px solid #eee; + font-size: 1em; + -webkit-font-smoothing: antialiased; + margin: 0; + background: transparent; } .comment-form-author, .comment-form-email, .comment-form-url { - width: 75%; + width: 75%; } .comment-form input[type="text"], .comment-form input[type="email"] { - position: relative; - padding-right: 60px; - background-repeat: no-repeat; - background-position: 96% center; - background-size: auto 24px; + position: relative; + padding-right: 60px; + background-repeat: no-repeat; + background-position: 96% center; + background-size: auto 24px; } input#author { - background-image: url("../../assets/img/icons/1x/author-g.png"); + background-image: url("../../assets/img/icons/1x/author-g.png"); } input#email { - background-image: url("../../assets/img/icons/1x/social/mail-g.png"); + background-image: url("../../assets/img/icons/1x/social/mail-g.png"); } input#url { - background-image: url("../../assets/img/icons/1x/home-g.png"); - background-size: 24px auto; + background-image: url("../../assets/img/icons/1x/home-g.png"); + background-size: 24px auto; } .comment-form textarea { - height: 250px; + height: 250px; } .comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form textarea:focus { - color: #fff; - background-color: #2b3542; + color: #fff; + background-color: #2b3542; } input#author:focus { - background-image: url("../../assets/img/icons/1x/author-w.png"); + background-image: url("../../assets/img/icons/1x/author-w.png"); } input#email:focus { - background-image: url("../../assets/img/icons/1x/social/mail-w.png"); + background-image: url("../../assets/img/icons/1x/social/mail-w.png"); } input#url:focus { - background-image: url("../../assets/img/icons/1x/home-w.png"); + background-image: url("../../assets/img/icons/1x/home-w.png"); } .form-allowed-tags, .form-allowed-tags code { - line-height: 160%; + line-height: 160%; } .comment-notes, .form-allowed-tags, .logged-in-as { - font-size: 0.9em; - color: #666; + font-size: 0.9em; + color: #666; } p.form-submit { - margin-top: 30px; + margin-top: 30px; } .form-submit #submit { - padding: 16px 20px; - border: none; - margin: 0; - font-size: 0.9em; - font-weight: 400; - color: #fff; - text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1); - background: #2b3542; - border-radius: 3px; - -webkit-font-smoothing: antialiased; + padding: 16px 20px; + border: none; + margin: 0; + font-size: 0.9em; + font-weight: 400; + color: #fff; + text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1); + background: #2b3542; + border-radius: 3px; + -webkit-font-smoothing: antialiased; } .form-submit #submit:hover { - cursor: pointer; - background: #6441a5; + cursor: pointer; + background: #6441a5; } /* Custom komment ikon */ .custom-comment-icon-wrapper { - position: fixed; - z-index: 99; - text-align: center; - opacity: 0.9; - bottom: 80px; - left: 672.5px; - display: block; + position: fixed; + z-index: 99; + text-align: center; + opacity: 0.9; + bottom: 80px; + left: 672.5px; + display: none; /* Block az aktiváláshoz */ } @media only screen and (max-width: 1200px) { - .custom-comment-icon-wrapper { - display: none; - } + .custom-comment-icon-wrapper { + display: none; + } } .custom-comment-icon-wrapper::before { - border: 1px solid #fff; - box-shadow: 0px 0px 15px #aaa; - width: 64px; - height: 64px; - border-radius: 50%; - color: #fff; - align-items: center; - justify-content: center; - position: relative; + border: 1px solid #fff; + box-shadow: 0px 0px 15px #aaa; + width: 64px; + height: 64px; + border-radius: 50%; + color: #fff; + align-items: center; + justify-content: center; + position: relative; } .custom-comment-icon { - background-image: url("../../assets/img/small-logo.webp"); - display: flex; - cursor: pointer; - background-size: contain; - width: 80px; - height: 80px; + background-image: url("../../assets/img/small-logo.webp"); + display: flex; + cursor: pointer; + background-size: contain; + width: 80px; + height: 80px; } .custom-tooltip { - position: absolute; - background-color: rgba(0, 0, 0); - color: #6441a5; - padding: 5px 10px; - border-radius: 5px; - font-size: 16px; - z-index: 1000; + position: absolute; + background-color: rgba(0, 0, 0); + color: #6441a5; + padding: 5px 10px; + border-radius: 5px; + font-size: 16px; + z-index: 1000; } diff --git a/assets/js/toc.js b/assets/js/toc.js new file mode 100644 index 0000000..01aa054 --- /dev/null +++ b/assets/js/toc.js @@ -0,0 +1,16 @@ +document.addEventListener("DOMContentLoaded", function () { + const tocToggle = document.getElementById("toc-toggle"); + const tocContainer = document.getElementById("toc-container"); + + if (tocToggle && tocContainer) { + tocToggle.addEventListener("click", function () { + if (tocContainer.style.display === "none") { + tocContainer.style.display = "block"; + tocToggle.textContent = "Tartalomjegyzék elrejtése"; + } else { + tocContainer.style.display = "none"; + tocToggle.textContent = "Tartalomjegyzék megjelenítése"; + } + }); + } +}); diff --git a/footer.php b/footer.php index ec70570..e76883c 100755 --- a/footer.php +++ b/footer.php @@ -82,19 +82,5 @@ if ( 'option-1col' == $footer_layout ) { - - \ No newline at end of file diff --git a/functions.php b/functions.php index 2ee693f..ec763a8 100755 --- a/functions.php +++ b/functions.php @@ -504,30 +504,12 @@ if (!function_exists("escapium_post_header")) { } } -// /** -// * Load custom global CSS into both block editor "iframe" and frontend -// * -// * @return void -// */ -// function my_theme_enqueue_custom_global_css_in_blocks() -// { -// // Add custom CSS to frontend. -// wp_enqueue_style( -// 'my-custom-css', -// get_template_directory_uri() . '/assets/css/custom.css', -// array('global-styles', '') // say to wordpress to inject this file after the css file generated from "theme.json" -// ); -// // Add custom CSS to block editor "iframe". -// add_editor_style('custom.css'); -// } -// add_action('wp_head', 'my_theme_enqueue_custom_global_css_in_blocks'); - function custom_comment_check() { // Ellenőrzi, hogy egy adott bejegyzésnél engedélyezve vannak-e a hozzászólások if (is_single() && comments_open()) { // Ha a hozzászólások engedélyezve vannak, két div osztály hozzáadása - echo '
+ echo '
Kommentelnél? DE NEM IDE! Vicceltem, katt rám!
'; @@ -657,8 +639,15 @@ function rp_script() "1.0.0", true ); + wp_enqueue_script( + "toc", + get_template_directory_uri() . "/assets/js/toc.js", + ["jquery"], + "1.0.0", + true + ); } -add_action("wp_footer", "rp_script"); +add_action("wp_enqueue_scripts", "rp_script"); /* Kezdőoldal címének cseréje */ function custom_homepage_title($title, $id = null) @@ -671,6 +660,9 @@ function custom_homepage_title($title, $id = null) return $title; } + + + //Logó function rp_logo_setup() { @@ -708,108 +700,16 @@ require_once get_template_directory() . "/template-parts/breadcrumbs.php"; * Achievement betöltése */ require_once get_template_directory() . "/template-parts/achievement.php"; +error_log('TOC require_once lefutott.'); -/* --------------------------------------------------------------------------------------------- - COMMENT FUNCTION - --------------------------------------------------------------------------------------------- */ +/** + * ToC betöltése + */ +require_once get_template_directory() . "/template-parts/toc.php"; -if (!function_exists("escapium_comment")) { - function escapium_comment($comment, $args, $depth) - { - switch ($comment->comment_type): - case "pingback": - case "trackback": ?> - -
  • id="comment-"> - - ', - "" - ); ?> - -
  • - -
  • id="li-comment-"> - -
    - - - -
    - -
    - - %1$s', get_comment_author_link()); ?> - -

    - -
    - - - - __("Reply", "escapium"), - "depth" => $depth, - "max_depth" => $args["max_depth"], - ]) - ); ?> - -
    - -
    - -
    - -
    - - comment_approved): ?> - -

    - - - - - -
    - - - -
    - -
    - \ No newline at end of file diff --git a/header.php b/header.php index aeec453..df77e53 100755 --- a/header.php +++ b/header.php @@ -81,35 +81,10 @@