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_on_layout_activate() { global $wpdb; $smallbiz_defaults = smallbiz_defaults(); }
function smallbiz_on_install() { global $wpdb; $smallbiz_defaults = smallbiz_defaults(); //$wpdb->show_errors(); //$smallbiz_defaults[''] add_option('smallbiz_version', $smallbiz_defaults['version']); add_option('smallbiz_name', $smallbiz_defaults['name']); add_option('smallbiz_layout', $smallbiz_defaults['layout']); add_option('smallbiz_sub_header', $smallbiz_defaults['sub_header']); add_option('smallbiz_street', $smallbiz_defaults['street']); add_option('smallbiz_city', $smallbiz_defaults['city']); add_option('smallbiz_state', $smallbiz_defaults['state']); add_option('smallbiz_zip', $smallbiz_defaults['zip']); add_option('smallbiz_countryprefix', $smallbiz_defaults['countryprefix']); add_option('smallbiz_telephone', $smallbiz_defaults['telephone']); add_option('smallbiz_email', $smallbiz_defaults['email']); add_option('smallbiz_headeremail', $smallbiz_defaults['headeremail']); add_option('smallbiz_header_box_disabled', $smallbiz_defaults['header_box_disabled']); add_option('smallbiz_directions', $smallbiz_defaults['directions']); add_option('smallbiz_cities', $smallbiz_defaults['cities']); add_option('smallbiz_credit', $smallbiz_defaults['credit']); add_option('smallbiz_banner', $smallbiz_defaults['banner']); add_option('smallbiz_page_image', $smallbiz_defaults['page_image']); add_option('smallbiz_map_link', $smallbiz_defaults['map_link']); add_option('smallbiz_business_hours', $smallbiz_defaults['business_hours']); add_option('smallbiz_main_text', $smallbiz_defaults['main_text']); add_option('smallbiz_feature_page_1', $smallbiz_defaults['feature_page_1']); add_option('smallbiz_feature_page_2', $smallbiz_defaults['feature_page_2']); add_option('smallbiz_feature_page_3', $smallbiz_defaults['feature_page_3']); add_option('smallbiz_page_summary_1_color', $smallbiz_defaults['page_summary_1_color']); add_option('smallbiz_page_summary_2_color', $smallbiz_defaults['page_summary_2_color']); add_option('smallbiz_page_summary_3_color', $smallbiz_defaults['page_summary_3_color']); add_option('smallbiz_feature_box_disabled', $smallbiz_defaults['feature_box_disabled']); add_option('smallbiz_feature_page_summary_1', $smallbiz_defaults['feature_page_summary_1']); add_option('smallbiz_feature_page_summary_2', $smallbiz_defaults['feature_page_summary_2']); add_option('smallbiz_feature_page_summary_3', $smallbiz_defaults['feature_page_summary_3']); add_option('smallbiz_title', $smallbiz_defaults['title']); add_option('smallbiz_description', $smallbiz_defaults['description']); add_option('smallbiz_keywords', $smallbiz_defaults['keywords']); add_option('smallbiz_seo_disabled', $smallbiz_defaults['seo_disabled']); add_option('smallbiz_analytics', $smallbiz_defaults['analytics']); add_option('smallbiz_webmaster', $smallbiz_defaults['analytics']); add_option('smallbiz_name_color', $smallbiz_defaults['color']); add_option('smallbiz_sub_header_color', $smallbiz_defaults['color']); add_option('smallbiz_street_color', $smallbiz_defaults['color']); add_option('smallbiz_city_color', $smallbiz_defaults['color']); add_option('smallbiz_state_color', $smallbiz_defaults['color']); add_option('smallbiz_zip_color', $smallbiz_defaults['color']); add_option('smallbiz_telephone_color', $smallbiz_defaults['color']); add_option('smallbiz_email_color', $smallbiz_defaults['color']); add_option('smallbiz_pages_color', $smallbiz_defaults['pages_color']); add_option('smallbiz_headeremail_color', $smallbiz_defaults['color']); add_option('smallbiz_main_text_color', $smallbiz_defaults['color']); add_option('smallbiz_menu_color', $smallbiz_defaults['menu_color']); add_option('smallbiz_active_color', $smallbiz_defaults['active_color']); add_option('smallbiz_hover_color', $smallbiz_defaults['hover_color']); add_option('smallbiz_passive_color', $smallbiz_defaults['passive_color']); add_option('smallbiz_headertag_color', $smallbiz_defaults['headertag_color']); add_option('smallbiz_p_color', $smallbiz_defaults['p_color']); add_option('smallbiz_hyper_color', $smallbiz_defaults['hyper_color']); add_option('smallbiz_hyperhover_color', $smallbiz_defaults['hyperhover_color']); add_option('smallbiz_creds_color', $smallbiz_defaults['creds_color']); add_option('smallbiz_page_summary_1_color', $smallbiz_defaults['color']); add_option('smallbiz_page_summary_2_color', $smallbiz_defaults['color']); add_option('smallbiz_page_summary_3_color', $smallbiz_defaults['color']); add_option('smallbiz_mobile-layout-enabled', $smallbiz_defaults['mobile-layout-enabled']); add_option('smallbiz_mobile-home-text', $smallbiz_defaults['mobile-home-text']); add_option('smallbiz_mobile-home-image', $smallbiz_defaults['mobile-home-image']); add_option('smallbiz_mobile-map', $smallbiz_defaults['mobile-map']); add_option('smallbiz_mobile-button-color', $smallbiz_defaults['mobile-button-color']); add_option('smallbiz_mobile-body-color', $smallbiz_defaults['mobile-body-color']); add_option('smallbiz_mobile-text-button-color', $smallbiz_defaults['mobile-text-button-color']); if (function_exists(smallbiz_on_layout_activate)) { smallbiz_on_layout_activate(); } /* for preview fix end */ if ('' == get_option('smallbiz_added_pages')) { $sql = "\n\nINSERT INTO {$wpdb->posts} (\n\n`ID` ,\n\n`post_author` ,\n\n`post_date` ,\n\n`post_date_gmt` ,\n\n`post_content` ,\n\n`post_title` ,\n\n`post_excerpt` ,\n\n`post_status` ,\n\n`comment_status` ,\n\n`ping_status` ,\n\n`post_password` ,\n\n`post_name` ,\n\n`to_ping` ,\n\n`pinged` ,\n\n`post_modified` ,\n\n`post_modified_gmt` ,\n\n`post_content_filtered` ,\n\n`post_parent` ,\n\n`guid` ,\n\n`menu_order` ,\n\n`post_type` ,\n\n`post_mime_type` ,\n\n`comment_count`\n\n)\n\nVALUES (\n\nNULL , '1', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'This page is auto generated for your convenience. To change the phone number and email recipient of this page visit the SmallBiz Options Panel. This Page uses a Wordpress Page Template. You can edit the code of this Page Template by going to Appearance -> Editor -> Contact Form Page Page Template (contact.php). You can change the appearance of the sidebar for this page under Appearance -> Widgets.', 'Contact', '', 'publish', 'open', 'open', '', 'contact', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '', '0', '', '0', 'page', '', '0'\n\n)\n\n\t\t\t"; $wpdb->query($sql); $page_id = $wpdb->insert_id; $sql = "insert into " . $wpdb->postmeta . "(post_id, meta_key, meta_value) values({$page_id}, '_wp_page_template', 'contact_page.php')"; $wpdb->query($sql); /*****/ $sql = "\n\nINSERT INTO {$wpdb->posts} (\n\n`ID` ,\n\n`post_author` ,\n\n`post_date` ,\n\n`post_date_gmt` ,\n\n`post_content` ,\n\n`post_title` ,\n\n`post_excerpt` ,\n\n`post_status` ,\n\n`comment_status` ,\n\n`ping_status` ,\n\n`post_password` ,\n\n`post_name` ,\n\n`to_ping` ,\n\n`pinged` ,\n\n`post_modified` ,\n\n`post_modified_gmt` ,\n\n`post_content_filtered` ,\n\n`post_parent` ,\n\n`guid` ,\n\n`menu_order` ,\n\n`post_type` ,\n\n`post_mime_type` ,\n\n`comment_count`\n\n)\n\nVALUES (\nNULL , '1', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'This page is auto generated for your convenience. To change the map, directions, phone number and business hours of this page visit the SmallBiz Options Panel. This Page uses a Wordpress Page Template. You can edit the code of this Page Template by going to Appearance -> Editor -> Find Us Page Page Template (findeus_page.php). You can change the appearance of the sidebar for this page under Appearance -> Widgets.', 'Find Us', '', 'publish', 'open', 'open', '', 'find_us', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '', '0', '', '0', 'page', '', '0'\n\n)\n\n\t\t\t"; $wpdb->query($sql); $page_id = $wpdb->insert_id; $sql = "insert into " . $wpdb->postmeta . "(post_id, meta_key, meta_value) values({$page_id}, '_wp_page_template', 'findeus_page.php')"; $wpdb->query($sql); /*****/ add_option('smallbiz_added_pages', "true"); } }