外觀
佈景主題架構
子主題檔案組織、各檔案功能與覆寫的父主題模板。
主題資訊
| 啟用主題 | Puskar |
| 父主題 | puskar |
| 子主題 | 否 |
| 作者 | templatesell |
| 版本 | 1.4.0 |
| 檔案數 | 106(PHP 59 / CSS 15 / JS 15) |
目錄結構
puskar/
├── 404.php
├── archive.php
├── comments.php
├── footer.php
├── functions.php
├── header.php
├── index.php
├── page.php
├── search.php
├── sidebar.php
├── single.php
├── style-rtl.css
├── style.css
├── css/
│ ├── animate.css
│ ├── bootstrap.css
│ ├── bootstrap.min.css
│ ├── customizer-style.css
│ ├── editor-styles.css
│ ├── font-awesome.css
│ ├── font-awesome.min.css
│ ├── main.css
│ ├── responsive.css
│ ├── slick.css
│ └── themify-icons.css
├── js/
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ ├── custom-infinte-pagination.js
│ ├── custom-masonry.js
│ ├── custom-sticky-sidebar.js
│ ├── custom.js
│ ├── customizer.js
│ ├── imagesloaded.js
│ ├── navigation.js
│ ├── skip-link-focus-fix.js
│ ├── slick.js
│ ├── slick.min.js
│ ├── theia-sticky-sidebar.js
│ └── widgets.js
├── template-parts/
│ ├── content-none.php
│ ├── content-page.php
│ ├── content-search.php
│ ├── content-single.php
│ └── content.php
├── template-parts/sections/
│ ├── boxes-section.php
│ ├── header-section.php
│ └── slider-section.php
├── templatesell/
│ ├── custom-header.php
│ ├── customizer-category-control.php
│ ├── customizer-radio-image-control.php
│ ├── customizer.php
│ ├── dynamic-css.php
│ ├── enqueue.php
│ ├── jetpack.php
│ ├── sanitize-functions.php
│ ├── template-functions.php
│ ├── template-tags.php
│ └── ts-core-files.php
├── templatesell/about/
│ ├── about.css
│ └── about.php
├── templatesell/breadcrumbs/
│ └── breadcrumbs.php
├── templatesell/filters/
│ ├── body-class.php
│ ├── excerpt.php
│ └── jetpack-widget.php
├── templatesell/hooks/
│ ├── breadcrumb.php
│ ├── footer.php
│ ├── masonry.php
│ ├── posts-navigation.php
│ ├── related-posts.php
│ ├── sections.php
│ └── social-sharing.php
├── templatesell/pro-notice/
│ ├── notice.css
│ └── pro-notice.php
├── templatesell/theme-settings/
│ ├── blog-page-options.php
│ ├── boxes-options.php
│ ├── breadcrumb-options.php
│ ├── color-options.php
│ ├── footer-options.php
│ ├── logo-options.php
│ ├── single-page-options.php
│ ├── slider-options.php
│ ├── sticky-sidebar-options.php
│ ├── theme-settings.php
│ └── top-header-options.php
├── templatesell/upgrade/
│ ├── class-customize.php
│ ├── customize-controls.js
│ └── section-pro.php
└── templatesell/widgets/
├── ts-author-widget.php
├── ts-recent-posts-widget.php
└── widget-init.php檔案審查
functions.php功能擴充
Puskar 父主題標準 setup(puskar_setup / puskar_widgets_init / customizer),但被 dracademy 在尾端加入 6 處與 LearnDash + WooCommerce + 安全性相關的客製函數。父主題若升級(templatesell 釋出新版)會覆蓋掉這些自加區塊。
| 行數 | 功能 | 用途 |
|---|---|---|
| 234 | big_image_size_threshold __return_false | 關閉 WP 6.3+ 自動將大圖降階至 2560px 的機制,保留原圖尺寸 |
| 237-243 | add_ld_lessons_to_video_thumbnails | 把 LearnDash lesson post type(sfwd-lessons)加入 video thumbnails 外掛支援清單 |
| 245-256 | custom_video_thumbnail_url | LearnDash lesson 從 post meta `_video_url` 讀取影片網址,覆寫 video thumbnail 取得邏輯 |
| 258-268 | auto_issue_invoice_when_processing | WC 訂單狀態變更為 processing 時自動呼叫 ecpay_invoice_issue() 開立電子發票,並用 _ecpay_invoice_number meta 防重複開立 |
| 270-274 | woocommerce_thankyou (closure) | thankyou 頁面 error_log 記錄訂單狀態與付款方式 — debug 殘留,應移除避免污染 PHP error log |
| 276-278+ | DISALLOW_FILE_EDIT 定義 | 解除 WP 後台外掛/主題編輯器的檔案修改保護(設為 false) — 高風險,遭入侵帳號可直接寫入 PHP 後門 |
