1 | <?php |
||
9 | class LSX_Google_Font_Collection |
||
10 | { |
||
11 | private $fonts; |
||
12 | |||
13 | /** |
||
14 | * Constructor |
||
15 | **/ |
||
16 | public function __construct($fonts) |
||
32 | |||
33 | /** |
||
34 | * get_font_family_name_array Function |
||
35 | * this function returns an array containing all of the font family names |
||
36 | **/ |
||
37 | function get_font_family_name_array() |
||
46 | |||
47 | /** |
||
48 | * get_title |
||
49 | * this function returns the font title |
||
50 | **/ |
||
51 | function get_title($key) |
||
55 | |||
56 | /** |
||
57 | * get_location |
||
58 | * this function returns the font location |
||
59 | **/ |
||
60 | function get_location($key) |
||
64 | |||
65 | /** |
||
66 | * get_css_declaration |
||
67 | * this function returns the font css declaration |
||
68 | **/ |
||
69 | function get_css_declaration($key) |
||
73 | |||
74 | |||
75 | /** |
||
76 | * get_css_class_array |
||
77 | * this function returns an array of css classes |
||
78 | * this function is used when displaying the fancy list of fonts in the theme customizer |
||
79 | * this function is used to send a JS file an array for the postMessage transport option in the theme customizer |
||
80 | **/ |
||
81 | function get_css_class_array() |
||
90 | |||
91 | /** |
||
92 | * get_total_number_of_fonts |
||
93 | * this function returns the total number of fonts |
||
94 | **/ |
||
95 | function get_total_number_of_fonts() |
||
99 | |||
100 | /** |
||
101 | * print_theme_customizer_css_locations |
||
102 | * this function prints the links to the css files for the theme customizer |
||
103 | **/ |
||
104 | function print_theme_customizer_css_locations() |
||
115 | |||
116 | /** |
||
117 | * print_theme_customizer_css_classes |
||
118 | * this function prints the theme customizer css classes necessary to display all of the fonts |
||
119 | **/ |
||
120 | function print_theme_customizer_css_classes() |
||
137 | |||
138 | } // Font_Collection |