function classic_theme_init() { // Add iPad homescreen icons and webapp loading images settings, and support for other tablets classic_if_tablets_supported(); // Load the modules Classic supports: foundation_add_theme_support(array('webapp', 'advertising', 'custom-posts', 'custom-latest-posts', 'twitter', 'google-fonts', 'load-more', 'related-posts', 'sharing', 'media', 'login', 'social-links', 'featured', 'wptouch-icons', 'menu', 'spinjs', 'fastclick', 'tappable', 'concat')); // If enable in Classic settings, load up infinite scrolling classic_if_infinite_scroll_enabled(); wptouch_register_theme_menu(array('name' => 'primary_menu', 'friendly_name' => __('Header Menu', 'wptouch-pro'), 'settings_domain' => CLASSIC_SETTING_DOMAIN, 'description' => __('Choose a menu', 'wptouch-pro'), 'tooltip' => '', 'can_be_disabled' => false)); // Classic Colors foundation_register_theme_color('classic_header_color', __('Header background', 'wptouch-pro'), '.arrow-down', '#header, ul.tab-menu, #menu, #slider, body', CLASSIC_SETTING_DOMAIN); foundation_register_theme_color('classic_background_color', __('Theme background', 'wptouch-pro'), '', '.page-wrapper, .wptouch-login-wrap', CLASSIC_SETTING_DOMAIN); foundation_register_theme_color('classic_link_color', __('Links', 'wptouch-pro'), 'a', '.dots li.active, .placeholder, #switch .active', CLASSIC_SETTING_DOMAIN); }
function bauhaus_theme_init() { // Foundation modules this theme should load foundation_add_theme_support(array('webapp', 'advertising', 'custom-posts', 'custom-latest-posts', 'related-posts', 'google-fonts', 'load-more', 'media', 'login', 'sharing', 'social-links', 'featured', 'menu', 'spinjs', 'tappable', 'fastclick', 'tappable', 'font-awesome', 'concat')); // If enable in Bauhaus settings, load up infinite scrolling bauhaus_if_infinite_scroll_enabled(); // Example of how to register a theme menu wptouch_register_theme_menu(array('name' => 'primary_menu', 'friendly_name' => __('Header Menu', 'wptouch-pro'), 'settings_domain' => BAUHAUS_SETTING_DOMAIN, 'description' => __('Choose a menu', 'wptouch-pro'), 'tooltip' => __('Main menu selection', 'wptouch-pro'), 'can_be_disabled' => false)); // Example of how to register theme colors // (Name, element to add color to, element to add background-color to, settings domain) foundation_register_theme_color('bauhaus_background_color', __('Theme background', 'wptouch-pro'), '', '.page-wrapper', BAUHAUS_SETTING_DOMAIN); foundation_register_theme_color('bauhaus_header_color', __('Header & Menu', 'wptouch-pro'), 'a', 'body, header, .wptouch-menu, #search-dropper, .date-circle', BAUHAUS_SETTING_DOMAIN); foundation_register_theme_color('bauhaus_link_color', __('Links', 'wptouch-pro'), 'a, #slider a p:after', '.dots li.active, #switch .active', BAUHAUS_SETTING_DOMAIN); foundation_register_theme_color('bauhaus_post_page_header_color', __('Post/Page Headers', 'wptouch-pro'), '', '.bauhaus, .wptouch-login-wrap, form#commentform button#submit', BAUHAUS_SETTING_DOMAIN); }
function bauhaus_theme_init() { // Foundation modules this theme should load foundation_add_theme_support(array('wptouch-icons', 'custom-posts', 'custom-latest-posts', 'google-fonts', 'load-more', 'media', 'sharing', 'social-links', 'featured', 'menu', 'spinjs', 'tappable', 'fastclick', 'concat')); // If enabled in Bauhaus settings, load up infinite scrolling bauhaus_if_infinite_scroll_enabled(); // If enabled in Bauhaus settings, load up PushIt off-canvas menu (default) bauhaus_if_off_canvas_enabled(); // Example of how to register a theme menu wptouch_register_theme_menu(array('name' => 'primary_menu', 'friendly_name' => __('Header Menu', 'wptouch-pro'), 'settings_domain' => BAUHAUS_SETTING_DOMAIN, 'description' => __('Choose a menu', 'wptouch-pro'), 'tooltip' => __('Main menu selection', 'wptouch-pro'), 'can_be_disabled' => false)); // Example of how to register theme colors // (Name, element to add color to, element to add background-color to, settings domain, luma threshold, luma class root – light-*, dark-* ) foundation_register_theme_color('bauhaus_background_color', __('Theme background', 'wptouch-pro'), '', '.page-wrapper', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING, 150, 'body'); foundation_register_theme_color('bauhaus_header_color', __('Header & Menu', 'wptouch-pro'), '', 'body, header, .wptouch-menu, .pushit, #search-dropper, .date-circle', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING, 150, 'header'); foundation_register_theme_color('bauhaus_link_color', __('Links', 'wptouch-pro'), '.content-wrap a, #slider a p:after', '.dots li.active, #switch .active', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING); foundation_register_theme_color('bauhaus_post_page_header_color', __('Post/Page Headers', 'wptouch-pro'), '', '.bauhaus, form#commentform button#submit', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING, 150, 'post-head'); }