function wpex_footer_reveal_enabled($post_id = '') { // Disable on mobile if (wp_is_mobile()) { return false; } // Disable on 404 if (is_404()) { return false; } // Disable on boxed style if ('boxed' == wpex_main_layout()) { return false; } // Get post id $post_id = $post_id ? $post_id : wpex_get_the_ID(); // Meta check if ($post_id) { if ('on' == get_post_meta($post_id, 'wpex_footer_reveal', true)) { return true; } elseif ('off' == get_post_meta($post_id, 'wpex_footer_reveal', true)) { return false; } } // Theme option check if (get_theme_mod('footer_reveal', false)) { return true; } }
// Get extra classes $el_class = $this->getExtraClass($el_class); // Column sizes if ($column_spacing) { $el_class .= ' column-padding-' . $column_spacing; } // No margins class if ('true' == $no_margins) { $el_class .= ' no-margins'; } // ID if ($id) { $id = 'id="' . $id . '"'; } // Prevent center rown when not full-screen $wpex_post_id = wpex_get_the_ID(); if ($wpex_post_id && 'full-screen' != wpex_get_post_layout_class($wpex_post_id)) { $center_row = false; } // Animation $css_animation_class = $css_animation !== '' ? 'wpb_animate_when_almost_visible wpb_' . $css_animation . '' : ''; // Is parallax allowed? $parallax_class = ''; if (wpex_is_front_end_composer()) { $parallax_allowed = false; } else { $parallax_allowed = true; if ($bg_image) { if ('parallax-advanced' == $bg_style || 'parallax' == $bg_style) { $parallax_class = 'row-with-parallax'; }