type ) {
case 'ast-font-family':
$this->render_font();
break;
case 'ast-font-weight':
$this->render_font_weight();
break;
}
}
/**
* Enqueue control related scripts/styles.
*
* @access public
*/
public function enqueue() {
$css_uri = ASTRA_THEME_URI . 'inc/customizer/custom-controls/typography/';
$js_uri = ASTRA_THEME_URI . 'inc/customizer/custom-controls/typography/';
wp_enqueue_script( 'astra-typography', $js_uri . 'typography.js', array( 'jquery', 'customize-base' ), ASTRA_THEME_VERSION, true );
}
/**
* Renders the title and description for a control.
*
* @since 1.0.0
* @access protected
* @return void
*/
protected function render_content_title() {
if ( ! empty( $this->label ) ) {
echo '' . esc_html( $this->label ) . '';
}
if ( ! empty( $this->description ) ) {
echo '' . esc_html( $this->description ) . '';
}
}
/**
* Renders the connect attribute for a connected control.
*
* @since 1.0.0
* @access protected
* @return void
*/
protected function render_connect_attribute() {
if ( $this->connect ) {
echo ' data-connected-control="' . esc_attr( $this->connect ) . '"';
}
}
/**
* Renders a font control.
*
* @since 1.0.0
* @access protected
* @return void
*/
protected function render_font() {
echo '';
}
/**
* Renders a font weight control.
*
* @since 1.0.0
* @access protected
* @return void
*/
protected function render_font_weight() {
echo '';
}
}