![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/plugins/block-options/includes/ |
<?php /** * Create helper functions for third party plugin integrations * * @copyright Copyright (c) 2019, Jeffrey Carandang * @since 1.9.2 * @package EditorsKit */ // Block Lab : https://github.com/getblocklab/block-lab/pull/373. if ( ! function_exists( 'editorskit_block_lab_default_fields' ) ) { /** * Filters blocklab plugin fields. * * @param array $default_fields The blocklab fields. * * @return array Returns updated fields. */ function editorskit_block_lab_default_fields( $default_fields ) { $default_fields['editorskit'] = 'array'; // The name and type. return $default_fields; } add_filter( 'block_lab_default_fields', 'editorskit_block_lab_default_fields', 10, 3 ); } if ( ! function_exists( 'editorskit_blocklab_classname' ) ) { /** * EditorsKit helper function for BlockLab plugin */ function editorskit_blocklab_classname() { $classes = ''; if ( function_exists( 'block_field' ) ) { $value = block_field( 'editorskit', false ); if ( ! is_array( $value ) ) { return; } $devices = array( 'desktop', 'tablet', 'mobile' ); foreach ( $devices as $key => $device ) { // phpcs:ignore if ( in_array( $device, $value ) && ! $value[ $device ] ) { $classes .= ' editorskit-no-' . $device; } } } return trim( $classes ); } }