This commit is contained in:
gabeszm 2025-01-06 11:24:41 +01:00
parent 9f6db74f67
commit b469fae0c8
2 changed files with 82 additions and 77 deletions

View file

@ -241,6 +241,10 @@ element.style {
image-rendering: auto;
}
.custom-logo {
width: auto;
}
/* Borítókép javítás */
.post__thumb {
margin-bottom: 0;

View file

@ -131,14 +131,14 @@ if (function_exists("cn_cookies_accepted") && cn_cookies_accepted()) {
function appthemes_add_quicktags()
{
if (wp_script_is("quicktags")) { ?>
<script type="text/javascript">
QTags.addButton('eg_kep', 'Kép beágyazás 1000x562-nél nagyobb kép esetén!', '<div class="nk-post-img"><img src="IDE A KÉP ELÉRÉSE"></div>', '', 'h', 'Kép Beágyazás 1000x562-nél nagyobb kép esetén!', 203);
QTags.addButton('eg_video', 'Videó beágyazás', '<div class="nk-plain-video" data-video="IDE A LINK!"></div>', '', 'h', 'Videó Beágyazás', 201);
QTags.addButton('eg_twichclip', 'Twitch clip beágyazás ', '<div class="nk-plain-video"><iframe src="https://clips.twitch.tv/embed?clip= ide id" height="360" width="640" frameborder="0" scrolling="no" allowfullscreen="true" </iframe>"></div>', '', 'h', 'Twitch clip beágyazás', 204);
QTags.addButton('eg_video', 'szóköz', '<div class="nk-gap-1"></div>', '', 'h', 'szóköz', 205);
</script>
<script type="text/javascript">
QTags.addButton('eg_kep', 'Kép beágyazás 1000x562-nél nagyobb kép esetén!', '<div class="nk-post-img"><img src="IDE A KÉP ELÉRÉSE"></div>', '', 'h', 'Kép Beágyazás 1000x562-nél nagyobb kép esetén!', 203);
QTags.addButton('eg_video', 'Videó beágyazás', '<div class="nk-plain-video" data-video="IDE A LINK!"></div>', '', 'h', 'Videó Beágyazás', 201);
QTags.addButton('eg_twichclip', 'Twitch clip beágyazás ', '<div class="nk-plain-video"><iframe src="https://clips.twitch.tv/embed?clip= ide id" height="360" width="640" frameborder="0" scrolling="no" allowfullscreen="true" </iframe>"></div>', '', 'h', 'Twitch clip beágyazás', 204);
QTags.addButton('eg_video', 'szóköz', '<div class="nk-gap-1"></div>', '', 'h', 'szóköz', 205);
</script>
<?php }
<?php }
}
function filter_images($content)
@ -460,8 +460,8 @@ if (!function_exists("escapium_post_header")) {
the_title(
'<h2 class="post__title"><a href="' .
esc_url(get_permalink()) .
'" rel="bookmark">',
esc_url(get_permalink()) .
'" rel="bookmark">',
"</a></h2>"
);
@ -574,21 +574,21 @@ function rp_style()
wp_enqueue_style(
"simple-icon",
get_template_directory_uri() .
"/assets/font-icon/simple-line-icons/css/simple-line-icons.css",
"/assets/font-icon/simple-line-icons/css/simple-line-icons.css",
[],
""
);
wp_enqueue_style(
"ionicons",
get_template_directory_uri() .
"/assets/font-icon/ionicons/css/ionicons.min.css",
"/assets/font-icon/ionicons/css/ionicons.min.css",
[],
""
);
wp_enqueue_style(
"magnific-popup",
get_template_directory_uri() .
"/assets/vendor/magnific-popup/magnific-popup.css",
"/assets/vendor/magnific-popup/magnific-popup.css",
[],
""
);
@ -612,21 +612,21 @@ function rp_script()
wp_enqueue_script(
"jquery-migrate",
get_template_directory_uri() .
"/assets/vendor/jquery/jquery-migrate.min.js",
"/assets/vendor/jquery/jquery-migrate.min.js",
[],
""
);
wp_enqueue_script(
"bootstrap-js",
get_template_directory_uri() .
"/assets/vendor/bootstrap/js/bootstrap.bundle.min.js",
"/assets/vendor/bootstrap/js/bootstrap.bundle.min.js",
[],
""
);
wp_enqueue_script(
"font-awesome",
get_template_directory_uri() .
"/assets/font-icon/font-awesome/js/all.min.js",
"/assets/font-icon/font-awesome/js/all.min.js",
[],
""
);
@ -672,7 +672,7 @@ function custom_homepage_title($title, $id = null)
}
//Logó
function mytheme_custom_logo_setup()
function rp_logo_setup()
{
add_theme_support("custom-logo", [
"height" => 80, // A logó alapértelmezett magassága
@ -682,7 +682,7 @@ function mytheme_custom_logo_setup()
"header-text" => ["site-title", "site-description"], // Szöveg, ami megjelenhet a logó mellett
]);
}
add_action("after_setup_theme", "mytheme_custom_logo_setup");
add_action("after_setup_theme", "rp_logo_setup");
// A the_title filtert használjuk, hogy módosítsuk az oldal címét
add_filter("the_title", "custom_homepage_title", 10, 2);
@ -720,95 +720,96 @@ if (!function_exists("escapium_comment")) {
case "pingback":
case "trackback": ?>
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
<?php __(
"Pingback:",
"escapium"
); ?> <?php comment_author_link(); ?> <?php edit_comment_link(
__("(Edit)", "escapium"),
'<span class="edit-link">',
"</span>"
); ?>
<?php __(
"Pingback:",
"escapium"
); ?> <?php comment_author_link(); ?> <?php edit_comment_link(
__("(Edit)", "escapium"),
'<span class="edit-link">',
"</span>"
); ?>
</li>
<?php break;default:
</li>
<?php break;
default:
global $post; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<div id="comment-<?php comment_ID(); ?>" class="comment">
<div id="comment-<?php comment_ID(); ?>" class="comment">
<?php echo get_avatar($comment, 80); ?>
<?php echo get_avatar($comment, 80); ?>
<div class="comment-inner">
<div class="comment-inner">
<div class="comment-header">
<div class="comment-header">
<?php printf('<cite class="fn">%1$s</cite>', get_comment_author_link()); ?>
<?php printf('<cite class="fn">%1$s</cite>', get_comment_author_link()); ?>
<p><a href="<?php echo esc_url(
get_comment_link($comment->comment_ID)
); ?>"><?php printf(
_x('%1$s at %2$s', "[date] at [time of day]", "escapium"),
get_comment_date(),
get_comment_time()
); ?></a></p>
<p><a href="<?php echo esc_url(
get_comment_link($comment->comment_ID)
); ?>"><?php printf(
_x('%1$s at %2$s', "[date] at [time of day]", "escapium"),
get_comment_date(),
get_comment_time()
); ?></a></p>
<div class="comment-actions">
<div class="comment-actions">
<?php edit_comment_link(__("Edit", "escapium"), "", ""); ?>
<?php edit_comment_link(__("Edit", "escapium"), "", ""); ?>
<?php comment_reply_link(
array_merge($args, [
"reply_text" => __("Reply", "escapium"),
"depth" => $depth,
"max_depth" => $args["max_depth"],
])
); ?>
<?php comment_reply_link(
array_merge($args, [
"reply_text" => __("Reply", "escapium"),
"depth" => $depth,
"max_depth" => $args["max_depth"],
])
); ?>
<div class="clear"></div>
<div class="clear"></div>
</div><!-- .comment-actions -->
</div><!-- .comment-actions -->
</div><!-- .comment-header -->
</div><!-- .comment-header -->
<div class="comment-content">
<div class="comment-content">
<?php if ("0" == $comment->comment_approved): ?>
<?php if ("0" == $comment->comment_approved): ?>
<p class="comment-awaiting-moderation"><?php _e(
"Awaiting moderation",
"escapium"
); ?></p>
<p class="comment-awaiting-moderation"><?php _e(
"Awaiting moderation",
"escapium"
); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php comment_text(); ?>
<?php comment_text(); ?>
</div><!-- .comment-content -->
</div><!-- .comment-content -->
<div class="comment-actions-below hidden">
<div class="comment-actions-below hidden">
<?php edit_comment_link(__("Edit", "escapium"), "", ""); ?>
<?php edit_comment_link(__("Edit", "escapium"), "", ""); ?>
<?php comment_reply_link(
array_merge($args, [
"reply_text" => __("Reply", "escapium"),
"depth" => $depth,
"max_depth" => $args["max_depth"],
])
); ?>
<?php comment_reply_link(
array_merge($args, [
"reply_text" => __("Reply", "escapium"),
"depth" => $depth,
"max_depth" => $args["max_depth"],
])
); ?>
<div class="clear"></div>
<div class="clear"></div>
</div><!-- .comment-actions -->
</div><!-- .comment-actions -->
</div><!-- .comment-inner -->
</div><!-- .comment-inner -->
</div><!-- .comment-## -->
<?php break;
</div><!-- .comment-## -->
<?php break;
endswitch;
}
}
?>
?>