├── page.php ├── single.php ├── category.php ├── screenshot.png ├── template-reader.php ├── template-homepage.php ├── assets ├── images │ ├── logo.png │ ├── tx │ │ ├── 1.png │ │ ├── 10.png │ │ ├── 100.png │ │ ├── 11.png │ │ ├── 12.png │ │ ├── 13.png │ │ ├── 14.png │ │ ├── 15.png │ │ ├── 16.png │ │ ├── 17.png │ │ ├── 18.png │ │ ├── 19.png │ │ ├── 2.png │ │ ├── 20.png │ │ ├── 21.png │ │ ├── 22.png │ │ ├── 23.png │ │ ├── 24.png │ │ ├── 25.png │ │ ├── 26.png │ │ ├── 27.png │ │ ├── 28.png │ │ ├── 29.png │ │ ├── 3.png │ │ ├── 30.png │ │ ├── 31.png │ │ ├── 32.png │ │ ├── 33.png │ │ ├── 34.png │ │ ├── 35.png │ │ ├── 36.png │ │ ├── 37.png │ │ ├── 38.png │ │ ├── 39.png │ │ ├── 4.png │ │ ├── 40.png │ │ ├── 41.png │ │ ├── 42.png │ │ ├── 43.png │ │ ├── 44.png │ │ ├── 45.png │ │ ├── 46.png │ │ ├── 47.png │ │ ├── 48.png │ │ ├── 49.png │ │ ├── 5.png │ │ ├── 50.png │ │ ├── 51.png │ │ ├── 52.png │ │ ├── 53.png │ │ ├── 54.png │ │ ├── 55.png │ │ ├── 56.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 59.png │ │ ├── 6.png │ │ ├── 60.png │ │ ├── 61.png │ │ ├── 62.png │ │ ├── 63.png │ │ ├── 64.png │ │ ├── 65.png │ │ ├── 66.png │ │ ├── 67.png │ │ ├── 68.png │ │ ├── 69.png │ │ ├── 7.png │ │ ├── 70.png │ │ ├── 71.png │ │ ├── 72.png │ │ ├── 73.png │ │ ├── 74.png │ │ ├── 75.png │ │ ├── 76.png │ │ ├── 77.png │ │ ├── 78.png │ │ ├── 79.png │ │ ├── 8.png │ │ ├── 80.png │ │ ├── 81.png │ │ ├── 82.png │ │ ├── 83.png │ │ ├── 84.png │ │ ├── 85.png │ │ ├── 86.png │ │ ├── 87.png │ │ ├── 88.png │ │ ├── 89.png │ │ ├── 9.png │ │ ├── 90.png │ │ ├── 91.png │ │ ├── 92.png │ │ ├── 93.png │ │ ├── 94.png │ │ ├── 95.png │ │ ├── 96.png │ │ ├── 97.png │ │ ├── 98.png │ │ └── 99.png │ ├── weixin.png │ ├── default.png │ ├── ADS-300-250.png │ ├── blank90_60.png │ ├── logo-codi.png │ ├── weixin_300.png │ ├── weixin_560.png │ ├── blank220_150.png │ ├── blank250_170.png │ ├── blank250_180.png │ ├── blank325_170.png │ ├── footer-shadow.png │ └── ADS-300-250-001.png ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 ├── google-code-prettify │ ├── lang-rd.js │ ├── lang-go.js │ ├── lang-tex.js │ ├── lang-proto.js │ ├── lang-llvm.js │ ├── lang-yaml.js │ ├── lang-basic.js │ ├── lang-wiki.js │ ├── lang-lua.js │ ├── lang-hs.js │ ├── lang-erlang.js │ ├── lang-tcl.js │ ├── prettify.css │ ├── lang-r.js │ ├── lang-pascal.js │ ├── lang-lisp.js │ ├── lang-css.js │ ├── lang-mumps.js │ ├── lang-scala.js │ ├── lang-dart.js │ ├── lang-apollo.js │ ├── lang-ml.js │ ├── lang-n.js │ ├── lang-vhdl.js │ ├── lang-clj.js │ ├── lang-vb.js │ └── lang-sql.js ├── js │ ├── customizer.js │ ├── my_quicktags.js │ ├── customizer-preview.js │ ├── theme.js │ ├── jquery.fitvids.js │ ├── weixin.js │ └── weixin_bak_20160613.js ├── sass │ ├── _contents.scss │ ├── style.scss │ ├── _supports.scss │ ├── _variables.scss │ ├── _widgets.scss │ ├── _patterns.scss │ ├── _site.scss │ └── _elements.scss └── css │ └── editor-style.css ├── template-sitemappage.php ├── languages ├── zh_CN - 原始版本.mo └── readme.txt ├── template-parts ├── content-breadcrumb.php ├── content-links.php ├── xmlmap.php ├── content-page.php ├── content-search.php ├── content-none.php ├── content.php ├── content-list.php ├── content-author.php ├── content-grid.php ├── content-single.php ├── xmlmap_sp.php ├── content-reader.php ├── sitemap.php ├── content-share.php ├── content-sitemap.php ├── content-cnshare.php └── content-related.php ├── inc ├── customizer-controls.php ├── dashboard.php ├── extras.php ├── widgets │ ├── block_6_widget.php │ ├── block_8_widget.php │ ├── block_7_widget.php │ └── block_4_widget.php └── customizer.php ├── sidebar.php ├── template-fullwidth.php ├── footer.php ├── readme.txt ├── README.md ├── search.php ├── comments.php ├── archive.php ├── index.php ├── 404.php └── header.php /page.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/page.php -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/single.php -------------------------------------------------------------------------------- /category.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/category.php -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/screenshot.png -------------------------------------------------------------------------------- /template-reader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/template-reader.php -------------------------------------------------------------------------------- /template-homepage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/template-homepage.php -------------------------------------------------------------------------------- /assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/logo.png -------------------------------------------------------------------------------- /assets/images/tx/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/1.png -------------------------------------------------------------------------------- /assets/images/tx/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/10.png -------------------------------------------------------------------------------- /assets/images/tx/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/100.png -------------------------------------------------------------------------------- /assets/images/tx/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/11.png -------------------------------------------------------------------------------- /assets/images/tx/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/12.png -------------------------------------------------------------------------------- /assets/images/tx/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/13.png -------------------------------------------------------------------------------- /assets/images/tx/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/14.png -------------------------------------------------------------------------------- /assets/images/tx/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/15.png -------------------------------------------------------------------------------- /assets/images/tx/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/16.png -------------------------------------------------------------------------------- /assets/images/tx/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/17.png -------------------------------------------------------------------------------- /assets/images/tx/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/18.png -------------------------------------------------------------------------------- /assets/images/tx/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/19.png -------------------------------------------------------------------------------- /assets/images/tx/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/2.png -------------------------------------------------------------------------------- /assets/images/tx/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/20.png -------------------------------------------------------------------------------- /assets/images/tx/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/21.png -------------------------------------------------------------------------------- /assets/images/tx/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/22.png -------------------------------------------------------------------------------- /assets/images/tx/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/23.png -------------------------------------------------------------------------------- /assets/images/tx/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/24.png -------------------------------------------------------------------------------- /assets/images/tx/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/25.png -------------------------------------------------------------------------------- /assets/images/tx/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/26.png -------------------------------------------------------------------------------- /assets/images/tx/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/27.png -------------------------------------------------------------------------------- /assets/images/tx/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/28.png -------------------------------------------------------------------------------- /assets/images/tx/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/29.png -------------------------------------------------------------------------------- /assets/images/tx/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/3.png -------------------------------------------------------------------------------- /assets/images/tx/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/30.png -------------------------------------------------------------------------------- /assets/images/tx/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/31.png -------------------------------------------------------------------------------- /assets/images/tx/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/32.png -------------------------------------------------------------------------------- /assets/images/tx/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/33.png -------------------------------------------------------------------------------- /assets/images/tx/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/34.png -------------------------------------------------------------------------------- /assets/images/tx/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/35.png -------------------------------------------------------------------------------- /assets/images/tx/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/36.png -------------------------------------------------------------------------------- /assets/images/tx/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/37.png -------------------------------------------------------------------------------- /assets/images/tx/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/38.png -------------------------------------------------------------------------------- /assets/images/tx/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/39.png -------------------------------------------------------------------------------- /assets/images/tx/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/4.png -------------------------------------------------------------------------------- /assets/images/tx/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/40.png -------------------------------------------------------------------------------- /assets/images/tx/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/41.png -------------------------------------------------------------------------------- /assets/images/tx/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/42.png -------------------------------------------------------------------------------- /assets/images/tx/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/43.png -------------------------------------------------------------------------------- /assets/images/tx/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/44.png -------------------------------------------------------------------------------- /assets/images/tx/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/45.png -------------------------------------------------------------------------------- /assets/images/tx/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/46.png -------------------------------------------------------------------------------- /assets/images/tx/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/47.png -------------------------------------------------------------------------------- /assets/images/tx/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/48.png -------------------------------------------------------------------------------- /assets/images/tx/49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/49.png -------------------------------------------------------------------------------- /assets/images/tx/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/5.png -------------------------------------------------------------------------------- /assets/images/tx/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/50.png -------------------------------------------------------------------------------- /assets/images/tx/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/51.png -------------------------------------------------------------------------------- /assets/images/tx/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/52.png -------------------------------------------------------------------------------- /assets/images/tx/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/53.png -------------------------------------------------------------------------------- /assets/images/tx/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/54.png -------------------------------------------------------------------------------- /assets/images/tx/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/55.png -------------------------------------------------------------------------------- /assets/images/tx/56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/56.png -------------------------------------------------------------------------------- /assets/images/tx/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/57.png -------------------------------------------------------------------------------- /assets/images/tx/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/58.png -------------------------------------------------------------------------------- /assets/images/tx/59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/59.png -------------------------------------------------------------------------------- /assets/images/tx/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/6.png -------------------------------------------------------------------------------- /assets/images/tx/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/60.png -------------------------------------------------------------------------------- /assets/images/tx/61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/61.png -------------------------------------------------------------------------------- /assets/images/tx/62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/62.png -------------------------------------------------------------------------------- /assets/images/tx/63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/63.png -------------------------------------------------------------------------------- /assets/images/tx/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/64.png -------------------------------------------------------------------------------- /assets/images/tx/65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/65.png -------------------------------------------------------------------------------- /assets/images/tx/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/66.png -------------------------------------------------------------------------------- /assets/images/tx/67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/67.png -------------------------------------------------------------------------------- /assets/images/tx/68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/68.png -------------------------------------------------------------------------------- /assets/images/tx/69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/69.png -------------------------------------------------------------------------------- /assets/images/tx/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/7.png -------------------------------------------------------------------------------- /assets/images/tx/70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/70.png -------------------------------------------------------------------------------- /assets/images/tx/71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/71.png -------------------------------------------------------------------------------- /assets/images/tx/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/72.png -------------------------------------------------------------------------------- /assets/images/tx/73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/73.png -------------------------------------------------------------------------------- /assets/images/tx/74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/74.png -------------------------------------------------------------------------------- /assets/images/tx/75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/75.png -------------------------------------------------------------------------------- /assets/images/tx/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/76.png -------------------------------------------------------------------------------- /assets/images/tx/77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/77.png -------------------------------------------------------------------------------- /assets/images/tx/78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/78.png -------------------------------------------------------------------------------- /assets/images/tx/79.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/79.png -------------------------------------------------------------------------------- /assets/images/tx/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/8.png -------------------------------------------------------------------------------- /assets/images/tx/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/80.png -------------------------------------------------------------------------------- /assets/images/tx/81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/81.png -------------------------------------------------------------------------------- /assets/images/tx/82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/82.png -------------------------------------------------------------------------------- /assets/images/tx/83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/83.png -------------------------------------------------------------------------------- /assets/images/tx/84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/84.png -------------------------------------------------------------------------------- /assets/images/tx/85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/85.png -------------------------------------------------------------------------------- /assets/images/tx/86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/86.png -------------------------------------------------------------------------------- /assets/images/tx/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/87.png -------------------------------------------------------------------------------- /assets/images/tx/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/88.png -------------------------------------------------------------------------------- /assets/images/tx/89.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/89.png -------------------------------------------------------------------------------- /assets/images/tx/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/9.png -------------------------------------------------------------------------------- /assets/images/tx/90.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/90.png -------------------------------------------------------------------------------- /assets/images/tx/91.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/91.png -------------------------------------------------------------------------------- /assets/images/tx/92.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/92.png -------------------------------------------------------------------------------- /assets/images/tx/93.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/93.png -------------------------------------------------------------------------------- /assets/images/tx/94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/94.png -------------------------------------------------------------------------------- /assets/images/tx/95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/95.png -------------------------------------------------------------------------------- /assets/images/tx/96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/96.png -------------------------------------------------------------------------------- /assets/images/tx/97.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/97.png -------------------------------------------------------------------------------- /assets/images/tx/98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/98.png -------------------------------------------------------------------------------- /assets/images/tx/99.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/tx/99.png -------------------------------------------------------------------------------- /assets/images/weixin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/weixin.png -------------------------------------------------------------------------------- /template-sitemappage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/template-sitemappage.php -------------------------------------------------------------------------------- /assets/images/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/default.png -------------------------------------------------------------------------------- /languages/zh_CN - 原始版本.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/languages/zh_CN - 原始版本.mo -------------------------------------------------------------------------------- /assets/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /assets/images/ADS-300-250.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/ADS-300-250.png -------------------------------------------------------------------------------- /assets/images/blank90_60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/blank90_60.png -------------------------------------------------------------------------------- /assets/images/logo-codi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/logo-codi.png -------------------------------------------------------------------------------- /assets/images/weixin_300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/weixin_300.png -------------------------------------------------------------------------------- /assets/images/weixin_560.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/weixin_560.png -------------------------------------------------------------------------------- /assets/images/blank220_150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/blank220_150.png -------------------------------------------------------------------------------- /assets/images/blank250_170.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/blank250_170.png -------------------------------------------------------------------------------- /assets/images/blank250_180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/blank250_180.png -------------------------------------------------------------------------------- /assets/images/blank325_170.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/blank325_170.png -------------------------------------------------------------------------------- /assets/images/footer-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/footer-shadow.png -------------------------------------------------------------------------------- /assets/images/ADS-300-250-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/images/ADS-300-250-001.png -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yehaicao/WordPressThemeWordPressLeaf_cn/HEAD/assets/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-rd.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); 2 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-go.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); 2 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-tex.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); 2 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /assets/js/customizer.js: -------------------------------------------------------------------------------- 1 | 2 | jQuery( document ).ready( function( $ ){ 3 | $('#customize-info .accordion-section-title').append('访问WordPres Leaf获取帮助'); 4 | } ); 5 | -------------------------------------------------------------------------------- /languages/readme.txt: -------------------------------------------------------------------------------- 1 | Place your theme language files in this directory. 2 | 3 | Please visit the following links to learn more about translating WordPress themes: 4 | 5 | https://make.wordpress.org/polyglots/teams/ 6 | https://developer.wordpress.org/themes/functionality/localization/ 7 | https://developer.wordpress.org/reference/functions/load_theme_textdomain/ 8 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-llvm.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); 2 | -------------------------------------------------------------------------------- /assets/sass/_contents.scss: -------------------------------------------------------------------------------- 1 | // main: style.scss 2 | /* Entry Content Stuffs 3 | --------------------------------------------------------------*/ 4 | .entry-content { 5 | @include rem('margin-top', 25px); 6 | @include rem('margin-bottom', 25px); 7 | ul li, ol li { 8 | @include rem('margin-bottom', 5px); 9 | } 10 | } 11 | 12 | .entry-title { 13 | hyphens: auto; 14 | } 15 | -------------------------------------------------------------------------------- /template-parts/content-breadcrumb.php: -------------------------------------------------------------------------------- 1 |
2 | 13 |
14 |
15 | 16 |
-------------------------------------------------------------------------------- /assets/google-code-prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-basic.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", 3 | /^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); 4 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-wiki.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); 2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-lua.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], 2 | ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-erlang.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], 2 | ["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-tcl.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", 3 | /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); 4 | -------------------------------------------------------------------------------- /assets/google-code-prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-r.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], 2 | ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-pascal.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], 3 | ["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); 4 | -------------------------------------------------------------------------------- /template-parts/content-links.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

