mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-21 04:11:59 +08:00
file restructuring
This commit is contained in:
parent
d512a6b114
commit
7bb9c30d8f
10 changed files with 5 additions and 5 deletions
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* Class to create a custom arbitrary html control for dividers etc
|
||||
*/
|
||||
class Arbitrary_Storefront_Control extends WP_Customize_Control {
|
||||
public $settings = 'blogname';
|
||||
public $description = '';
|
||||
|
||||
public function render_content() {
|
||||
switch ( $this->type ) {
|
||||
default:
|
||||
case 'text' :
|
||||
echo '<p class="description">' . wp_kses_post( $this->description ) . '</p>';
|
||||
break;
|
||||
|
||||
case 'heading':
|
||||
echo '<span class="customize-control-title">' . esc_html( $this->label ) . '</span>';
|
||||
break;
|
||||
|
||||
case 'divider' :
|
||||
echo '<hr style="margin: 1em 0;" />';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue