![]() 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/testimonial/ |
<?php function ub_render_testimonial_block($attributes){ extract($attributes); return '<div> <div class="ub_testimonial'.(isset($className) ? ' ' . esc_attr($className) : ''). '"'.($blockID === '' ? 'style= "background-color: ' . $backgroundColor . '; color: ' . $textColor . ';"' :' id="ub_testimonial_' . $blockID . '"') . '> <div class="ub_testimonial_img"> <img src="' . $imgURL . '" alt="' . $imgAlt . '" height="100" width="100" /> </div> <div class="ub_testimonial_content"> <p class="ub_testimonial_text"'. ($blockID === '' ? ' style="font-size: ' . $textSize.'px; text-align: ' . $textAlign . ';"' : '') . '>'. $ub_testimonial_text . '</p> </div> <div class="ub_testimonial_sign"> <p class="ub_testimonial_author"'. ($blockID === '' ? ' style="font-size: ' . $textSize . 'px; text-align: ' . $authorAlign.';"' : '') . '>'. $ub_testimonial_author.'</p> <p class="ub_testimonial_author_role"'. ($blockID === '' ? ' style="font-size: ' . $textSize . 'px; text-align: ' . $authorRoleAlign . ';"' : '') . '>'. $ub_testimonial_author_role . '</p> </div> </div> </div>'; } function ub_register_testimonial_block() { if( function_exists( 'register_block_type' ) ) { require dirname(dirname(__DIR__)) . '/defaults.php'; register_block_type( 'ub/testimonial', array( 'attributes' =>$defaultValues['ub/testimonial']['attributes'], 'render_callback' => 'ub_render_testimonial_block')); } } add_action('init', 'ub_register_testimonial_block');