Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Что такое нуль-темы
Теперь весь дизайн можно сделать в виде добавления и удаления панелей. И в теме нужно прописывать очень мало кода.
Нуль-темы - это темы вообще без дизайнов хэдэра и футэра.
Чтобы отображался хэдэр и футэр в нуль-темах, необходимо добавить в «Место: FOOTER» и «Место: HEADER» соответствующие панели, а также задать padding и margin для этих панелей в styles.css темы.
Что нужно сделать чтобы создать нуль-тему:
= настроить панели в "Управление панелями" administration/panels.php. Там же задать "Размеры блоков <li> для панелей в «HEADER_LI» и «FOOTER_LI»" на странице "Управление панелями"
= внести в файл темы theme.php свои данные. Иначе дефолтные данные будут взяты из themes/templates/panels.php. Тема работает даже если файл theme.php и styles.css пустой.
= внести цвета и текстуры в css файл новой темы styles.css
Дефолтные значения темы
Все дефолтные значения и функции темы собраны в одном файле
/themes/templates/panels.php
PHP
<?php
if(!defined("THEME_BULLET")) define("THEME_BULLET", "<span class='bullet'>·</span>");
if ( !isset($theme_bullet))
$theme_bullet = "<span class='bullet'>·</span>";
// $theme_bullet = "<span class='bullet'>·</span>";
// $theme_bullet = "<span class='bullet'> :: </span>";
// $theme_bullet = "<span class='bullet'> | </span>";
// промежуток между блоками ВЕРТИКАЛЬНЫЙ closetable() - opentable()
if ( !isset($vertical_spacer)) $vertical_spacer = "
<div style='height:10px;'></div>
";
// ПАРАМЕТРЫ СТРАНИЦЫ <BODY>
if (!isset($body_param)) $body_param=" topmargin='10' leftmargin='10' rightmargin='10' bottommargin='10' ";
-
?>
Из функций opentable() и closetable() создаются функции render_news() и render_article().
/themes/templates/panels.php
PHP
<?php
// RENDERARTICLE И RENDERNEWS ИЗ OPENTABLE
if (!function_exists("render_news")) {
function render_news($subject, $news, $info) {
opentable($subject);
echo $news;
echo "<hr>\n";
echo "<center><span class='news-footer middle-border'>\n";
echo newsposter($info, " ·").newsopts($info, "·").itemoptions("N", $info['news_id']);
echo "</span></center>\n";
closetable();
}
}
if (!function_exists("render_article")) {
function render_article($subject, $article, $info) {
opentable($subject);
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article) ;
echo "<hr>\n";
echo "<center><span class='news-footer'>\n";
echo articleposter($info, " ·").articleopts($info, "·").itemoptions("A", $info['article_id']);
echo "</span></center>\n";
closetable();
}
}
?>
Инклюды THEME ."/theme.php
Можно сделать инклюд функций opentable(), closetable(), openside(), closeside() из набора папки themes/templates/opentable/ . например:
THEME ."/theme.php
PHP
<?php
include THEMES."templates/opentable/Gillette.php";
?>
Какие строки может содержать THEME ."/theme.php
сайт будет грузиться и с пустыми THEME ."/theme.php и THEME ."/styles.css
Эта строка уже не нужна, так как она есть в themes/templates/panels.php
PHP
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
?>
Я не задаю обычно ширину темы, так как щас много разных смартфонов.
В дефолтной функции render_page() THEME_WIDTH не используется
PHP
<?php
define("THEME_WIDTH", "100%");
//define("THEME_WIDTH", "1024px");
?>
THEME_BULLET - разделитель ссылок в горизонтальном меню или маркер слева в вертикальном.
можно сделать и картинкой.
PHP
<?php
define("THEME_BULLET", " ");
// define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
$theme_bullet = " ";
// $theme_bullet = "<span class='bullet'>·</span>";
// $theme_bullet = "<span class='bullet'>·</span>";
// $theme_bullet = "<span class='bullet'> :: </span>";
// $theme_bullet = "<span class='bullet'> | </span>";
-
?>
в функциях closeside() и closetable() в конце есть строка
PHP
<?php
echo $vertical_spacer;
?>
варианты значений $vertical_spacer
PHP
<?php
$vertical_spacer = "
<div style='height:8px;'></div>
";
?>
$body_param - очень важный параметр для вёрстки нуль-тем без полей
PHP
<?php
$body_param = " topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0' marginheight='0' marginwidth='0' ";
?>
для некоторых браузеров недостаточно задать свойства <body>
THEME ."styles.css
body {
margin: 0px;
padding: 0px;
}
css адаптивности.
r - меню справа
l - меню слева
70 - ширина колонок 70% и 30%
w800 - на мониторах от 800px будет две колонки, на меньших всё в одну колонку.
$adapt_css='adapt/r70_w800.css';
padding боковой таблицы меню
PHP
<?php
$menu_cellpadding='0';
?>
padding таблицы основного содержания
PHP
<?php
$main_cellpadding='0';
?>
padding левой и правой таблицы. Если надо здатать padding в css . Если не задан то css не добавляется в <head>
PHP
<?php
$adapt_padding_css='adapt/p8.css';
?>
padding общей таблицы меню и основного содержания
PHP
<?php
$all_cellpadding='0';
?>
текст над основным текстом (можно впихнуть код банера или кнопок поделиться, если нужно для всего сайта)
PHP
<?php
$before_main='';
?>
текст под основным текстом
PHP
padding таблицы header
PHP
<?php
$header_cellpadding='0';
?>
padding таблицы footer
PHP
<?php
$footer_cellpadding='0';
?>
padding общей таблицы всей страницы
PHP
<?php
$whole_cellpadding='0';
?>
меню слева или справа
PHP
<?php
$left_right="r";
?>
Рекомендуется задифайнить RENDER_PAGE_INC
PHP
<?php
define("RENDER_PAGE_INC", "2");
// define("RENDER_PAGE_INC", "1"); - render_page.php из папки темы
// define("RENDER_PAGE_INC", "2"); - render_page.php из папки templates
// not defined - render_page(false);
-
?>
"1" - в папке своей темы можно создать свой файл THEME."render_page.php". Это стандартная нуль-тема.
"2" - иначе берётся дефолтный THEMES."templates/adapt_inc.php"
THEMES."templates/footer.php
PHP
<?php
if (defined("RENDER_PAGE_INC")) {
if (RENDER_PAGE_INC=="1")
include THEME."render_page.php";
else
include THEMES."templates/adapt_inc.php";
} else
render_page(false);
-
?>
Если дифайна нет, и не задана функция render_page(), то используется дефолтная render_page() из themes/templates/panels.php.
НОВЫЕ CSS ТЕМЫ
Выравнивание блока вложенных панелей в «_footer_li_panel» и «_header_li_panel»
вёрстка осуществляется путём вложеных таблиц.
внешняя таблиц - 100% ширины, а выравнивание ячейки по центру.
внутренняя таблица - ширина не задана, по содержимому.
по умолчанию блок вложенных панелей располагаются по центру.
чтобы все панели меню были выровнены по левому краю, задайте в CSS темы
THEME ."styles.css
table.menu_in { width:100% ; }
Автоматически создаваемые CSS размеров "Навигации"
Все размеры кнопок, банеров, тизеров со страницы админки "Навигация" (/administration/site_links.php) создаются автоматически в этом же файле.
/themes/templates/header.php
PHP
<?php
echo "<link rel='stylesheet' href='".THEMES."templates/nav.css' type='text/css' media='screen' />\n";
?>
Файл '".THEMES."templates/nav.css' не нужно редактировать вручную. В крайнем случае можно задать новые значения в '".THEME."styles.css'
Встроенные дополнительные CSS-файлы темы
Вы можете использовать файлы CSS от других тем, если скопируете в папку темы или создадите эти файлы:
styles_paddings.css
styles_fonts.css
styles_colors.css
Они запрашиваются до основного файла styles.css, поэтому в основном файле могут быть переназначены некоторые значения.
/themes/templates/header.php
PHP
<?php
echo "<link rel='stylesheet' href='".THEME."styles_paddings.css' type='text/css' media='screen' />\n";
echo "<link rel='stylesheet' href='".THEME."styles_fonts.css' type='text/css' media='screen' />\n";
echo "<link rel='stylesheet' href='".THEME."styles_colors.css' type='text/css' media='screen' />\n";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen' />\n";
-
?>
Дополнительные CSS-файлы шрифтов и отступов
= можно добавить css размеров шрифта из набора папки themes/templates/fonts_css/
= можно добавить css padding-margin из набора папки themes/templates/paddings_css/
функцией add_to_head() в файле темы theme.php например:
PHP
<?php
add_to_head("\n<link rel='stylesheet' href='".THEMES."templates/paddings_css/2-4px_Gillette.css' type='text/css' media='screen' />\n");
?>
= Добавьте функцией add_to_head() в файле темы theme.php стиль textarea для TinyMCE - themes/templates/fonts_css/TinyMCE_body_black-white_Arial_Verdana_Tahoma=18px.css
PHP
<?php
add_to_head("\n<link rel='stylesheet' href='".THEMES."templates/fonts_css/TinyMCE_body_black-white_Arial_Verdana_Tahoma=18px.css' type='text/css' media='screen' />\n");
?>
Как задать padding и margin панелей
Это необходимо чтобы сделать правильные отступы по краям страницы, особенно для шапки.
Каждая панель завёрнута в div, например:
<div class='panel side1 nav_button_panel'>
nav_button_panel - собственное имя панели. Так можно задать свойства одной панели
side1 - «Место»
panel - класс всех панелей.
Как правильно задать свойства панелей код css свойства
div.nav_button_panel { } одной панели, в частности nav_button_panel
div.side1 { } всех панелей «Место: Слева»
div.side2 { } всех панелей «Место: Центр»
div.side3 { } всех панелей «Место: По центру снизу»
div.side4 { } всех панелей «Место: Справа»
div.side5 { } всех панелей «Место: HEADER»
div.side6 { } всех панелей «Место: FOOTER»
div.side7 { } всех панелей «Место: HEADER_LI»
div.side8 { } всех панелей «Место: FOOTER_LI»
div.panel { } всех панелей |