| @@ -6,10 +6,10 @@ | ||
| 6 | 6 | * @since 1.0.0 |
| 7 | 7 | * @version 1.0.0 |
| 8 | 8 | * |
| 9 | 9 | */ |
| 10 | -if ( ! class_exists( 'PXLBSAdminify_Customize_Panel' ) && class_exists( 'WP_Customize_Panel' ) ) { | |
| 11 | - class PXLBSAdminify_Customize_Panel extends WP_Customize_Panel { | |
| 10 | +if ( ! class_exists( 'WP_Customize_Panel_ADMINIFY' ) && class_exists( 'WP_Customize_Panel' ) ) { | |
| 11 | + class WP_Customize_Panel_ADMINIFY extends WP_Customize_Panel { | |
| 12 | 12 | public $type = 'adminify'; |
| 13 | 13 | } |
| 14 | 14 | } |
| 15 | 15 | |
| @@ -20,10 +20,10 @@ | ||
| 20 | 20 | * @since 1.0.0 |
| 21 | 21 | * @version 1.0.0 |
| 22 | 22 | * |
| 23 | 23 | */ |
| 24 | -if ( ! class_exists( 'PXLBSAdminify_Customize_Section' ) && class_exists( 'WP_Customize_Section' ) ) { | |
| 25 | - class PXLBSAdminify_Customize_Section extends WP_Customize_Section { | |
| 24 | +if ( ! class_exists( 'WP_Customize_Section_ADMINIFY' ) && class_exists( 'WP_Customize_Section' ) ) { | |
| 25 | + class WP_Customize_Section_ADMINIFY extends WP_Customize_Section { | |
| 26 | 26 | public $type = 'adminify'; |
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | 29 | |
| @@ -34,10 +34,10 @@ | ||
| 34 | 34 | * @since 1.0.0 |
| 35 | 35 | * @version 1.0.0 |
| 36 | 36 | * |
| 37 | 37 | */ |
| 38 | -if ( ! class_exists( 'PXLBSAdminify_Customize_Control' ) && class_exists( 'WP_Customize_Control' ) ) { | |
| 39 | - class PXLBSAdminify_Customize_Control extends WP_Customize_Control { | |
| 38 | +if ( ! class_exists( 'WP_Customize_Control_ADMINIFY' ) && class_exists( 'WP_Customize_Control' ) ) { | |
| 39 | + class WP_Customize_Control_ADMINIFY extends WP_Customize_Control { | |
| 40 | 40 | |
| 41 | 41 | public $type = 'adminify'; |
| 42 | 42 | public $field = ''; |
| 43 | 43 | public $unique = ''; |
| @@ -82,9 +82,9 @@ | ||
| 82 | 82 | |
| 83 | 83 | $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); |
| 84 | 84 | $class = 'customize-control customize-control-'. $this->type . $visible; |
| 85 | 85 | |
| 86 | - echo '<li id="'. esc_attr( $id ) .'" class="'. esc_attr( $class ) .'"'. $depend .'>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- value pre-escaped where built. | |
| 86 | + echo '<li id="'. esc_attr( $id ) .'" class="'. esc_attr( $class ) .'"'. $depend .'>'; | |
| 87 | 87 | $this->render_field_content(); |
| 88 | 88 | echo '</li>'; |
| 89 | 89 | |
| 90 | 90 | } |
| @@ -129,9 +129,9 @@ | ||
| 129 | 129 | $this->field['name'] = $this->settings['default']->id; |
| 130 | 130 | |
| 131 | 131 | $this->field['dependency'] = array(); |
| 132 | 132 | |
| 133 | - echo '<div class="adminify-customize-field'. esc_attr( $class ) .'"'. $atts .'>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- value pre-escaped where built. | |
| 133 | + echo '<div class="adminify-customize-field'. esc_attr( $class ) .'"'. $atts .'>'; | |
| 134 | 134 | |
| 135 | 135 | ADMINIFY::field( $this->field, $this->value(), $this->unique, 'customize' ); |
| 136 | 136 | |
| 137 | 137 | echo '</div>'; |