Авторизация
 Регистрация   Войти   Забыли пароль? 

Как интегрировать в PHP-Fusion 7 свои php-страницы со стандартным дизайном и панелями?

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / Creating your php-pages and plug-ins for PHP Fusion 7 Bogatyr / Как интегрировать в PHP-Fusion 7 свои php-страницы со стандартным дизайном и панелями?


 Russian

Если вы используете php-страницу в стандартном дизайне PHP-Fusion-7, то у вас обязательно есть строка в середине файла:

require_once THEMES."templates/header.php";

или

require_once THEMES."templates/admin_header.php";

или

require_once THEMES."templates/admin_header_mce.php";

И в самом конце php-страницы есть строка:

require_once THEMES."templates/footer.php";

 

Файлы "header.php", "admin_header.php", "admin_header_mce.php" инклюдят панели "/themes/templates/panels.php" и файл дизайна темы, например, "/themes/Omni/theme.php". А также начинают вывод всех echo в буфер.

Файл "/themes/templates/footer.php" заканчивает вывод в буфер и выводит всё содержимое страницы.

How can I integrate my php pages in PHP-Fusion 7 with standart design and panels?

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / Creating your php-pages and plug-ins for PHP Fusion 7 Bogatyr / How can I integrate my php pages in PHP-Fusion 7 with standart design and panels?


 English

If you use the php page in the standard PHP-Fusion-7 design, then you definitely have a line in the middle of the file:

require_once THEMES. "templates/header.php";

or

require_once THEMES. "templates/admin_header.php";

or

require_once THEMES. "templates/admin_header_mce.php";

And at the very end of the php page there is a line:

require_once THEMES. "templates/footer.php";

 

The files "header.php", "admin_header.php", "admin_header_mce.php" include panels "/themes/templates/panels.php" and a theme design file, for example, "/themes/Omni/theme.php". And also start outputting all echo to the buffer.

The file "/themes/templates/footer.php" ends the output to the buffer and displays the entire contents of the page.

PHP
PHP
  1. <?php
  2. /*-------------------------------------------------------+
  3. | PHP-Fusion 7 Content Management System
  4. | Copyright (C) 2002 - 2008 Nick Jones
  5. | http://www.php-fusion.co.uk/
  6. +--------------------------------------------------------+
  7. | Filename: index.php
  8. | Author: Nick Jones (Digitanium)
  9. +--------------------------------------------------------+
  10. | This program is released as free software under the
  11. | Affero GPL license. You can redistribute it and/or
  12. | modify it under the terms of this license which you
  13. | can read by viewing the included agpl.txt or online
  14. | at www.gnu.org/licenses/agpl.html. Removal of this
  15. | copyright header is strictly prohibited without
  16. | written permission from the original author(s).
  17. +--------------------------------------------------------*/
  18. require_once "maincore.php";
  19. require_once THEMES."templates/header.php";
  20. //RU: содержание страницы
  21. // EN: page content
  22. require_once THEMES."templates/footer.php";
  23. ?>
Добавить комментарий

Добавить комментарий
Пожалуйста, залогиньтесь для добавления комментария.
Рейтинги
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/php-fusion.php?id=14">Как интегрировать в PHP-Fusion 7 свои php-страницы со стандартным дизайном и панелями?</a>


[url=https://php-fusion.vveb.ws/php-fusion.php?id=14]Как интегрировать в PHP-Fusion 7 свои php-страницы со стандартным дизайном и панелями?[/url]

Language: Default
 
Код для PHP-Fusion