????

Your IP : 52.14.115.102


Current Path : /home2/sarkar82/www/wp-content/themes/iconic-one-pro/inc/
Upload File :
Current File : //home2/sarkar82/www/wp-content/themes/iconic-one-pro/inc/extra-functions.php

<?php
/**
 * Iconic One Extra Functions
 */
function iconic_one_pro_excerpts() { ?>
		<div class="entry-summary">
				<!-- Ico nic One home page thumbnail with custom excerpt -->
			<div class="excerpt-thumb">
			<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())) : ?>
				<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'iconic-one' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
			<?php if ( wp_is_mobile() ) : ?>
				<?php the_post_thumbnail('post-thumbnail'); ?>
			<?php else : ?>
				<?php the_post_thumbnail('excerpt-thumbnail', 'class=alignleft'); ?>
			<?php endif; ?>
				</a>
			<?php endif;?>
		</div>
			<?php the_excerpt(); ?>
		</div><!-- .entry-summary -->
		<?php }

function iop_social_icons() { ?>
		<div class="socialmedia">
			<?php if( get_theme_mod( 'twitter_url' ) !== '' ) { ?>
				<a href="<?php echo esc_url( get_theme_mod( 'twitter_url', 'default_value' ) ); ?>" target="_blank"><i class="fa fa-twitter"></i></a> 
			<?php } ?>
			<?php if( get_theme_mod( 'facebook_url' ) !== '' ) { ?>
					<a href="<?php echo esc_url( get_theme_mod( 'facebook_url', 'default_value' ) ); ?>" target="_blank"><i class="fa fa-facebook"></i></a>
			<?php } ?>
			<?php if( get_theme_mod( 'insta_url' ) !== '' ) { ?>
					<a href="<?php echo esc_url(get_theme_mod( 'insta_url', 'default_value' ) ); ?>" rel="author" target="_blank"><i class="fa fa-instagram"></i></a>
			<?php } ?>
			<?php if( get_theme_mod( 'linkedin_url' ) !== '' ) { ?>
			<a class="rss" href="<?php echo esc_url( get_theme_mod( 'linkedin_url', 'default_value' ) ); ?>" target="_blank"><i class="fa fa-linkedin"></i></a>	
			<?php } ?>
			<?php if( get_theme_mod( 'youtube_url' ) !== '' ) { ?>
			<a class="rss" href="<?php echo esc_url( get_theme_mod( 'youtube_url', 'default_value' ) ); ?>" target="_blank"><i class="fa fa-youtube"></i></a>	
			<?php } ?>
			<?php if( get_theme_mod( 'pinterest_url' ) !== '' ) { ?>
			<a class="rss" href="<?php echo esc_url( get_theme_mod( 'pinterest_url', 'default_value' ) ); ?>" target="_blank"><i class="fa fa-pinterest"></i></a>	
			<?php } ?>
			<?php if( get_theme_mod( 'rss_url' ) !== '' ) { ?>
			<a class="rss" href="<?php echo esc_url( get_theme_mod( 'rss_url', 'default_value' ) ); ?>" target="_blank"><i class="fa fa-rss"></i></a>	
			<?php } ?>
		</div>
		<?php }	

function iop_mobile_bar() { ?>
			<?php if( get_theme_mod( 'iop_header_search_bar' ) == '1') : ?>	
			<?php if ( ( wp_is_mobile() ) ) : ?> 
				<div class="themonic-top-bar">
				<form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
				<label>
					<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span>
					<input type="search" class="search-field"
						placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder' ) ?>"
						value="<?php echo get_search_query() ?>" name="s"
						title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" />
				</label>
				<input type="submit" class="search-submit"
					value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" />
				</form>
				</div>
			<?php endif; ?>
			<?php endif; ?>
		<?php }			
		
?>