Skip to content

Commit 55cd125

Browse files
committed
Comments updates
1 parent 2bd5a53 commit 55cd125

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/optimize.cls.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -596,21 +596,24 @@ private function convert_to_api_v1($qs){
596596
$add_values_array = [];
597597
$add_data .= ':';
598598

599+
// Has italic only.
599600
if($options[1] == 'ital'){
600601
foreach( [100,200,300,400,500,600,700,800,900] as $weight ){
601602
$add_values_array[] = $weight;
602603
$add_values_array[] = $weight.'italic';
603604
}
604605
}
605606
else{
607+
// Font_modifier and Font_modifier_values.
606608
$options = explode('@', $options[1]);
607609

608610
// Font modifiers and values
609611
$font_modifier = explode(',', $options[0]);
610612
$font_modifier_values = explode(';', $options[1]);
611613

612-
// Modify values to css1.
614+
// Go through each values.
613615
foreach($font_modifier_values as $k => &$modifier_value){
616+
// Get array of values for each combination.
614617
$modifier_value_array = explode(',', $modifier_value);
615618

616619
// Italic key.
@@ -686,7 +689,7 @@ private function _async_ggfonts()
686689
*
687690
* Could be multiple fonts
688691
*
689-
* CSS API V1
692+
* CSS API V1
690693
* <link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans%3A400%2C600%2C700%2C800%2C300&#038;ver=4.9.8' type='text/css' media='all' />
691694
* <link rel='stylesheet' href='//fonts.googleapis.com/css?family=PT+Sans%3A400%2C700%7CPT+Sans+Narrow%3A400%7CMontserrat%3A600&#038;subset=latin&#038;ver=4.9.8' type='text/css' media='all' />
692695
* -> family: PT Sans:400,700|PT Sans Narrow:400|Montserrat:600

0 commit comments

Comments
 (0)