function porto_get_minicart_type() { global $porto_settings; $header_type = porto_get_header_type(); return apply_filters('porto_get_minicart_type', $header_type == 'side' || $header_type >= 10 ? 'minicart-inline' : $porto_settings['minicart-type']); }
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php get_template_part('head'); ?> </head> <?php global $porto_settings, $porto_design; $wrapper = porto_get_wrapper_type(); $body_class = $wrapper; $body_class .= ' blog-' . get_current_blog_id(); $body_class .= porto_is_dark_skin() ? ' dark' : ''; $header_type = porto_get_header_type(); if ($header_type == 'side') { $body_class .= ' body-side'; } $loading_overlay = porto_get_meta_value('loading_overlay'); $showing_overlay = false; if ('no' !== $loading_overlay && ('yes' === $loading_overlay || 'yes' !== $loading_overlay && $porto_settings['show-loading-overlay'])) { $showing_overlay = true; $body_class .= ' loading-overlay-showing'; } ?> <body <?php body_class(array($body_class)); echo $showing_overlay ? 'data-loading-overlay' : ''; ?> >