SoFunction
Updated on 2025-04-09

Jeqi's official author code for custom home page

<?php
//  ------------------------------------------------------------------------
//  JIEQI CMS
//  Copyright (c)  All rights reserved.
//  /
//  ------------------------------------------------------------------------

/**
*  Website homepage customization (JIEQI_ROOT_PATH refers to the website physical path, and JIEQI_URL refers to the website address)
*  This customization mode refers to a completely independent page template, but the system block is required.
*  All variables in the template are included between {?  and ?}. For the default variables, please refer to
*  The title call method of the block is {?$jieqi_pageblocks['bidXXX']['title']?} The XXX in it refers to the actual block sequence number, which can be seen in block management, or the corresponding bid in the block configuration file.
*  The block content is called as {?$jieqi_pageblocks['bidXXX']['content']?} The specification is the same as the title
 */

define('JIEQI_MODULE_NAME', 'system');
require_once('');

//Includes block parameters (config file /configs/)
jieqi_getconfigs(JIEQI_MODULE_NAME, 'indexblocks', 'jieqiBlocks');

//Set the template file for this page
$jieqi_page_template=JIEQI_ROOT_PATH.'/themes/jb51/';

//Includes header processing
include_once(JIEQI_ROOT_PATH.'/'); 
//Set the home page logo. If you are not the home page, please comment this statement, so that you can judge in the template. This method is also used to assign values ​​to other parameters of the template.
$jieqiTpl->assign('jieqi_indexpage',1);  
//Includes end-of-page processing
include_once(JIEQI_ROOT_PATH.'/');  
?>