Submit
Path:
~
/
home
/
getwphos
/
public_html
/
kingpanel
/
wp-content
/
themes
/
mechano
/
admin
/
File Content:
navigation-single.php
<?php if (! function_exists('mechano_single_navigation_html')) { function mechano_single_navigation_html() { if (wp_attachment_is_image()) { ?> <nav class="nav-single"> <div class="nav-previous"> <div class="nav-desc"> <?php previous_image_link( false, '<span class="meta-nav">←</span>' . esc_html__('Previous Image', 'mechano') ); ?> </div> <!-- .nav-desc --> </div> <!-- .nav-previous --> <div class="nav-next"> <div class="nav-desc"> <?php next_image_link( false, esc_html__('Next Image', 'mechano') . '<span class="meta-nav">→</span>' ); ?> </div> <!-- .nav-desc --> </div> <!-- .nav-next --> </nav> <!-- .nav-single --> <?php } else { $previous_post_link = get_previous_post_link(); $next_post_link = get_next_post_link(); if (($previous_post_link != "") || ($next_post_link != "")) { $previous_post = (is_attachment()) ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true); $next_post = get_adjacent_post(false, '', false); ?> <nav class="nav-single"> <?php if ($previous_post_link != "") { ?> <div class="nav-previous"> <?php if ($previous_post && has_post_thumbnail($previous_post->ID)) { $feat_img = wp_get_attachment_image_src(get_post_thumbnail_id($previous_post->ID), 'mechano_image_size_5'); $feat_img_alt = get_post_meta(get_post_thumbnail_id($previous_post->ID), '_wp_attachment_image_alt', true); ?> <a class="nav-image-link" href="<?php echo get_permalink($previous_post->ID); ?>"> <img alt="<?php echo esc_attr($feat_img_alt); ?>" src="<?php echo esc_url($feat_img[0]); ?>"> </a> <!-- .nav-image-link --> <?php } previous_post_link( '<div class="nav-desc"><h4>' . esc_html__('Previous Post', 'mechano') . '</h4>%link</div>', '<span class="meta-nav">←</span> %title' ); if ($previous_post) { ?> <a class="nav-overlay-link" href="<?php echo get_permalink($previous_post->ID); ?>" rel="prev"> <?php echo esc_html($previous_post->post_title); ?> </a> <!-- .nav-overlay-link --> <?php } ?> </div> <!-- .nav-previous --> <?php } ?> <?php if ($next_post_link != "") { ?> <div class="nav-next"> <?php if ($next_post && has_post_thumbnail($next_post->ID)) { $feat_img = wp_get_attachment_image_src(get_post_thumbnail_id($next_post->ID), 'mechano_image_size_5'); $feat_img_alt = get_post_meta(get_post_thumbnail_id($next_post->ID), '_wp_attachment_image_alt', true); ?> <a class="nav-image-link" href="<?php echo get_permalink($next_post->ID); ?>"> <img alt="<?php echo esc_attr($feat_img_alt); ?>" src="<?php echo esc_url($feat_img[0]); ?>"> </a> <!-- .nav-image-link --> <?php } next_post_link( '<div class="nav-desc"><h4>' . esc_html__('Next Post', 'mechano') . '</h4>%link</div>', '%title <span class="meta-nav">→</span>' ); if ($next_post) { ?> <a class="nav-overlay-link" href="<?php echo get_permalink($next_post->ID); ?>" rel="next"> <?php echo esc_html($next_post->post_title); ?> </a> <!-- .nav-overlay-link --> <?php } ?> </div> <!-- .nav-next --> <?php } ?> </nav> <!-- .nav-single --> <?php } } } } if (! function_exists('mechano_single_navigation')) { function mechano_single_navigation() { $post_navigation = get_theme_mod('mechano_setting_post_navigation', 'Yes'); if ($post_navigation != 'No') { mechano_single_navigation_html(); } } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
css
---
0755
demo-data
---
0755
js
---
0755
plugins
---
0755
about-author.php
1412 bytes
0644
admin--class-tgm-plugin-activation.php
126853 bytes
0644
admin--demo-import.php
10565 bytes
0644
admin--help-tab.php
2049 bytes
0644
admin--notice.php
9889 bytes
0644
archive-title.php
3072 bytes
0644
content-none.php
1105 bytes
0644
customizer-default-values.php
3280 bytes
0644
customizer-sections.php
8509 bytes
0644
customizer-settings.php
262878 bytes
0644
enqueue-inline-script.php
2601 bytes
0644
enqueue-inline-style.php
66490 bytes
0644
enqueue-styles-scripts.php
13122 bytes
0644
functions-core.php
8160 bytes
0644
functions-layout-grid.php
1082 bytes
0644
functions-layout-regular.php
802 bytes
0644
functions-portfolio.php
2917 bytes
0644
functions-singular.php
13678 bytes
0644
functions-woocommerce.php
4674 bytes
0644
html-attributes.php
18503 bytes
0644
image-sizes.php
1986 bytes
0644
index.php
30 bytes
0644
navigation-archive.php
1231 bytes
0644
navigation-single.php
4441 bytes
0644
override-post-class.php
1447 bytes
0644
override-post-gallery.php
7368 bytes
0644
post-meta.php
7608 bytes
0644
pre-get-posts.php
353 bytes
0644
theme-options.php
11646 bytes
0644
widget_area-register.php
10228 bytes
0644
widget_area-sidebar-singular.php
7161 bytes
0644
N4ST4R_ID | Naxtarrr