mirror of
https://github.com/nextcloud/nextcloud.com.git
synced 2026-01-12 15:44:37 +00:00
33 lines
1.3 KiB
PHP
33 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Roots initial setup and constants
|
|
*/
|
|
function roots_setup() {
|
|
// Make theme available for translation
|
|
load_theme_textdomain('roots', get_template_directory() . '/lang');
|
|
|
|
// Register wp_nav_menu() menus (http://codex.wordpress.org/Function_Reference/register_nav_menus)
|
|
register_nav_menus(array(
|
|
'primary_navigation' => __('Primary Navigation', 'roots'),
|
|
'dev-nav' => __( 'Dev Centre Nav' ),
|
|
'support-nav' => __( 'Support Centre Nav' ),
|
|
//'header-nav' => __( 'Main Page Nav' ),
|
|
'about-nav' => __( 'About Page Nav' ),
|
|
));
|
|
|
|
// Add post thumbnails (http://codex.wordpress.org/Post_Thumbnails)
|
|
add_theme_support('post-thumbnails');
|
|
// set_post_thumbnail_size(150, 150, false);
|
|
// add_image_size('category-thumb', 300, 9999); // 300px wide (and unlimited height)
|
|
|
|
// Add post formats (http://codex.wordpress.org/Post_Formats)
|
|
// add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
|
|
|
|
// Tell the TinyMCE editor to use a custom stylesheet
|
|
add_editor_style('/assets/css/editor-style.css');
|
|
}
|
|
add_action('after_setup_theme', 'roots_setup');
|
|
|
|
// Backwards compatibility for older than PHP 5.3.0
|
|
if (!defined('__DIR__')) { define('__DIR__', dirname(__FILE__)); }
|