Не устанавливается новая тема на Drupal 6.8

Главные вкладки

Аватар пользователя StingMU StingMU 31 декабря 2008 в 16:48

Здравствуйте! Установил Drupal 6.8, скачал тему с drupal.org под него и попытался поставить. Вначале кинул тему в папку корня сайта "/themes/". Зашел в админке в раздел "Темы оформления" - эта тема там не появилась. Тогда в папке "sites/all" создал папку "themes' и кунул туда свою тему. Опять проверил в админке - всё тоже самое. Что я делаю не так?

Комментарии

Аватар пользователя Razunter Razunter 31 декабря 2008 в 17:47

Тема глючная, нужно:

1) Создать файл art4_green.info в папке с темой со следующим содержанием:

name = Art4 Green
description = The Art4 Green theme is a fluid 2 or 3 columns theme.
core = 6.x

engine = phptemplate
screenshot = screenshot.png
regions[header] = Header
regions[sidebar_left] = Left Sidebar
regions[sidebar_right] = Right Sidebar
regions[content_top] = Top Content
regions[content_bottom] = Bottom Content
features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
features[] = primary_links
features[] = secondary_links
stylesheets[all][] = style.css
version = "6.x-1.0"
core = "6.x"
project = "art4_green"

2) из template.php удалить

function bluebreeze_regions() {
  return array(
       'left' => t('left sidebar'),
       'right' => t('right sidebar'),
       'content_top' => t('content top'),
       'content_bottom' => t('content bottom'),
       'header' => t('header'),
       'footer' => t('footer')
  );
}

3) В page.tpl.php начало заменить на

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>">