友情链接

5 | 6 |
7 |
8 | 16 |
-------------------------------------------------------------------------------- /assets/google-code-prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); 4 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], 2 | ["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-mumps.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, 2 | null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-scala.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], 2 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-dart.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], 2 | ["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), 3 | ["dart"]); 4 | -------------------------------------------------------------------------------- /assets/js/my_quicktags.js: -------------------------------------------------------------------------------- 1 | QTags.addButton( 'hr', 'hr', "\n
\n", '' );//添加横线 2 | QTags.addButton( 'h2', 'h2', "\n

", "

\n" ); //添加标题2 3 | QTags.addButton( 'h3', 'h3', "\n

", "

\n" ); //添加标题3 4 | QTags.addButton( 'pre', 'pre', '\n
\n', "\n
" );//添加高亮代码 5 | QTags.addButton( 'figure', 'figure', '\n
WordPressLeaf.com
\n', "" ); 6 | QTags.addButton( 'wangpanl', '网盘', '[download_baidu leaf="" href=""][/download_baidu]', '' ); //添加网盘下载 7 | QTags.addButton( 'github', 'github', '[download_github leaf="" href=""][/download_github]', '' ); //添加github下载 8 | QTags.addButton( 'bendi', '本地', '[download_local leaf="" href=""][/download_local]', '' ); //添加本地下载 9 | QTags.addButton( 'demo', '演示', '[leaf_demo leaf="" href=""][/leaf_demo]', '' ); //添加本地下载 10 | //这儿共有四对引号,分别是按钮的ID、显示名、点一下输入内容、再点一下关闭内容(此为空则一次输入全部内容),\n表示换行。 -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-apollo.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, 2 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); 3 | -------------------------------------------------------------------------------- /template-parts/xmlmap.php: -------------------------------------------------------------------------------- 1 | '; 8 | echo ''; 10 | ?> 11 | 12 | 16 | 17 | 18 | 19 | monthly 20 | 0.6 21 | 22 | 23 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-ml.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], 2 | ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); 3 | -------------------------------------------------------------------------------- /assets/js/customizer-preview.js: -------------------------------------------------------------------------------- 1 | /** 2 | * customizer.js 3 | * 4 | * Theme Customizer enhancements for a better user experience. 5 | * 6 | * Contains handlers to make Theme Customizer preview reload changes asynchronously. 7 | */ 8 | 9 | ( function( $ ) { 10 | // Site title and description. 11 | wp.customize( 'blogname', function( value ) { 12 | value.bind( function( to ) { 13 | $( '.site-title a' ).text( to ); 14 | } ); 15 | } ); 16 | wp.customize( 'blogdescription', function( value ) { 17 | value.bind( function( to ) { 18 | $( '.site-description' ).text( to ); 19 | } ); 20 | } ); 21 | // Header text color. 22 | wp.customize( 'header_textcolor', function( value ) { 23 | value.bind( function( to ) { 24 | if ( 'blank' === to ) { 25 | $( '.site-title a, .site-description' ).css( { 26 | 'clip': 'rect(1px, 1px, 1px, 1px)', 27 | 'position': 'absolute' 28 | } ); 29 | } else { 30 | $( '.site-title a, .site-description' ).css( { 31 | 'clip': 'auto', 32 | 'color': to, 33 | 'position': 'relative' 34 | } ); 35 | } 36 | } ); 37 | } ); 38 | } )( jQuery ); 39 | -------------------------------------------------------------------------------- /template-parts/content-page.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); ?> 15 |
16 | 17 |
18 | 19 | '', 23 | ) ); 24 | ?> 25 |
26 | 27 | 40 |
41 | 42 | -------------------------------------------------------------------------------- /template-parts/content-search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 | 14 |
15 | 16 | 17 | 18 |
19 | 20 |
21 |
22 | ', esc_url( get_permalink() ) ), '' ); ?> 23 | 24 |
25 | 26 |
27 | 28 |
29 |
30 |
31 | -------------------------------------------------------------------------------- /inc/customizer-controls.php: -------------------------------------------------------------------------------- 1 | type ) { 18 | default: 19 | 20 | case 'heading': 21 | echo '' . $this->title . ''; 22 | break; 23 | 24 | case 'custom_message' : 25 | echo '

' . $this->description . '

'; 26 | break; 27 | 28 | case 'hr' : 29 | echo '
'; 30 | break; 31 | } 32 | } 33 | } 34 | 35 | 36 | class Codilight_Lite_Theme_Support extends WP_Customize_Control { 37 | public function render_content() { 38 | echo __( '访问 WordPress Leaf获取主题设置帮助信息!', 'codilight-lite' ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /template-parts/content-none.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 16 | 17 |
18 | 19 | 20 |

从这里开始。', 'codilight-lite' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?>

21 | 22 | 23 | 24 |

25 | 26 | 27 | 28 | 29 |

30 | 31 | 32 | 33 |
34 |
35 | -------------------------------------------------------------------------------- /sidebar.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 40 | 41 | -------------------------------------------------------------------------------- /assets/sass/style.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Codilight Lite 3 | Theme URI: http://www.famethemes.com/themes/codilight-lite 4 | Author: FameThemes 5 | Author URI: http://www.famethemes.com 6 | Description: Codilight Lite is a news magazine style WordPress theme from FameThemes which is a perfect option to create any kind of magazine or blog websites. 7 | Version: 1.0.7 8 | Text Domain: codilight-lite 9 | License: GNU General Public License v2 or later 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 | Tags:two-columns, left-sidebar, right-sidebar, green, light, responsive-layout, custom-background, custom-colors, custom-menu, editor-style, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready 12 | */ 13 | /*-------------------------------------------------------------- 14 | >>> TABLE OF CONTENTS: 15 | ---------------------------------------------------------------*/ 16 | 17 | 18 | @import "variables"; 19 | @import "reset"; 20 | @import "elements"; 21 | @import "layout"; 22 | @import "patterns"; 23 | 24 | @import "site"; 25 | @import "navigation"; 26 | @import "blocks"; 27 | @import "template_parts"; 28 | @import "contents"; 29 | @import "widgets"; 30 | @import "supports"; 31 | -------------------------------------------------------------------------------- /template-fullwidth.php: -------------------------------------------------------------------------------- 1 | 20 |
21 |
22 |
23 |
24 | 25 | 26 | 27 | 28 | 29 | 35 | 36 | 37 | 38 |
39 |
40 | 41 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /template-parts/content.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', esc_url( get_permalink() ) ), '' ); ?> 15 | 16 | 17 | 20 | 21 |
22 | 23 |
24 | →', 'codilight-lite' ), array( 'span' => array( 'class' => array() ) ) ), 28 | the_title( '"', '"', false ) 29 | ) ); 30 | ?> 31 | 32 | '', 36 | ) ); 37 | ?> 38 |
39 | 40 |
41 | 42 |
43 |
44 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-vhdl.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[box]?"(?:[^"]|"")*"|'.')/i],["com",/^--[^\n\r]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, 2 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance_name|last_active|last_event|last_value|left|leftof|length|low|path_name|pos|pred|quiet|range|reverse_range|right|rightof|simple_name|stable|succ|transaction|val|value)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w.\\]+#(?:[+-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:e[+-]?\d+(?:_\d+)*)?)/i], 3 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'\xa0-]*/]]),["vhdl","vhd"]); 4 | -------------------------------------------------------------------------------- /template-parts/content-list.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 41 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-clj.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 Google Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | var a=null; 17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], 18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); 19 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 12 |
13 |
14 | 21 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /template-parts/content-author.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | 捐赠本站 5 | 6 |
7 |
8 | 25 | 28 |
29 |
-------------------------------------------------------------------------------- /template-parts/content-grid.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | 15 | '; 20 | } 21 | ?> 22 | 23 | term_id ).'">'.$category[0]->cat_name.''; 27 | } 28 | ?> 29 |
30 |
31 |
32 | ', esc_url( get_permalink() ) ), '' ); ?> 33 | 34 |
35 | 36 |
37 | 38 |
39 |
40 |
41 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | 中文免费WordPressLeaf主题 1.2.0 2 | 3 | WordPressLeaf是一个干净、具有现代感、完全响应式设计的免费的wordpress主题。 4 | 5 | 它虽然是免费的,但丝毫不逊色于收费主题。 6 | 7 | WordPressLeaf适用于杂志、新闻、博客的网站。WordPressLeaf主题是在codilight_lite主题的基础上,根据国内的实际情况汉化增强而来。codilight_lite主题已被彻底汉化,增加了非常多的内容和结构,所以取名为WordPressLeaf。 8 | 9 | WordPressLeaf主题响应式的设计,让WordPressLeaf适合所有平板、手机等移动设备阅读,极其简单的风格。一个简洁的主题可以很好的为读者提供纯净的阅读空间,足够干净的阅读空间和简练的排版让读者感到舒适。 10 | 11 | 主题演示站点:http://www.wordpressleaf.com/ 12 | 主题支持站点:http://www.wordpressleaf.com/ 13 | 14 | 主题特色: 15 | 16 | 干净、现代设计可以用于任何类型的网站 17 | 充分响应 18 | 主题选项面板 19 | SEO优化 20 | 谷歌字体 21 | WordPress 4.5.3 22 | 自定义首页标题 23 | 自定义首页关键字 24 | 自定义首页描述 25 | 定制菜单 26 | 浮动式顶部菜单 27 | 跨浏览器支持 28 | 八种小工具 29 | 五类侧边栏 30 | 文章列表两种布局 31 | 内置分页 32 | 自定义分享 33 | 自定义关注 34 | 自定义近期头像评论 35 | 首页幻灯片 36 | 特色公告栏 37 | 面包屑导航 38 | 相关文章 39 | 社交分享 40 | 头像缓存 41 | 代码高显 42 | 广告栏 43 | 友情链接 44 | 读者墙 45 | 站点地图 46 | 文章出站链接nofollow 47 | 还有很多… 48 | 49 | 50 | 注意 51 | 52 | WordPressLeaf主题能够在PHP5.4和PHP7上完美运行,它所使用的WordPress版本为4.5.3。 53 | 54 | 如果在其他的环境下遇到任何问题,你可以在本站反馈。 55 | 56 | 警告 57 | 58 | WordPressLeaf主题具有后台登录地址隐藏功能,该功能保护你的后台登录地址不被人知晓。该功能在主题安装后默认为关闭状态。如果你发现你输入后台地址后,网页跳转到首页,那么说明该功能在你不经意间设置开启了。 59 | 60 | 如果你没有修改过参数的话,那么后台登录地址应该为: 61 | 62 | http://yoursite/wp-login.php?love=wordpressleaf 63 | 64 | 如果,你修改了参数,那么请来本站寻求帮助。 65 | 66 | 如果你开启了这项功能,请牢记你的后台登录地址,写在某个本子上,或放入收藏夹。 67 | 68 | 说明 69 | 70 | 友情链接区默认的链接都做了nofollow,不会影响你的权重,希望你能够保留。 71 | 72 | 底部的主题版权信息也做了nofollow,建议你保留。 73 | 74 | 谢谢。 75 | 76 | 你可以访问这个站点获得帮助:http://www.wordpressleaf.com/ 77 | 78 | 79 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WordPressThemeWordPressLeaf_cn 2 | WordPress Theme WordPressLeaf WordPress中文主题WordPressLeaf 3 | 4 | 中文免费WordPressLeaf主题 1.2.0 5 | 6 | WordPressLeaf是一个干净、具有现代感、完全响应式设计的免费的wordpress主题。它虽然是免费的,但丝毫不逊色于收费主题。 7 | 8 | WordPressLeaf适用于杂志、新闻、博客的网站。WordPressLeaf主题是在codilight_lite主题的基础上,根据国内的实际情况汉化增强而来。codilight_lite主题已被彻底汉化,增加了非常多的内容和结构,所以取名为WordPressLeaf。 9 | 10 | WordPressLeaf主题响应式的设计,让WordPressLeaf适合所有平板、手机等移动设备阅读,极其简单的风格。一个简洁的主题可以很好的为读者提供纯净的阅读空间,足够干净的阅读空间和简练的排版让读者感到舒适。 11 | 12 | 主题演示站点:http://www.wordpressleaf.com/ 13 | 主题支持站点:http://www.wordpressleaf.com/ 14 | 15 | 主题特色: 16 | 17 | 干净、现代设计可以用于任何类型的网站 18 | 充分响应 19 | 主题选项面板 20 | SEO优化 21 | 谷歌字体 22 | WordPress 4.5.3 23 | 自定义首页标题 24 | 自定义首页关键字 25 | 自定义首页描述 26 | 定制菜单 27 | 浮动式顶部菜单 28 | 跨浏览器支持 29 | 八种小工具 30 | 五类侧边栏 31 | 文章列表两种布局 32 | 内置分页 33 | 自定义分享 34 | 自定义关注 35 | 自定义近期头像评论 36 | 首页幻灯片 37 | 特色公告栏 38 | 面包屑导航 39 | 相关文章 40 | 社交分享 41 | 头像缓存 42 | 代码高显 43 | 广告栏 44 | 友情链接 45 | 读者墙 46 | 站点地图 47 | 文章出站链接nofollow 48 | 还有很多… 49 | 50 | 51 | 注意 52 | 53 | WordPressLeaf主题能够在PHP5.4和PHP7上完美运行,它所使用的WordPress版本为4.5.3。 54 | 55 | 如果在其他的环境下遇到任何问题,你可以在本站反馈。 56 | 57 | 警告 58 | 59 | WordPressLeaf主题具有后台登录地址隐藏功能,该功能保护你的后台登录地址不被人知晓。该功能在主题安装后默认为关闭状态。如果你发现你输入后台地址后,网页跳转到首页,那么说明该功能在你不经意间设置开启了。 60 | 61 | 如果你没有修改过参数的话,那么后台登录地址应该为: 62 | 63 | http://yoursite/wp-login.php?love=wordpressleaf 64 | 65 | 如果,你修改了参数,那么请来本站寻求帮助。 66 | 67 | 如果你开启了这项功能,请牢记你的后台登录地址,写在某个本子上,或放入收藏夹。 68 | 69 | 说明 70 | 71 | 友情链接区默认的链接都做了nofollow,不会影响你的权重,希望你能够保留。 72 | 73 | 底部的主题版权信息也做了nofollow,建议你保留。 74 | 75 | 谢谢。 76 | 77 | 你可以访问这个站点获得帮助:http://www.wordpressleaf.com/ 78 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-vb.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})(?:["\u201c\u201d]c|$)|["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})*(?:["\u201c\u201d]|$))/i,null,'"\u201c\u201d'],["com",/^['\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\n\r_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:addhandler|addressof|alias|and|andalso|ansi|as|assembly|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdbl|cdec|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do|double|each|else|elseif|end|endif|enum|erase|error|event|exit|finally|for|friend|function|get|gettype|gosub|goto|handles|if|implements|imports|in|inherits|integer|interface|is|let|lib|like|long|loop|me|mod|module|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not|notinheritable|notoverridable|object|on|option|optional|or|orelse|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|try|typeof|unicode|until|variant|wend|when|while|with|withevents|writeonly|xor|endif|gosub|let|variant|wend)\b/i, 2 | null],["com",/^rem\b.*/i],["lit",/^(?:true\b|false\b|nothing\b|\d+(?:e[+-]?\d+[dfr]?|[dfilrs])?|(?:&h[\da-f]+|&o[0-7]+)[ils]?|\d*\.\d+(?:e[+-]?\d+)?[dfr]?|#\s+(?:\d+[/-]\d+[/-]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:am|pm))?)?|\d+:\d+(?::\d+)?(\s*(?:am|pm))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[!#%&@]+])?|\[(?:[a-z]|_\w)\w*])/i],["pun",/^[^\w\t\n\r "'[\]\xa0\u2018\u2019\u201c\u201d\u2028\u2029]+/],["pun",/^(?:\[|])/]]),["vb","vbs"]); 3 | -------------------------------------------------------------------------------- /assets/google-code-prettify/lang-sql.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|apply|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|connect|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|following|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|matched|merge|natural|national|nocheck|nonclustered|nocycle|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|partition|percent|pivot|plan|preceding|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rows?|rule|save|schema|select|session_user|set|setuser|shutdown|some|start|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|unbounded|union|unique|unpivot|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|within|writetext|xml)(?=[^\w-]|$)/i, 2 | null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]); 3 | -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 15 |
16 |
17 |
18 | 19 | 20 | 21 | 24 | 25 | max_num_pages; 28 | $current_page = max(1, get_query_var('paged')); 29 | 30 | echo '
'; 31 | while ( have_posts() ) : the_post(); 32 | get_template_part( 'template-parts/content-search' ); 33 | endwhile; 34 | /** 35 | * Show pagination if more than 1 page. 36 | */ 37 | if ( $wp_query->max_num_pages > 1 ) { 38 | echo '
'; 39 | the_posts_pagination(array( 40 | 'prev_next' => True, 41 | 'prev_text' => '', 42 | 'next_text' => '', 43 | 'before_page_number' => '' . __('页面', 'codilight-lite') . ' ', 44 | )); 45 | printf( ''. esc_html__( '页面 %1$s / %2$s', 'codilight-lite' ) .'', $current_page, $total_pages ); 46 | echo '
'; 47 | } 48 | 49 | echo '
'; 50 | ?> 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
59 |
60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /assets/js/theme.js: -------------------------------------------------------------------------------- 1 | /** 2 | * skip-link-focus-fix.js 3 | * 4 | * Helps with accessibility for keyboard only users. 5 | * 6 | * Learn more: https://git.io/vWdr2 7 | */ 8 | ( function() { 9 | var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 10 | is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 11 | is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 12 | 13 | if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) { 14 | window.addEventListener( 'hashchange', function() { 15 | var id = location.hash.substring( 1 ), 16 | element; 17 | 18 | if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 19 | return; 20 | } 21 | 22 | element = document.getElementById( id ); 23 | 24 | if ( element ) { 25 | if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 26 | element.tabIndex = -1; 27 | } 28 | 29 | element.focus(); 30 | } 31 | }, false ); 32 | } 33 | })(); 34 | 35 | /** 36 | * Initialise Menu Toggle 37 | */ 38 | ( function() { 39 | 40 | jQuery('#nav-toggle').on( 'click' , function(event) { 41 | event.preventDefault(); 42 | jQuery('body,html').animate({scrollTop:0},800); 43 | jQuery(this).toggleClass('nav-is-visible'); 44 | jQuery('.mobile-navigation').toggleClass("mobile-nav-open"); 45 | }); 46 | 47 | jQuery('.mobile-navigation li.menu-item-has-children, .mobile-navigation li.page_item_has_children').each( function() { 48 | jQuery(this).prepend(''); 49 | }); 50 | 51 | jQuery('.nav-toggle-subarrow, .nav-toggle-subarrow .nav-toggle-subarrow').click( 52 | function () { 53 | jQuery(this).parent().toggleClass("nav-toggle-dropdown"); 54 | } 55 | ); 56 | 57 | } )(); 58 | 59 | /** 60 | * Responsive Videos 61 | */ 62 | ( function() { 63 | jQuery('body').fitVids(); 64 | })(); 65 | 66 | jQuery(document).ready(function() { 67 | jQuery('#secondary').theiaStickySidebar({ 68 | // Settings 69 | additionalMarginTop: 30 70 | }); 71 | jQuery('#primary').theiaStickySidebar({ 72 | // Settings 73 | additionalMarginTop: 30 74 | }); 75 | }); -------------------------------------------------------------------------------- /assets/sass/_supports.scss: -------------------------------------------------------------------------------- 1 | // main: style.scss 2 | /*-------------------------------------------------------------- 3 | # Slick 4 | --------------------------------------------------------------*/ 5 | .slick-slider { 6 | position: relative; 7 | display: block; 8 | -moz-box-sizing: border-box; 9 | box-sizing: border-box; 10 | -webkit-touch-callout: none; 11 | -webkit-user-select: none; 12 | -khtml-user-select: none; 13 | -moz-user-select: none; 14 | -ms-user-select: none; 15 | user-select: none; 16 | -ms-touch-action: pan-y; 17 | touch-action: pan-y; 18 | -webkit-tap-highlight-color: transparent; 19 | } 20 | .slick-list { 21 | position: relative; 22 | overflow: hidden; 23 | display: block; 24 | margin: 0; 25 | padding: 0; 26 | 27 | &:focus { 28 | outline: none; 29 | } 30 | 31 | &.dragging { 32 | cursor: pointer; 33 | cursor: hand; 34 | } 35 | } 36 | .slick-slider .slick-track, 37 | .slick-slider .slick-list { 38 | -webkit-transform: translate3d(0, 0, 0); 39 | -moz-transform: translate3d(0, 0, 0); 40 | -ms-transform: translate3d(0, 0, 0); 41 | -o-transform: translate3d(0, 0, 0); 42 | transform: translate3d(0, 0, 0); 43 | } 44 | 45 | .slick-track { 46 | position: relative; 47 | left: 0; 48 | top: 0; 49 | display: block; 50 | 51 | &:before, 52 | &:after { 53 | content: ""; 54 | display: table; 55 | } 56 | 57 | &:after { 58 | clear: both; 59 | } 60 | 61 | .slick-loading & { 62 | visibility: hidden; 63 | } 64 | } 65 | .slick-slide { 66 | float: left; 67 | height: 100%; 68 | min-height: 1px; 69 | [dir="rtl"] & { 70 | float: right; 71 | } 72 | img { 73 | display: block; 74 | } 75 | &.slick-loading img { 76 | display: none; 77 | } 78 | 79 | display: none; 80 | 81 | &.dragging img { 82 | pointer-events: none; 83 | } 84 | 85 | .slick-initialized & { 86 | display: block; 87 | } 88 | 89 | .slick-loading & { 90 | visibility: hidden; 91 | } 92 | 93 | .slick-vertical & { 94 | display: block; 95 | height: auto; 96 | border: 1px solid transparent; 97 | } 98 | } 99 | .slick-arrow.slick-hidden { 100 | display: none; 101 | } 102 | -------------------------------------------------------------------------------- /template-parts/content-single.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); ?> 15 | 16 |
17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 |
28 | 29 | 30 |
31 | 32 | 33 | 34 |

转载请注明:《

35 | '', 39 | ) ); 40 | ?> 41 |
42 | 43 |
44 | 45 | 46 | 48 | 49 | 53 | 54 |
55 |
56 | 57 | 58 |

59 | 60 |
61 |
62 | 63 | 64 |

65 | 66 |
67 |
68 | 69 | 70 | 71 | 72 |
73 |
74 | -------------------------------------------------------------------------------- /assets/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // main: style.scss 2 | 3 | // Variables 4 | //-------------------------------------------------------- 5 | 6 | // Text colors 7 | $text: #494949; 8 | $heading: #333333; 9 | 10 | // Active color 11 | $primary: #46a28d; 12 | $secondary: #f55e4f; 13 | 14 | // Mics color 15 | $border: #e9e9e9; 16 | $meta_color: #999999; 17 | $meta_bg: #f8f9f9; 18 | 19 | // Fonts 20 | $font_text: "Open Sans",Arial,sans-serif; 21 | $font_heading: "Raleway",Helvetica,Arial,sans-serif; 22 | $monaco: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; 23 | 24 | // Space 25 | $base: 25px; 26 | $gut: 25px; 27 | 28 | // Mixins 29 | //-------------------------------------------------------- 30 | 31 | // Media breakpoint 32 | @mixin media-breakpoint-up($device) { 33 | @if $device == sm { 34 | @media (min-width: 34em) { @content; } 35 | } 36 | @if $device == md { 37 | @media (min-width: 48em) { @content; } 38 | } 39 | @if $device == lg { 40 | @media (min-width: 62em) { @content; } 41 | } 42 | @if $device == xl { 43 | @media (min-width: 75em) { @content; } 44 | } 45 | } 46 | 47 | @mixin media-breakpoint-down($device) { 48 | @if $device == sm { 49 | @media (max-width: 33.9em) { @content; } 50 | } 51 | @if $device == md { 52 | @media (max-width: 47.9em) { @content; } 53 | } 54 | @if $device == lg { 55 | @media (max-width: 61.9em) { @content; } 56 | } 57 | @if $device == xl { 58 | @media (max-width: 74.9em) { @content; } 59 | } 60 | } 61 | 62 | // Use rem for better responsive 63 | $baseline-px: 16px; 64 | @mixin rem($property, $px-values) { 65 | 66 | $baseline-rem: $baseline-px / 1rem; 67 | 68 | #{$property}: $px-values; 69 | 70 | @if type-of($px-values) == "number" { 71 | #{$property}: $px-values / $baseline-rem; } 72 | @else { 73 | $rem-values: unquote(""); 74 | @each $value in $px-values { 75 | @if $value == 0 { 76 | $rem-values: append($rem-values, $value); } 77 | @else { 78 | $rem-values: append($rem-values, $value / $baseline-rem); } } 79 | #{$property}: $rem-values; } 80 | } 81 | 82 | // Center block 83 | @mixin center-block { 84 | display: block; 85 | margin-left: auto; 86 | margin-right: auto; 87 | } 88 | 89 | // Clearfix 90 | @mixin clearfix() { 91 | content: ""; 92 | display: table; 93 | } 94 | 95 | // Clear after (not all clearfix need this also) 96 | @mixin clearfix-after() { 97 | clear: both; 98 | } 99 | 100 | @mixin border-radius($radius: 2px) { 101 | -webkit-border-radius: $radius; 102 | -moz-border-radius: $radius; 103 | border-radius: $radius; 104 | } 105 | -------------------------------------------------------------------------------- /template-parts/xmlmap_sp.php: -------------------------------------------------------------------------------- 1 | '; 7 | echo ''; 9 | ?> 10 | 11 | 12 | 13 | 14 | daily 15 | 1.0 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | 29 | 30 | monthly 31 | 0.6 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 0) { 43 | foreach($mypages as $page) { ?> 44 | 45 | ID); ?> 46 | ID)->post_modified); ?> 47 | monthly 48 | 0.6 49 | 50 | 51 | ID); ?> 52 | 53 | 54 | 55 | 56 | 0){ 61 | foreach ($terms as $term) { ?> 62 | 63 | slug); ?> 64 | weekly 65 | 0.8 66 | 67 | 68 | slug); ?> 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /template-parts/content-reader.php: -------------------------------------------------------------------------------- 1 | get_results("select count(comment_author) as cnt, comment_author, comment_author_url, comment_author_email from (select * from $wpdb->comments left outer join $wpdb->posts on ($wpdb->posts.id=$wpdb->comments.comment_post_id) where comment_date > date_sub( now(), interval $timer month ) and user_id='0' and comment_author != '".$outer."' and post_password='' and comment_approved='1' and comment_type='') as tempcmt group by comment_author order by cnt desc limit $limit"); 14 | foreach ($counts as $count) { 15 | $c_url = $count->comment_author_url; 16 | if (!$c_url) $c_url = 'javascript:;'; 17 | $find = array("0.gravatar.com","1.gravatar.com"); 18 | $type .= ''.str_replace($find, 'secure.gravatar.com',get_avatar( $count->comment_author_email, $size = '64' , leaf_avatar_default() )).''.$count->comment_author.''; 19 | } 20 | echo $type; 21 | }; 22 | 23 | ?> 24 | 25 |
> 26 |
27 | ', '' ); ?> 28 |
29 | 30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 |
38 | 39 |
40 | 41 | 42 | '', 46 | ) ); 47 | ?> 48 |
49 | 50 |
51 | 52 | 53 |
54 | 网站最后更新时间: get_results("SELECT MAX(post_modified) AS MAX_m FROM $wpdb->posts WHERE (post_type = 'post' OR post_type = 'page') AND (post_status = 'publish' OR post_status = 'private')");$last = date('Y-m-d G:i:s', strtotime($last[0]->MAX_m));echo $last; ?>

