在輸出客戶區頁麵時執行。以下是所有頁麵通用的模板變量列表。其他變量將根據正在呈現的頁麵而有所不同。
參數
變量 | 類型 | 注意 |
---|---|---|
companyname | string | |
logo | string | |
systemurl | string | |
charset | string | |
pagetitle | string | |
filename | string | |
template | string | |
language | string | |
LANG | array | 活動語言翻譯字符串 |
todaysdate | string | 今天日期的人性化格式化版本 |
date_day | string | 每月的當前日期 |
date_month | string | 這個月 |
date_year | string | 今年 |
WEB_ROOT | string | WHMCS 文檔根目錄的 Web 路徑 |
BASE_PATH_CSS | string | |
BASE_PATH_JS | string | |
BASE_PATH_FONTS | string | |
BASE_PATH_IMG | string | |
token | string | CSRF 代幣值 |
servedOverSsl | bool | 如果頁麵是通過 https:// 加載的,則為真 |
響應
返回要在頁麵輸出的 body 標記頂部輸出的 HTML。
示例代碼
<?php
add_hook('ClientAreaHeaderOutput', 1, function($vars) {
$return = '';
if (
$vars['filename'] == 'index.php'
&& isset($_REQUEST['m'])
&& $_REQUEST['m'] == 'project_management'
) {
$return = '<b>This is a custom output on the header when in the client area for Project Management</b>';
}
return $return;
});
相關用法
- PHP WHMCS ClientAreaHeadOutput用法及代碼示例
- PHP WHMCS ClientAreaHomepagePanels用法及代碼示例
- PHP WHMCS ClientAreaHomepage用法及代碼示例
- PHP WHMCS ClientAreaPageDownloads用法及代碼示例
- PHP WHMCS ClientAreaPageSupportTickets用法及代碼示例
- PHP WHMCS ClientAreaPageDomainDNSManagement用法及代碼示例
- PHP WHMCS ClientAreaPageAffiliates用法及代碼示例
- PHP WHMCS ClientAreaPageViewInvoice用法及代碼示例
- PHP WHMCS ClientAreaPageProductsServices用法及代碼示例
- PHP WHMCS ClientAreaPageDomainRegisterNameservers用法及代碼示例
- PHP WHMCS ClientAreaPageUnsubscribe用法及代碼示例
- PHP WHMCS ClientAreaPageConfigureSSL用法及代碼示例
- PHP WHMCS ClientAreaPageDomainDetails用法及代碼示例
- PHP WHMCS ClientAreaPageAddonModule用法及代碼示例
- PHP WHMCS ClientAreaPageContact用法及代碼示例
- PHP WHMCS ClientAreaPageSecurity用法及代碼示例
- PHP WHMCS ClientAreaPage用法及代碼示例
- PHP WHMCS ClientAreaProductDetailsOutput用法及代碼示例
- PHP WHMCS ClientAreaDomainDetailsOutput用法及代碼示例
- PHP WHMCS ClientAreaPageDomainEmailForwarding用法及代碼示例
- PHP WHMCS ClientAreaPageDomainAddons用法及代碼示例
- PHP WHMCS ClientAreaPageAddFunds用法及代碼示例
- PHP WHMCS ClientAreaPageBulkDomainManagement用法及代碼示例
- PHP WHMCS ClientAreaRegister用法及代碼示例
- PHP WHMCS ClientAreaPaymentMethods用法及代碼示例
注:本文由純淨天空篩選整理自whmcs.com大神的英文原創作品 ClientAreaHeaderOutput。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。