Server : LiteSpeed System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : apotdzgr ( 7060) PHP Version : 8.0.30 Disable Function : NONE Directory : /home/apotdzgr/www/wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/form2/ |
Upload File : |
<?php namespace plainview\sdk_mcc\form2; /** @brief The Bootstrap 4 version of the form. @since 2021-01-04 16:07:47 **/ class bootstrap4 extends form { /** @brief Allow subclasses to modify the input description display. @since 2021-01-04 16:15:12 **/ public function prepare_input_description_display( $input ) { $input->description->css_class( 'form-text text-muted' ); } /** @brief Allow subclasses to modify the input display. @since 2021-01-04 16:11:18 **/ public function prepare_input_display( $input ) { switch( $input->type ) { case 'file': $input->css_class( 'form-control-file' ); break; case 'submit': $input->css_class( 'btn btn-primary' ); break; default: $input->css_class( 'form-control' ); } } /** @brief Allow subclasses to modify the whole input display div that contains the label, input and description. @since 2021-01-04 16:27:09 **/ public function prepare_input_div( $input, $div ) { $div->css_class( 'form-group' ); } }