<?php

function mn_magazine_slider(){ ?>

	<div class="container-slider">
		
		<div class="autoplay">

			<div>
			
				<a href="<?php echo esc_url(get_theme_mod( 'slider_url1' )); ?>"><img style=" height: <?php echo esc_attr(get_theme_mod( 'slider_height' )); ?>px;" src="<?php if (get_theme_mod( 'slider_img1' )) {echo  esc_url(get_theme_mod( 'slider_img1' )); } else echo esc_url(get_template_directory_uri()).'/images/screenshot1.png'; ?>" alt="<?php echo esc_html('Slider Img 1','magazine-news');  ?>"/></a>
				
				<?php if(get_theme_mod( 'slider_text1' )){ ?>
					<h3><a href="<?php echo esc_url(get_theme_mod( 'slider_url1' )); ?>"><?php echo esc_html(get_theme_mod( 'slider_text1' )); ?></a></h3>
				<?php } else { ?>
					<h3><a href="<?php echo esc_url(get_theme_mod( 'slider_url1' )); ?>"><?php echo esc_html_e('Magazine News','magazine-news');  ?></a></h3>
				<?php } ?>
			</div>
			
		</div>

	</div>
<?php }?>