Изменения в темизации Drupal 7

Al Steffen, “Drupal 7 theme changes”, public translation into Russian from English More about this translation.

See also 9 similar translations

Translate into another language.

Participants

alexander_dubovskoy501 points
olegsh120 points
Slava-21023 points
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next next untranslated
1 2 3 4 5 6 7 8

Drupal 7 theme changes

Изменения в темизации Drupal 7

History of edits (Latest: alexander_dubovskoy 2 years, 7 months ago) §

When we made the move from Drupal 5 to 6, there were some nice improvements to the theme system. Preprocess functions, better sub-theming and the theme registry were all great of additions to the system. These and others helped extend what could be done with themes and made the Drupal system as a whole more powerful. How could it get any better? With the fast approaching Drupal 7 code freeze this September, it is a good time to get a sneek peek.

Когда мы переезжали с 5-й версии Drupal на 6-ю, были сделаны некоторые приятные улучшения в системе темизации. Preprocess-функции, улучшения суб-тем и регистра тем - все это было значительным улучшчением системы. Все это помогало тянуться к тому, что делало систему тем Drupal значительно более действенной. Как сделать ее еще лучше? Так как ядро Drupal 7 в этом сентябре было заморожено, сейчас самое время для краткого экскурса.

History of edits (Latest: Slava-2102 1 year ago) §

.info file changes

Изменения в .info файле

History of edits (Latest: alexander_dubovskoy 2 years, 7 months ago) §

Blocks and regions have been a integral part of Drupal. Being able to configure and place content via an administration interface allows for a very flexible system. The Drupal developers have taken notice of this and expanded the scope of what can be done with these elements. To compliment this change the theme has gained more configurable content placement, more default regions and a new ability.

Блоки и регионы были неотъемлимой частью Drupal. Возможность конфигурировать и выводить контент через интерфейс администратора делало систему очень гибкой. Разработчики Drupal взяли это на заметку и еще расширили рамки возможных действий с этими элементами. Следует признать что эти изменения принесли значительную выгоду с точки зрения конфигурирования расположения контента: больше стандартных регионов и новые возможности.

History of edits (Latest: alexander_dubovskoy 2 years, 7 months ago) §

To start, $content is now a block and there needs to be a place for it in any theme. This means that Drupal 7 now has it's first ever required region called, appropriately, "content". If you decide to declare any regions in your theme's .info file, this one must be included in order for your theme to be selectable.

Для начала: $content теперь блок и нуждается в описании для любой темы. Это означает что в Drupal 7 теперь есть первый обязательный регион, называемый соответственно - "content". Если вы решаете, какие произвольные регионы декларировать в .info файле вашей темы, то регион "content" должен быть включен.

History of edits (Latest: alexander_dubovskoy 2 years, 7 months ago) §

There are two more recommended regions to add to your custom themes: "help" and "highlight". The "help" region is to accommodate help now being a block element. This also means your help content will be contained in a block.tpl.php template. By default, a theme will output the help text to this region, but that can be changed in blocks administration. The "highlight" region is a replacement for the former mission statement functionality in prior versions of Drupal. Now if someone wants to place a mission statement on the page, a new block will need to be created. Eliminating either of these regions will not cause your site to break, but it will certainly decrease it's default functionality.

Есть еще два рекомендованых региона для добавления в ваши темы: "help"(помощь) и "highlight"(выделение). Регион "help" теперь обеспечивает вывод помощи как блочного элемента. Это также означает что содержимое ваших подсказок/помощи может описываться в block.tpl.php. По умолчанию, тема будет выводить текст помощи в этом регионе, но это может быть изменено в разделе администрированя блоков. Регион "highlight" является заменой "миссии"($mission) предыдущих версий Drupal. Сейчас, если кто-либо хочет поместить "миссию" на страницу, необходимо создавать новый блок. Исключение этих регионов не приведет к нарушению работы сайта, но рекомендуется декларировать их.

History of edits (Latest: alexander_dubovskoy 2 years, 7 months ago) §

With this expanded use of the block system, a site can have a lot of regions available. A lot of these regions are only used for very specific modules and do not need to be muddying up the blocks administration. The solution to this is the new hidden region designation.

Помимо данного улучшения системы блоков, сайт может иметь множество регионов. Многие из этих регионов используются только спецефичискими модулями и являются только помехой, мусором в разделе администрирования блоков. Решением этого являются новые "hidden"(скрытые) регионы.

History of edits (Latest: alexander_dubovskoy 2 years, 7 months ago) §
Pages: ← previous Ctrl next next untranslated
1 2 3 4 5 6 7 8