<?php
	if ( ! defined( 'ABSPATH' ) ) exit;
	if( 'Ayroma' == $theme->name){
		$ecommerce_companion_logo_url = ECOMMERCE_COMP_PLUGIN_URL .'inc/themes/ayroma/assets/images/logo.png';
	}elseif('Feauty' == $theme->name){
		$ecommerce_companion_logo_url = ECOMMERCE_COMP_PLUGIN_URL .'inc/themes/feauty/assets/images/logo.png';
	}else{
		$ecommerce_companion_logo_url = ECOMMERCE_COMP_PLUGIN_URL .'inc/themes/aromatic/assets/images/logo.png';
	}
	$ecommerce_companion_activate = array(
			'aromatic-sidebar-primary' => array(
            'search-1',
            'recent-posts-1',
            'archives-1',
        ),
		'aromatic-footer-widget' => array(
			'text-1',
            'categories-1',
            'archives-1',
			'search-1',
        )
    );
    /* the default titles will appear */
		update_option('widget_text', array(  
		1 => array('title' => '',
        'text'=>'<a href="#" class="logo"><img src="'.esc_url($ecommerce_companion_logo_url).'"></a>
                            <div class="textwidget">
                                <p class="about-template">Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt
                                    quas recusandae
                                    explicabo
                                    voluptatibus dolor esse voluptates,.</p>
                                <aside class="widget widget_social_widget">
                                    <ul>
                                        <li><a href="#"><i class="fa fa-facebook"></i></a></li>
                                        <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                                        <li><a href="#"><i class="fa fa-instagram"></i></a></li>
                                        <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
                                        <li><a href="#"><i class="fa fa-google-plus"></i></a></li>
                                    </ul>
                                </aside>
                            </div>'),		
		2 => array('title' => 'Recent Posts'),
		3 => array('title' => 'Categories'), 
        ));
		 update_option('widget_categories', array(
			1 => array('title' => 'Categories'), 
			2 => array('title' => 'Categories')));

		update_option('widget_archives', array(
			1 => array('title' => 'Archives'), 
			2 => array('title' => 'Archives')));
			
		update_option('widget_search', array(
			1 => array('title' => 'Search'), 
			2 => array('title' => 'Search')));	
		
    update_option('sidebars_widgets',  $ecommerce_companion_activate);
	$ecommerce_companion_MediaId = get_option('aromatic_media_id');
	set_theme_mod( 'custom_logo', $ecommerce_companion_MediaId[0] );
?>