PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.8
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.8
2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 All 108 releases
b-blocks / includes / Constants.php

Constants.php in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.8, at includes/Constants.php

16 lines 737 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 $bb_host = isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) : '';
8 $bb_isLocal = $bb_host && ( 0 === strpos( $bb_host, 'localhost' ) || 0 === strpos( $bb_host, '127.0.0.1' ) || preg_match( '/\.(local|test|ddev\.site)(:\d+)?$/', $bb_host ) );
9
10 define( 'B_BLOCKS_VERSION', $bb_isLocal ? time() : '2.1.8' );
11 define( 'B_BLOCKS_DIR_PATH', plugin_dir_path( B_BLOCKS_FILE ) );
12 define( 'B_BLOCKS_DIR_URL', plugin_dir_url( B_BLOCKS_FILE ) );
13 define( 'B_BLOCKS_HAS_PRO', 'b-blocks-pro/plugin.php' === plugin_basename( B_BLOCKS_FILE ) );
14 define( 'B_BLOCKS_BUILD', B_BLOCKS_DIR_URL . 'build/' );
15 define( 'B_BLOCKS_ASSETS', B_BLOCKS_DIR_URL . 'assets/' );
16