55 |
56 | 57 | "', '"', false ) 63 | ), 64 | '', 65 | '' 66 | ); 67 | ?> 68 |
69 |
70 | 71 | 72 | -------------------------------------------------------------------------------- /template-parts/sitemap.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 站点地图 - <?php bloginfo('name'); ?> 11 | 12 | 13 | 14 | 25 | 26 | 27 |

's SiteMap

28 |
29 | 30 |
31 |

最新文章

32 |
    33 | 42 |
  • 43 | 44 |
45 |
46 |
47 |
  • 分类目录
      48 | 49 |
  • 50 |
    51 |
    52 |
  • 单页面
  • 53 | 54 |
    55 |
    56 |
    57 |
    Baidu-SiteMap Latest Update: get_results("SELECT MAX(post_modified) AS MAX_m FROM $wpdb->posts WHERE (post_type = 'post' OR post_type = 'page') AND (post_status = 'publish' OR post_status = 'private')");$last = date('Y-m-d G:i:s', strtotime($last[0]->MAX_m));echo $last; ?>

    58 | 59 | 60 |
    61 | 62 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 22 | 23 |
    24 | 25 | 26 | 27 | 28 |

    29 | 35 |

    36 | 37 | 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> 38 | 47 | 48 | 49 |
      50 | 'codilight_lite_comment' 53 | ) ); 54 | ?> 55 |
    56 | 57 | 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> 58 | 67 | 68 | 69 | 70 | 71 | 75 |

    76 | 77 | 78 | 79 | 80 |
    81 | -------------------------------------------------------------------------------- /template-parts/content-share.php: -------------------------------------------------------------------------------- 1 | ID,'codilight_lite_single_medium')); 6 | }else{ 7 | $thumbnail=''; 8 | } 9 | $desc=urlencode(strip_tags(codilight_lite_excerpt(60))); 10 | ?> 11 | 12 |
    13 | 78 |
    79 | 80 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 11 |
    12 | 14 |
    15 |
    16 |
    17 | 18 | 20 | 21 | 27 | 28 | max_num_pages; 32 | $current_page = max(1, get_query_var('paged')); 33 | 34 | if ( $layout_archive_posts == 'grid' ) { 35 | echo '
    '; 36 | echo '
    '; 37 | while ( have_posts() ) : the_post(); 38 | $count++; 39 | get_template_part( 'template-parts/content-grid' ); 40 | if ( $count % 2 == 0 ) { 41 | echo '
    '; 42 | echo '
    '; 43 | } 44 | endwhile; 45 | echo '
    '; 46 | echo '
    '; 47 | 48 | /** 49 | * Show pagination if more than 1 page. 50 | */ 51 | if ( $wp_query->max_num_pages > 1 ) { 52 | echo '
    '; 53 | the_posts_pagination(array( 54 | 'prev_next' => True, 55 | 'prev_text' => '', 56 | 'next_text' => '', 57 | 'before_page_number' => '' . __('页面', 'codilight-lite') . ' ', 58 | )); 59 | printf( ''. esc_html__( '页面 %1$s / %2$s', 'codilight-lite' ) .'', $current_page, $total_pages ); 60 | echo '
    '; 61 | } 62 | 63 | } else { 64 | echo '
    '; 65 | while ( have_posts() ) : the_post(); 66 | get_template_part( 'template-parts/content-list' ); 67 | endwhile; 68 | /** 69 | * Show pagination if more than 1 page. 70 | */ 71 | if ( $wp_query->max_num_pages > 1 ) { 72 | echo '
    '; 73 | the_posts_pagination(array( 74 | 'prev_next' => True, 75 | 'prev_text' => '', 76 | 'next_text' => '', 77 | 'before_page_number' => '' . __('页面', 'codilight-lite') . ' ', 78 | )); 79 | printf( ''. esc_html__( '页面 %1$s / %2$s', 'codilight-lite' ) .'', $current_page, $total_pages ); 80 | echo '
    '; 81 | } 82 | echo '
    '; 83 | } 84 | ?> 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 |
    93 |
    94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /inc/dashboard.php: -------------------------------------------------------------------------------- 1 | Name ), sprintf( esc_html__('%s一般设置', 'codilight-lite'), $theme_data->Name), 'edit_theme_options', 'ft_codilight_lite', 'codilight_lite_theme_info_page'); 10 | } 11 | 12 | function codilight_lite_theme_info_page() { 13 | 14 | $theme_data = wp_get_theme(); ?> 15 | 16 |
    17 |

    Name, $theme_data->Version ); ?>

    18 |
    19 | 20 | 23 | 24 |
    25 |
    26 |
    27 | 34 | 41 | 48 | 55 |
    56 | 57 |
    58 | <?php esc_attr_e( 'Theme Screenshot', 'codilight-lite' ); ?> 59 |
    60 |
    61 |
    62 | 63 |
    64 | 65 | 68 | -------------------------------------------------------------------------------- /assets/js/jquery.fitvids.js: -------------------------------------------------------------------------------- 1 | /*jshint browser:true */ 2 | /*! 3 | * FitVids 1.1 4 | * 5 | * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 6 | * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 7 | * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 8 | * 9 | */ 10 | 11 | ;(function( $ ){ 12 | 13 | 'use strict'; 14 | 15 | $.fn.fitVids = function( options ) { 16 | var settings = { 17 | customSelector: null, 18 | ignore: null 19 | }; 20 | 21 | if(!document.getElementById('fit-vids-style')) { 22 | // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js 23 | var head = document.head || document.getElementsByTagName('head')[0]; 24 | var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; 25 | var div = document.createElement("div"); 26 | div.innerHTML = '

    x

    '; 27 | head.appendChild(div.childNodes[1]); 28 | } 29 | 30 | if ( options ) { 31 | $.extend( settings, options ); 32 | } 33 | 34 | return this.each(function(){ 35 | var selectors = [ 36 | 'iframe[src*="player.vimeo.com"]', 37 | 'iframe[src*="youtube.com"]', 38 | 'iframe[src*="youtube-nocookie.com"]', 39 | 'iframe[src*="kickstarter.com"][src*="video.html"]', 40 | 'object', 41 | 'embed' 42 | ]; 43 | 44 | if (settings.customSelector) { 45 | selectors.push(settings.customSelector); 46 | } 47 | 48 | var ignoreList = '.fitvidsignore'; 49 | 50 | if(settings.ignore) { 51 | ignoreList = ignoreList + ', ' + settings.ignore; 52 | } 53 | 54 | var $allVideos = $(this).find(selectors.join(',')); 55 | $allVideos = $allVideos.not('object object'); // SwfObj conflict patch 56 | $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. 57 | 58 | $allVideos.each(function(count){ 59 | var $this = $(this); 60 | if($this.parents(ignoreList).length > 0) { 61 | return; // Disable FitVids on this video. 62 | } 63 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 64 | if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) 65 | { 66 | $this.attr('height', 9); 67 | $this.attr('width', 16); 68 | } 69 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 70 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 71 | aspectRatio = height / width; 72 | if(!$this.attr('id')){ 73 | var videoID = 'fitvid' + count; 74 | $this.attr('id', videoID); 75 | } 76 | $this.wrap('
    ').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%'); 77 | $this.removeAttr('height').removeAttr('width'); 78 | }); 79 | }); 80 | }; 81 | // Works with either jQuery or Zepto 82 | })( window.jQuery || window.Zepto ); 83 | -------------------------------------------------------------------------------- /assets/sass/_widgets.scss: -------------------------------------------------------------------------------- 1 | // main: style.scss 2 | /*-------------------------------------------------------------- 3 | # Widgets Area & Widget Items 4 | --------------------------------------------------------------*/ 5 | /* Widget Stuffs 6 | --------------------------------------------------------------*/ 7 | .widget-title { 8 | @include rem('font-size', 19px); 9 | font-weight: 500; 10 | @include rem('margin-bottom', 15px); 11 | a { 12 | color: $primary; 13 | &:hover { 14 | color: $text; 15 | } 16 | } 17 | // border-bottom: 1px solid $border; 18 | // @include rem('font-size', 19px); 19 | // font-weight: 500; 20 | // @include rem('padding', 0 0 6px); 21 | // @include rem('margin-bottom', 20px); 22 | } 23 | 24 | .widget { 25 | @include rem('margin-bottom', 25px); 26 | @include rem('font-size', 15px); 27 | a { 28 | color: $text; 29 | &:hover{ 30 | color: $primary; 31 | text-decoration: none; 32 | } 33 | } 34 | ul { 35 | margin-bottom: 0px; 36 | padding: 0px; 37 | list-style: none; 38 | li { 39 | margin: 8px 0px; 40 | } 41 | } 42 | } 43 | .widget .widget-title { 44 | a { 45 | color: $primary; 46 | &:hover { 47 | color: $text; 48 | } 49 | } 50 | } 51 | /* Categories 52 | --------------------------------------------------------------*/ 53 | .widget_categories { 54 | ul { 55 | li { 56 | padding-left: 12px; 57 | position: relative; 58 | &:before { 59 | content: "\f105"; 60 | font-family: FontAwesome; 61 | display: block; 62 | @include rem('font-size', 14px); 63 | color: $text; 64 | position: absolute; 65 | top: 2px; 66 | left: 0px; 67 | } 68 | &:hover .cat-count { 69 | background: $primary; 70 | } 71 | a { 72 | display: block; 73 | } 74 | .cat-count { 75 | background: #cacaca none repeat scroll 0 0; 76 | border-radius: 20px; 77 | color: #FFFFFF; 78 | font-size: 11px; 79 | font-weight: bold; 80 | line-height: 20px; 81 | padding: 0 10px; 82 | position: absolute; 83 | right: 5px; 84 | top: 0; 85 | } 86 | } 87 | } 88 | } 89 | 90 | 91 | /* Recent Comments 92 | --------------------------------------------------------------*/ 93 | .widget.widget_recent_comments { 94 | li { 95 | @include rem('margin-bottom', 6px); 96 | @include rem('padding-bottom', 6px); 97 | } 98 | .comment-author-link { 99 | font-weight: bold; 100 | a { 101 | color: $primary; 102 | } 103 | } 104 | a { 105 | color: $primary; 106 | } 107 | } 108 | 109 | /* Tag Cloud 110 | --------------------------------------------------------------*/ 111 | .widget_tag_cloud { 112 | a { 113 | @include rem('font-size', 13px !important); 114 | padding: 3px 10px 3px; 115 | // background: #bbb; 116 | border: 1px solid $border; 117 | color: #888; 118 | margin-bottom: 5px; 119 | display: inline-block; 120 | border-radius: 2px; 121 | &:hover { 122 | border-color: $primary; 123 | } 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /template-parts/content-sitemap.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
    > 13 |
    14 | ', '' ); ?> 15 |
    16 | 17 |
    18 | 19 |
    20 |

    最新文章

    21 |
      22 | 'post', 28 | 'posts_per_page' => $posts_per_page, 29 | 'post_status' => 'publish', 30 | 'ignore_sticky_posts' => 1, 31 | 'order' => 'DESC', 32 | 'orderby' => 'date', 33 | 'paged'=>$paged, 34 | ); 35 | $custom_query = new WP_Query( $custom_query_args ); 36 | 37 | 38 | 39 | $total_pages = $custom_query->max_num_pages; //总共多少页 40 | $current_page = max(1, get_query_var('paged')); //当前第几页 41 | 42 | 43 | 44 | if ( $custom_query->have_posts() ) : 45 | 46 | 47 | while ( $custom_query->have_posts() ) : $custom_query->the_post(); 48 | 49 | ?> 50 |
    • 51 | 52 | '; 57 | 58 | 59 | 60 | 61 | 62 | wp_reset_postdata(); // reset the query 63 | endif; 64 | 65 | 66 | if ( $total_pages == $current_page){ 67 | 68 | ?> 69 | 70 | 71 | 72 |
    73 |
    74 |

    分类目录

    75 | 76 |
      77 | 78 |
    79 |

    80 |
    81 |

    单页面

    82 | 83 |
    84 | 85 | 91 | 92 | 93 | '', 97 | ) ); 98 | ?> 99 |
    100 | 101 |
    102 | 103 |
    104 | 105 | 访问网站首页:
    106 | 107 |
    108 |
    109 | 查看SiteMap.xml 网站最后更新时间: get_results("SELECT MAX(post_modified) AS MAX_m FROM $wpdb->posts WHERE (post_type = 'post' OR post_type = 'page') AND (post_status = 'publish' OR post_status = 'private')");$last = date('Y-m-d G:i:s', strtotime($last[0]->MAX_m));echo $last; ?>

    110 |
    111 | 112 | "', '"', false ) 118 | ), 119 | '', 120 | '' 121 | ); 122 | ?> 123 |
    124 |
    125 | 126 | 127 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
    18 |
    19 |
    20 |
    21 | 22 | 23 | 24 | 25 |
    26 |

    27 |
    28 | 29 | 30 | max_num_pages; 35 | $current_page = max(1, get_query_var('paged')); 36 | 37 | if ( $layout_frontpage_posts == 'grid' ) { 38 | echo '
    '; 39 | echo '
    '; 40 | while ( have_posts() ) : the_post(); 41 | $count++; 42 | get_template_part( 'template-parts/content-grid' ); 43 | if ( $count % 2 == 0 ) { 44 | echo '
    '; 45 | echo '
    '; 46 | } 47 | endwhile; 48 | echo '
    '; 49 | echo '
    '; 50 | 51 | /** 52 | * Show pagination if more than 1 page. 53 | */ 54 | if ( $wp_query->max_num_pages > 1 ) { 55 | echo '
    '; 56 | the_posts_pagination(array( 57 | 'prev_next' => True, 58 | 'prev_text' => '', 59 | 'next_text' => '', 60 | 'before_page_number' => '' . __('页面', 'codilight-lite') . ' ', 61 | )); 62 | printf( ''. esc_html__( '页面 %1$s / %2$s', 'codilight-lite' ) .'', $current_page, $total_pages ); 63 | echo '
    '; 64 | } 65 | 66 | } else { 67 | echo '
    '; 68 | while ( have_posts() ) : the_post(); 69 | get_template_part( 'template-parts/content-list' ); 70 | endwhile; 71 | /** 72 | * Show pagination if more than 1 page. 73 | */ 74 | if ( $wp_query->max_num_pages > 1 ) { 75 | echo '
    '; 76 | the_posts_pagination(array( 77 | 'prev_next' => True, 78 | 'prev_text' => '', 79 | 'next_text' => '', 80 | 'before_page_number' => '' . __('页面', 'codilight-lite') . ' ', 81 | )); 82 | printf( ''. esc_html__( '页面 %1$s / %2$s', 'codilight-lite' ) .'', $current_page, $total_pages ); 83 | echo '
    '; 84 | } 85 | 86 | echo '
    '; 87 | } 88 | ?> 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 |
    97 |
    98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /inc/extras.php: -------------------------------------------------------------------------------- 1 | '. $excerpt .'
    '; 49 | } 50 | endif; 51 | 52 | if ( ! function_exists( 'codilight_lite_sidebar_position' ) ) : 53 | /** 54 | * The site default sidebar position. 55 | * 56 | * @param string $characters 57 | * @return string 58 | */ 59 | function codilight_lite_sidebar_position(){ 60 | $layout_sidebar = get_theme_mod( 'layout_sidebar', 'right' ); 61 | echo $layout_sidebar . '-sidebar'; 62 | } 63 | endif; 64 | 65 | /** 66 | * Add a count class to category counter number. 67 | * 68 | * @param string $characters 69 | * @return string 70 | */ 71 | add_filter('wp_list_categories', 'codilight_lite_cat_count_inline'); 72 | function codilight_lite_cat_count_inline($links) { 73 | $links = str_replace(' (', '', $links); 74 | $links = str_replace(')', '', $links); 75 | return $links; 76 | } 77 | 78 | if ( ! function_exists( 'codilight_lite_link_to_menu_editor' ) ) : 79 | /** 80 | * Menu fallback. Link to the menu editor if that is useful. 81 | * 82 | * @param array $args 83 | * @return string 84 | */ 85 | function codilight_lite_link_to_menu_editor( $args ) 86 | { 87 | if ( ! current_user_can( 'edit_theme_options' ) ) 88 | { 89 | return; 90 | } 91 | 92 | // see wp-includes/nav-menu-template.php for available arguments 93 | extract( $args ); 94 | 95 | $link = $link_before 96 | . '
  • ' . $before . esc_html__( '添加一个菜单', 'codilight-lite' ) . $after . '
  • ' 97 | . $link_after; 98 | 99 | // We have a list 100 | if ( FALSE !== stripos( $items_wrap, ' 11 |
    12 |
    13 |
    14 |
    15 | 16 |
    17 | 21 | 22 |
    23 |
    24 |

    25 | 26 |
    27 | 28 |
    29 |

    30 | 'post', 33 | 'posts_per_page' => 6, 34 | 'post_status' => 'publish', 35 | 'ignore_sticky_posts' => true 36 | ) ) ); 37 | $count = 0; 38 | if ( $custom_query->have_posts() ) : 39 | echo '
    '; 40 | echo '
    '; 41 | while ( $custom_query->have_posts() ) : $custom_query->the_post(); 42 | $count++; 43 | ?> 44 | 73 | '; 76 | echo '
    '; 77 | } 78 | endwhile; 79 | echo '
    '; 80 | echo '
    '; 81 | endif; 82 | wp_reset_postdata(); // reset the query 83 | ?> 84 |
    85 | 86 |
    87 |
    88 | 89 |
    90 |
    91 | 92 | 93 | -------------------------------------------------------------------------------- /template-parts/content-cnshare.php: -------------------------------------------------------------------------------- 1 | ID,'codilight_lite_single_medium')); 6 | }else{ 7 | $thumbnail=''; 8 | } 9 | $desc=urlencode(strip_tags(codilight_lite_excerpt(60))); 10 | ?> 11 | 12 |
    13 | 78 |
    79 | 80 | 81 | -------------------------------------------------------------------------------- /assets/js/weixin.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | 微信公众号关注二维码 4 | 5 | 注意,如果放置了微信公众号的按钮,在设置时必须将 url设置为'http://wx.qq.com'; 6 | Version: 1.0.0 7 | Author: www.wordpressleaf.com 8 | Website: http://www.wordpressleaf.com 9 | Docs: http://www.wordpressleaf.com 10 | Repo: http://www.wordpressleaf.com 11 | Issues: http://www.wordpressleaf.com 12 | 13 | */ 14 | function getRootPath_dc() { 15 | //截取掉root从首字母起长度为1的字符串,将剩余字符串赋值给pathName,意思就是将第一个/去掉。 16 | var pathName = window.location.pathname.substring(1); 17 | 18 | //如果是首页网址,那么webName 为空,如果是目录页,就查找出目录的名字。 19 | var webName = pathName == '' ? '' : pathName.substring(0, pathName.indexOf('/')); 20 | if (webName == "") { 21 | return window.location.protocol + '//' + window.location.host; 22 | } 23 | else { 24 | return window.location.protocol + '//' + window.location.host; 25 | //return window.location.protocol + '//' + window.location.host + '/' + webName; 26 | } 27 | }; 28 | 29 | jQuery(document).ready(function() { 30 | 31 | //二维码图片地址 32 | 33 | 34 | 35 | var imgurl=getRootPath_dc()+ '/wp-content/themes/wordpressleaf/assets/images/weixin.png'; 36 | 37 | //var imgurl='http://www.wordpressleaf.com/wp-content/themes/wordpressleaf/assets/images/weixin.png'; 38 | 39 | var main = jQuery('
    '); //创建一个父DIV 40 | main.attr('id', 'leaf_weixin_share'); //给父DIV设置ID 41 | main.addClass('weixin_share'); //添加CSS样式 42 | 43 | var leaf_weixin_modal = jQuery('
    '); //创建一个子DIV 44 | leaf_weixin_modal.attr('id', 'leaf_weixin_modal'); //给子DIV设置ID 45 | leaf_weixin_modal.removeClass(); 46 | leaf_weixin_modal.addClass('weixin_modal'); 47 | leaf_weixin_modal.appendTo(main); 48 | 49 | var leaf_modal_header = jQuery('
    '); //创建一个子DIV 50 | leaf_modal_header.attr('id', 'leaf_modal_header'); //给子DIV设置ID 51 | leaf_modal_header.removeClass(); 52 | leaf_modal_header.addClass('modal_header'); 53 | leaf_modal_header.appendTo(leaf_weixin_modal); 54 | 55 | 56 | var leaf_modal_header_a = jQuery('×'); //创建一个关闭的A标签 57 | leaf_modal_header_a.appendTo(leaf_modal_header); 58 | 59 | var leaf_modal_header_h3 = jQuery('

    关注微信公众号

    '); //创建一个h3 60 | leaf_modal_header_h3.appendTo(leaf_modal_header); 61 | 62 | 63 | var leaf_modal_body = jQuery('
    '); //创建一个子DIV 64 | leaf_modal_body.attr('id', 'leaf_modal_body'); //给子DIV设置ID 65 | leaf_modal_body.removeClass(); 66 | leaf_modal_body.addClass('modal_body'); 67 | leaf_modal_body.appendTo(leaf_weixin_modal); 68 | 69 | 70 | var leaf_modal_body_p = jQuery('

    二维码加载失败...

    '); //创建一个p 71 | leaf_modal_body_p.appendTo(leaf_modal_body); 72 | 73 | 74 | var leaf_modal_footer = jQuery('
    '); //创建一个子DIV 75 | leaf_modal_footer.attr('id', 'leaf_modal_footer'); //给子DIV设置ID 76 | leaf_modal_footer.removeClass(); 77 | leaf_modal_footer.addClass('modal_footer'); 78 | leaf_modal_footer.appendTo(leaf_weixin_modal); 79 | 80 | var leaf_modal_footer_div = jQuery('
    打开微信,使用 “扫一扫” 即可关注。(这个二维码测试用,您可以扫描向我捐助,谢谢。)
    '); //创建一个div 81 | leaf_modal_footer_div.appendTo(leaf_modal_footer); 82 | 83 | main.appendTo('body'); //将父DIV添加到BODY中 84 | main.hide(); 85 | 86 | jQuery('#leaf_modal_header #leaf_weixin_close').click(function (e) { 87 | e.preventDefault(); 88 | jQuery('#leaf_weixin_share').hide() ; 89 | 90 | }); 91 | 92 | 93 | 94 | jQuery('#menu-social-items a').on('click',function(e){ 95 | thisurl= jQuery(this).attr('href'); 96 | if (thisurl == 'http://wx.qq.com'){ 97 | e.preventDefault(); 98 | //判断弹出窗口是否存在 99 | if(jQuery('#leaf_weixin_share').is(":hidden") ){ 100 | 101 | //隐藏则显示 102 | jQuery('#leaf_weixin_share').show() ; 103 | 104 | 105 | }else{ 106 | 107 | //显示则隐藏 108 | jQuery('#leaf_weixin_share').hide() ; 109 | } 110 | } 111 | }); 112 | 113 | 114 | 115 | 116 | }); 117 | 118 | 119 | -------------------------------------------------------------------------------- /assets/sass/_patterns.scss: -------------------------------------------------------------------------------- 1 | // main: style.scss 2 | 3 | /*-------------------------------------------------------------- 4 | # Patterns 5 | --------------------------------------------------------------*/ 6 | /* Text meant only for screen readers. */ 7 | .screen-reader-text { 8 | clip: rect(1px, 1px, 1px, 1px); 9 | position: absolute !important; 10 | height: 1px; 11 | width: 1px; 12 | overflow: hidden; 13 | 14 | &:focus { 15 | background-color: #fff; 16 | border-radius: 3px; 17 | box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); 18 | clip: auto !important; 19 | color: #333333; 20 | display: block; 21 | font-size: 16px; 22 | font-weight: bold; 23 | height: auto; 24 | left: 5px; 25 | line-height: normal; 26 | padding: 15px 23px 14px; 27 | text-decoration: none; 28 | top: 5px; 29 | width: auto; 30 | z-index: 100000; /* Above WP toolbar. */ 31 | } 32 | } 33 | 34 | /* Alignments */ 35 | .alignleft { 36 | display: inline; 37 | float: left; 38 | margin-right: 1.5em; 39 | } 40 | 41 | .alignright { 42 | display: inline; 43 | float: right; 44 | margin-left: 1.5em; 45 | } 46 | 47 | .aligncenter { 48 | clear: both; 49 | @include center-block; 50 | } 51 | 52 | /* Clearings */ 53 | .clear:before, 54 | .clear:after, 55 | .entry-content:before, 56 | .entry-content:after, 57 | .comment-content:before, 58 | .comment-content:after, 59 | .site-header:before, 60 | .site-header:after, 61 | .site-content:before, 62 | .site-content:after, 63 | .site-footer:before, 64 | .site-footer:after { 65 | @include clearfix; 66 | } 67 | 68 | .clear:after, 69 | .entry-content:after, 70 | .comment-content:after, 71 | .site-header:after, 72 | .site-content:after, 73 | .site-footer:after { 74 | @include clearfix-after; 75 | } 76 | 77 | /* WP Caption */ 78 | .wp-caption { 79 | margin-bottom: 1.5em; 80 | max-width: 100%; 81 | 82 | img[class*="wp-image-"] { 83 | @include center-block; 84 | } 85 | 86 | .wp-caption-text, .wp-caption-dd { 87 | margin: 0.8075em 0; 88 | font-style: italic; 89 | } 90 | } 91 | 92 | .wp-caption-text, .wp-caption-dd { 93 | text-align: center; 94 | } 95 | 96 | /* Gallery */ 97 | .gallery { 98 | margin-bottom: 1.5em; 99 | } 100 | 101 | .gallery-item { 102 | display: inline-block; 103 | text-align: center; 104 | vertical-align: top; 105 | width: 100%; 106 | 107 | .gallery-columns-2 & { 108 | max-width: 50%; 109 | img { 110 | width: 100%; 111 | padding: 0.5px; 112 | } 113 | } 114 | 115 | .gallery-columns-3 & { 116 | max-width: 33.33%; 117 | img { 118 | width: 100%; 119 | padding: 0.5px; 120 | } 121 | } 122 | 123 | .gallery-columns-4 & { 124 | max-width: 25%; 125 | img { 126 | width: 100%; 127 | padding: 0.5px; 128 | } 129 | } 130 | 131 | .gallery-columns-5 & { 132 | max-width: 20%; 133 | img { 134 | width: 100%; 135 | padding: 0.5px; 136 | } 137 | } 138 | 139 | .gallery-columns-6 & { 140 | max-width: 16.66%; 141 | img { 142 | width: 100%; 143 | padding: 0.5px; 144 | } 145 | } 146 | 147 | .gallery-columns-7 & { 148 | max-width: 14.28%; 149 | } 150 | 151 | .gallery-columns-8 & { 152 | max-width: 12.5%; 153 | } 154 | 155 | .gallery-columns-9 & { 156 | max-width: 11.11%; 157 | } 158 | } 159 | 160 | .gallery-caption { 161 | display: block; 162 | } 163 | 164 | /* Media */ 165 | .page-content .wp-smiley, 166 | .entry-content .wp-smiley, 167 | .comment-content .wp-smiley { 168 | border: none; 169 | margin-bottom: 0; 170 | margin-top: 0; 171 | padding: 0; 172 | } 173 | 174 | /* Make sure embeds and iframes fit their containers. */ 175 | embed, 176 | iframe, 177 | object { 178 | max-width: 100%; 179 | } 180 | 181 | /* Ads area */ 182 | .ads-area { 183 | text-align: center; 184 | border: 1px solid $border; 185 | padding: 12px; 186 | .adv-title { 187 | position: relative; 188 | &:before { 189 | position: absolute; 190 | top: 6px; 191 | width: 100%; 192 | height: 1px; 193 | background: $border; 194 | content: ""; 195 | display: block; 196 | z-index: 10; 197 | } 198 | span { 199 | font-size: 10px; 200 | text-transform: uppercase; 201 | letter-spacing: 1.5px; 202 | font-weight: 600; 203 | position: relative; 204 | top: -8px; 205 | background: #FFFFFF; 206 | z-index: 50; 207 | padding: 0px 10px; 208 | } 209 | } 210 | } 211 | .content-area .ads-area { 212 | padding: 5px; 213 | } 214 | -------------------------------------------------------------------------------- /inc/widgets/block_6_widget.php: -------------------------------------------------------------------------------- 1 | 'social_widget', 'description' => esc_html__( "在侧边栏上放置社交关注按钮。WordPressLeaf出品。www.wordpressleaf.com", 'codilight-lite') ); 15 | parent::__construct('ft_social', esc_html__('FT 关注 - WordPressLeaf出品', 'codilight-lite'), $widget_ops); 16 | $this->alt_option_name = 'widget_social'; 17 | 18 | add_action( 'save_post', array($this, 'remove_cache') ); 19 | add_action( 'deleted_post', array($this, 'remove_cache') ); 20 | add_action( 'switch_theme', array($this, 'remove_cache') ); 21 | } 22 | 23 | /** 24 | * @param array $args 25 | * @param array $instance 26 | */ 27 | public function widget( $args, $instance ) { 28 | //extract( $args ); 29 | $cache = array(); 30 | if ( ! $this->is_preview() ) { 31 | $cache = wp_cache_get( 'widget_social', 'widget' ); 32 | } 33 | if ( ! is_array( $cache ) ) { 34 | $cache = array(); 35 | } 36 | if ( ! isset( $args['widget_id'] ) ) { 37 | $args['widget_id'] = $this->id; 38 | } 39 | if ( isset( $cache[ $args['widget_id'] ] ) ) { 40 | echo $cache[ $args['widget_id'] ]; 41 | return; 42 | } 43 | ob_start(); 44 | 45 | 46 | $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : ''; 47 | $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 48 | 49 | 50 | if ( $title ) echo $args['before_title'] . $title . $args['after_title']; 51 | echo $args['before_widget']; 52 | ?> 53 | 54 | 72 | 73 | 74 | 75 | is_preview() ) { 82 | $cache[ $args['widget_id'] ] = ob_get_flush(); 83 | wp_cache_set( 'widget_social', $cache, 'widget' ); 84 | } else { 85 | ob_end_flush(); 86 | } 87 | } 88 | 89 | /** 90 | * @param array $new_instance 91 | * @param array $old_instance 92 | * @return array 93 | */ 94 | public function update( $new_instance, $old_instance ) { 95 | $instance = $old_instance; 96 | 97 | $this->remove_cache(); 98 | $alloptions = wp_cache_get( 'alloptions', 'options' ); 99 | if ( isset($alloptions['widget_recent_entries']) ) delete_option('widget_recent_entries'); 100 | 101 | $new_instance = wp_parse_args( $new_instance, array( 102 | 'title' => '' 103 | 104 | ) ); 105 | 106 | $instance['title'] = sanitize_text_field( $new_instance['title'] ); 107 | 108 | return $instance; 109 | } 110 | 111 | /** 112 | * @access public 113 | */ 114 | public function remove_cache() { 115 | wp_cache_delete('widget_social', 'widget'); 116 | } 117 | 118 | /** 119 | * @param array $instance 120 | */ 121 | public function form( $instance ) { 122 | 123 | // Set default value. 124 | $defaults = array( 125 | 'title' => '' 126 | 127 | ); 128 | $instance = wp_parse_args( (array) $instance, $defaults ); 129 | 130 | 131 | ?> 132 |

    133 | 134 | 135 |

    136 | 137 | 138 | 139 |
    '); //创建一个父DIV 22 | main.attr('id', 'leaf_weixin_share'); //给父DIV设置ID 23 | main.addClass('weixin_share'); //添加CSS样式 24 | 25 | var leaf_weixin_modal = jQuery('
    '); //创建一个子DIV 26 | leaf_weixin_modal.attr('id', 'leaf_weixin_modal'); //给子DIV设置ID 27 | leaf_weixin_modal.removeClass(); 28 | leaf_weixin_modal.addClass('weixin_modal'); 29 | leaf_weixin_modal.appendTo(main); 30 | 31 | var leaf_modal_header = jQuery('
    '); //创建一个子DIV 32 | leaf_modal_header.attr('id', 'leaf_modal_header'); //给子DIV设置ID 33 | leaf_modal_header.removeClass(); 34 | leaf_modal_header.addClass('modal_header'); 35 | leaf_modal_header.appendTo(leaf_weixin_modal); 36 | 37 | 38 | var leaf_modal_header_a = jQuery('×'); //创建一个关闭的A标签 39 | leaf_modal_header_a.appendTo(leaf_modal_header); 40 | 41 | var leaf_modal_header_h3 = jQuery('

    关注微信公众号

    '); //创建一个h3 42 | leaf_modal_header_h3.appendTo(leaf_modal_header); 43 | 44 | 45 | var leaf_modal_body = jQuery('
    '); //创建一个子DIV 46 | leaf_modal_body.attr('id', 'leaf_modal_body'); //给子DIV设置ID 47 | leaf_modal_body.removeClass(); 48 | leaf_modal_body.addClass('modal_body'); 49 | leaf_modal_body.appendTo(leaf_weixin_modal); 50 | 51 | var leaf_modal_body_p = jQuery('

    二维码加载失败...

    '); //创建一个p 52 | leaf_modal_body_p.appendTo(leaf_modal_body); 53 | 54 | 55 | var leaf_modal_footer = jQuery('
    '); //创建一个子DIV 56 | leaf_modal_footer.attr('id', 'leaf_modal_footer'); //给子DIV设置ID 57 | leaf_modal_footer.removeClass(); 58 | leaf_modal_footer.addClass('modal_footer'); 59 | leaf_modal_footer.appendTo(leaf_weixin_modal); 60 | 61 | var leaf_modal_footer_div = jQuery('
    打开微信,点击底部的“发现”,使用 “扫一扫” 即可关注。(这个二维码测试用)
    '); //创建一个div 62 | leaf_modal_footer_div.appendTo(leaf_modal_footer); 63 | 64 | main.appendTo('body'); //将父DIV添加到BODY中 65 | main.hide(); 66 | 67 | 68 | 69 | jQuery('#leaf_modal_header #leaf_weixin_close').click(function (e) { 70 | e.preventDefault(); 71 | jQuery('#leaf_weixin_share').hide() ; 72 | 73 | }); 74 | 75 | 76 | 77 | jQuery('#menu-social-items a').on('click',function(e){ 78 | 79 | 80 | thisurl= jQuery(this).attr('href'); 81 | 82 | // thisurl='http://wx.qq.com'; 83 | //console.log('变量:',thisurl); 84 | 85 | if (thisurl == 'http://wx.qq.com'){ 86 | e.preventDefault(); 87 | //判断弹出窗口是否存在 88 | if(jQuery('#leaf_weixin_share').is(":hidden") ){ 89 | 90 | //隐藏则显示 91 | jQuery('#leaf_weixin_share').show() ; 92 | 93 | 94 | }else{ 95 | 96 | //显示则隐藏 97 | jQuery('#leaf_weixin_share').hide() ; 98 | 99 | 100 | 101 | } 102 | } 103 | }); 104 | 105 | 106 | /* 107 | jQuery('#menu-social-items #menu-item-241 a').click(function (e) { 108 | e.preventDefault(); 109 | //判断弹出窗口是否存在 110 | if(jQuery('#leaf_weixin_share').is(":hidden") ){ 111 | 112 | //隐藏则显示 113 | jQuery('#leaf_weixin_share').show() ; 114 | 115 | 116 | }else{ 117 | 118 | //显示则隐藏 119 | jQuery('#leaf_weixin_share').hide() ; 120 | 121 | 122 | 123 | } 124 | 125 | 126 | 127 | });//判断微信图标是否点击 128 | */ 129 | 130 | }); 131 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | section and everything up until
    6 | * 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 | * 9 | * @package Leaf , Codilight_Lite 10 | */ 11 | 12 | ?> 13 | > 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | > 30 |
    31 | 32 | 33 |
    34 |
    35 |
    36 | 43 |
    44 |
    45 |
      46 | 47 |
    • 48 | 49 | 50 | 51 | 关注我们 52 | 53 | 69 |
    • 70 | 71 | 72 | 78 | 79 | 80 |
      81 |
    82 |
    83 |
    84 |
    85 | 86 | 87 |
    88 | 89 |
      90 | 'primary', 'container' => '', 'items_wrap' => '%3$s', 'fallback_cb' => 'codilight_lite_link_to_menu_editor' ) ); ?> 91 |
    92 | 93 |
    94 | 95 | 96 | 116 | 117 | -------------------------------------------------------------------------------- /template-parts/content-related.php: -------------------------------------------------------------------------------- 1 |
    2 |

    或许您还喜欢这些文章

    3 |