| 1 |
<?php |
| 2 |
$activate = array( |
| 3 |
'sidebar_primary' => array( |
| 4 |
'search-1', |
| 5 |
'recent-posts-1', |
| 6 |
'archives-1', |
| 7 |
), |
| 8 |
'footer_widget_area_left' => array( |
| 9 |
'st_featured_latest_news-2', |
| 10 |
), |
| 11 |
'footer_widget_area_right' => array( |
| 12 |
'categories-2', |
| 13 |
), |
| 14 |
'footer_widget_area_center' => array( |
| 15 |
'pages-2' |
| 16 |
), |
| 17 |
|
| 18 |
'menu_social_media_sidebar' => array( |
| 19 |
'innofit_social_icon_widget-2' |
| 20 |
), |
| 21 |
|
| 22 |
); |
| 23 |
|
| 24 |
/* the default titles will appear */ |
| 25 |
|
| 26 |
update_option('widget_st_featured_latest_news', array( |
| 27 |
1 => array('title' => 'Latest News'), |
| 28 |
2 => array('title' => 'Latest News'))); |
| 29 |
|
| 30 |
update_option('widget_categories', array( |
| 31 |
1 => array('title' => 'Categories'), |
| 32 |
2 => array('title' => 'Categories'))); |
| 33 |
|
| 34 |
update_option('widget_archives', array( |
| 35 |
1 => array('title' => 'Archives'), |
| 36 |
2 => array('title' => 'Archives'))); |
| 37 |
|
| 38 |
update_option('widget_search', array( |
| 39 |
1 => array('title' => 'Search'), |
| 40 |
2 => array('title' => 'Search'))); |
| 41 |
|
| 42 |
update_option('widget_innofit_social_icon_widget', array( |
| 43 |
2 => array('facebook_link' => '#', 'twitter_link' => '#', 'google_plus_link' => '#'))); |
| 44 |
|
| 45 |
|
| 46 |
update_option('widget_pages', array( |
| 47 |
1 => array('title' => 'Useful Links'), |
| 48 |
2 => array('title' => 'Useful Links'))); |
| 49 |
|
| 50 |
update_option('sidebars_widgets', $activate); |
| 51 |
$MediaId = get_option('innofit_media_id'); |
| 52 |
set_theme_mod( 'custom_logo', $MediaId[0] ); |
| 53 |
set_theme_mod( 'header_textcolor', "blank" ); |
| 54 |
?> |