Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.112.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : astra-addon.php
<?php
/*
 * https://wpastra.com/changelog/astra-pro-addon/
 * */

class Brizy_Compatibilities_AstraAddon
{

    public function __construct()
    {
        add_filter('brizy_asset_enqueue_post', [$this, 'brizy_asset_enqueue_post']);
    }

    public function brizy_asset_enqueue_post(Brizy_Editor_Post $editorPost)
    {
        global $template;
        if (is_singular('astra-advanced-hook') || !strpos($template, Brizy_Config::BRIZY_BLANK_TEMPLATE_FILE_NAME)) {
            return $editorPost;
        }
        $postId = $editorPost->getWpPost()->ID;
        if (!in_array(get_post_meta($postId, 'ast-advanced-hook-layout', true), ['header', 'footer'])) {
            return $editorPost;
        }

        return false;
    }

}
© 2025 XylotrechusZ