Solves 'call to undefined function is_plugin_active() issue when Tainacan plugin is not active.

This commit is contained in:
mateuswetah 2020-08-14 13:34:40 -03:00
parent 192f118a99
commit 18c1c42de4
5 changed files with 24 additions and 20 deletions

View File

@ -186,7 +186,7 @@ body.loading-content main:before {
@import "_media_query";
nav{
nav {
&.menu-shadow{
min-height: 50px;
border-bottom: none;
@ -245,7 +245,7 @@ nav{
h1 {
font-size: 1.5rem;
font-weight: normal;
margin: 0.36rem 0;
margin: 0.3rem 0 0.36rem 0;
}
.logo {
width: auto;
@ -746,6 +746,10 @@ nav{
margin-bottom: 0;
}
}
.page-template-landing .tainacan-footer,
.page-template-landing-breadcrumb .tainacan-footer {
margin-top: 0px !important;
}
.tainacan-title{
.tainacan-title-page{

View File

@ -268,6 +268,8 @@ add_action( 'widgets_init', 'tainacan_widgets_footer_init' );
function tainacan_block_patterns_init() {
global $wp_version;
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if ((is_plugin_active('gutenberg/gutenberg.php') || $wp_version >= '5') && function_exists('register_block_pattern_category')) {
register_block_pattern_category(
'tainacan-interface',

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,10 @@
<div class="mt-3 tainacan-single-post">
<?php if ( comments_open() || get_comments_number() ) : ?>
<div class="mt-3 tainacan-single-post">
<div class="row">
<!-- Container -->
<div class="col mt-3 mx-auto">
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif; ?>
<?php comments_template(); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>

View File

@ -64,12 +64,11 @@
</footer>
<?php } ?>
</article>
<div class="row">
<?php if ( comments_open() || get_comments_number() ) : ?>
<div class="row">
<!-- Container -->
<div class="col mt-3 mx-auto">
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif; ?>
<?php comments_template(); ?>
</div>
</div>
</div>
<?php endif; ?>