Пример #1
0
function bizz_get_fonts()
{
    $all_fonts = new Fonts();
    $all_fonts->set_fonts();
    return apply_filters('bizz_design_fonts', $all_fonts->fonts);
}
Пример #2
0
 public function setFont($fontFile, $fontSize, $angle = 0)
 {
     $this->font = array(Fonts::getInstance()->getFont($fontFile), $fontSize, $angle);
 }
Пример #3
0
            ?>
"><?php 
            echo $font_title;
            ?>
</option>
								<?php 
        }
        ?>
							</optgroup>

							<optgroup label="<?php 
        _e('Google', 'elementor');
        ?>
">
								<?php 
        foreach (Fonts::get_fonts_by_groups([Fonts::GOOGLE, Fonts::EARLYACCESS]) as $font_title => $font_type) {
            ?>
									<option value="<?php 
            echo esc_attr($font_title);
            ?>
"><?php 
            echo $font_title;
            ?>
</option>
								<?php 
        }
        ?>
							</optgroup>
						</select>
					<?php 
    } elseif ('text' === $option['type']) {
Пример #4
0
 public function add_enqueue_font($font)
 {
     switch (Fonts::get_font_type($font)) {
         case Fonts::GOOGLE:
             if (!in_array($font, $this->_enqueue_google_fonts)) {
                 $this->_enqueue_google_fonts[] = $font;
             }
             break;
         case Fonts::EARLYACCESS:
             if (!in_array($font, $this->_enqueue_google_early_access_fonts)) {
                 $this->_enqueue_google_early_access_fonts[] = $font;
             }
             break;
     }
 }
Пример #5
0
 protected function get_default_settings()
 {
     return ['fonts' => Fonts::get_fonts()];
 }
Пример #6
0
/**
 * thesis_get_fonts() — Retrieves Thesis' available fonts in an array.
 *
 * @uses Fonts::set_fonts
 * @return array
 * @since 1.1
 */
function thesis_get_fonts()
{
    $all_fonts = new Fonts();
    $all_fonts->set_fonts();
    return $all_fonts->fonts;
}