render_content() for the internals.
*
* @since 3.4.0
*/
protected function render() {
$id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
$class = 'customize-control customize-control-' . $this->type;
$class .= ' themify-accordion-' . $this->accordion_id . '-group';
?>
render_content(); ?>
true,
'side_label' => false,
'color_label' => __( 'Color', 'themify' ),
);
$args = wp_parse_args( $args, $defaults );
// Color & Opacity
$color = isset( $values->color ) ? $values->color : '';
$opacity = isset( $values->opacity ) ? $values->opacity : '';
$color_id = $this->id . '_color_picker';
// Transparent Color
$transparent = isset( $values->transparent ) ? $values->transparent : '';
?>
id . '_transparent'; ?>
false,
'image_label' => __( 'Image', 'themify' ),
);
$args = wp_parse_args( $args, $defaults );
wp_enqueue_media();
// Image
$src = isset( $values->src ) ? $values->src : '';
$id = isset( $values->id ) ? $values->id : '';
$thumb = wp_get_attachment_image_src( $id );
$thumb_src = isset( $thumb[0] ) ? $thumb[0] : $src;
// Image width and height
$img_width = isset( $values->imgwidth ) ? $values->imgwidth : '';
$img_height = isset( $values->imgheight ) ? $values->imgheight : '';
?>
family ) ) {
$font_family = ! empty( $values->family->name ) ? $values->family->name : '';
}
// Font styles and decoration
$font_weight = ! empty( $values->bold ) ? $values->bold : '';
$font_italic = ! empty( $values->italic ) ? $values->italic : '';
$font_underline = ! empty( $values->underline ) ? $values->underline : '';
$font_linethrough = ! empty( $values->linethrough ) ? $values->linethrough : '';
$font_nostyle = ! empty( $values->nostyle ) ? $values->nostyle : '';
// Text transform
$text_transform = ! empty( $values->texttransform ) ? $values->texttransform : '';
// Text align
$font_align = ! empty( $values->align ) ? $values->align : '';
$font_noalign = ! empty( $values->noalign ) ? $values->noalign : '';
// Font size
$font_size_num = isset( $values->sizenum ) ? $values->sizenum : '';
$font_size_unit = isset( $values->sizeunit ) ? $values->sizeunit : 'px';
// Line height
$font_line_num = isset( $values->linenum ) ? $values->linenum : '';
$font_line_unit = isset( $values->lineunit ) ? $values->lineunit : 'px';
$units = array( 'px', '%', 'em' );
?>