1 | <?php |
||
16 | final class Kirki_Modules_Webfonts_Embed { |
||
17 | |||
18 | /** |
||
19 | * The config ID. |
||
20 | * |
||
21 | * @access protected |
||
22 | * @since 3.0.0 |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $config_id; |
||
26 | |||
27 | /** |
||
28 | * The Kirki_Modules_Webfonts object. |
||
29 | * |
||
30 | * @access protected |
||
31 | * @since 3.0.0 |
||
32 | * @var object |
||
33 | */ |
||
34 | protected $webfonts; |
||
35 | |||
36 | /** |
||
37 | * The Kirki_Fonts_Google object. |
||
38 | * |
||
39 | * @access protected |
||
40 | * @since 3.0.0 |
||
41 | * @var object |
||
42 | */ |
||
43 | protected $googlefonts; |
||
44 | |||
45 | /** |
||
46 | * The google link |
||
47 | * |
||
48 | * @access public |
||
49 | * @var string |
||
50 | */ |
||
51 | public $link = ''; |
||
52 | |||
53 | /** |
||
54 | * Constructor. |
||
55 | * |
||
56 | * @access public |
||
57 | * @since 3.0 |
||
58 | */ |
||
59 | public function __construct( $config_id, $webfonts, $googlefonts, $args = array() ) { |
||
67 | |||
68 | /** |
||
69 | * Embeds the CSS from googlefonts API inside the Kirki output CSS. |
||
70 | * |
||
71 | * @access public |
||
72 | * @since 3.0.0 |
||
73 | * @param string $css The original CSS. |
||
74 | * @return string The modified CSS. |
||
75 | */ |
||
76 | public function embed_css( $css ) { |
||
97 | |||
98 | /** |
||
99 | * Get the contents of a remote google-fonts link. |
||
100 | * Responses get cached for 1 day. |
||
101 | * |
||
102 | * @access protected |
||
103 | * @since 3.0.0 |
||
104 | * @param string $url The link we want to get. |
||
105 | * @return string|false Returns false if there's an error. |
||
106 | */ |
||
107 | protected function get_url_contents( $url = '' ) { |
||
156 | } |
||
157 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.