first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
/*
* https://wpastra.com/changelog/astra-pro-addon/
* */
class Brizy_Compatibilities_AstraAddon {
public function __construct() {
add_action( 'brizy_preview_enqueue_scripts', [ $this, 'preview_enqueue_scripts' ] );
}
public function preview_enqueue_scripts( Brizy_Editor_Post $editorPost ) {
global $template;
if ( is_singular( 'astra-advanced-hook' ) || ! strpos( $template, Brizy_Config::BRIZY_BLANK_TEMPLATE_FILE_NAME ) ) {
return;
}
$postId = $editorPost->getWpPost()->ID;
if ( ! in_array( get_post_meta( $postId, 'ast-advanced-hook-layout', true ), [ 'header', 'footer' ] ) ) {
return;
}
Brizy_Public_AssetEnqueueManager::_init()->dequeuePost( $editorPost );
}
}