replace all mt- to sad-
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Functions which enhance the theme by hooking into WordPress
|
||||
*
|
||||
@ -33,7 +33,7 @@ function sophia_after_dark_body_classes( $classes ) {
|
||||
*/
|
||||
if ( is_archive() || is_home() || is_search()) {
|
||||
$archive_sidebar_layout = get_theme_mod( 'sophia_after_dark_archive_sidebar_layout', 'no-sidebar' );
|
||||
$archive_style = get_theme_mod( 'sophia_after_dark_archive_style', 'mt-archive--masonry-style' );
|
||||
$archive_style = get_theme_mod( 'sophia_after_dark_archive_style', 'sad-archive--masonry-style' );
|
||||
$classes[] = esc_attr( $archive_sidebar_layout );
|
||||
$classes[] = esc_attr( $archive_style );
|
||||
} elseif ( is_single() ) {
|
||||
@ -125,8 +125,8 @@ function sophia_after_dark_admin_scripts( $hook ) {
|
||||
}
|
||||
|
||||
wp_enqueue_script( 'jquery-ui-button' );
|
||||
wp_enqueue_script( 'sophia-after-dark--admin-script', get_template_directory_uri() .'/assets/js/mt-admin-scripts.js', array( 'jquery' ), esc_attr( $sophia_after_dark_theme_version ), true );
|
||||
wp_enqueue_style( 'sophia-after-dark--admin-style', get_template_directory_uri() . '/assets/css/mt-admin-styles.css', array(), esc_attr( $sophia_after_dark_theme_version ) );
|
||||
wp_enqueue_script( 'sophia-after-dark--admin-script', get_template_directory_uri() .'/assets/js/sad-admin-scripts.js', array( 'jquery' ), esc_attr( $sophia_after_dark_theme_version ), true );
|
||||
wp_enqueue_style( 'sophia-after-dark--admin-style', get_template_directory_uri() . '/assets/css/sad-admin-styles.css', array(), esc_attr( $sophia_after_dark_theme_version ) );
|
||||
}
|
||||
/*----------------------------------------------------------------------------------------------------------------------------------------*/
|
||||
/**
|
||||
@ -140,12 +140,12 @@ function sophia_after_dark_scripts(): void {
|
||||
wp_enqueue_style('lightslider-style', "$dir/assets/library/lightslider/css/lightslider.min.css", [], null);
|
||||
wp_enqueue_style('animate', "$dir/assets/library/animate/animate.min.css", [], '3.5.1');
|
||||
wp_enqueue_style('sophia-after-dark-style', get_stylesheet_uri(), [], $v);
|
||||
wp_enqueue_style('sophia-after-dark-responsive-style', "$dir/assets/css/mt-responsive.css", [], $v);
|
||||
wp_enqueue_style('sophia-after-dark-responsive-style', "$dir/assets/css/sad-responsive.css", [], $v);
|
||||
|
||||
wp_enqueue_script('sophia-after-dark-combine-scripts', "$dir/assets/js/mt-combine-scripts.js", ['jquery'], $v, true);
|
||||
wp_enqueue_script('sophia-after-dark-combine-scripts', "$dir/assets/js/sad-combine-scripts.js", ['jquery'], $v, true);
|
||||
wp_enqueue_script('sophia-after-dark-navigation', "$dir/assets/js/navigation.js", [], $v, true);
|
||||
wp_enqueue_script('sophia-after-dark-skip-link-focus-fix', "$dir/assets/js/skip-link-focus-fix.js", [], $v, true);
|
||||
wp_enqueue_script('sophia-after-dark-custom-scripts', "$dir/assets/js/mt-custom-scripts.js", ['jquery'], $v, true);
|
||||
wp_enqueue_script('sophia-after-dark-custom-scripts', "$dir/assets/js/sad-custom-scripts.js", ['jquery'], $v, true);
|
||||
|
||||
wp_localize_script('sophia-after-dark-custom-scripts', 'sophia_after_darkObject', [
|
||||
'menu_sticky' => get_theme_mod('sophia_after_dark_enable_sticky_menu', true) ? 'on' : 'off',
|
||||
@ -199,12 +199,12 @@ if ( ! function_exists( 'sophia_after_dark_social_media_content' ) ) :
|
||||
|
||||
if ( ! empty( $social_icons ) ) {
|
||||
?>
|
||||
<ul class="mt-social-icon-wrap">
|
||||
<ul class="sad-social-icon-wrap">
|
||||
<?php
|
||||
foreach ( $social_icons as $social_icon ) {
|
||||
if ( ! empty( $social_icon->social_url ) ) {
|
||||
?>
|
||||
<li class="mt-social-icon">
|
||||
<li class="sad-social-icon">
|
||||
<a href="<?php echo esc_url( $social_icon->social_url ); ?>" target="_blank">
|
||||
<i class="<?php echo esc_attr( $social_icon->social_icon ); ?>"></i>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user