mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 14:13:46 +09:00
- review dynamic_css();
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! isset( $args['max_width'] ) && ! isset( $args['align'] ) ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
<?php if ( isset( $args['max_width'] ) && $args['max_width'] ) { ?>
|
||||
.um-<?php echo esc_attr( $args['form_id'] ); ?>.um {
|
||||
max-width: <?php echo esc_attr( $args['max_width'] ); ?>;
|
||||
}
|
||||
<?php } ?>
|
||||
<?php if ( isset( $args['align'] ) && in_array( $args['align'], array( 'left', 'right' ), true ) ) { ?>
|
||||
.um-<?php echo esc_attr( $args['form_id'] ); ?>.um {
|
||||
margin-<?php echo esc_attr( $args['align'] ); ?>: 0px !important;
|
||||
}
|
||||
<?php } ?>
|
||||
</style>
|
||||
Reference in New Issue
Block a user