Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions framework/includes/option-types/typography/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ class="fw-option-typography-option-family-input"></select>
<option value="<?php echo esc_attr($key) ?>" <?php if ($data['value']['style'] === $key): ?>selected="selected"<?php endif; ?>><?php echo fw_htmlspecialchars($style) ?></option>
<?php endforeach; ?>
<?php else: ?>
<?php foreach ($fonts['google'][$data['value']['family']]['variants'] as $variant): ?>
<option value="<?php echo esc_attr($variant) ?>" <?php if ($data['value']['style'] === $variant): ?>selected="selected"<?php endif; ?>><?php echo fw_htmlspecialchars(ucfirst($variant)) ?></option>
<?php endforeach; ?>
<?php if(!empty($data['value']['family'])): ?>
<?php foreach ($fonts['google'][$data['value']['family']]['variants'] as $variant): ?>
<option value="<?php echo esc_attr($variant) ?>" <?php if ($data['value']['style'] === $variant): ?>selected="selected"<?php endif; ?>><?php echo fw_htmlspecialchars(ucfirst($variant)) ?></option>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</select>
</div>
Expand Down