├── img ├── logo.png ├── avatar.png ├── favicon.png ├── loading.gif ├── logo@2x.png ├── logo-dark.png └── error-avatar.png ├── screenshot.png ├── README.md ├── LICENSE ├── 404.php ├── js ├── scripts.js ├── lazyload.js └── menuzord.js ├── footer.php ├── page.php ├── page_no_sidebar.php ├── index.php ├── archive.php ├── header.php ├── post.php ├── functions.php ├── comments.php └── css └── style.min.css /img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/img/logo.png -------------------------------------------------------------------------------- /img/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/img/avatar.png -------------------------------------------------------------------------------- /img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/img/favicon.png -------------------------------------------------------------------------------- /img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/img/loading.gif -------------------------------------------------------------------------------- /img/logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/img/logo@2x.png -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/screenshot.png -------------------------------------------------------------------------------- /img/logo-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/img/logo-dark.png -------------------------------------------------------------------------------- /img/error-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fordes123/typecho-theme-pir/HEAD/img/error-avatar.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # typecho-theme-pic-r 2 | typecho主题pic魔改,[示例页面](https://pir-vercel.vercel.app/) 3 | 4 | 5 |  6 | 7 | 8 | ### 说明 9 | 10 | - 主题似乎最开始移植自wordpress, ~~原作为 @[国服第一盖伦](https://p.liangxingjian.com),遗憾的是其主页已无法访问~~ 原作为 [massive](https://themeforest.net/item/massive-responsive-multipurpose-html5-template/12503639)。 11 | 12 | - 狗尾续貂随意改改,壁纸相册化,~~不支持显示博文~~ 13 | 14 | 15 | 16 | ### 注意项 17 | 18 | - 克隆项目后将主题文件夹上传至typecho目录 **/usr/themes/** 路径下,到后台选择启用; 19 | 20 | - 修改后为完全壁纸或相册模板,~~不支持显示博文~~ 21 | 22 | - 新建文章并将图片插入正文即可,支持任意数量,暂不支持附件形式 23 | 24 | - 主页图片标签跟随文章tag,如无tag则显示分类名称 25 | 26 | - 每页显示图片数量取决于后台 **设置-> 阅读-> 每页文章数目** 以及正文中插入的图片数量 27 | 28 | 29 | ### Todo 30 | 31 | - [x] 移除 二级页面 32 | - [x] 改进 首页样式,添加 灯箱、标签等 33 | - [x] 图片懒加载 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 fordes123 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 2 | need('header.php'); ?> 3 | 4 | 5 | 6 | 7 | PAGE NOT FOUND 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 404 29 | 30 | 31 | 好吧... 32 | 页面被管理员吃了 33 | 34 | 带我回家 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | need('footer.php'); ?> -------------------------------------------------------------------------------- /js/scripts.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | "use strict"; 3 | 4 | var $window, $document, $body; 5 | 6 | $window = $(window); 7 | $document = $(document); 8 | $body = $("body"); 9 | 10 | 11 | /*============================================== 12 | Pre loader init 13 | ===============================================*/ 14 | 15 | var $portfolio = $('.portfolio').masonry({ 16 | itemSelector: '.portfolio-item', 17 | }); 18 | 19 | if ($('.ajaxloadpost .next').length > 0) { 20 | var masonry = $portfolio.data('masonry'); 21 | $portfolio.infiniteScroll({ 22 | path: '.next', 23 | append: '.portfolio-item', 24 | hideNav: '.ajaxloadpost', 25 | status: '.page-load-status', 26 | history: false, 27 | scrollThreshold: 100, 28 | outlayer: masonry 29 | }); 30 | 31 | $('.portfolio').on('append.infiniteScroll', function () { 32 | $("img.lazyload").lazyload({ 33 | onLoaded: lazyloaded 34 | }); 35 | }); 36 | } 37 | 38 | function lazyloaded() { 39 | $portfolio.masonry('layout'); 40 | } 41 | 42 | $window.on("load", function () { 43 | $("#loading").fadeOut(); 44 | $("#tb-preloader").delay(200).fadeOut("slow").remove(); 45 | $("img.lazyload").lazyload({ 46 | onLoaded: lazyloaded 47 | }); 48 | $(".js-primary-navigation").menuzord(); 49 | }); 50 | 51 | /*============================================== 52 | Wow init 53 | ===============================================*/ 54 | if (typeof WOW == "function") 55 | new WOW().init(); 56 | })(jQuery); -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 23 | 24 | 25 | 37 | 38 | 39 | 41 | 43 | 45 | 47 | 49 | is('post') || $this->is('page'))) : ?> 50 | 51 | 52 | 53 | 54 | 55 |