LEPTON CMS 7.2.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
function.get_page_headers.php File Reference

Go to the source code of this file.

Functions

 get_page_headers (string $for='frontend', bool $print_output=true, bool $individual=false)
 

Variables

if(!defined("SEC_FILE")) if(defined('LEPTON_PATH')) else
 
 $root = $oneback
 
 $level = 1
 

Function Documentation

◆ get_page_headers()

get_page_headers ( string $for = 'frontend',
bool $print_output = true,
bool $individual = false )

get additions for page header (css, js)

  • gets all active sections for a page;
  • scans module directories for file headers.inc.php;
  • includes that file if it is available
  • includes automatically if exists:
    • module dirs:
      • frontend.css / backend.css (media: all)
      • ./css/frontend.css / backend.css (media: all)
      • frontend_print.css / backend_print.css (media: print)
      • ./css/frontend_print.css / backend_print.css (media: print)
      • frontend.js / backend.js
      • ./js/frontend.js / backend.js
    • template dir:
      • <PAGE_ID>.css (media: all)
      • ./css/<PAGE_ID>.css (media: all)
    • pages_directory:
      • <PAGE_ID>.css (media: all)
      • ./css/<PAGE_ID>.css (media: all)

@access public

Parameters
string$for- 'frontend' (default) / 'backend'
boolean$print_output
boolean$current_section
Returns
void (echo's result)

In some circumstances there is neither no page_id as constant nor inside the $_GET superglobal ... In this case the module-css or -js files are not loaded. So we are looking inside the $_POST superglobal ....

removed in L* 5.3

Modifiy to get the css and js files from the frontend-template or the module itself Even if we are not only displaying the search-results.

Add css files for frontend-login, -preferences, -forgot-form etc.

Aldus - 2014-11-02 Frontend - patch

We are taking the first file (-link) we found. Keep in mind that an optional additional css file in the frontend-template is loaded INSTEAD of the module-internal one!

Try to get a frontend "<page_id>.css" if there is one

Definition at line 67 of file function.get_page_headers.php.

Variable Documentation

◆ $level

$level = 1

Definition at line 25 of file function.get_page_headers.php.

◆ $root

$root = $oneback

Definition at line 24 of file function.get_page_headers.php.

◆ else

while(($level< 10) &&(!file_exists($root.SEC_FILE))) if (file_exists( $root.SEC_FILE)) else
Initial value:
{
$oneback = "../"

This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.

NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.

Author
LEPTON Project

Definition at line 22 of file function.get_page_headers.php.