field, array(
'width_icon' => '',
'height_icon' => '',
'width_placeholder' => esc_html__( 'width', 'csf' ),
'height_placeholder' => esc_html__( 'height', 'csf' ),
'width' => true,
'height' => true,
'unit' => true,
'show_units' => true,
'units' => array( 'px', '%', 'em' )
) );
$default_values = array(
'width' => '',
'height' => '',
'unit' => 'px',
);
$value = wp_parse_args( $this->value, $default_values );
$unit = ( count( $args['units'] ) === 1 && ! empty( $args['unit'] ) ) ? $args['units'][0] : '';
$is_unit = ( ! empty( $unit ) ) ? ' csf--is-unit' : '';
echo $this->field_before();
echo '
';
echo $this->field_after();
}
public function output() {
$output = '';
$element = ( is_array( $this->field['output'] ) ) ? join( ',', $this->field['output'] ) : $this->field['output'];
$prefix = ( ! empty( $this->field['output_prefix'] ) ) ? $this->field['output_prefix'] .'-' : '';
$important = ( ! empty( $this->field['output_important'] ) ) ? '!important' : '';
$unit = ( ! empty( $this->value['unit'] ) ) ? $this->value['unit'] : 'px';
$width = ( isset( $this->value['width'] ) && $this->value['width'] !== '' ) ? $prefix .'width:'. $this->value['width'] . $unit . $important .';' : '';
$height = ( isset( $this->value['height'] ) && $this->value['height'] !== '' ) ? $prefix .'height:'. $this->value['height'] . $unit . $important .';' : '';
if ( $width !== '' || $height !== '' ) {
$output = $element .'{'. $width . $height .'}';
}
$this->parent->output_css .= $output;
return $output;
}
}
}
Domain – My Blog
https://desarrollo.megaweb.pe
My WordPress Blog
Sun, 27 Jul 2025 08:26:55 +0000
es-PE
hourly
1
https://wordpress.org/?v=7.1.3
https://desarrollo.megaweb.pe/wp-content/uploads/2025/08/cropped-Vector-3-100x100.png
Domain – My Blog
https://desarrollo.megaweb.pe
32
32
-
The Ultimate Guide to Choosing a Web Hosting Provider
https://desarrollo.megaweb.pe/2025/07/27/the-ultimate-guide-to-choosing-a-web-hosting-provider-copy-copy-2/
https://desarrollo.megaweb.pe/2025/07/27/the-ultimate-guide-to-choosing-a-web-hosting-provider-copy-copy-2/#respond
Sun, 27 Jul 2025 08:26:55 +0000
https://byteflows.net/wp/xHosting/?p=2153
https://desarrollo.megaweb.pe/2025/07/27/the-ultimate-guide-to-choosing-a-web-hosting-provider-copy-copy-2/feed/
0
-
The Ultimate Guide to Choosing a Web Hosting Provider
https://desarrollo.megaweb.pe/2025/07/08/the-ultimate-guide-to-choosing-a-web-hosting-provider/
https://desarrollo.megaweb.pe/2025/07/08/the-ultimate-guide-to-choosing-a-web-hosting-provider/#respond
Tue, 08 Jul 2025 17:31:29 +0000
https://byteflows.net/wp/xHosting/?p=916
https://desarrollo.megaweb.pe/2025/07/08/the-ultimate-guide-to-choosing-a-web-hosting-provider/feed/
0