function smallbiz_on_layout_activate() { global $wpdb; $smallbiz_defaults = smallbiz_defaults(); $layout_defaults = smallbiz_defaults_for_layout(); if (!get_option('smallbiz_cynthia_left_text')) { //update_option('smallbiz_cynthia_left_text', $layout_defaults['cynthia_left_text']); } }
function smallbiz_on_layout_activate() { global $wpdb; $smallbiz_defaults = smallbiz_defaults(); $layout_defaults = smallbiz_defaults_for_layout(); if (!get_option('smallbiz_classic_video_text')) { update_option('smallbiz_classic_video_text', $layout_defaults['classic_video_text']); } if (!get_option('smallbiz_classic_video_code')) { update_option('smallbiz_classic_video_code', $layout_defaults['classic_video_code']); } }
function smallbiz_on_layout_activate() { global $wpdb; $smallbiz_defaults = smallbiz_defaults(); $layout_defaults = smallbiz_defaults_for_layout(); if (!get_option('smallbiz_allinone_left_text')) { update_option('smallbiz_allinone_left_text', $layout_defaults['allinone_left_text']); } if (!get_option('smallbiz_allinone_middle_text')) { update_option('smallbiz_allinone_middle_text', $layout_defaults['allinone_middle_text']); } if (!get_option('smallbiz_allinone_right_text')) { update_option('smallbiz_allinone_right_text', $layout_defaults['allinone_right_text']); } }
function smallbiz_on_layout_activate() { global $wpdb; $smallbiz_defaults = smallbiz_defaults(); $layout_defaults = smallbiz_defaults_for_layout(); if (!get_option('smallbiz_four_business_video')) { update_option('smallbiz_four_business_video', $layout_defaults['four_business_video']); } if (!get_option('smallbiz_four_right_bottom_text')) { update_option('smallbiz_four_right_bottom_text', $layout_defaults['four_right_bottom_text']); } if (!get_option('smallbiz_four_left_bottom_text')) { update_option('smallbiz_four_left_bottom_text', $layout_defaults['four_left_bottom_text']); } if (!get_option('smallbiz_four_right_text')) { update_option('smallbiz_four_right_text', $layout_defaults['four_right_text']); } }
function smallbiz_on_layout_activate() { global $wpdb; $smallbiz_defaults = smallbiz_defaults(); $layout_defaults = smallbiz_defaults_for_layout(); if (!get_option('smallbiz_rotator_boxe1')) { update_option('smallbiz_rotator_boxe1', $layout_defaults['rotator_boxe1']); } if (!get_option('smallbiz_rotator_boxe2')) { update_option('smallbiz_rotator_boxe2', $layout_defaults['rotator_boxe2']); } if (!get_option('smallbiz_rotator_boxe3')) { update_option('smallbiz_rotator_boxe3', $layout_defaults['rotator_boxe3']); } if (!get_option('smallbiz_rotator_boxe4')) { update_option('smallbiz_rotator_boxe4', $layout_defaults['rotator_boxe4']); } }
function smallbiz_defaults() { global $smallbiz_defaults, $smallbiz_cur_version; if ($smallbiz_defaults) { return $smallbiz_defaults; } $smallbiz_defaults = array("version" => $smallbiz_cur_version, "layout" => 'classic', "banner" => 'light_swoop_green.png', "menu_color" => '262525', "active_color" => 'FFFFFF', "hover_color" => 'FFFFFF', "passive_color" => '88AB4F', "headertag_color" => '85AC54', "pages_color" => 'ffffff', "p_color" => '333333', "hyper_color" => '333333', "hyperhover_color" => '3818D9', "creds_color" => '333333', "name" => 'My Business', "name_color" => '333333', "sub_header" => 'CityName My Business Name - My Tagline', "sub_header_color" => '333333', "street" => 'Street Address', "street_color" => '333333', "city" => 'City', "city_color" => '333333', "state" => 'State', "state_color" => '333333', "zip" => 'Zip', "zip_color" => '333333', "countryprefix" => '+1', "telephone" => '192-555-1212', "telephone_color" => '333333', "email" => '*****@*****.**', "headeremail" => '*****@*****.**', "headeremail_color" => '333333', "header_box_disabled" => '', "directions" => ' We are located in the Shadow Trails Shopping Center on 4th Avenue in the North Hills area of Happyville', "cities" => 'My Business is serving San Jose, Sunnyvale, Palo Alto, Los Gatos, Mountain View, Santa Clara, Cupertino', "credit" => '<a href="http://www.smallbiztheme.com">WordPress Business Websites</a> by Expand2Web', "page_image" => 'site1.jpg', "map_link" => '<!-- Google Maps Element Code --> <iframe frameborder="0" marginwidth="0" marginheight="0" border="0" style="margin:0;width:300px;height:250px;" src="http://www.google.com/uds/modules/elements/mapselement/iframe.html?maptype=roadmap" scrolling="no" allowtransparency="true"></iframe>', "business_hours" => '8:30am,5:00pm,8:30am,5:00pm,8:30am,5:00pm,8:30am,5:00pm,8:30am,5:00pm,closed,,closed,', "main_text" => '<h2>Welcome To My Business!</h2> <p class="p">If you are looking for first-class service, you have come to the right place! We aim to be friendly and approachable.</p> <p class="p">We are here to serve you and answer any questions you may have.</p> <h2>Call us today: 1.192.555.1212</h2> <p class="p">We put our customers first. We listen to you and help you find what you need. Come visit to see what we are all about:</p> <ul> <li>Industry Leading Products</li> <li>Quick Turnaround</li> <li>Friendly and Approachable</li> <li>And much, much more!</li> </ul>', "feature_page_1" => '2', "feature_page_2" => '6', "feature_page_3" => '7', "feature_box_disabled" => '', "feature_page_summary_1" => 'Summary1', "feature_page_summary_2" => 'Summary2', "feature_page_summary_3" => 'Summary3', "page_summary_1_color" => '333333', "page_summary_2_color" => '333333', "page_summary_3_color" => '333333', "title" => '', "description" => '', "keywords" => '', "seo_disabled" => '', "analytics" => '', "webmaster" => '', "mobile-layout-enabled" => '', "mobile-button-color" => '4C5B73', "mobile-text-button-color" => 'FAFAFA', "mobile-body-color" => 'ffffff', "mobile-home-text" => '<p class="p"><span style="color: #000000;">If you are looking for first-class service, you have come to the right place!</span></p> <p class="p"> </p> <p><strong><span style="color: #000000;">Call Us Now: 1-192-555-1212</span></strong></p> <p><span style="color: #000000;">We are here to serve you and answer any questions you may have.</span></p>', "mobile-home-image" => 'site1mobile.jpg', "mobile-map" => 'http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Ste+3100,+1111+South+Figueroa+Street,+Los+Angeles,+California+90015&sll=37.0625,-95.677068&sspn=57.249013,99.667969&ie=UTF8&hq=&hnear=1111+S+Figueroa+St,+Los+Angeles,+California+90015&t=h&z=17'); if (function_exists(smallbiz_defaults_for_layout)) { $smallbiz_defaults = array_merge($smallbiz_defaults, smallbiz_defaults_for_layout()); } return $smallbiz_defaults; }