1, 'project_name' => 'System Default', 'families' => array( array( 'name' => 'System Default', 'css_name' => array( 'system-default' ), 'css_stack' => '"system-default", sans-serif', 'variations' => array( 'n4', 'n5', 'n8' ) ) ) ); $this->kits = $kits; $families = array(); foreach( $this->kits as $kit_id => $project ) { foreach( $project[ 'families' ] as $family ) { array_push( $families, $family ); } } $this->families = $families; } } /** * Enqueue our scripts and styles */ public function enqueue() { wp_enqueue_script( 'botiga-select2', get_template_directory_uri() . '/vendor/select2/select2.full.min.js', array( 'jquery' ), '4.0.13', true ); wp_enqueue_style( 'botiga-select2', get_template_directory_uri() . '/vendor/select2/select2.min.css', array(), '4.0.13', 'all' ); wp_localize_script( 'botiga-select2', 'botiga_adobe_fonts', $this->families ); } /** * Render the control in the customizer */ public function render_content() { ?> label ) ) { ?> label ); ?> description ) ) { ?> description ); ?> value() ) { $values = explode( '|', $this->value() ); $family_val = $values[0]; $weight_val = $values[1]; } ?>
link(); ?> />