Skip to content

Lưu ý: Đây là bộ tài liệu chưa hoàn thiện, đang trong quá trình cập nhật nên nội dung có thể không đúng hoặc chưa đủ. Nếu phát hiện sai lệch, xin báo lại qua GitHub Issues hoặc gửi Pull Request để sửa.

Hàm ngoài site ​

Chỉ có ngoài site.

Nguồn: src/includes/core/user_functions.php

fix_theme_configs ​

php
function fix_theme_configs($configs)

Xác định lại các biến toàn cục liên quan đến giao diện

Tham số

  • $configs mixed

Trả về: array

Khai báo tại src/includes/core/user_functions.php:1061

is_current_url ​

php
function is_current_url($url, $cmptype = 0)

Kiểm tra URL có phải là URL của trạng hiện tại hay không

Tham số

  • $url string
  • $cmptype int, mặc định 0

Trả về: bool

Khai báo tại src/includes/core/user_functions.php:27

nv_admin_menu ​

php
function nv_admin_menu()

Lấy giao diện thanh công cụ của quản trị khi đăng nhập ngoài site

Trả về: string

Khai báo tại src/includes/core/user_functions.php:988

nv_blocks_content ​

php
function nv_blocks_content($sitecontent)

Đưa các block vào giao diện hiển thị

Tham số

  • $sitecontent string

Trả về: string

Khai báo tại src/includes/core/user_functions.php:63

nv_groups_list_pub ​

php
function nv_groups_list_pub($mod_data = 'users')

Tham số

  • $mod_data string, mặc định 'users'

Trả về: array

Khai báo tại src/includes/core/user_functions.php:1016

nv_html_css ​

php
function nv_html_css($html = true)

Thêm CSS của module vào trang

Tham số

  • $html bool, mặc định true

Trả về: array|string

Khai báo tại src/includes/core/user_functions.php:751

php
function nv_html_links($html = true, $moduleCss = true)

Tham số

  • $html bool, mặc định true
  • $moduleCss bool, mặc định true

Trả về: array|string

Khai báo tại src/includes/core/user_functions.php:592

nv_html_meta_tags ​

php
function nv_html_meta_tags($html = true)

Tham số

  • $html bool, mặc định true

Trả về: array|string

Khai báo tại src/includes/core/user_functions.php:343

nv_html_page_title ​

php
function nv_html_page_title($html = true)

Tham số

  • $html bool, mặc định true

Trả về: string

Khai báo tại src/includes/core/user_functions.php:708

nv_html_site_js ​

php
function nv_html_site_js($html = true, $other_js = [], $language_js = true, $global_js = true, $default_js = true, $module_js = true)

Tham số

  • $html bool, mặc định true: Xuất ra dạng string (html) hay để nguyên dạng array, Mặc định true
  • $other_js array, mặc định []: Thêm js vào ngay sau global.js, Mặc định rỗng
  • $language_js bool, mặc định true: Có kết nối với file ngôn ngữ JS hay không
  • $global_js bool, mặc định true: Có kết nối với file global.js hay không
  • $default_js bool, mặc định true: Có kết nối với file JS của theme Default hay không khi thiếu file tương ứng ở theme đang sử dụng
  • $module_js bool, mặc định true: Có kết nối với file JS của module hay không

Trả về: array|string

Khai báo tại src/includes/core/user_functions.php:850

nv_html_site_rss ​

php
function nv_html_site_rss($html = true)

Tham số

  • $html bool, mặc định true

Trả về: array|string

Khai báo tại src/includes/core/user_functions.php:816

nv_module_captcha ​

php
function nv_module_captcha(string $module_name): string

Xác định loại captcha của module

Tham số

  • $module_name string

Trả về: string

Khai báo tại src/includes/core/user_functions.php:1170

set_theme_configs ​

php
function set_theme_configs(&$global_config, &$is_mobile, $module_info)

Xác định kiểu theme hiện tại, theme của module và theme của site

Tham số

  • &$global_config mixed
  • &$is_mobile bool
  • $module_info mixed

Khai báo tại src/includes/core/user_functions.php:1082