前言

发现很多朋友喜欢自己修改一下主题,了解每个目录每个文件的作用必不可少,这里简单介绍一下,方便大家DIY

主题结构

树形图
Tint
│ functions.php
│ index.php
│ screenshot.png
│ style.css【无实际功能,无需修改,添加内容也无效】

├─assets【静态资源目录】
│ ├─css【各页面css文件】
│ │ 404-b48a52a5b6.css
│ │ actions-47b0acab55.css
│ │ archive-a41b8845e0.css
│ │ error-page-9441bbec80.css
│ │ front-page-7389b1d2c0.css
│ │ home-8f7116c048.css
│ │ manage-e026db1b66.css
│ │ me-4cc382588b.css
│ │ oauth-0fdab15ab9.css
│ │ page-20965432f3.css
│ │ product-8ca9e73143.css
│ │ products-e63c2b7e27.css
│ │ single-33012881d2.css
│ │ site-utils-8920bde662.css
│ │ uc-3368ae3e6c.css
│ │
│ ├─dash
│ │ ├─css
│ │ │ editor-preview.css
│ │ │
│ │ └─js
│ │
│ ├─fonts【字体文件】
│ │ Tico.eot
│ │ Tico.svg
│ │ Tico.ttf
│ │ Tico.woff
│ │ TitilliumWeb-Italic.ttf
│ │ TitilliumWeb-Regular.ttf
│ │ TitilliumWeb-SemiBold.ttf
│ │
│ ├─img【主题图片资源文件】
│ │ │
│ │ ├─avatar【头像】
│ │ │ │
│ │ │ └─letters
│ │ │
│ │ ├─icon【图标】
│ │ │
│ │ ├─qqFace【QQ表情】
│ │ │
│ │ ├─qr【支付相关图片】
│ │ │
│ │ ├─spotlight【登录页面图片】
│ │ │
│ │ └─thumb【文章默认图片】
│ │
│ ├─js【各页面JS文件】
│ │ 404-24d661239f.js
│ │ actionPage-558635d196.js
│ │ archive-40f4fed2df.js
│ │ frontPage-e0fd0122b4.js
│ │ home-317dbac49d.js
│ │ manage-8073334696.js
│ │ me-898eb5699e.js
│ │ oauth-1a61b04bd8.js
│ │ page-aba4cab3eb.js
│ │ product-a233df0d99.js
│ │ products-6d7440144b.js
│ │ single-f817db4c21.js
│ │ site-utils-51735bce5f.js
│ │ uc-b285c6fce7.js
│ │
│ └─vender
│ │ README.md
│ │
│ ├─css
│ │ │
│ │ └─fonts
│ │
│ └─js
│ ├─html5shiv
│ │
│ ├─jquery
│ │
│ └─respond

