class-astra.php in Block Animations, Motion & Scroll Effects – Ghost Kit 3.6.1, at classes/3rd/class-astra.php
| 1 | <?php |
| 2 | /** |
| 3 | * Astra theme. |
| 4 | * |
| 5 | * @package ghostkit |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * GhostKit_3rd_Astra |
| 10 | */ |
| 11 | class GhostKit_3rd_Astra { |
| 12 | /** |
| 13 | * GhostKit_3rd_Astra constructor. |
| 14 | */ |
| 15 | public function __construct() { |
| 16 | if ( 'astra' !== get_template() ) { |
| 17 | return; |
| 18 | } |
| 19 | |
| 20 | add_filter( 'gkt_custom_css_allow_js_fallback', '__return_false' ); |
| 21 | add_filter( |
| 22 | 'gkt_parse_blocks_methods', |
| 23 | function() { |
| 24 | return array( 'modern', 'classic' ); |
| 25 | } |
| 26 | ); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | new GhostKit_3rd_Astra(); |
| 31 |