<?php



/**



 * Modern widgets



 * Font settings



 *



 * @package WNEPRO



 */







if ( icons_enabled() ) {



	$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_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' ) . '"><span class="goi-font-size-minus"></span></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' ) . '"><span class="goi-font-size-plus"></span></button>';







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



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



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



		<div class="a_module_exe readable_fonts">



			<div class="wne-widget-section-title"><span class="wne-button-title">' . esc_html__( 'Fonts settings', 'wp-nagish-express' ) . '</span></div>



			<button tabindex="-1" data-widgetid="widget-3" type="button" class="wne-action-button wahout wne-call-readable-fonts" aria-label="' . $args['wne_readable_fonts_title'] . '" title="' . $args['wne_readable_fonts_title'] . '">' . $icon_widget3 . '<span class="wne-button-title">' . $args['wne_readable_fonts_title'] . '</span></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">' . $args['reset_button'] . '</div>',



);







if ( isset( $args['wah_text_alignment'] ) && $args['wah_text_alignment'] ) {



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



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



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



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



			aria-label="' . $args['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">' . $args['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" id="wne_text_alignment_center" class="wne-action-button wne-uniqid wahout set-wne_text_alignment_center"



			aria-label="' . $args['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">' . $args['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" id="wne_text_alignment_right" class="wne-action-button wne-uniqid wahout set-wne_text_alignment_right"



			aria-label="' . $args['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">' . $args['wne_text_alignment_right'] . '</span>' . $icon_widget23_right . '</label>



		</div></div>',



	);



}