├─core【主题核心代码】
│ │ metaKeys.md
│ │ upgrade.md
│ │
│ ├─api【REST API控制器及相关工具】
│ │ │ api.Compatibility.php
│ │ │ api.Config.php
│ │ │ api.Utils.php
│ │ │ index.php
│ │ │
│ │ ├─v1
│ │ │ │ README.md
│ │ │ │
│ │ │ └─endpoints
│ │ │ class.Rest.Action.Controller.php
│ │ │ class.Rest.BoughtResource.Controller.php
│ │ │ class.Rest.Comment.Controller.php
│ │ │ class.Rest.Comment.Star.Controller.php
│ │ │ class.Rest.Controller.php
│ │ │ class.Rest.Coupon.Controller.php
│ │ │ class.Rest.Follow.Controller.php
│ │ │ class.Rest.Member.Controller.php
│ │ │ class.Rest.Message.Controller.php
│ │ │ class.Rest.Order.Controller.php
│ │ │ class.Rest.Post.Controller.php
│ │ │ class.Rest.Post.Star.Controller.php
│ │ │ class.Rest.Product.Controller.php
│ │ │ class.Rest.Session.Controller.php
│ │ │ class.Rest.ShoppingCart.Controller.php
│ │ │ class.Rest.User.Controller.php
│ │ │ class.Rest.Usermeta.Controller.php
│ │ │ class.Rest.UserProfile.Controller.php
│ │ │ class.Rest.UserStatus.Controller.php
│ │ │
│ │ └─v2
│ │ extension.php
│ │ README.md
│ │
│ ├─classes【PHP自定义类文件存放处】
│ │ │ class.Async.Email.php
│ │ │ class.Async.Task.php
│ │ │ class.Avatar.php
│ │ │ class.Captcha.php
│ │ │ class.Member.php
│ │ │ class.NameFirstChar.php
│ │ │ class.Open.php
│ │ │ class.PostImage.php
│ │ │ class.QRcode.php
│ │ │ class.Tgm.Plugin.Activation.php
│ │ │ class.Utils.php
│ │ │ index.php
│ │ │
│ │ ├─plates
│ │ │ │ Engine.php
│ │ │ │
│ │ │ ├─Extension
│ │ │ │ Asset.php
│ │ │ │ ExtensionInterface.php
│ │ │ │ URI.php
│ │ │ │
│ │ │ └─Template
│ │ │ Data.php
│ │ │ Directory.php
│ │ │ FileExtension.php
│ │ │ Folder.php
│ │ │ Folders.php
│ │ │ Func.php
│ │ │ Functions.php
│ │ │ Name.php
│ │ │ Template.php
│ │ │
│ │ └─shop
│ │ │ class.OrderStatus.php
│ │ │ class.Product.php
│ │ │
│ │ └─alipay
│ │ alipay_notify.class.php
│ │ alipay_submit.class.php
│ │
│ ├─functions【核心加密文件无法修改】
│ │ │ asset.Constant.php
│ │ │ Constants.php
│ │ │ func.Account.php
│ │ │ func.API.Actions.php
│ │ │ func.Avatar.php
│ │ │ func.Cache.php
│ │ │ func.Comment.php
│ │ │ func.Content.php
│ │ │ func.Credit.php
│ │ │ func.Download.php
│ │ │ func.Follow.php
│ │ │ func.Image.php
│ │ │ func.Init.php
│ │ │ func.Install.php
│ │ │ func.IP.php
│ │ │ func.Kits.php
│ │ │ func.L10n.php
│ │ │ func.Loader.php
│ │ │ func.Mail.php
│ │ │ func.Member.php
│ │ │ func.Message.php
│ │ │ func.Metabox.php
│ │ │ func.Module.php
│ │ │ func.Oauth.php
│ │ │ func.Optimization.php
│ │ │ func.Page.php
│ │ │ func.PostMeta.php
│ │ │ func.Query.php
│ │ │ func.Referral.php
│ │ │ func.Rewrite.php
│ │ │ func.Robots.php
│ │ │ func.Schedule.php
│ │ │ func.Script.php
│ │ │ func.Seo.php
│ │ │ func.ShortCode.php
│ │ │ func.Sidebar.php
│ │ │ func.Template.php
│ │ │ func.Thumb.php
│ │ │ func.Tint.php
│ │ │ func.User.php
│ │ │ index.php
│ │ │
│ │ └─shop
│ │ │ func.Shop.Address.php
│ │ │ func.Shop.Cart.php
│ │ │ func.Shop.Coupon.php
│ │ │ func.Shop.Order.php
│ │ │ func.Shop.Orders.php
│ │ │ func.Shop.php
│ │ │
│ │ └─alipay
│ │ alipay_core.function.php
│ │ alipay_md5.function.php
│ │ cacert.pem
│ │ func.Alipay.php
│ │ log.txt
│ │
│ ├─languages【语言包】
│ │ en_US.mo
│ │ en_US.po
│ │ tt.pot
│ │ zh_CN.mo
│ │ zh_CN.po
│ │
│ ├─library【PHP外部开源库】
│ │ ├─timthumb
│ │ │ Timthumb.php
│ │ │
│ │ └─tldextract
│ │ TldExtract.php
│ │
│ ├─modules【各种页面模板的小模块】
│ │ │ mod.Comments.php【评论模块】
│ │ │ mod.Download.php【下载页模块】
│ │ │ mod.FeaturedCats.php【新首页置顶分类模块】
│ │ │ mod.FixedControls.php【返回顶部等浮动工具模块】
│ │ │ mod.Footer.php【主体页脚模块/版权信息在这里修改】
│ │ │ mod.Footer.Simple.php【注册及登录页页脚模块/版权信息在这里修改】
│ │ │ mod.Head.php【主体head头部模块】
│ │ │ mod.Header.php【主体header模块】
│ │ │ mod.Header.Shop.php【商店header模块】
│ │ │ mod.Header.Simple.php【登录及注册页面head头部模块】
│ │ │ mod.HomeLatest.php【新首页最新文章模块】
│ │ │ mod.HomePopular.php【幻灯旁边热门文章模块】
│ │ │ mod.HomeSlide.php【幻灯模块】
│ │ │ mod.LogoHeader.php【登录注册页logo模块】
│ │ │ mod.ModalBanBox.php【错误窗口模块】
│ │ │ mod.ModalLoginForm.php【登录弹窗模块】
│ │ │ mod.ModalPmBox.php【私信弹窗模块】
│ │ │ mod.ModalQrCodes.php【二维码模块】
│ │ │ mod.ModalSearch.php【搜索弹窗模块】
│ │ │ mod.Privacy.php【免责声明模块】
│ │ │ mod.ProductGallery.php
│ │ │ mod.ReplyForm.php【回复模块】
│ │ │ mod.SearchPosts.php【搜索页模块】
│ │ │ mod.Sidebar.php【小工具加载模块】
│ │ │ mod.SinglePage.php【页面模块】
│ │ │ mod.SinglePost.php【文章页模块】
│ │ │
│ │ ├─management【站务管理页】
│ │ │ mg.NavMenu.php【站务管理菜单】
│ │ │ mg.Tab.Comments.php
│ │ │ mg.Tab.Coupons.php【优惠码页面模块】
│ │ │ mg.Tab.Members.php【会员管理页面模块】
│ │ │ mg.Tab.Order.php【订单信息页面模块】
│ │ │ mg.Tab.Orders.php【订单管理页面模块】
│ │ │ mg.Tab.Posts.php【文章管理页面模块】
│ │ │ mg.Tab.Products.php【商品管理页面模块】
│ │ │ mg.Tab.Status.php【统计信息页面模块】
│ │ │
│ │ ├─me【个人管理页面模块】
│ │ │ me.NavMenu.php【个人管理页面菜单】
│ │ │ me.Tab.Contribute.php【新建文章页面模块】
│ │ │ me.Tab.Credits.php【积分页面模块】
│ │ │ me.Tab.Drafts.php【文章草稿页面模块】
│ │ │ me.Tab.EditPost.php【编辑文章页面模块】
│ │ │ me.Tab.Membership.php【会员页面模块】
│ │ │ me.Tab.Messages.php【站内消息页面模块】
│ │ │ me.Tab.Notifications.php【通知页面模块】
│ │ │ me.Tab.Order.php【订单信息页面模块】
│ │ │ me.Tab.Orders.php【订单管理页面模块】
│ │ │ me.Tab.Settings.php【个人设置页面模块】
│ │ │
│ │ ├─shop【商店页面模块】
│ │ │ mod.Shop.Comments.php
│ │ │ mod.Shop.Relates.php
│ │ │ mod.Shop.ReplyForm.php
│ │ │ mod.Shop.Sidebar.Left.php
│ │ │ mod.Shop.Sidebar.Right.php
│ │ │
│ │ ├─uc【个人主页】
│ │ │ uc.NavTabs.php【个人主页菜单】
│ │ │ uc.Tab.Activities.phpReplyForm
│ │ │ uc.Tab.Chat.php
│ │ │ uc.Tab.Comments.php
│ │ │ uc.Tab.Followers.php
│ │ │ uc.Tab.Following.php
│ │ │ uc.Tab.Latest.php
│ │ │ uc.Tab.Profile.php
│ │ │ uc.Tab.Stars.php
│ │ │ uc.TopPane.php
│ │ │
│ │ └─widgets【小工具模块】
│ │ wgt.Author.php【作者小工具】
│ │ wgt.Donate.php【捐赠小工具】
│ │ wgt.EnhancedText.php【加强文本框小工具】
│ │ wgt.Float.php【浮动占位小工具】
│ │ wgt.HotHits.Posts.php【热门点击文章小工具】
│ │ wgt.HotReviews.Posts.php【热评文章小工具】
│ │ wgt.Latest.Posts.php【近期文章小工具】
│ │ wgt.RecentComments.php【近期评论小工具】
│ │ wgt.TagCloud.php【标签云小工具】
│ │ wgt.UC.php
│ │
│ ├─templates【页面模板】
│ │ │ tpl.404.php【404页面】
│ │ │ tpl.Author.php【作者页面】
│ │ │ tpl.CommentPopup.php
│ │ │ tpl.Embed.php
│ │ │ tpl.Error.php【错误页面】
│ │ │ tpl.FrontPage.php
│ │ │ tpl.Home.php【主页】
│ │ │ tpl.Index.php
│ │ │ tpl.Search.php【搜索页面】
│ │ │
│ │ ├─actions【登录相关页面】
│ │ │ tpl.M.Activate.php【激活帐号页面】
│ │ │ tpl.M.Findpass.php【找回密码页面】
│ │ │ tpl.M.Refresh.php【刷新固定链接页面】
│ │ │ tpl.M.Resetpass.php【重置密码页面】
│ │ │ tpl.M.Signin.php【登录页面】
│ │ │ tpl.M.Signout.php【登出页面】
│ │ │ tpl.M.Signup.php【注册页面】
│ │ │
│ │ ├─attachments
│ │ │ tpl.Attachment.php
│ │ │ tpl.MIMEText.php
│ │ │
│ │ ├─management
│ │ │ tpl.Manage.Comments.php
│ │ │ tpl.Manage.Coupons.php
│ │ │ tpl.Manage.Members.php
│ │ │ tpl.Manage.Order.php
│ │ │ tpl.Manage.Orders.php
│ │ │ tpl.Manage.Posts.php
│ │ │ tpl.Manage.Products.php
│ │ │ tpl.Manage.Status.php
│ │ │ tpl.Manage.Users.php
│ │ │
│ │ ├─me
│ │ │ tpl.Me.Credits.php
│ │ │ tpl.Me.Drafts.php
│ │ │ tpl.Me.Editpost.php
│ │ │ tpl.Me.Membership.php
│ │ │ tpl.Me.Messages.php
│ │ │ tpl.Me.Newpost.php
│ │ │ tpl.Me.Notifications.php
│ │ │ tpl.Me.Order.php
│ │ │ tpl.Me.Orders.php
│ │ │ tpl.Me.Settings.php
│ │ │
│ │ ├─oauth
│ │ │ tpl.OAuth.Last.php
│ │ │ tpl.OAuth.php
│ │ │
│ │ ├─page【页面模块】
│ │ │ tpl.Page.FullWidth.php
│ │ │ tpl.Page.Links.php
│ │ │ tpl.Page.php
│ │ │
│ │ ├─plates【邮件模块】
│ │ │ │ embed-product.php
│ │ │ │
│ │ │ └─emails
│ │ │ base.html
│ │ │ base.php
│ │ │ buy-resource.php
│ │ │ charge-credits-success.php
│ │ │ comment-admin.php
│ │ │ comment.php
│ │ │ contribute-post.php
│ │ │ download-admin.php
│ │ │ download.php
│ │ │ findpass.php
│ │ │ login-fail.php
│ │ │ login.php
│ │ │ open-vip.php
│ │ │ order-pay-content.php
│ │ │ order-status-admin.php
│ │ │ order-status.php
│ │ │ pm.php
│ │ │ promote-vip.php
│ │ │ pure.php
│ │ │ register-admin.php
│ │ │ register-confirm.php
│ │ │ register.php
│ │ │ reply.php
│ │ │
│ │ ├─shop
│ │ │ tpl.Product.Archive.php
│ │ │ tpl.Product.Category.php
│ │ │ tpl.Product.php
│ │ │ tpl.Product.Search.php
│ │ │ tpl.Product.Tag.php
│ │ │
│ │ ├─single
│ │ │ tpl.Single.php
│ │ │
│ │ ├─site
│ │ │ tpl.Alipay.Notify.php
│ │ │ tpl.Alipay.Return.php
│ │ │ tpl.APSV.Notify.php
│ │ │ tpl.Captcha.php
│ │ │ tpl.CheckOut.php【订单提交页面模版】
│ │ │ tpl.Download.php
│ │ │ tpl.Image.Upload.php
│ │ │ tpl.PayGateway.php
│ │ │ tpl.PayResult.php
│ │ │ tpl.Privacy.php
│ │ │ tpl.QrCode.php
│ │ │ tpl.QrPay.php【付款页面模版,部分文字为英文】
│ │ │ tpl.UpgradeBrowser.php
│ │ │
│ │ ├─tax
│ │ │ tpl.Archive.php
│ │ │ tpl.Category.php
│ │ │ tpl.Date.php
│ │ │ tpl.Tag.php【标签页模版】
│ │ │ tpl.Taxonomy.php
│ │ │
│ │ └─uc
│ │ tpl.UC.Activities.php
│ │ tpl.UC.Chat.php
│ │ tpl.UC.Comments.php
│ │ tpl.UC.Followers.php
│ │ tpl.UC.Following.php
│ │ tpl.UC.Latest.php
│ │ tpl.UC.php
│ │ tpl.UC.Profile.php
│ │ tpl.UC.Stars.php
│ │
│ └─viewModels【各页面所需函数设置-按文件名称与以上页面模块对应,就不多做说明了】
│ │ vm.Base.php
│ │ vm.Category.Posts.php
│ │ vm.Date.Archive.php
│ │ vm.Home.FeaturedCategory.php
│ │ vm.Home.Latest.php
│ │ vm.Home.Popular.php
│ │ vm.Home.Slides.php
│ │ vm.Post.Comments.php
│ │ vm.ProductGallery.php
│ │ vm.Search.php
│ │ vm.Single.Page.php
│ │ vm.Single.Post.php
│ │ vm.Tag.Posts.php
│ │ vm.Term.Posts.php
│ │
│ ├─management
│ │ vm.Mg.Comments.php
│ │ vm.Mg.Coupons.php
│ │ vm.Mg.Members.php
│ │ vm.Mg.Order.php
│ │ vm.Mg.Orders.php
│ │ vm.Mg.Posts.php
│ │ vm.Mg.Products.php
│ │ vm.Mg.Status.php
│ │ vm.Mg.Users.php
│ │
│ ├─me
│ │ vm.Me.Credits.php
│ │ vm.Me.Drafts.php
│ │ vm.Me.EditPost.php
│ │ vm.Me.Membership.php
│ │ vm.Me.Messages.php
│ │ vm.Me.Notifications.php
│ │ vm.Me.Order.php
│ │ vm.Me.Orders.php
│ │ vm.Me.Settings.php
│ │
│ ├─shop
│ │ vm.Embed.Product.php
│ │ vm.Shop.Category.php
│ │ vm.Shop.Comment.php
│ │ vm.Shop.Header.SubNav.php
│ │ vm.Shop.Home.php
│ │ vm.Shop.LatestRated.php
│ │ vm.Shop.Product.php
│ │ vm.Shop.Search.php
│ │ vm.Shop.Tag.php
│ │ vm.Shop.ViewHistory.php
│ │
│ ├─uc
│ │ vm.UC.Chat.php
│ │ vm.UC.Comments.php
│ │ vm.UC.Followers.php
│ │ vm.UC.Following.php
│ │ vm.UC.Latest.php
│ │ vm.UC.Profile.php
│ │ vm.UC.Stars.php
│ │
│ └─widgets
│ vm.Widget.Author.php
│ vm.Widget.HotHit.Posts.php
│ vm.Widget.HotReviewed.Posts.php
│ vm.Widget.Latest.Posts.php
│ vm.Widget.Recent.Comments.php

