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);
}
Beispiel #2
0
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');
}