| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class Pix_Customize_Control |
| 5 |
* |
| 6 |
* with this class we will overwrite the default markup which WordPress comes with |
| 7 |
*/ |
| 8 |
class Pix_Customize_Control extends WP_Customize_Control { |
| 9 |
|
| 10 |
/** |
| 11 |
* Renders the control wrapper and calls $this->render_content() for the internals. |
| 12 |
* |
| 13 |
* @since 3.4.0 |
| 14 |
*/ |
| 15 |
protected function render() { |
| 16 |
$group = ''; |
| 17 |
$id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); |
| 18 |
$class = 'pix_customizer_setting customize-control customize-control-' . $this->type; |
| 19 |
|
| 20 |
?><li id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $class ); ?>"> |
| 21 |
<?php $this->render_content(); ?> |
| 22 |
</li><?php |
| 23 |
} |
| 24 |
} |
| 25 |
|