| 118 | |
| 119 | $subsets = 'latin,latin-ext'; |
| 120 | /* translators: To add an additional Open Sans character subset specific to your language enter 'greek', 'cyrillic' or 'vietnamese'. |
| 121 | Otherwise enter 'open-sans-subset'. Do not translate into your own language. */ |
| 122 | $add_subset = _x( 'open-sans-subset', 'Additional Open Sans font subset: greek, cyrillic or vietnamese', 'twentytwelve' ); |
| 123 | |
| 124 | if ( in_array( $add_subset, array( 'greek', 'cyrillic', 'vietnamese' ) ) ) { |
| 125 | $character_sets = array( |
| 126 | 'greek' => 'greek,greek-ext', |
| 127 | 'cyrillic' => 'cyrillic,cyrillic-ext', |
| 128 | 'vietnamese' => 'vietnamese' |
| 129 | ); |
| 130 | $subsets = implode( ',', array( $subsets, $character_sets[ $add_subset ] ) ); |
| 131 | } |
| 132 | |
119 | | wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", array(), null ); |
| 134 | $query_args = array( |
| 135 | 'family' => 'Open+Sans:400italic,700italic,400,700', |
| 136 | 'subset' => $subsets |
| 137 | ); |
| 138 | wp_enqueue_style( 'twentytwelve-fonts', add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ), array(), null ); |