![]() 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/ultimate-blocks/src/blocks/divider/ |
<?php function ub_render_divider_block($attributes){ extract($attributes); return '<hr class="ub_divider'.(isset($className) ? ' ' . esc_attr($className) : '').'" '. ($blockID === '' ? 'style="border-top: ' . $borderSize . 'px ' . $borderStyle . ' ' . $borderColor . '; margin-top: ' . $borderHeight . 'px; margin-bottom: ' . $borderHeight . 'px;"' : 'id="ub_divider_' . $blockID.'"') . '></hr>'; } function ub_register_divider_block(){ if ( function_exists( 'register_block_type' ) ) { require dirname(dirname(__DIR__)) . '/defaults.php'; register_block_type( 'ub/divider', array( 'attributes' => $defaultValues['ub/divider']['attributes'], 'render_callback' => 'ub_render_divider_block')); } } add_action('init', 'ub_register_divider_block');