<?php



/**



 * Modern widgets



 * Font settings



 *



 * @package WNEPRO



 */







$params = wnexpress_get_front_widgets_settings();







if ( icons_enabled() ) {



	$icon_widget1         = '<span class="goi-icon goi-letter-a"></span>';



	$icon_widget3         = '<span class="goi-icon goi-letter-inside-black"></span>';



	$icon_widget23_right  = '<span class="goi-icon goi-align-right"></span>';



	$icon_widget23_center = '<span class="goi-icon goi-align-center-hor"></span>';



	$icon_widget23_left   = '<span class="goi-icon goi-align-left"></span>';



} else {



	$icon_widget1         = '';



	$icon_widget3         = '';



	$icon_widget23_right  = '';



	$icon_widget23_center = '';



	$icon_widget23_left   = '';



}







$smaller_font_size_button = '<button tabindex="-1" type="button" class="wne-action-button smaller wahout" title="' . __( 'smaller font size', 'wp-nagish-express' ) . '" aria-label="' . __( 'smaller font size', 'wp-nagish-express' ) . '">A-' . $icon_widget1 . '</button>';







$larger_font_size_button = '<button tabindex="-1" type="button" class="wne-action-button larger wahout" title="' . __( 'larger font size', 'wp-nagish-express' ) . '" aria-label="' . __( 'larger font size', 'wp-nagish-express' ) . '">A+' . $icon_widget1 . '</button>';







$wah_font_settings_widget['widget-3'] = array(



	'active' => $params['wne_readable_fonts_setup'],



	'html'   => '<div class="a_module wne_readable_fonts">



		<div class="a_module_exe readable_fonts">



			<button tabindex="-1" data-widgetid="widget-3" type="button" class="wne-action-button wahout wne-call-readable-fonts" aria-label="' . $params['wne_readable_fonts_title'] . '" title="' . $params['wne_readable_fonts_title'] . '">' . $icon_widget3 . $params['wne_readable_fonts_title'] . '</button>



		</div>



	</div>',



);







$wah_font_settings_widget['widget-1'] = array(



	'active' => 1,



	'html'   => '<div class="a_module wne_font_resize separate_small_font_size">



		<div class="a_module_exe font_resizer">' . $smaller_font_size_button . '</div>



	</div>' . '<div class="a_module wne_font_resize separate_large_font_size">



		<div class="a_module_exe font_resizer">' . $larger_font_size_button . '</div>



	</div>' . '<div class="a_module wne_font_resize separate_reset_font_size">' . $params['reset_button'] . '</div>',



);







$wah_font_settings_widget['widget-23'] = array(



	'active' => $params['wah_text_alignment'],



	'html'   => '<div class="a_module"><div class="a_module_exe">



		<label tabindex="-1" data-widgetid="widget-23" type="button" id="wne_text_alignment_left" class="wne-action-button wne-uniqid wahout set-wne_text_alignment_left"



		aria-label="' . $params['wne_text_alignment_left'] . '" data-wahaction="align-left"><input type="checkbox" name="wne_text_alignment_left"><span class="nagishx-checkbox-indicator"></span><span class="wne-button-title">' . $params['wne_text_alignment_left'] . '</span>' . $icon_widget23_left . '</label>



	</div></div>



	<div class="a_module"><div class="a_module_exe">



		<label tabindex="-1" data-widgetid="widget-23" type="button" id="wne_text_alignment_center" class="wne-action-button wne-uniqid wahout set-wne_text_alignment_center"



		aria-label="' . $params['wne_text_alignment_center'] . '" data-wahaction="align-center"><input type="checkbox" name="wne_text_alignment_center"><span class="nagishx-checkbox-indicator"></span><span class="wne-button-title">' . $params['wne_text_alignment_center'] . '</span>' . $icon_widget23_center . '</label>



	</div></div>



	<div class="a_module"><div class="a_module_exe">



		<label tabindex="-1" data-widgetid="widget-23" type="button" id="wne_text_alignment_right" class="wne-action-button wne-uniqid wahout set-wne_text_alignment_right"



		aria-label="' . $params['wne_text_alignment_right'] . '" data-wahaction="align-right"><input type="checkbox" name="wne_text_alignment_right"><span class="nagishx-checkbox-indicator"></span><span class="wne-button-title">' . $params['wne_text_alignment_right'] . '</span>' . $icon_widget23_right . '</label>



	</div></div>',



);



