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

zerif-lite support added #245

Open
wants to merge 1 commit into
base: dev
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
12 changes: 11 additions & 1 deletion views/partials/content-sermon-wrapper-end.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,17 @@
get_sidebar();
echo '</div><!-- end of #content-wrap -->';
break;
default:
case 'zerif-lite':
echo '</div><!-- end of #main -->';
echo '</div><!-- end of #primary -->';
echo '</div><!-- end of .content-left-wrap -->';
echo '<div class="sidebar-wrap col-md-3 content-left-wrap">';
get_sidebar();
echo '</div>';
echo '</div><!-- end of .container -->';
echo '</div><!-- end of .site-content -->';
break;
default:
ob_start();
get_sidebar();
$sidebar = ob_get_clean();
Expand Down
8 changes: 8 additions & 0 deletions views/partials/content-sermon-wrapper-start.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
case 'oceanwp':
echo '<div id="content-wrap" class="container clr"><div id="primary" class="content-area clr"><div id="content" class="site-content clr">';
break;
case 'zerif-lite':
echo '</header>';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird that the the header is not already closed, gotta check this one.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be a Bug of Zerif Lite, as my installation was missing that tag.

echo '<div class="site-content" id="content">';
echo '<div class="container" style="min-height: 1px;">';
echo '<div class="content-left-wrap col-md-9">';
echo '<div class="content-area" id="primary">';
echo '<div class="site-main" id="main" role="main">';
break;
default:
echo apply_filters( 'sm_templates_wrapper_start', '<div class="wrap"><div id="primary" class="content-area"><main id="main" class="site-main wpfc-sermon-container">' );
break;
Expand Down