├─dash
│ │ dash.php
│ │ index.php
│ │ options.php
│ │
│ ├─of_inc
│ │ │ options-framework.php
│ │ │
│ │ ├─css
│ │ │ optionsframework.css
│ │ │
│ │ ├─images
│ │ │ ico-delete.png
│ │ │
│ │ ├─includes
│ │ │ class-options-framework-admin.php
│ │ │ class-options-framework.php
│ │ │ class-options-interface.php
│ │ │ class-options-media-uploader.php
│ │ │ class-options-sanitization.php
│ │ │
│ │ └─js
│ │ media-uploader.js
│ │ options-custom.js
│ │
│ └─plugins
│ │ crayon-syntax-highlighter.zip
│ │ wp-postviews.zip
│ │
│ ├─memcache
│ │ object-cache.php
│ │
│ ├─redis
│ │ object-cache.php
│ │
│ └─timthumb
│ index.html
│ timthumb_cacheLastCleanTime.touch

└─src
├─css
│ │
│ ├─mixins
│ │
│ └─modules

├─img
│ │
│ ├─avatar
│ │
│ ├─icon
│ │
│ ├─qqFace
│ │
│ ├─qr
│ │
│ ├─spotlight
│ │
│ └─thumb

├─js
│ │ 404.js
│ │ actionPage.js
│ │ archive.js
│ │ frontPage.js
│ │ home.js
│ │ manage.js
│ │ me.js
│ │ oauth.js
│ │ page.js
│ │ product.js
│ │ products.js
│ │ single.js
│ │ site-utils.js
│ │ uc.js
│ │
│ ├─modules
│ │ addCoupon.js
│ │ addMember.js
│ │ animateAnchor.js
│ │ ban.js
│ │ bootstrap-flat.js
│ │ buy.js
│ │ buyResource.js
│ │ checkout.js
│ │ comments.js
│ │ continuePay.js
│ │ contribute.js
│ │ cookie.js
│ │ creditsCharge.js
│ │ dailySign.js
│ │ deleteCoupon.js
│ │ deleteMember.js
│ │ deleteOrder.js
│ │ findPass.js
│ │ fixFooter.js
│ │ fixProductContent.js
│ │ follow.js
│ │ globalConfig.js
│ │ imageUploader.js
│ │ joinVip.js
│ │ loading.js
│ │ loadNextPage.js
│ │ manageOrderStatus.js
│ │ managePosts.js
│ │ manageProducts.js
│ │ modalSignBox.js
│ │ msgbox.js
│ │ openBind.js
│ │ pm.js
│ │ postStar.js
│ │ referral.js
│ │ resetPass.js
│ │ saveSettings.js
│ │ scroll.js
│ │ seasonalBg.js
│ │ signHelp.js
│ │ signin.js
│ │ signup.js
│ │ toggle.js
│ │ unstar.js
│ │ usermeta.js
│ │ utils.js
│ │
│ └─vender
│ jquery.popupoverlay.js
│ smooth-scroll.js
│ sweet-alert.js
│ unslider.js
│ webuploader.html5only.js

├─php
└─ asset.Constant.php

参与评论

  • 电影游客
    嗯,好像你的网站吃了我的第一条评论(这是非常长的),所以我想我只是总结一下我所写的内容并说,我非常喜欢你的博客。 我也是一个有抱负的博客博客,但我仍然是新手。 你对初学者博客作者有什么建议吗? 我真的很感激。
    5年前 (2019-05-11)
    1楼
    回复
  • 5年前 (2019-05-12)
    回复
  • 8492038**@qq.com用户
    他网站关了[aru_3]
    5年前 (2019-10-22)
    回复