PluginProbe
SpiceBox / 0.3.3
SpiceBox v0.3.3
trunk 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.2.7 0.2.8 0.2.9 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.3.9.1 0.3.9.2 0.4 0.5 0.6 0.7 1.0 All 76 releases
spicebox / inc / spicepress / default-widgets / default-widget.php

default-widget.php in SpiceBox 0.3.3, at inc/spicepress/default-widgets/default-widget.php

53 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 'text-1',
10 ),
11 'footer_widget_area_right' => array(
12 'recent-posts-2',
13 ),
14 'footer_widget_area_center' => array(
15 'categories-2'
16 ),
17 'wdl_contact_page_sidebar' => array(
18 'search-2',
19 'recent-posts-2',
20 'archives-2',
21 ),
22 );
23
24 /* the default titles will appear */
25 update_option('widget_text', array(
26 1 => array('title' => '',
27 'text'=>'<p><img class="img-responsive" src="'.SPICEB_PLUGIN_URL.'inc/spicepress/images/logo-footer.png" alt="Logo" /><br>
28 Aenean Donec sed odio dui. Donec sed odio dui. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Curabitur blandit tempus porttitor ligula nibhes, molestie id vivers dapibus iaculis.</p>
29 <div class="media widget-address"><div class="addr-icon"><i class="fa fa-map-marker"></i></div><div class="media-body"><address>SpicePress Theme<br><abbr>Chestnut Road, California (USA)</abbr></address></div></div>'),
30 ));
31
32 update_option('widget_recent-posts', array(
33 1 => array('title' => 'Recent Posts'),
34 2 => array('title' => 'Recent Posts')));
35
36 update_option('widget_categories', array(
37 1 => array('title' => 'Categories'),
38 2 => array('title' => 'Categories')));
39
40 update_option('widget_archives', array(
41 1 => array('title' => 'Archives'),
42 2 => array('title' => 'Archives')));
43
44 update_option('widget_search', array(
45 1 => array('title' => 'Search'),
46 2 => array('title' => 'Search')));
47
48 update_option('sidebars_widgets', $activate);
49
50 $MediaId = get_option('portfolio_media_id');
51 set_theme_mod( 'custom_logo', $MediaId[12] );
52 set_theme_mod( 'header_textcolor', "blank" );
53 ?>