Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing minor changes #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<?php if ( getOption('defaults', 'pagination_type') == 'load-more' ) : ?>
<div class="w-100 text-center my-3">
<button class="view-more-button btn btn-black">Load More</button>
<button class="view-more-button btn btn-black"> <?php esc_html_e('Load More', 'mtminimag'); ?></button>
</div>
<?php endif; ?>

Expand Down
2 changes: 1 addition & 1 deletion author.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<?php if ( getOption('defaults', 'pagination_type') == 'load-more' ) : ?>
<div class="w-100 text-center my-3">
<button class="view-more-button btn btn-black">Load More</button>
<button class="view-more-button btn btn-black"><?php esc_html_e('Load More', 'mtminimag'); ?></button>
</div>
<?php endif; ?>

Expand Down
58 changes: 29 additions & 29 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,44 +60,44 @@
);
?>

<div class="comments-form border-box mt-sept">
<?php comment_form($comments_args); ?>
</div>

<?php
// Comment list
if (have_comments()) :
$comments_count = wp_count_comments($post->ID)->approved;
$comments_count = wp_count_comments($post->ID)->approved;
?>
<div id="comments" class="comments-area mt-sept">
<h3 class="comments-heading"><?php echo esc_html($comments_count); ?> Comments</h3>
<div id="comments" class="comments-area mt-sept">
<h3 class="comments-heading"><?php echo esc_html($comments_count); ?> <?php esc_html_e('Comments', 'mtminimag'); ?></h3>

<ul class="comments-list">
<?php wp_list_comments( 'type=comment&callback=mtminimag_comment' ); ?>
</ul>
<ul class="comments-list">
<?php wp_list_comments( 'type=comment&callback=mtminimag_comment' ); ?>
</ul>

<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) :
?>
<nav itemtype="https://schema.org/SiteNavigationElement" itemscope="itemscope" class="commentnavi pagination">
<h2 class="screen-reader-text">
<?php esc_html_e('Comments navigation', 'mtminimag'); ?>
</h2>
<div class="nav-links">
<?php paginate_comments_links(); ?>
</div>
</nav>
<?php endif; ?>
<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) :
?>
<nav itemtype="https://schema.org/SiteNavigationElement" itemscope="itemscope" class="commentnavi pagination">
<h2 class="screen-reader-text">
<?php esc_html_e('Comments navigation', 'mtminimag'); ?>
</h2>
<div class="nav-links">
<?php paginate_comments_links(); ?>
</div>
</nav>
<?php endif; ?>

</div><!-- Post comment end -->
</div><!-- Post comment end -->

<?php else : ?>

<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else :
?>
<!-- If comments are closed. -->
<?php echo 'Comments are disabled.'; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else :
?>
<!-- If comments are closed. -->
<?php esc_html_e('Comments are disabled.', 'mtminimag'); ?>
<?php endif; ?>

<?php endif; ?>

<div class="comments-form border-box mt-sept">
<?php comment_form($comments_args); ?>
</div>
12 changes: 0 additions & 12 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,6 @@

<?php wp_footer(); ?>

<?php if ( getOption('defaults', 'space_before_body') ) : ?>
<div class="space-before-body-code">
<?php echo wp_kses_post(getOption('defaults', 'space_before_body')); ?>
</div>
<?php endif; ?>

</body>

<?php
if ( getOption('defaults', 'tracking_code') ) :
echo wp_kses_post(getOption('defaults', 'tracking_code'));
endif;
?>

</html>
5 changes: 0 additions & 5 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ function mtminimag_skip_link_focus_fix() {
*/
require get_template_directory() . '/inc/sanitize-functions.php';

/**
* Advertisement Manager
*/
require get_template_directory() . '/inc/customizer/ad-manager.php';

/**
* Customizer Menu Options
*/
Expand Down
4 changes: 1 addition & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
<link rel="profile" href="https://gmpg.org/xfn/11">

<?php wp_head(); ?>

<?php echo getOption('defaults', 'space_before_head') ?>
</head>

<?php
Expand Down Expand Up @@ -182,7 +180,7 @@
?>

<a class="skip-link screen-reader-text" href="#content">
<?php _e( 'Skip to content', 'mtminimag' ); ?></a>
<?php esc_html_e( 'Skip to content', 'mtminimag' ); ?></a>


<?php
Expand Down
110 changes: 0 additions & 110 deletions inc/customizer/ad-manager.php

This file was deleted.

Loading