Spamworldpro Mini Shell
Spamworldpro


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/number-box/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/ultimate-blocks/src/blocks/number-box/block.php
<?php

function ub_render_number_box_block($attributes){
    extract($attributes);

    $column1 = '<div class="ub_number_1"'.($blockID===''?' style="border-color: '.$borderColor.';"':'').'>
        <div class="ub_number_box_number"'.($blockID===''?' style="background-color: '.$numberBackground.';"':'').'>
            <p class="ub_number_one_number"'.($blockID===''?' style="color: '.$numberColor.';"':'').'>'.$columnOneNumber.'</p>
        </div>
        <p class="ub_number_one_title"'.($blockID===''?' style="text-align: '.$title1Align.';"':'').'>'.$columnOneTitle.'</p>
        <p class="ub_number_one_body"'.($blockID===''?' style="text-align: '.$body1Align.';"':'').'>'.$columnOneBody.'</p>
    </div>';

    $column2 = '<div class="ub_number_2"'.($blockID===''?' style="border-color: '.$borderColor.';"':'').'>
        <div class="ub_number_box_number"'.($blockID===''?' style="background-color: '.$numberBackground.';"':'').'>
            <p class="ub_number_two_number"'.($blockID===''?' style="color: '.$numberColor.';"':'').'>'.$columnTwoNumber.'</p>
        </div>
        <p class="ub_number_two_title"'.($blockID===''?' style="text-align: '.$title2Align.';"':'').'>'.$columnTwoTitle.'</p>
        <p class="ub_number_two_body"'.($blockID===''?' style="text-align: '.$body2Align.';"':'').'>'.$columnTwoBody.'</p>
    </div>';

    $column3 = '<div class="ub_number_3"'.($blockID===''?' style="border-color: '.$borderColor.';"':'').'>
        <div class="ub_number_box_number"'.($blockID===''?' style="background-color: '.$numberBackground.';"':'').'>
            <p class="ub_number_three_number"'.($blockID===''?' style="color: '.$numberColor.';"':'').'>'.$columnThreeNumber.'</p>
        </div>
        <p class="ub_number_three_title"'.($blockID===''?' style="text-align: '.$title3Align.';"':'').'>'.$columnThreeTitle.'</p>
        <p class="ub_number_three_body"'.($blockID===''?' style="text-align: '.$body3Align.';"':'').'>'.$columnThreeBody.'</p>
    </div>';

    $columns = $column1;

    if((int)$column >= 2){
        $columns .= $column2;
    }
    if((int)$column >= 3){
        $columns .= $column3;
    }

    return '<div class="ub_number_box column_'.$column.(isset($className) ? ' ' . esc_attr($className) : '').
            '"'.($blockID===''?'':' id="ub-number-box-'.$blockID.'"').'>'.$columns.'</div>';
}

function ub_register_number_box_block() {
	if ( function_exists( 'register_block_type' ) ) {
        require dirname(dirname(__DIR__)) . '/defaults.php';
        register_block_type( 'ub/number-box-block', array(
            'attributes' => $defaultValues['ub/number-box-block']['attributes'],
			'render_callback' => 'ub_render_number_box_block'));
	}
}

add_action('init', 'ub_register_number_box_block');

Spamworldpro Mini