File: /home/newsnnno/public_html/wp-content/themes/xposenews/functions.php
<?php
if ( ! function_exists( 'xposenews_setup' ) ) :
function xposenews_setup() {
add_theme_support( "title-tag");
add_theme_support( 'automatic-feed-links' );
}
endif;
add_action( 'after_setup_theme', 'xposenews_setup' );
function xposenews_customizer_default_settings() {
set_theme_mod( 'walkerpress_primary_color', '#06c99f' );
set_theme_mod( 'walkerpress_secondary_color', '#e57e34' );
set_theme_mod( 'walkerpress_container_width', '1900' );
set_theme_mod('walkerpress_heading_five_size','20');
set_theme_mod('walkerpress_heading_five_size','16');
set_theme_mod('walkerpress_site_title_size','115');
}
add_action( 'after_switch_theme', 'xposenews_customizer_default_settings' );
/**
* Implement the Custom Header feature.
*/
require get_stylesheet_directory() . '/inc/custom-header.php';
function xposenews_enqueue_styles() {
wp_enqueue_style( 'walkerpress-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'xposenews-style',get_stylesheet_directory_uri() . '/style.css',array('walkerpress-style'));
}
add_action( 'wp_enqueue_scripts', 'xposenews_enqueue_styles' );
if(!function_exists('xposenewss_footer_copyright')){
function xposenewss_footer_copyright(){?>
<div class="walkerwp-wraper footer-copyright-wraper">
<?php
if(get_theme_mod('copyright_text_alignment') =='copyright-text-align-center'){
$copyright_text_align_class ="text-center";
}else{
$copyright_text_align_class ="text-left";
}
$walkerpress_copyright = get_theme_mod('footer_copiright_text');
?>
<div class="walkerwp-container credit-container <?php echo esc_attr($copyright_text_align_class);?>">
<?php
$current_footer_layout = get_theme_mod('walkerpress_footer_layout','footer-layout-one');
if($current_footer_layout=='footer-layout-three'){
if($walkerpress_copyright && walkerpress_set_to_premium() ){?>
<div class="site-info <?php echo esc_attr($copyright_text_align_class);?>"><?php echo wp_kses_post($walkerpress_copyright);?></div>
<?php } else{ ?>
<div class="site-info">
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'xposenews' ) ); ?>">
<?php
/* translators: %s: CMS name, i.e. WordPress. */
printf( esc_html__( 'Proudly powered by %s', 'xposenews' ), 'WordPress' );
?>
</a>
<span class="sep"> | </span>
<?php
/* translators: 1: Theme name, 2: Theme author. */
printf( esc_html__( 'Theme: %1$s by %2$s.', 'xposenews' ), 'XposeNews', '<a href="http://walkerwp.com/">WalkerWP</a>' );
?>
</div><!-- .site-info -->
<?php }
if( get_theme_mod('footer_copyright_social_status','true')){?>
<div class="footer-social-media"><?php walkerpress_header_social_media();?></div>
<?php }
}else{?>
<div class="footer-social-media walkerwp-grid-12">
<?php
if( get_theme_mod('footer_copyright_social_status','true')){
walkerpress_header_social_media();
}
?>
</div>
<?php
if($walkerpress_copyright && walkerpress_set_to_premium() ){?>
<div class="site-info walkerwp-grid-12 <?php echo esc_attr($copyright_text_align_class);?>"><?php echo wp_kses_post($walkerpress_copyright);?></div>
<?php } else{ ?>
<div class="site-info walkerwp-grid-12">
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'xposenews' ) ); ?>">
<?php
/* translators: %s: CMS name, i.e. WordPress. */
printf( esc_html__( 'Proudly powered by %s', 'xposenews' ), 'WordPress' );
?>
</a>
<span class="sep"> | </span>
<?php
/* translators: 1: Theme name, 2: Theme author. */
printf( esc_html__( 'Theme: %1$s by %2$s.', 'xposenews' ), 'XposeNews', '<a href="http://walkerwp.com/">WalkerWP</a>' );
?>
</div><!-- .site-info -->
<?php } ?>
<?php }
?>
</div>
</div>
<?php }
}