Skip to content

Commit

Permalink
Merge pull request #2625 from QuizandSurveyMaster/CU-86cw9upg4-font-s…
Browse files Browse the repository at this point in the history
…upport-in-themes

added a action hook
  • Loading branch information
zubairraeen authored Aug 22, 2024
2 parents 63d1d69 + e300249 commit a5a6463
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions php/admin/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,10 +1434,17 @@ function qsm_admin_upgrade_content( $args = array(), $type = 'popup' ) {
* @return html
*/
function qsm_quiz_theme_settings( $type, $label, $name, $value, $default_value, $options = array( 'button_text' => '' ) ) {
$tooltip = '';
if ( isset( $options['helper_text'] ) && '' !== $options['helper_text'] ) {
$tooltip .= '<span class="dashicons dashicons-editor-help qsm-tooltips-icon">';
$tooltip .= '<span class="qsm-tooltips">' . esc_html( $options['helper_text'] ) . '</span>';
$tooltip .= '</span>';
}
?>
<tr valign="top">
<th scope="row" class="qsm-opt-tr">
<label for="form_type"><?php echo esc_attr( $label ); ?></label>
<?php echo wp_kses_post( $tooltip ); ?>
</th>
<td align ="right">
<?php
Expand Down

0 comments on commit a5a6463

Please sign in to comment.