classes/uix/ui/grid.php 1 location
|
@@ 111-122 (lines=12) @@
|
| 108 |
|
* @since 1.0.0 |
| 109 |
|
* @access public |
| 110 |
|
*/ |
| 111 |
|
public function set_attributes() { |
| 112 |
|
|
| 113 |
|
if ( ! empty( $this->struct['column'] ) ) { |
| 114 |
|
$this->attributes['class'] = 'row'; |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
if ( ! empty( $this->struct['size'] ) ) { |
| 118 |
|
$this->attributes['class'] = $this->struct['size']; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
parent::set_attributes(); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
/** |
| 125 |
|
* Render the complete section |
classes/uix/ui/modal.php 1 location
|
@@ 96-105 (lines=10) @@
|
| 93 |
|
* @since 1.0.0 |
| 94 |
|
* @access private |
| 95 |
|
*/ |
| 96 |
|
private function set_modal_size() { |
| 97 |
|
|
| 98 |
|
if ( ! empty( $this->struct['width'] ) ) { |
| 99 |
|
$this->attributes['data-width'] = $this->struct['width']; |
| 100 |
|
} |
| 101 |
|
if ( ! empty( $this->struct['height'] ) ) { |
| 102 |
|
$this->attributes['data-height'] = $this->struct['height']; |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
|
| 108 |
|
/** |