| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class for Group. |
| 5 |
* |
| 6 |
* @since 1.1.3 |
| 7 |
* @access public |
| 8 |
*/ |
| 9 |
class LoginPress_Group_Control extends WP_Customize_Control { |
| 10 |
|
| 11 |
/** |
| 12 |
* The type of customize control being rendered. |
| 13 |
* |
| 14 |
* @since 1.1.3 |
| 15 |
* @access public |
| 16 |
* @var string |
| 17 |
*/ |
| 18 |
public $type = 'group'; |
| 19 |
|
| 20 |
/** |
| 21 |
* Information text for the Group. |
| 22 |
* |
| 23 |
* @since 1.1.3 |
| 24 |
* @access public |
| 25 |
* @var string |
| 26 |
*/ |
| 27 |
public $info_text; |
| 28 |
|
| 29 |
/** |
| 30 |
* Enqueue scripts/styles. |
| 31 |
* |
| 32 |
* @since 1.0.17 |
| 33 |
* @access public |
| 34 |
* @return void |
| 35 |
*/ |
| 36 |
public function enqueue() { |
| 37 |
wp_enqueue_style( 'loginpress-group-control-css', LOGINPRESS_DIR_URL . 'css/controls/loginpress-group-control.css', array(), LOGINPRESS_VERSION ); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* Displays the control content. |
| 42 |
* |
| 43 |
* @since 1.0.17 |
| 44 |
* @access public |
| 45 |
* @return void |
| 46 |
*/ |
| 47 |
public function render_content() { |
| 48 |
?> |
| 49 |
|
| 50 |
<div id="input_<?php echo $this->id; ?>" class="loginpress-group-wrapper"> |
| 51 |
<h3 class="loginpress-group-heading"><?php echo esc_attr( $this->label ); ?></h3> |
| 52 |
<div class="loginpress-group-info"> |
| 53 |
<p><span class="loginpress-group-badge badges"><?php esc_html_e( 'Info:', 'loginpress' ) ?></span><?php echo esc_html( $this->info_text ); ?></p> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
|
| 57 |
|
| 58 |
<?php } |
| 59 |
|
| 60 |
|
| 61 |
} |
| 62 |
?> |
| 63 |
|