Sindbad~EG File Manager
<?php
/**
* Theme functions and definitions
*
* @package SoftAlt
*/
/**
* After setup theme hook
*/
function softalt_theme_setup(){
/*
* Make child theme available for translation.
* Translations can be filed in the /languages/ directory.
*/
load_child_theme_textdomain( 'softalt' );
}
add_action( 'after_setup_theme', 'softalt_theme_setup' );
/**
* Load assets.
*/
function softalt_theme_css() {
wp_enqueue_style( 'softalt-parent-theme-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'softalt_theme_css', 99);
require get_stylesheet_directory() . '/theme-functions/controls/class-customize.php';
/**
* Import Options From Parent Theme
*
*/
function softalt_parent_theme_options() {
$softme_mods = get_option( 'theme_mods_softme' );
if ( ! empty( $softme_mods ) ) {
foreach ( $softme_mods as $softme_mod_k => $softme_mod_v ) {
set_theme_mod( $softme_mod_k, $softme_mod_v );
}
}
}
add_action( 'after_switch_theme', 'softalt_parent_theme_options' );
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists