UA
This commit is contained in:
parent
9f6db74f67
commit
b469fae0c8
2 changed files with 82 additions and 77 deletions
|
@ -241,6 +241,10 @@ element.style {
|
||||||
image-rendering: auto;
|
image-rendering: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-logo {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* Borítókép javítás */
|
/* Borítókép javítás */
|
||||||
.post__thumb {
|
.post__thumb {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
153
functions.php
153
functions.php
|
@ -131,14 +131,14 @@ if (function_exists("cn_cookies_accepted") && cn_cookies_accepted()) {
|
||||||
function appthemes_add_quicktags()
|
function appthemes_add_quicktags()
|
||||||
{
|
{
|
||||||
if (wp_script_is("quicktags")) { ?>
|
if (wp_script_is("quicktags")) { ?>
|
||||||
<script type="text/javascript">
|
<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_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_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_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);
|
QTags.addButton('eg_video', 'szóköz', '<div class="nk-gap-1"></div>', '', 'h', 'szóköz', 205);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
|
|
||||||
function filter_images($content)
|
function filter_images($content)
|
||||||
|
@ -460,8 +460,8 @@ if (!function_exists("escapium_post_header")) {
|
||||||
|
|
||||||
the_title(
|
the_title(
|
||||||
'<h2 class="post__title"><a href="' .
|
'<h2 class="post__title"><a href="' .
|
||||||
esc_url(get_permalink()) .
|
esc_url(get_permalink()) .
|
||||||
'" rel="bookmark">',
|
'" rel="bookmark">',
|
||||||
"</a></h2>"
|
"</a></h2>"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -574,21 +574,21 @@ function rp_style()
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
"simple-icon",
|
"simple-icon",
|
||||||
get_template_directory_uri() .
|
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(
|
wp_enqueue_style(
|
||||||
"ionicons",
|
"ionicons",
|
||||||
get_template_directory_uri() .
|
get_template_directory_uri() .
|
||||||
"/assets/font-icon/ionicons/css/ionicons.min.css",
|
"/assets/font-icon/ionicons/css/ionicons.min.css",
|
||||||
[],
|
[],
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
"magnific-popup",
|
"magnific-popup",
|
||||||
get_template_directory_uri() .
|
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(
|
wp_enqueue_script(
|
||||||
"jquery-migrate",
|
"jquery-migrate",
|
||||||
get_template_directory_uri() .
|
get_template_directory_uri() .
|
||||||
"/assets/vendor/jquery/jquery-migrate.min.js",
|
"/assets/vendor/jquery/jquery-migrate.min.js",
|
||||||
[],
|
[],
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
wp_enqueue_script(
|
wp_enqueue_script(
|
||||||
"bootstrap-js",
|
"bootstrap-js",
|
||||||
get_template_directory_uri() .
|
get_template_directory_uri() .
|
||||||
"/assets/vendor/bootstrap/js/bootstrap.bundle.min.js",
|
"/assets/vendor/bootstrap/js/bootstrap.bundle.min.js",
|
||||||
[],
|
[],
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
wp_enqueue_script(
|
wp_enqueue_script(
|
||||||
"font-awesome",
|
"font-awesome",
|
||||||
get_template_directory_uri() .
|
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ó
|
//Logó
|
||||||
function mytheme_custom_logo_setup()
|
function rp_logo_setup()
|
||||||
{
|
{
|
||||||
add_theme_support("custom-logo", [
|
add_theme_support("custom-logo", [
|
||||||
"height" => 80, // A logó alapértelmezett magassága
|
"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
|
"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
|
// A the_title filtert használjuk, hogy módosítsuk az oldal címét
|
||||||
add_filter("the_title", "custom_homepage_title", 10, 2);
|
add_filter("the_title", "custom_homepage_title", 10, 2);
|
||||||
|
@ -720,93 +720,94 @@ if (!function_exists("escapium_comment")) {
|
||||||
case "pingback":
|
case "pingback":
|
||||||
case "trackback": ?>
|
case "trackback": ?>
|
||||||
|
|
||||||
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
|
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
|
||||||
|
|
||||||
<?php __(
|
<?php __(
|
||||||
"Pingback:",
|
"Pingback:",
|
||||||
"escapium"
|
"escapium"
|
||||||
); ?> <?php comment_author_link(); ?> <?php edit_comment_link(
|
); ?> <?php comment_author_link(); ?> <?php edit_comment_link(
|
||||||
__("(Edit)", "escapium"),
|
__("(Edit)", "escapium"),
|
||||||
'<span class="edit-link">',
|
'<span class="edit-link">',
|
||||||
"</span>"
|
"</span>"
|
||||||
); ?>
|
); ?>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<?php break;default:
|
<?php break;
|
||||||
|
default:
|
||||||
global $post; ?>
|
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(
|
<p><a href="<?php echo esc_url(
|
||||||
get_comment_link($comment->comment_ID)
|
get_comment_link($comment->comment_ID)
|
||||||
); ?>"><?php printf(
|
); ?>"><?php printf(
|
||||||
_x('%1$s at %2$s', "[date] at [time of day]", "escapium"),
|
_x('%1$s at %2$s', "[date] at [time of day]", "escapium"),
|
||||||
get_comment_date(),
|
get_comment_date(),
|
||||||
get_comment_time()
|
get_comment_time()
|
||||||
); ?></a></p>
|
); ?></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(
|
<?php comment_reply_link(
|
||||||
array_merge($args, [
|
array_merge($args, [
|
||||||
"reply_text" => __("Reply", "escapium"),
|
"reply_text" => __("Reply", "escapium"),
|
||||||
"depth" => $depth,
|
"depth" => $depth,
|
||||||
"max_depth" => $args["max_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(
|
<p class="comment-awaiting-moderation"><?php _e(
|
||||||
"Awaiting moderation",
|
"Awaiting moderation",
|
||||||
"escapium"
|
"escapium"
|
||||||
); ?></p>
|
); ?></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(
|
<?php comment_reply_link(
|
||||||
array_merge($args, [
|
array_merge($args, [
|
||||||
"reply_text" => __("Reply", "escapium"),
|
"reply_text" => __("Reply", "escapium"),
|
||||||
"depth" => $depth,
|
"depth" => $depth,
|
||||||
"max_depth" => $args["max_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-## -->
|
</div><!-- .comment-## -->
|
||||||
<?php break;
|
<?php break;
|
||||||
endswitch;
|
endswitch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue