/** * Get Font Weight Control * * Gets the font family select control. Preselects the * appropriate font weight if is has been selected. * * @uses EGF_Font_Utilities::get_font() defined in includes\class-egf-font-utilities * * @since 1.2 * @version 1.3.2 * */ public function get_font_weight_control() { // Get values $this_value = $this->value(); $font_id = isset($this_value['font_id']) ? $this_value['font_id'] : ''; $font = EGF_Font_Utilities::get_font($font_id); $default_font_weight_style = $this->font_defaults['font_weight_style']; $font_weight_style = empty($this_value['font_weight_style']) ? $default_font_weight_style : $this_value['font_weight_style']; // Get control view include Easy_Google_Fonts::get_views_path() . '/customizer/controls/styles/font-weight.php'; }
/** * Get Font Weight Control * * Gets the font family select control. Preselects the * appropriate font weight if is has been selected. * * @uses EGF_Font_Utilities::get_font() defined in includes\class-egf-font-utilities * * @since 1.2 * @version 1.2.3 * */ public function get_font_weight_control() { // Get values $this_value = $this->value(); $font_id = isset($this_value['font_id']) ? $this_value['font_id'] : ''; $font = EGF_Font_Utilities::get_font($font_id); $default_font_weight_style = $this->font_defaults['font_weight_style']; $font_weight_style = empty($this_value['font_weight_style']) ? $default_font_weight_style : $this_value['font_weight_style']; // Get control view include plugin_dir_path(dirname(__FILE__)) . '../views/customizer/controls/styles/font-weight.php'; }