コード例 #1
0
ファイル: Theme.php プロジェクト: novuso/novusopress
 /**
  * Enables theme supports
  */
 public function addThemeSupports()
 {
     load_theme_textdomain('novusopress', $this->paths->getBaseLanguageDir());
     add_theme_support('title-tag');
     add_theme_support('automatic-feed-links');
     add_theme_support('post-thumbnails');
     add_theme_support('html5', ['search-form', 'comment-form', 'comment-list', 'gallery', 'caption']);
     register_nav_menus(['main-menu' => __('Main Menu', 'novusopress')]);
     if ($this->getThemeOption('clean_document_head')) {
         $this->cleanDocumentHead();
     }
     if (file_exists(sprintf('%s/css/editor-style.css', $this->paths->getThemeAssetsDir()))) {
         add_editor_style('assets/css/editor-style.css');
     }
 }