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.' themify-accordion-' . $this->accordion_id . '-group'; if($this->hr===true){ $class.=' themify-control-divider'; } ?>
  • 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 : ''; ?>
    true, 'show_family' => true, 'show_lineheight' => true, 'show_decoration' => true, 'show_transform' => true, 'show_align' => true, 'show_letterspacing' => true ); $args = wp_parse_args($args, $defaults); // Font family $font_family = ''; if (isset($values->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_normal = !empty($values->normal) ? $values->normal : ''; $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'; $weight = isset($values->weight) ? $values->weight : $font_weight; $legacy_weights = [ 'normal' => 400, 'bold' => 700, 'bolder' => 900, ]; if ( isset( $legacy_weights[ $weight ] ) ) { $weight = $legacy_weights[ $weight ]; } $units = array('px', '%', 'em','vw','rem'); $value = $name = ''; // Letter spacing $letter_spacing = isset($values->letterspacing) ? $values->letterspacing : ''; $letter_spacing_unit = isset($values->letterspacingunit) ? $values->letterspacingunit : 'px'; $letter_spacing_units = array('px', 'em'); ?>
    $v['name'], 'value' => $v['value']); } $themify_gfonts = themify_get_google_font_lists(); if (!empty($themify_gfonts)) { foreach ( $themify_gfonts as $font_name => $v ) { $variants = is_array( $v ) ? $v[1] : array(); foreach ( $variants as $key => $variant_value ) { if ( $variant_value === 'r' ) { $variants[ $key ] = '400'; } else if ( $variant_value === 'i' ) { $variants[ $key ] = '400i'; } } self::$googlefonts[ $font_name ] = array( 'name' => $font_name, 'variants' => $variants ); } } $themify_cf_fonts = Themify_Custom_Fonts::get_list('customizer'); if (!empty($themify_cf_fonts)) { foreach ($themify_cf_fonts as $v) { $v['variant'] = !empty($v['variant']) ? str_replace( [ 'regular', 'normal', 'bold' ], [ '400', '400', '700' ], $v['variant'] ) : ''; self::$cfFonts[$v['value']] = array('value'=>$v['value'],'name' => $v['name'], 'variants' => $v['variant']); } } ?>
    _x( '400', 'font weight', 'themify' ), '100' => _x( '100', 'font weight', 'themify' ), '200' => _x( '200', 'font weight', 'themify' ), '300' => _x( '300', 'font weight', 'themify' ), '500' => _x( '500', 'font weight', 'themify' ), '600' => _x( '600', 'font weight', 'themify' ), '700' => _x( '700', 'font weight', 'themify' ), '800' => _x( '800', 'font weight', 'themify' ), '900' => _x( '900', 'font weight', 'themify' ), '100i' => _x( '100 Italic', 'font weight', 'themify' ), '200i' => _x( '200 Italic', 'font weight', 'themify' ), '300i' => _x( '300 Italic', 'font weight', 'themify' ), '400i' => _x( '400 Italic', 'font weight', 'themify' ), '500i' => _x( '500 Italic', 'font weight', 'themify' ), '600i' => _x( '600 Italic', 'font weight', 'themify' ), '700i' => _x( '700 Italic', 'font weight', 'themify' ), '800i' => _x( '800 Italic', 'font weight', 'themify' ), '900i' => _x( '900 Italic', 'font weight', 'themify' ), ); ?>
    style="display:none;">