public function __construct() { // Add editor style $this->editor_style = 'assets/css/editor-style.css'; // Add custom theme supports $this->theme_supports['custom-background'] = array('default-image' => '', 'default-color' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => ''); // Add nav menus $this->nav_menus['primary'] = __('Primary Menu', 'timber-foundation'); $this->nav_menus['footer'] = __('Footer Menu', 'timber-foundation'); // Add sidebars / widget areas $this->sidebars[] = array('name' => __('Sidebar', 'timber-foundation'), 'id' => 'sidebar', 'before_widget' => '<article id="%1$s" class="widget %2$s">', 'after_widget' => '</article>', 'before_title' => '<h4>', 'after_title' => '</h4>'); $this->sidebars[] = array('id' => 'footer', 'name' => __('Footer', 'timber-foundation'), 'before_widget' => '<div class="large-3 columns"><article id="%1$s" class="widget %2$s">', 'after_widget' => '</article></div>', 'before_title' => '<h4>', 'after_title' => '</h4>'); parent::__construct(); }
public function __construct() { $this->editor_style = 'assets/css/editor-style.css'; $this->theme_supports[] = 'foundation-icons'; $this->theme_supports['custom-background'] = array('default-image' => '', 'default-color' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => ''); $this->nav_menus['primary'] = __('Primary (left)', 'timber-foundation'); $this->nav_menus['topbar-right'] = __('Primary (right)', 'timber-foundation'); $this->nav_menus['footer'] = __('Footer Menu', 'timber-foundation'); $this->sidebars[] = array('name' => __('Sidebar', 'timber-foundation'), 'id' => 'sidebar', 'before_widget' => '<article id="%1$s" class="panel widget %2$s">', 'after_widget' => '</article>', 'before_title' => '<h4>', 'after_title' => '</h4>'); $this->sidebars[] = array('id' => 'footer-wide', 'name' => __('Full-Width Footer', 'timber-foundation'), 'before_widget' => '<div class="large-12 columns"><article id="%1$s" class="widget %2$s">', 'after_widget' => '</article></div>', 'before_title' => '<h4>', 'after_title' => '</h4>'); $this->sidebars[] = array('id' => 'footer', 'name' => __('Footer', 'timber-foundation'), 'before_widget' => '<div class="large-3 columns"><article id="%1$s" class="widget %2$s">', 'after_widget' => '</article></div>', 'before_title' => '<h4>', 'after_title' => '</h4>'); $this->setup_wp_title(); parent::__construct(); }