Адаптации Шаблона DLE 9.7 под DLE 9.8

  


Вышла долгожданная версия движка dle 9.8.Мало чем отличается от старой версии dle 9.7,но много конфигураций поменялось в самом движке.Я вам хочу рассказать как нужно поменять в шаблонах, более устаревших версиях движка.

Этап 1
И так преступаем к адаптации, самое главное копируем файлы изображения closemarker.pngmarker.pngsocial-icons.png,
из шаблона (Из дистрибутива) из папки /templates/Default/dleimages/ в подобную папку вашего шаблона.

Этап 2

Открываем style/engine.css и удаляем его
Код
</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editor</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">textarea</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{</span></div><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;"> <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">font-family</span>:<span class="value"> Verdana</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">word-spacing</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0.1</span>em</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">letter-spacing</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">line-height</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">1.5</span>em</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">font-size</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">11</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">color</span>:<span class="value"><span class="number" style="color: rgb(42, 161, 152);">#000</span></span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">background</span>:<span class="value"> <span class="hexcolor" style="color: rgb(42, 161, 152);">#fff</span> <span class="function">url(<span class="string" style="color: rgb(42, 161, 152);">"../images/fields.png"</span>)</span> repeat-x</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">border</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span> none</span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editor</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">input</span><span class="attr_selector" style="color: rgb(203, 75, 22); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">[type="text"]</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">2</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">background</span>:<span class="value"> <span class="hexcolor" style="color: rgb(42, 161, 152);">#fff</span> <span class="function">url(<span class="string" style="color: rgb(42, 161, 152);">"../images/fields.png"</span>)</span> repeat-x</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">border</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">1</span>px solid <span class="hexcolor" style="color: rgb(42, 161, 152);">#bcc0c2</span></span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editor_button</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">float</span>:<span class="value"> left</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">cursor</span>:<span class="value"> pointer</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding-left</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding-right</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editor_buttoncl</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">float</span>:<span class="value"> left</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">cursor</span>:<span class="value"> pointer</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding-left</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">1</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding-right</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">1</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">border-left</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">1</span>px solid <span class="hexcolor" style="color: rgb(42, 161, 152);">#bbb</span></span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">border-right</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">1</span>px solid <span class="hexcolor" style="color: rgb(42, 161, 152);">#bbb</span></span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editbclose</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">float</span>:<span class="value"> right</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">cursor</span>:<span class="value"> pointer</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">display</span>:<span class="value"> none</span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editor_button</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">select</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">font-size</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">11</span>px</span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editor_button</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">img</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">margin</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editbclose</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">img</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">margin</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
<span class="rule">}</span></span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">

</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.editor_button_brk</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">img</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">margin</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span></span>; </span>
</span><div><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">}</span><span style="font-size: 10pt;">

Этап 3

Далее в этом же файле находим:

Код
 </span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.xfields</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">textarea</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">, </span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.xprofile</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">textarea</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{</span></div><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;"> <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">width</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">98</span>%</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">height</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">186</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">margin</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span>px <span class="number" style="color: rgb(42, 161, 152);">1</span>px <span class="number" style="color: rgb(42, 161, 152);">0</span>px <span class="number" style="color: rgb(42, 161, 152);">0</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span>px</span>; </span>
</span><div><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">}</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; line-height: 14px;">

Меняем на :

Код
</span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.xfields</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">textarea</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);">, </span><span class="class" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">.xprofile</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="tag" style="color: rgb(133, 153, 0); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">textarea</span><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre; background-color: rgb(241, 241, 236);"> </span><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">{</span></div><span class="rules" style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;"> <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">height</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">186</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">margin</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span>px <span class="number" style="color: rgb(42, 161, 152);">1</span>px <span class="number" style="color: rgb(42, 161, 152);">0</span>px <span class="number" style="color: rgb(42, 161, 152);">0</span>px</span>;</span>
  <span class="rule"><span class="attribute" style="color: rgb(181, 137, 0);">padding</span>:<span class="value"> <span class="number" style="color: rgb(42, 161, 152);">0</span>px</span>; </span>
</span><div><span style="color: rgb(113, 113, 113); font-family: monospace; font-size: 12px; line-height: 14px; white-space: pre;">}</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 14px;">

Остальные этапы их осталось 5, скачай распакуй  и доделай.

Адаптации Шаблона DLE 9.7 под DLE 9.8 - Хаки для dle - Каталог файлов - Все для uCoz, DLE, Joomla, скрипты для uCoz
Z Скачать Адаптации Шаблона DLE 9.7 под DLE 9.8

Категория: Хаки для dle Просмотров: 879