| 1 |
<?php |
| 2 |
|
| 3 |
class Pix_Customize_CSS_Editor_Control extends Pix_Customize_Control { |
| 4 |
public $type = 'css_editor'; |
| 5 |
|
| 6 |
/** |
| 7 |
* Render the control's content. |
| 8 |
* @since 3.4.0 |
| 9 |
*/ |
| 10 |
public function render_content() { ?> |
| 11 |
<style type="text/css" media="screen"> |
| 12 |
#css_editor { |
| 13 |
display: inline-block; |
| 14 |
height: 700px; |
| 15 |
position: absolute; |
| 16 |
top: 130px; |
| 17 |
right: 0; |
| 18 |
bottom: 0; |
| 19 |
left: 0; |
| 20 |
z-index: 99999999; |
| 21 |
} |
| 22 |
</style> |
| 23 |
|
| 24 |
<textarea <?php $this->link(); ?> id="css_editor_textarea"><?php echo esc_textarea( $this->value() ); ?></textarea> |
| 25 |
<div id="css_editor"></div> |
| 26 |
<?php } |
| 27 |
} |