├── 404.php ├── README.md ├── archive.php ├── assets ├── css │ ├── cookieconsent.min.css │ ├── customizer.css │ ├── demo.min.css │ ├── fonts.css │ └── woocommerce.css ├── fonts │ ├── ietcons.eot │ ├── ietcons.svg │ ├── ietcons.ttf │ └── ietcons.woff └── js │ ├── app.js │ ├── cookieconsent.min.js │ ├── cookies.js │ ├── demo.min.js │ ├── download.js │ ├── vendors.min.js │ └── widgets.js ├── author.php ├── blog.php ├── comments.php ├── contact-page.php ├── coupon.php ├── footer.php ├── functions.php ├── header-sim.php ├── header.php ├── inc ├── class-ads.php ├── class-avatar.php ├── class-breadcrumbs.php ├── class-comments.php ├── class-download-function.php ├── class-download-metabox.php ├── class-images.php ├── class-meta-box.php ├── class-metabox.php ├── class-pagination.php ├── class-post-like.php ├── class-post-view.php ├── class-submit.php ├── class-template.php ├── class-widgets.php ├── class-woocommerce.php ├── customizer-controls.php ├── customizer.php ├── extras.php └── template-tags.php ├── index.php ├── languages ├── iebase-zh_CN.mo └── iebase-zh_CN.po ├── page-dl-demo.php ├── page-notitle.php ├── page-post.php ├── page-woo.php ├── page.php ├── readme.txt ├── screenshot.png ├── search.php ├── sidebar.php ├── sim-page.php ├── single.php ├── style.css ├── tag.php ├── template-parts ├── archive-header.php ├── author-bio.php ├── comments-navigation.php ├── content-none.php ├── content-search.php ├── header.php ├── hero.php ├── modal-search-form.php ├── navigation.php ├── no-results.php ├── page-hero.php ├── pagination.php ├── post-card.php ├── post-hero.php ├── post-navigation.php ├── post-related.php ├── search-header.php ├── share.php ├── social-nav.php ├── tag-header.php └── wp-link-pages.php └── woocommerce.php /404.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 |
15 |
16 | 17 |

18 | 19 | 20 | 21 |
22 |
23 | 24 |
25 | 26 | 6 |

WordPress Theme - Iebase

7 |

一款基于WordPress开发的多功能的WordPress主题,专为博客制作的一款主题,主题功能完善,设置丰富。颜值与性能并存,你想要的功能他都有。

8 | 9 | 10 | ## 安装 11 | 12 | 请到下载主题后上传安装,如果不会请参考[如何安装使用Wordpress主题](https://ietheme.com/use-wordpress-themes-step-step-guide.html)。 13 | 14 | **提示:为了防止主题不兼容,请在安装主题前进行数据备份,防止数据字段重复覆盖等情况发生。** 15 | 16 | ### 环境要求 17 | 18 | - WordPress `6.0+` 19 | - PHP `7.4+` 20 | - MySQL `5.6+` 21 | 22 | ### 主题特色 23 | 24 | - [x] 主题体积小于0.6m,代码精,功能全,颜值高,兼容好 25 | - [x] 无前端界面库框架,体积小,兼容好 26 | - [x] 响应式设计,完美兼容PC端、手机端和平板等各类设备访问 27 | - [x] 自带多种小工具,最新评论,热门文章 28 | - [x] 支持前端用户中心,[演示](https://ietheme.com/user) 29 | - [x] 内置资源下载文章类型, [演示](https://ietheme.com/automatic-vanilla-javascript-tabs-ui.html) 30 | - [x] 出色的SEO功能,需加Q群(196410182)获取IE SIMPLE SEO插件 31 | - [x] 兼容yoast seo,all in one seo 32 | - [x] 文章点赞 33 | - [x] 仿MacOS的代码风格及拷贝代码, [下载](https://ietheme.com/portfolio/iebase-code-block.html) 34 | - [x] 丰富的广告位 35 | - [x] 丰富的小工具 36 | - [x] 更多特性请前往演示地址体验:[演示](https://ietheme.com/) 37 | 38 | ### 免费扩展 39 | 40 | 免费扩展需加Q群(196410182)获取,本主题没有集成,以插件的方式提供 41 | 42 | - IE SIMPLE SEO -- 一个非常简单的SEO插件。您可以轻松设置和自定义每个页面的seo信息。 43 | - Ie Users System -- WordPress的高级和简单的用户系统。 44 | - Shortcode -- 一个包含几十个有用短码的小插件,包含功能下载,高亮显示,登录可见,评论可见等。 45 | - Simple App Download -- WordPress的下载管理器。[演示](https://ietheme.com/apps) 46 | - Simple Links -- 完整的URL管理系统,导航站必备插件。[演示](https://ietheme.com/list) 47 | - WP Kits -- 多合一优化插件,以优化您的WordPress网站。 48 | - IeBase Portfolio -- 作品管理插件,估计大多数人用不上。[演示](https://ietheme.com/portfolio/envato-affiliate.html) 49 | 50 | ### 说明文档 51 | 52 | - [在线文档](https://ietheme.com/iebase-theme) 53 | - 建议或BUG反馈:[立即进入](https://github.com/99839/iebase/issues) 54 | - QQ交流群:196410182 55 | - **若您有任何建议或BUG发现,并且您也有解决或实现的思路,欢迎直接提交PR!** 56 | 57 | ### 支持 58 | 59 | - 大家觉得好用就进去群给群管理发红包吧,没有其他打赏方式。 60 | 61 | ### 开源协议 62 | 63 | - [GPL V3.0](./LICENSE) 64 | - 请遵守开源协议,保留主题底部的署名 65 | 66 | ### 演示地址 67 | 68 | [https://ietheme.com](https://ietheme.com) 69 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 |
15 | 16 | 17 | 18 |
19 | 25 |
26 | 27 | 28 | 29 |
30 |
31 | 32 |
33 |
34 | 35 | 36 | 37 |
38 | 39 | .cc-link{margin-bottom:1em}.cc-floating .cc-message{display:block;margin-bottom:1em}.cc-window.cc-floating .cc-compliance{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.cc-window.cc-banner{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cc-banner.cc-top{left:0;right:0;top:0}.cc-banner.cc-bottom{left:0;right:0;bottom:0}.cc-banner .cc-message{display:block;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;max-width:100%;margin-right:1em}.cc-compliance{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between}.cc-floating .cc-compliance>.cc-btn{-webkit-box-flex:1;-ms-flex:1;flex:1}.cc-btn+.cc-btn{margin-left:.5em}@media print{.cc-revoke,.cc-window{display:none}}@media screen and (max-width:900px){.cc-btn{white-space:normal}}@media screen and (max-width:414px) and (orientation:portrait),screen and (max-width:736px) and (orientation:landscape){.cc-window.cc-top{top:0}.cc-window.cc-bottom{bottom:0}.cc-window.cc-banner,.cc-window.cc-floating,.cc-window.cc-left,.cc-window.cc-right{left:0;right:0}.cc-window.cc-banner{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cc-window.cc-banner .cc-compliance{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.cc-window.cc-floating{max-width:none}.cc-window .cc-message{margin-bottom:1em}.cc-window.cc-banner{-webkit-box-align:unset;-ms-flex-align:unset;align-items:unset}.cc-window.cc-banner .cc-message{margin-right:0}}.cc-floating.cc-theme-classic{padding:1.2em;border-radius:5px}.cc-floating.cc-type-info.cc-theme-classic .cc-compliance{text-align:center;display:inline;-webkit-box-flex:0;-ms-flex:none;flex:none}.cc-theme-classic .cc-btn{border-radius:5px}.cc-theme-classic .cc-btn:last-child{min-width:140px}.cc-floating.cc-type-info.cc-theme-classic .cc-btn{display:inline-block}.cc-theme-edgeless.cc-window{padding:0}.cc-floating.cc-theme-edgeless .cc-message{margin:2em;margin-bottom:1.5em}.cc-banner.cc-theme-edgeless .cc-btn{margin:0;padding:.8em 1.8em;height:100%}.cc-banner.cc-theme-edgeless .cc-message{margin-left:1em}.cc-floating.cc-theme-edgeless .cc-btn+.cc-btn{margin-left:0} -------------------------------------------------------------------------------- /assets/css/customizer.css: -------------------------------------------------------------------------------- 1 | /* ========================================================================== 2 | Simple Notice 3 | ========================================================================== */ 4 | 5 | .simple-notice-custom-control .customize-control-description { 6 | line-height: 1.6 7 | } 8 | 9 | .simple-notice-custom-control code { 10 | font-size: 90%; 11 | padding: 2px 4px; 12 | } 13 | /* ========================================================================== 14 | Toggle Switch 15 | ========================================================================== */ 16 | .toggle-switch-control .customize-control-title { 17 | display: inline-block; 18 | } 19 | 20 | .toggle-switch { 21 | position: relative; 22 | width: 64px; 23 | -webkit-user-select: none; 24 | -moz-user-select: none; 25 | -ms-user-select: none; 26 | float: right; 27 | } 28 | 29 | .toggle-switch .toggle-switch-checkbox { 30 | display: none; 31 | } 32 | 33 | .toggle-switch .toggle-switch-label { 34 | display: block; 35 | overflow: hidden; 36 | cursor: pointer; 37 | border: 2px solid #ddd; 38 | border-radius: 20px; 39 | padding: 0; 40 | margin: 0; 41 | } 42 | 43 | .toggle-switch-inner { 44 | display: block; 45 | width: 200%; 46 | margin-left: -100%; 47 | transition: margin 0.3s ease-in 0s; 48 | } 49 | 50 | .toggle-switch-inner:before, 51 | .toggle-switch-inner:after { 52 | display: block; 53 | float: left; 54 | width: 50%; 55 | height: 22px; 56 | padding: 0; 57 | line-height: 22px; 58 | font-size: 14px; 59 | color: white; 60 | font-family: Trebuchet, Arial, sans-serif; 61 | font-weight: bold; 62 | box-sizing: border-box; 63 | } 64 | 65 | .toggle-switch-inner:before { 66 | content: "ON"; 67 | padding-left: 8px; 68 | background-color: #2885bb; 69 | color: #FFFFFF; 70 | } 71 | 72 | .toggle-switch-inner:after { 73 | content: "OFF"; 74 | padding-right: 8px; 75 | background-color: #EEEEEE; 76 | color: #999999; 77 | text-align: right; 78 | } 79 | 80 | .toggle-switch-switch { 81 | display: block; 82 | width: 16px; 83 | margin: 3px; 84 | background: #FFFFFF; 85 | position: absolute; 86 | top: 0; 87 | bottom: 0; 88 | right: 38px; 89 | border: 2px solid #ddd; 90 | border-radius: 20px; 91 | transition: all 0.3s ease-in 0s; 92 | } 93 | 94 | .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-inner { 95 | margin-left: 0; 96 | } 97 | 98 | .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-switch { 99 | right: 0px; 100 | } 101 | -------------------------------------------------------------------------------- /assets/css/demo.min.css: -------------------------------------------------------------------------------- 1 | body, 2 | div, 3 | html, 4 | iframe, 5 | ul { 6 | margin: 0; 7 | padding: 0; 8 | border: 0; 9 | font-size: 100%; 10 | font: inherit; 11 | vertical-align: baseline 12 | } 13 | 14 | ol, 15 | ul { 16 | list-style: none 17 | } 18 | 19 | html[lang]{ 20 | margin-top: 0 !important; 21 | } 22 | 23 | body { 24 | overflow: hidden; 25 | font-weight: 400; 26 | color: #333; 27 | font-size: 13px; 28 | line-height: 1; 29 | } 30 | 31 | a { 32 | text-decoration: none; 33 | } 34 | 35 | #switcher { 36 | height: auto; 37 | display: flex; 38 | align-items: center; 39 | background: #fff; 40 | z-index: 99999; 41 | position: fixed; 42 | width: 100%; 43 | box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .07); 44 | transition: all .5s ease; 45 | top: 0 46 | } 47 | 48 | #switcher.fbar-hidden-switcher { 49 | box-shadow: none; 50 | margin-top: -64px 51 | } 52 | 53 | .center { 54 | display: flex; 55 | align-items: center; 56 | margin: auto; 57 | width: 100%; 58 | padding: 0 40px 59 | } 60 | 61 | .links { 62 | display: flex; 63 | margin-left: auto; 64 | align-items: center 65 | } 66 | 67 | .links li:last-child { 68 | margin-right: 20px; 69 | margin-left: 20px 70 | } 71 | 72 | .center ul li { 73 | display: inline-block 74 | } 75 | 76 | #iframe { 77 | display: block; 78 | margin: 52px auto 0; 79 | transition: all .5s ease; 80 | height: calc(100vh - 52px) 81 | } 82 | 83 | #iframe.fbar-top-iframe { 84 | margin-top: 0; 85 | height: 100vh 86 | } 87 | 88 | #switcher .fbar-separator, 89 | #switcher .logo, 90 | #switcher .responsive { 91 | display: block; 92 | float: none 93 | } 94 | 95 | .fbar-separator { 96 | height: 50px; 97 | width: 1px; 98 | background-color: #e9e9e9; 99 | content: " "; 100 | vertical-align: middle; 101 | margin: auto 30px 102 | } 103 | 104 | .logo img { 105 | max-width: 100%; 106 | position: relative; 107 | } 108 | 109 | 110 | @media (min-width: 64rem) { 111 | .logo .ie-logo-link { 112 | width: 100%; 113 | } 114 | } 115 | 116 | .responsive { 117 | float: left 118 | } 119 | 120 | .responsive a { 121 | margin-right: 10px; 122 | float: left 123 | } 124 | 125 | .responsive a:last-child { 126 | margin-right: 0 127 | } 128 | 129 | .responsive a svg { 130 | opacity: .5; 131 | transition: all .5s ease; 132 | -webkit-transition: all .5s ease 133 | } 134 | 135 | .responsive_buttons_demo a { 136 | max-width: 25px; 137 | max-height: 25px 138 | } 139 | 140 | .responsive_buttons_demo a svg { 141 | width: 100%; 142 | height: 100% 143 | } 144 | 145 | .responsive a.mobilelandscape svg, 146 | .responsive a.tabletlandscape svg { 147 | transform: rotate(90deg) 148 | } 149 | 150 | .responsive a.active svg, 151 | .responsive a:hover svg { 152 | opacity: .8; 153 | color: #fff 154 | } 155 | 156 | #hide-demo-bar { 157 | transition: .3s ease; 158 | opacity: .5; 159 | margin-top: -15px; 160 | display: block; 161 | position: absolute; 162 | width: 32px; 163 | height: 32px; 164 | content: "" 165 | } 166 | 167 | #hide-demo-bar:hover { 168 | opacity: 1 169 | } 170 | 171 | #hide-demo-bar svg { 172 | width: 100%; 173 | height: 100% 174 | } 175 | 176 | #hide-demo-bar.fbar-hidden-btn { 177 | transition: all .5s; 178 | margin-top: 45px; 179 | padding: 5px; 180 | box-shadow: 0 1px 5px 1px rgba(0, 0, 0, .35); 181 | width: 30px; 182 | height: 30px; 183 | background: #fff 184 | } 185 | 186 | #hide-demo-bar svg:last-child { 187 | display: none 188 | } 189 | 190 | #hide-demo-bar.fbar-hidden-btn svg:last-child { 191 | display: block 192 | } 193 | 194 | #hide-demo-bar.fbar-hidden-btn svg:first-child { 195 | display: none 196 | } 197 | 198 | #switcher.fbar-hidden #hide-demo-bar { 199 | background-position: 10px 200 | } 201 | 202 | .livedemo-btn { 203 | display: inline-block; 204 | margin: 0; 205 | text-decoration: none !important; 206 | text-transform: uppercase; 207 | font-weight: 700; 208 | font-size: 14px; 209 | line-height: normal; 210 | border-radius: 0; 211 | letter-spacing: 1px; 212 | color: #fff; 213 | padding: 16px 50px; 214 | background: #ff7f66; 215 | transition: all .3s ease 216 | } 217 | 218 | .livedemo-btn:focus, 219 | .livedemo-btn:hover { 220 | background: #393939; 221 | color: #fff 222 | } 223 | 224 | @media (max-width: 1200px) { 225 | #hide-demo-bar.fbar-hidden-btn { 226 | right: 20px 227 | } 228 | 229 | #switcher .fbar-separator { 230 | display: none 231 | } 232 | 233 | .links li:last-child { 234 | margin-right: 30px 235 | } 236 | 237 | .fbar-separator { 238 | margin: auto 20px 239 | } 240 | 241 | .center { 242 | padding: 0 20px 243 | } 244 | } 245 | 246 | 247 | 248 | @media (max-width: 767px) { 249 | #switcher .fbar-separator, 250 | #switcher .responsive.responsive_buttons_demo { 251 | display: none 252 | } 253 | 254 | .logo { 255 | margin-right: 10px 256 | } 257 | 258 | .close a { 259 | padding: 10px 5px; 260 | margin-left: 6px 261 | } 262 | 263 | .links { 264 | font-size: 11px 265 | } 266 | 267 | } 268 | 269 | @media (max-width: 480px) { 270 | .center { 271 | width: 95% 272 | } 273 | 274 | .purchase a { 275 | padding: 18px 30px 276 | } 277 | 278 | .close a { 279 | padding: 10px 5px; 280 | margin-left: 6px 281 | } 282 | 283 | .links { 284 | font-size: 0 285 | } 286 | } -------------------------------------------------------------------------------- /assets/css/fonts.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'ietcons'; 3 | src: url('../fonts/ietcons.eot?a6adhs'); 4 | src: url('../fonts/ietcons.eot?a6adhs#iefix') format('embedded-opentype'), 5 | url('../fonts/ietcons.ttf?a6adhs') format('truetype'), 6 | url('../fonts/ietcons.woff?a6adhs') format('woff'), 7 | url('../fonts/ietcons.svg?a6adhs#ietcons') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | font-display: block; 11 | } 12 | 13 | /*@font-face { 14 | font-family: 'ietcons'; 15 | src: url('https://assets.ietheme.com/fonts/ietcons.eot?a6adhs'); 16 | src: url('https://assets.ietheme.com/fonts/ietcons.eot?a6adhs#iefix') format('embedded-opentype'), 17 | url('https://assets.ietheme.com/fonts/ietcons.ttf?a6adhs') format('truetype'), 18 | url('https://assets.ietheme.com/fonts/ietcons.woff?a6adhs') format('woff'), 19 | url('https://assets.ietheme.com/fonts/ietcons.svg?a6adhs#ietcons') format('svg'); 20 | font-weight: normal; 21 | font-style: normal; 22 | font-display: block; 23 | }*/ 24 | 25 | [class^="iecon-"], [class*=" iecon-"] { 26 | /* use !important to prevent issues with browser extensions that change fonts */ 27 | font-family: 'ietcons' !important; 28 | speak: none; 29 | font-style: normal; 30 | font-weight: normal; 31 | font-variant: normal; 32 | text-transform: none; 33 | line-height: 1; 34 | 35 | /* Better Font Rendering =========== */ 36 | -webkit-font-smoothing: antialiased; 37 | -moz-osx-font-smoothing: grayscale; 38 | } 39 | 40 | .iecon-fire:before { 41 | content: "\e01c"; 42 | } 43 | .iecon-energy:before { 44 | content: "\e020"; 45 | } 46 | .iecon-speech:before { 47 | content: "\e02c"; 48 | } 49 | .iecon-picture:before { 50 | content: "\e032"; 51 | } 52 | .iecon-action-undo:before { 53 | content: "\e050"; 54 | } 55 | .iecon-action-redo:before { 56 | content: "\e051"; 57 | } 58 | .iecon-note:before { 59 | content: "\e060"; 60 | } 61 | .iecon-music:before { 62 | content: "\e061"; 63 | } 64 | .iecon-logout:before { 65 | content: "\e065"; 66 | } 67 | .iecon-login:before { 68 | content: "\e066"; 69 | } 70 | .iecon-list:before { 71 | content: "\e067"; 72 | } 73 | .iecon-grid:before { 74 | content: "\e06a"; 75 | } 76 | .iecon-cursor:before { 77 | content: "\e06e"; 78 | } 79 | .iecon-calendar:before { 80 | content: "\e075"; 81 | } 82 | .iecon-camcorder:before { 83 | content: "\e07e"; 84 | } 85 | .iecon-cameras:before { 86 | content: "\e07f"; 87 | } 88 | .iecon-cloud-download:before { 89 | content: "\e083"; 90 | } 91 | .iecon-cloud-upload:before { 92 | content: "\e084"; 93 | } 94 | .iecon-eye:before { 95 | content: "\e087"; 96 | } 97 | .iecon-portfolio:before { 98 | content: "\e904"; 99 | } 100 | .iecon-support:before { 101 | content: "\e905"; 102 | } 103 | .iecon-tools-solid:before { 104 | content: "\e906"; 105 | } 106 | .iecon-camera-post:before { 107 | content: "\e907"; 108 | } 109 | .iecon-cross:before { 110 | content: "\e908"; 111 | } 112 | .iecon-gift:before { 113 | content: "\e909"; 114 | } 115 | .iecon-heart:before { 116 | content: "\e90a"; 117 | } 118 | .iecon-paperclip:before { 119 | content: "\e90b"; 120 | } 121 | .iecon-home:before { 122 | content: "\e90c"; 123 | } 124 | .iecon-translate:before { 125 | content: "\e90d"; 126 | } 127 | .iecon-pencil:before { 128 | content: "\e913"; 129 | } 130 | .iecon-palette:before { 131 | content: "\e926"; 132 | } 133 | .iecon-color-sampler:before { 134 | content: "\e927"; 135 | } 136 | .iecon-shield:before { 137 | content: "\e967"; 138 | } 139 | .iecon-shield-alert:before { 140 | content: "\e969"; 141 | } 142 | .iecon-lock:before { 143 | content: "\e96b"; 144 | } 145 | .iecon-unlock:before { 146 | content: "\e96d"; 147 | } 148 | .iecon-key:before { 149 | content: "\e96e"; 150 | } 151 | .iecon-cog:before { 152 | content: "\e972"; 153 | } 154 | .iecon-recycle:before { 155 | content: "\e97f"; 156 | } 157 | .iecon-star:before { 158 | content: "\e98d"; 159 | } 160 | .iecon-flag:before { 161 | content: "\e990"; 162 | } 163 | .iecon-at-sign:before { 164 | content: "\e995"; 165 | } 166 | .iecon-envelope:before { 167 | content: "\e996"; 168 | } 169 | .iecon-envelope-open:before { 170 | content: "\e997"; 171 | } 172 | .iecon-paper-plane:before { 173 | content: "\e999"; 174 | } 175 | .iecon-printer:before { 176 | content: "\e9b1"; 177 | } 178 | .iecon-folder:before { 179 | content: "\e9ba"; 180 | } 181 | .iecon-shuffle:before { 182 | content: "\e9ec"; 183 | } 184 | .iecon-repeat:before { 185 | content: "\e9ee"; 186 | } 187 | .iecon-bookmark:before { 188 | content: "\ea16"; 189 | } 190 | .iecon-label:before { 191 | content: "\ea17"; 192 | } 193 | .iecon-user:before { 194 | content: "\ea1e"; 195 | } 196 | .iecon-cart:before { 197 | content: "\ea4d"; 198 | } 199 | .iecon-tag:before { 200 | content: "\ea55"; 201 | } 202 | .iecon-tags:before { 203 | content: "\ea56"; 204 | } 205 | .iecon-calendar-full:before { 206 | content: "\ea89"; 207 | } 208 | .iecon-delete:before { 209 | content: "\ea94"; 210 | } 211 | .iecon-screen:before { 212 | content: "\ea98"; 213 | } 214 | .iecon-phone:before { 215 | content: "\eaa5"; 216 | } 217 | .iecon-tablet:before { 218 | content: "\eaab"; 219 | } 220 | .iecon-laptop:before { 221 | content: "\eaad"; 222 | } 223 | .iecon-launch:before { 224 | content: "\eab0"; 225 | } 226 | .iecon-power-switch:before { 227 | content: "\eab8"; 228 | } 229 | .iecon-power:before { 230 | content: "\eab9"; 231 | } 232 | .iecon-quote-open:before { 233 | content: "\eae5"; 234 | } 235 | .iecon-quote-close:before { 236 | content: "\eae6"; 237 | } 238 | .iecon-undo2:before { 239 | content: "\ebd8"; 240 | } 241 | .iecon-redo2:before { 242 | content: "\ebd9"; 243 | } 244 | .iecon-sync:before { 245 | content: "\ebda"; 246 | } 247 | .iecon-clock3:before { 248 | content: "\ebe8"; 249 | } 250 | .iecon-download:before { 251 | content: "\ebf5"; 252 | } 253 | .iecon-upload:before { 254 | content: "\ebf6"; 255 | } 256 | .iecon-code:before { 257 | content: "\ec0b"; 258 | } 259 | .iecon-link:before { 260 | content: "\ec17"; 261 | } 262 | .iecon-thumbs-up:before { 263 | content: "\ec19"; 264 | } 265 | .iecon-thumbs-down:before { 266 | content: "\ec1a"; 267 | } 268 | .iecon-share:before { 269 | content: "\ec20"; 270 | } 271 | .iecon-magnifier:before { 272 | content: "\ec22"; 273 | } 274 | .iecon-menu:before { 275 | content: "\ec2b"; 276 | } 277 | .iecon-chevron-up:before { 278 | content: "\ec39"; 279 | } 280 | .iecon-chevron-down:before { 281 | content: "\ec3a"; 282 | } 283 | .iecon-chevron-left:before { 284 | content: "\ec3b"; 285 | } 286 | .iecon-chevron-right:before { 287 | content: "\ec3c"; 288 | } 289 | .iecon-question-circle:before { 290 | content: "\ec57"; 291 | } 292 | .iecon-chevron-up-circle:before { 293 | content: "\ec62"; 294 | } 295 | .iecon-chevron-down-circle:before { 296 | content: "\ec63"; 297 | } 298 | .iecon-chevron-left-circle:before { 299 | content: "\ec64"; 300 | } 301 | .iecon-chevron-right-circle:before { 302 | content: "\ec65"; 303 | } 304 | .iecon-focus:before { 305 | content: "\ec73"; 306 | } 307 | .iecon-qrcode:before { 308 | content: "\f029"; 309 | } 310 | .iecon-twitter:before { 311 | content: "\f099"; 312 | } 313 | .iecon-facebook:before { 314 | content: "\f09a"; 315 | } 316 | .iecon-pinterest:before { 317 | content: "\f0d2"; 318 | } 319 | .iecon-google-plus:before { 320 | content: "\f0d5"; 321 | } 322 | .iecon-linkedin:before { 323 | content: "\f0e1"; 324 | } 325 | .iecon-weibo:before { 326 | content: "\f18a"; 327 | } 328 | .iecon-qq:before { 329 | content: "\f1d6"; 330 | } 331 | .iecon-wechat:before { 332 | content: "\f1d7"; 333 | } 334 | .iecon-keypad-outline:before { 335 | content: "\f44f"; 336 | } 337 | .iecon-more-outline:before { 338 | content: "\f469"; 339 | } 340 | .iecon-more:before { 341 | content: "\f46a"; 342 | } 343 | .iecon-account:before { 344 | content: "\e900"; 345 | } 346 | .iecon-comments:before { 347 | content: "\e90e"; 348 | } 349 | .iecon-comment:before { 350 | content: "\e90f"; 351 | } 352 | .iecon-comment_outline:before { 353 | content: "\e910"; 354 | } 355 | .iecon-date_range:before { 356 | content: "\e912"; 357 | } 358 | .iecon-favorite:before { 359 | content: "\e915"; 360 | } 361 | .iecon-favorite_border:before { 362 | content: "\e916"; 363 | } 364 | .iecon-fiber_new:before { 365 | content: "\e918"; 366 | } 367 | .iecon-insert_comment:before { 368 | content: "\e919"; 369 | } 370 | .iecon-write:before { 371 | content: "\e92b"; 372 | } 373 | .iecon-visibility:before { 374 | content: "\e920"; 375 | } 376 | .iecon-watch_later:before { 377 | content: "\e928"; 378 | } 379 | -------------------------------------------------------------------------------- /assets/css/woocommerce.css: -------------------------------------------------------------------------------- 1 | .woo-container{ 2 | margin-top: 2.5rem; 3 | } 4 | .woo-sim{ 5 | max-width: 64rem; 6 | } 7 | /*.single-product .woo-container { 8 | max-width: 760px; 9 | }*/ 10 | 11 | .woocommerce .quantity .qty { 12 | padding: 10px 0px 10px 10px; 13 | } 14 | .woocommerce div.product .product_title { 15 | font-size: 24px; 16 | } 17 | .woocommerce div.product .product_meta{ 18 | margin-bottom: 16px; 19 | } 20 | .woocommerce div.product .product_meta span{ 21 | display: block; 22 | } 23 | .woocommerce div.product .woocommerce-tabs ul.tabs li a { 24 | padding: .3em 0; 25 | font-weight: normal; 26 | } 27 | .woocommerce-tabs h1, 28 | .woocommerce-tabs h2, 29 | .woocommerce-tabs h3, 30 | .woocommerce-tabs h4, 31 | .woocommerce-tabs h5, 32 | .woocommerce-tabs h6, 33 | section.related.products h2{ 34 | font-family: Roboto, Helvetica, Arial, sans-serif; 35 | font-weight: 600; 36 | margin: 1.25rem 0 1rem; 37 | padding: 0 0 15px; 38 | border-bottom: 1px solid #f3f3f3; 39 | margin-bottom: 20px; 40 | position: relative; 41 | } 42 | .woocommerce-tabs h1::before, 43 | .woocommerce-tabs h2::before, 44 | .woocommerce-tabs h3::before, 45 | .woocommerce-tabs h4::before, 46 | .woocommerce-tabs h5::before, 47 | .woocommerce-tabs h6::before, 48 | section.related.products h2::before{ 49 | content: ""; 50 | width: 0; 51 | height: 0; 52 | position: absolute; 53 | bottom: -3px; 54 | left: 0; 55 | border-left: 0; 56 | border-right: 3px solid transparent; 57 | border-top: 3px solid #2c2f34; 58 | } 59 | .woocommerce-tabs h1::after, 60 | .woocommerce-tabs h2::after, 61 | .woocommerce-tabs h3::after, 62 | .woocommerce-tabs h4::after, 63 | .woocommerce-tabs h5::after, 64 | .woocommerce-tabs h6::after, 65 | section.related.products h2::after{ 66 | content: ""; 67 | background: #2c2f34; 68 | width: 60px; 69 | height: 1px; 70 | position: absolute; 71 | bottom: -1px; 72 | left: 0; 73 | } 74 | 75 | .woocommerce #reviews #comments h2{ 76 | font-size: 1rem; 77 | font-weight: normal; 78 | } 79 | 80 | .woocommerce div.product .woocommerce-tabs{ 81 | float: left; 82 | width: 63%; 83 | } 84 | 85 | section.related.products{ 86 | float: right; 87 | width: 33%; 88 | clear: none; 89 | } 90 | @media (max-width: 48rem) { 91 | .woocommerce div.product .woocommerce-tabs, 92 | section.related.products{ 93 | float: none; 94 | width: 100%; 95 | } 96 | } 97 | section.related.products h2{ 98 | font-size: 1.25rem; 99 | } 100 | section.related.products ul.products li.product{ 101 | border-bottom: 1px solid #f3f3f3; 102 | margin-bottom: .992em !important; 103 | } 104 | section.related.products ul.products li.product:last-child{ 105 | border-bottom: none; 106 | } 107 | section.related.products a.woocommerce-loop-product__link img{ 108 | float: left; 109 | width: 80px !important; 110 | } 111 | section.related.products a.woocommerce-loop-product__link .woocommerce-loop-product__title, 112 | section.related.products a.woocommerce-loop-product__link .price{ 113 | margin-left: 100px; 114 | font-weight: normal; 115 | } 116 | .woocommerce ul.products li.product .woocommerce-loop-product__title{ 117 | border-bottom: none; 118 | } 119 | .woocommerce ul.products li.product .woocommerce-loop-product__title::before, 120 | .woocommerce ul.products li.product .woocommerce-loop-product__title::after{ 121 | display: none; 122 | } 123 | 124 | .woocommerce button.button{ 125 | position: relative; 126 | overflow: hidden; 127 | font-family: inherit; 128 | display: inline-block; 129 | line-height: normal; 130 | color: #fff; 131 | text-decoration: none; 132 | -webkit-appearance: none; 133 | background: #1b95e0; 134 | font-size: .9375rem; 135 | letter-spacing: .5px; 136 | cursor: pointer; 137 | font-weight: 400; 138 | border: 0; 139 | text-decoration: none !important; 140 | border-radius: 3px; 141 | transition: opacity .15s; 142 | } 143 | .woocommerce button.button::after { 144 | content: ''; 145 | position: absolute; 146 | top: 50%; 147 | left: 50%; 148 | width: 5px; 149 | height: 5px; 150 | background: rgba(255,255,255,.5); 151 | opacity: 0; 152 | border-radius: 100%; 153 | transform: scale(1,1) translate(-50%); 154 | transform-origin: 50% 50%; 155 | } 156 | .woocommerce button.button:hover::after { 157 | animation: buttonripple 1s ease-out; 158 | text-decoration: none; 159 | } 160 | @keyframes buttonripple { 161 | 0% { 162 | transform: scale(0,0); 163 | opacity: .3 164 | } 165 | 20% { 166 | transform: scale(25,25); 167 | opacity: .3 168 | } 169 | 100% { 170 | opacity: 0; 171 | transform: scale(40,40) 172 | } 173 | } 174 | .woocommerce button.button.alt, 175 | .woocommerce button.button.alt:hover{ 176 | background-color: #1b95e0; 177 | } 178 | 179 | .woocommerce-cart table.cart td.actions .coupon .input-text{ 180 | width: 100px; 181 | line-height: 1.7; 182 | } 183 | .woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{ 184 | width: 100%; 185 | } 186 | .woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1, 187 | .woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 { 188 | float: none; 189 | width: 100%; 190 | } 191 | .woocommerce form .form-row input{ 192 | padding: 10px; 193 | } 194 | .woocommerce-message{border-top-color:#1b95e0}.woocommerce-message::before{content:"\e015";color:#1b95e0} 195 | .woocommerce div.product p.price,.woocommerce div.product span.price, 196 | .woocommerce div.product .stock, 197 | .woocommerce ul.products li.product .price, 198 | #add_payment_method .cart-collaterals .cart_totals .discount td,.woocommerce-cart .cart-collaterals .cart_totals .discount td,.woocommerce-checkout .cart-collaterals .cart_totals .discount td{color:#1b95e0;} 199 | 200 | .woocommerce-account .woocommerce-MyAccount-navigation { 201 | display: none; 202 | } 203 | .woocommerce-account .woocommerce-MyAccount-content{ 204 | float: none; 205 | width: 100%; 206 | } 207 | .woocommerce.add_to_cart_inline{ 208 | border-radius: 5px; 209 | border:1px solid #ccc !important; 210 | } 211 | .woocommerce.add_to_cart_inline .add_to_cart_button{ 212 | margin-left: 15px; 213 | } -------------------------------------------------------------------------------- /assets/fonts/ietcons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/99839/iebase/a778a1da8e46f57c389997f58bba63461135dec0/assets/fonts/ietcons.eot -------------------------------------------------------------------------------- /assets/fonts/ietcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/99839/iebase/a778a1da8e46f57c389997f58bba63461135dec0/assets/fonts/ietcons.ttf -------------------------------------------------------------------------------- /assets/fonts/ietcons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/99839/iebase/a778a1da8e46f57c389997f58bba63461135dec0/assets/fonts/ietcons.woff -------------------------------------------------------------------------------- /assets/js/app.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | 3 | 'use strict'; 4 | 5 | // ===================== 6 | // Sictk header 7 | // ===================== 8 | 9 | window.onscroll = function() { 10 | scrollFunction() 11 | }; 12 | 13 | function scrollFunction() { 14 | const item = document.querySelector(".js-header"); 15 | if (document.body.scrollTop > 1 || document.documentElement.scrollTop > 1) { 16 | item.classList.add("ie-header--pinned"); 17 | } else { 18 | item.classList.remove("ie-header--pinned"); 19 | } 20 | } 21 | 22 | // ===================== 23 | // Post Card Images Fade 24 | // ===================== 25 | 26 | $('.js-fadein').viewportChecker({ 27 | classToAdd: 'is-inview', // Class to add to the elements when they are visible 28 | offset: 100, 29 | removeClassAfterAnimation: true 30 | }); 31 | 32 | // ===================== 33 | // Modern cursor 34 | // ===================== 35 | function cursorAnimate() { 36 | var myCursor = jQuery(".mouse-cursor"); 37 | if (myCursor.length) { 38 | if ($("body")) { 39 | const e = document.querySelector(".cursor-inner"), 40 | t = document.querySelector(".cursor-outer"); 41 | let n, 42 | i = 0, 43 | o = !1; 44 | (window.onmousemove = function(s) { 45 | o || 46 | (t.style.transform = 47 | "translate(" + s.clientX + "px, " + s.clientY + "px)"), 48 | (e.style.transform = 49 | "translate(" + s.clientX + "px, " + s.clientY + "px)"), 50 | (n = s.clientY), 51 | (i = s.clientX); 52 | }), 53 | $("body").on("mouseenter", "a, .cursor-pointer", function() { 54 | e.classList.add("cursor-hover"), t.classList.add("cursor-hover"); 55 | }), 56 | $("body").on("mouseleave", "a, .cursor-pointer", function() { 57 | ($(this).is("a") && $(this).closest(".cursor-pointer").length) || 58 | (e.classList.remove("cursor-hover"), 59 | t.classList.remove("cursor-hover")); 60 | }), 61 | (e.style.visibility = "visible"), 62 | (t.style.visibility = "visible"); 63 | } 64 | } 65 | } 66 | cursorAnimate(); 67 | 68 | // ===================== 69 | // Off Canvas menu 70 | // ===================== 71 | 72 | $('.js-off-canvas-toggle').click(function(e) { 73 | e.preventDefault(); 74 | $('.js-off-canvas-content, .js-off-canvas-container').toggleClass('is-active'); 75 | }); 76 | 77 | // ===================== 78 | // Search 79 | // ===================== 80 | 81 | var search_field = $('.js-search-input'), 82 | toggle_search = $('.js-search-toggle'); 83 | 84 | toggle_search.click(function(e) { 85 | e.preventDefault(); 86 | $('.js-search').addClass('is-active'); 87 | 88 | // If off-canvas is active, just disable it 89 | $('.js-off-canvas-container').removeClass('is-active'); 90 | 91 | setTimeout(function() { 92 | search_field.focus(); 93 | }, 500); 94 | }); 95 | 96 | $('.ie-search, .js-search-close').on('click keyup', function(event) { 97 | if (event.target == this || $(event.target).hasClass('js-search-close') || event.keyCode == 27) { 98 | $('.ie-search').removeClass('is-active'); 99 | } 100 | }); 101 | 102 | // ===================== 103 | // Ajax Load More 104 | // ===================== 105 | 106 | $('body').on('click', '#ie_loadmore', function() { 107 | $.ajax({ 108 | url: ie_loadmore_params.ajaxurl, // AJAX handler 109 | data: { 110 | 'action': 'loadmore', // the parameter for admin-ajax.php 111 | 'query': ie_loadmore_params.posts, // loop parameters passed by wp_localize_script() 112 | 'page': ie_loadmore_params.current_page, // current page 113 | 'first_page': ie_loadmore_params.first_page 114 | }, 115 | type: 'POST', 116 | beforeSend: function(xhr) { 117 | //$('#ie_loadmore').text('Loading...'); // some type of preloader 118 | $('#ie_loadmore').text(ie_loadmore_params.iecore_loading); // some type of preloader 119 | $('.js-load-posts').addClass('ie-btn--loading'); 120 | }, 121 | success: function(data) { 122 | $('#ie_loadmore').remove(); 123 | $('#ie_pagination').before(data).remove(); 124 | ie_loadmore_params.current_page++; 125 | $('.js-grid').append(posts); 126 | $('.js-fadein').viewportChecker({ 127 | classToAdd: 'is-inview', 128 | offset: 100, 129 | removeClassAfterAnimation: true 130 | }); 131 | } 132 | }); 133 | return false; 134 | }); 135 | 136 | // ===================== 137 | // Post like 138 | // ===================== 139 | 140 | $(document).on('click', '.sl-button', function() { 141 | var button = $(this); 142 | var post_id = button.attr('data-post-id'); 143 | var security = button.attr('data-nonce'); 144 | var iscomment = button.attr('data-iscomment'); 145 | var allbuttons; 146 | if (iscomment === '1') { 147 | /* Comments can have same id */ 148 | allbuttons = $('.sl-comment-button-' + post_id); 149 | } else { 150 | allbuttons = $('.sl-button-' + post_id); 151 | } 152 | var loader = allbuttons.next('#sl-loader'); 153 | if (post_id !== '') { 154 | $.ajax({ 155 | type: 'POST', 156 | url: simpleLikes.ajaxurl, 157 | data: { 158 | action: 'process_simple_like', 159 | post_id: post_id, 160 | nonce: security, 161 | is_comment: iscomment, 162 | }, 163 | beforeSend: function() { 164 | loader.html(' 
Loading...
'); 165 | }, 166 | success: function(response) { 167 | var icon = response.icon; 168 | var count = response.count; 169 | allbuttons.html(icon + count); 170 | if (response.status === 'unliked') { 171 | var like_text = simpleLikes.like; 172 | allbuttons.prop('title', like_text); 173 | allbuttons.removeClass('liked'); 174 | } else { 175 | var unlike_text = simpleLikes.unlike; 176 | allbuttons.prop('title', unlike_text); 177 | allbuttons.addClass('liked'); 178 | } 179 | loader.empty(); 180 | } 181 | }); 182 | 183 | } 184 | return false; 185 | }); 186 | 187 | // ===================== 188 | // Tab Slider 189 | // ===================== 190 | 191 | $("document").ready(function() { 192 | $(".tab-slider--body").hide(); 193 | $(".tab-slider--body:first").show(); 194 | }); 195 | 196 | $(".tab-slider--nav li").click(function() { 197 | $(".tab-slider--body").hide(); 198 | var activeTab = $(this).attr("rel"); 199 | $("#" + activeTab).fadeIn(); 200 | if ($(this).attr("rel") == "tab2") { 201 | $('.tab-slider--tabs').addClass('slide'); 202 | } else { 203 | $('.tab-slider--tabs').removeClass('slide'); 204 | } 205 | $(".tab-slider--nav li").removeClass("active"); 206 | $(this).addClass("active"); 207 | }); 208 | 209 | // ===================== 210 | // Validation Comment Form 211 | // ===================== 212 | var forms = document.querySelectorAll(".comment-form"); 213 | for (var i = 0; i < forms.length; i++) { 214 | forms[i].setAttribute("novalidate", true); 215 | } 216 | $(function () { 217 | let validator = $("form.comment-form").jbvalidator({ 218 | errorMessage: true, 219 | }); 220 | }); 221 | 222 | 223 | // ===================== 224 | // Sticky sidebar 225 | // ===================== 226 | 227 | $(function() { 228 | $('.c-sidebar .widget').last().addClass('sticky-sidebar'); 229 | if ($('.sticky-sidebar').length) { 230 | var el = $('.sticky-sidebar'); 231 | var stickyTop = $('.sticky-sidebar').offset().top; 232 | var stickyHeight = $('.sticky-sidebar').height(); 233 | var stickywidth = $('.sticky-sidebar').width(); 234 | $(window).scroll(function() { 235 | var limit = $('.ie-footer').offset().top - stickyHeight - 20; 236 | var windowTop = $(window).scrollTop(); 237 | if (stickyTop < windowTop) { 238 | el.css({ 239 | position: 'fixed', 240 | top: 100, 241 | width: stickywidth 242 | }); 243 | } else { 244 | el.css('position', 'static'); 245 | } 246 | if (limit < windowTop) { 247 | var diff = limit - windowTop; 248 | el.css({ 249 | top: diff 250 | }); 251 | } 252 | }); 253 | } 254 | }); 255 | 256 | 257 | // ===================== 258 | // Anti adblock 259 | // ===================== 260 | 261 | jQuery(document).ready(function($) { 262 | if ($(".banner").height() === 0) { 263 | $(".banner").html('

~~o(>_<)o ~~ 本站只有少量推介广告,请不要屏蔽,谢谢!

'); 264 | } 265 | $('.alert-close').on('click', function(c) { 266 | $(this).parent().fadeOut('slow', function(c) {}); 267 | }); 268 | }); 269 | 270 | // ===================== 271 | // Lightbox 272 | // ===================== 273 | 274 | Zoom("#lightbox", { 275 | background: "auto", 276 | }); 277 | 278 | })(jQuery); 279 | -------------------------------------------------------------------------------- /assets/js/cookies.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | "use strict"; 3 | 4 | window.addEventListener("load", function(){ 5 | window.cookieconsent.initialise({ 6 | content: { 7 | header: 'Cookies used on the website!', 8 | message: cookies.message, 9 | dismiss: cookies.dismiss, 10 | allow: 'Allow cookies', 11 | deny: 'Decline', 12 | link: cookies.link, 13 | href: cookies.href, 14 | close: '❌', 15 | }, 16 | cookie: { 17 | expiryDays: 365 18 | }, 19 | position: 'bottom' 20 | }); 21 | $(".cc-banner").wrapInner("
"); 22 | }); 23 | 24 | })(jQuery); 25 | -------------------------------------------------------------------------------- /assets/js/download.js: -------------------------------------------------------------------------------- 1 | var downloadlink = ie_down_vars.dllink; 2 | var downloadbutton = ie_down_vars.dlbutton; 3 | const para = document.getElementById("download"); 4 | function myMessage() { 5 | para.innerHTML = "" + downloadbutton + ""; 6 | } 7 | setTimeout(myMessage, 11000); 8 | 9 | const el = document.getElementById('numDiv'); 10 | var timeleft = 10; 11 | var downloadTimer = setInterval(function(){ 12 | if(timeleft <= 0){ 13 | clearInterval(downloadTimer); 14 | } else { 15 | el.innerHTML = timeleft ;} 16 | timeleft -= 1; 17 | }, 1000); 18 | 19 | const detect = document.querySelector(".ads-wrapper"); 20 | const warning = document.querySelector("#download-loading"); 21 | let adClasses = ["ad", "ads", "adsbox", "doubleclick", "ad-placement", "ad-placeholder", "adbadge", "BannerAd"]; 22 | for(let item of adClasses){ 23 | detect.classList.add(item); 24 | } 25 | var downloadwarning = ie_down_vars.admessage; 26 | let getProperty = window.getComputedStyle(detect).getPropertyValue("display"); 27 | if(getProperty == "none"){ 28 | warning.innerHTML = downloadwarning; 29 | warning.classList.add('adblock-warning'); 30 | }; -------------------------------------------------------------------------------- /assets/js/vendors.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jQuery-viewport-checker - v1.8.8 - 2017-09-25 3 | * https://github.com/dirkgroenen/jQuery-viewport-checker 4 | * 5 | * Copyright (c) 2017 Dirk Groenen 6 | * Licensed MIT 7 | */ 8 | !function(a){a.fn.viewportChecker=function(b){var c={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(a,b){},scrollHorizontal:!1,scrollBox:window};a.extend(c,b);var d=this,e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()};return this.checkElements=function(){var b,f;c.scrollHorizontal?(b=Math.max(a("html").scrollLeft(),a("body").scrollLeft(),a(window).scrollLeft()),f=b+e.width):(b=Math.max(a("html").scrollTop(),a("body").scrollTop(),a(window).scrollTop()),f=b+e.height),d.each(function(){var d=a(this),g={},h={};if(d.data("vp-add-class")&&(h.classToAdd=d.data("vp-add-class")),d.data("vp-remove-class")&&(h.classToRemove=d.data("vp-remove-class")),d.data("vp-add-class-full-view")&&(h.classToAddForFullView=d.data("vp-add-class-full-view")),d.data("vp-keep-add-class")&&(h.removeClassAfterAnimation=d.data("vp-remove-after-animation")),d.data("vp-offset")&&(h.offset=d.data("vp-offset")),d.data("vp-repeat")&&(h.repeat=d.data("vp-repeat")),d.data("vp-scrollHorizontal")&&(h.scrollHorizontal=d.data("vp-scrollHorizontal")),d.data("vp-invertBottomOffset")&&(h.scrollHorizontal=d.data("vp-invertBottomOffset")),a.extend(g,c),a.extend(g,h),!d.data("vp-animated")||g.repeat){String(g.offset).indexOf("%")>0&&(g.offset=parseInt(g.offset)/100*e.height);var i=g.scrollHorizontal?d.offset().left:d.offset().top,j=g.scrollHorizontal?i+d.width():i+d.height(),k=Math.round(i)+g.offset,l=g.scrollHorizontal?k+d.width():k+d.height();g.invertBottomOffset&&(l-=2*g.offset),kb?(d.removeClass(g.classToRemove),d.addClass(g.classToAdd),g.callbackFunction(d,"add"),j<=f&&i>=b?d.addClass(g.classToAddForFullView):d.removeClass(g.classToAddForFullView),d.data("vp-animated",!0),g.removeClassAfterAnimation&&d.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){d.removeClass(g.classToAdd)})):d.hasClass(g.classToAdd)&&g.repeat&&(d.removeClass(g.classToAdd+" "+g.classToAddForFullView),g.callbackFunction(d,"remove"),d.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&a(document).bind("touchmove MSPointerMove pointermove",this.checkElements),a(c.scrollBox).bind("load scroll",this.checkElements),a(window).resize(function(b){e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},d.checkElements()}),this.checkElements(),this}}(jQuery); 9 | //# sourceMappingURL=jquery.viewportchecker.min.js.map 10 | 11 | /** 12 | * back to top 13 | */ 14 | !function(e){"use strict";e(document).ready((function(){var r=document.querySelector(".progress-wrap path"),t=r.getTotalLength();r.style.transition=r.style.WebkitTransition="none",r.style.strokeDasharray=t+" "+t,r.style.strokeDashoffset=t,r.getBoundingClientRect(),r.style.transition=r.style.WebkitTransition="stroke-dashoffset 10ms linear";var s=function(){var s=e(window).scrollTop(),o=e(document).height()-e(window).height(),n=t-s*t/o;r.style.strokeDashoffset=n};s(),e(window).scroll(s),jQuery(window).on("scroll",(function(){jQuery(this).scrollTop()>50?jQuery(".progress-wrap").addClass("active-progress"):jQuery(".progress-wrap").removeClass("active-progress")})),jQuery(".progress-wrap").on("click",(function(e){return e.preventDefault(),jQuery("html, body").animate({scrollTop:0},550),!1}))}))}(jQuery); 15 | 16 | /*# Smooth Zoom 17 | * https://github.com/marshallku/smooth-zoom 18 | */ 19 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Zoom=t()}(this,(function(){"use strict";return function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".zoom-bg,.zoom-img{cursor:zoom-out;z-index:90000}.zoom-img{display:block;position:absolute;transition:transform .3s ease-in-out}.zoom-bg{background-color:rgba(0,0,0,.95);height:100vh;left:0;opacity:0;position:fixed;top:0;transition:opacity .3s ease-in-out;width:100vw}.zoom-bg.zoom-bg--reveal{opacity:1}.zoom-original--hidden{visibility:hidden}"),function(e,{background:t,useMaximumSize:o=!0,onTransitionEnd:n}={}){const i=e=>{const i=e.currentSrc||e.src,{srcset:r,naturalWidth:a}=e,{offsetWidth:s,clientHeight:d}=document.documentElement,{width:c,height:l,left:m,top:u}=e.getBoundingClientRect(),h=s/2-m-c/2,g=(d-l)/2-u,f=Math.min(s/c,d/l),p=r.match(/ ([0-9]+)w/gm)||[],v=(o?Math.max(a,...p.map((e=>+e.trim().replace("w",""))).filter((e=>!Number.isNaN(e)&&a{b.classList.remove("zoom-bg--reveal"),E.style.transform="",E.addEventListener("transitionend",(()=>{b.remove(),e.classList.remove("zoom-original--hidden"),E.remove()}),{once:!0}),b.removeEventListener("click",w),E.removeEventListener("click",w),window.removeEventListener("scroll",w),window.removeEventListener("resize",w)};if(b.classList.add("zoom-bg"),t)if("auto"===t){const{r:t,g:o,b:n}=function(e,t,o){const n={r:0,g:0,b:0},i=document.createElement("canvas"),r=i.getContext("2d"),a=Math.sqrt(t),s=Math.sqrt(o);if(!r)return n;i.width=a,i.height=s;try{r.drawImage(e,0,0,a,s);const t=r.getImageData(0,0,a,s),{data:o}=t,{length:i}=o,d=i/20;for(let e=0;e{null==n||n(E)}),{once:!0}),document.body.append(b,E),e.classList.add("zoom-original--hidden"),window.requestAnimationFrame((()=>{E.style.transform=`matrix(${y}, 0, 0, ${y}, ${h}, ${g})`,b.classList.add("zoom-bg--reveal")}))},r=e=>{i(e.target)},a=e=>{if(e){if("string"==typeof e){document.querySelectorAll(e).forEach(s);const t=document.createElement("style"),{head:o}=document;return t.appendChild(document.createTextNode(`${e}{cursor:zoom-in}`)),void o.appendChild(t)}e instanceof HTMLElement?s(e):e.forEach(s)}},s=e=>{var t;e instanceof HTMLElement&&("IMG"!==e.tagName?null===(t=e.querySelector("img"))||void 0===t||t.addEventListener("click",r):e.addEventListener("click",r))};return e&&a(e),{zoom:i,attach:a}}})); 20 | 21 | /* ======================================================================== 22 | * jbvalidator 23 | * ======================================================================== */ 24 | !function(e){"use strict";e.fn.jbvalidator=function(t){t=e.extend({},{language:"",errorMessage:!0,successClass:!1,html5BrowserDefault:!1,validFeedBackClass:"valid-feedback",invalidFeedBackClass:"invalid-feedback",validClass:"is-valid",invalidClass:"is-invalid"},t);let a=this,i={maxLength:"Please lengthen this text to %s characters or less (you are currently using %s characters).",minLength:"Please lengthen this text to %s characters or more (you are currently using %s characters).",HTML5:{valueMissing:{INPUT:{default:"Please fill out this field.",checkbox:"Please check this box.",radio:"Please select one of these options.",file:"Please select a file."},SELECT:"Please select an item in the list.",TEXTAREA:"Please fill out this field."},typeMismatch:{email:"Please enter an e-mail address.",url:"Please enter a URL."},tooLong:"Please lengthen this text to %s characters or less (you are currently using %s characters).",tooShort:"Please lengthen this text to %s characters or more (you are currently using %s characters)."}};const s="input, textarea, select";let n=0;t.language&&e.getJSON(t.language,(function(e){i=e})),e(a).on("submit",(function(e){n=0,l(this,e),n&&(e.preventDefault(),e.stopPropagation())}));let l=function(t,i){let l=i||"";return n=0,e(t||a).find(s).each(((e,t)=>{o(t,l)})),n},r=function(){e(a).find(s).each(((t,a)=>{e(a).off("input"),e(a).on("input",(function(t){if(o(this,t),g(a,"data-v-equal")){let t=e(a).attr("data-v-equal");e(t).one("input",(function(){let t=e(this).attr("id");e('[data-v-equal="#'+t+'"]').trigger("input")}))}}))}))},o=function(e,a){e.setCustomValidity(""),!1!==e.checkValidity()?Object.values(d).map((t=>{let i=t.call(t,e,a);i&&e.setCustomValidity(i)})):t.html5BrowserDefault||e.setCustomValidity(f(e)),!1===e.checkValidity()?(u(e,e.validationMessage),n++):c(e)},u=function(a,i){if(e(a).removeClass(t.validClass),e(a).addClass(t.invalidClass),i=e(a).data("vMessage")??i,t.errorMessage){let s=e(a).parent();if(e(s).length){let a=e(s).find("."+t.invalidFeedBackClass);e(a).length?e(a).html(i):e(s).append('
'+i+"
")}}},c=function(a){e(a).removeClass(t.invalidClass),t.successClass&&e(a).addClass(t.validClass)},d={customMinLength:function(t){if(g(t,"data-v-min-length")){let a=e(t).data("vMinLength"),s=e(t).val().length;if(s0))return i.minLength.sprintf(a,s)}return""},customMaxLength:function(t){if(g(t,"data-v-max-length")){let a=e(t).data("vMaxLength"),s=e(t).val().length;if(s>a&&(e(t).prop("require")||s>0))return i.maxLength.sprintf(a,s)}return""}},f=function(t){if(t.validity.valueMissing){if("INPUT"===t.tagName)return void 0===i.HTML5.valueMissing.INPUT[t.type]?i.HTML5.valueMissing.INPUT.default:i.HTML5.valueMissing.INPUT[t.type];if(void 0!==i.HTML5.valueMissing[t.tagName])return i.HTML5.valueMissing[t.tagName]}else if(t.validity.typeMismatch){if(void 0!==i.HTML5.typeMismatch[t.type])return i.HTML5.typeMismatch[t.type]}else{if(t.validity.tooLong){let a=t.getAttribute("maxlength")??null,s=e(t).val();return i.HTML5.tooLong.sprintf(a,s.length)}if(t.validity.tooShort){let a=t.getAttribute("minlength")??null,s=e(t).val();return i.HTML5.tooShort.sprintf(a,s.length)}}return t.validationMessage??""};function g(t,a,i=""){let s=e(t).attr(a);if(void 0!==s&&!1!==s){if(!i)return!0;if(i===s)return!0}return!1}return String.prototype.sprintf=function(){for(var e=this.toString(),t=0;t1||0==a?"s":"";e=e.replace(/%s {1}(\w+)\(s\){1}/,"%s $1"+i)}e=e.replace("%s",arguments[t])}return e},r(),{validator:d,errorTrigger:function(e,t){"object"==typeof e&&(e=e[0]),e.setCustomValidity(t),u(e,e.validationMessage)},reload:function(){r()},checkAll:l}}}(jQuery); 25 | -------------------------------------------------------------------------------- /assets/js/widgets.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | "use strict"; 3 | 4 | /* WordPress Media Uploader 5 | -------------------------------------------------------*/ 6 | function widgetMediaUpload(type) { 7 | if (mediaUploader) { 8 | mediaUploader.open(); 9 | } 10 | 11 | var mediaUploader = wp.media.frames.file_frame = wp.media({ 12 | title: 'Select an Image', 13 | button: { 14 | text: 'Use This Image' 15 | }, 16 | multiple: false 17 | }); 18 | 19 | mediaUploader.on('select', function () { 20 | var attachment = mediaUploader.state().get('selection').first().toJSON(); 21 | $('.ie-' + type + '-hidden-input').val(attachment.url).trigger('change'); 22 | $('.ie-' + type + '-media').attr('src', attachment.url); 23 | }); 24 | mediaUploader.open(); 25 | } 26 | 27 | 28 | // Logo Upload 29 | $('body').on('click', '.ie-logo-upload-button', function () { 30 | widgetMediaUpload('logo'); 31 | }); 32 | 33 | $('body').on('click', '.ie-logo2x-upload-button', function () { 34 | widgetMediaUpload('logo2x'); 35 | }); 36 | 37 | 38 | // Logo Delete 39 | $('body').on('click', '.ie-logo-delete-button', function () { 40 | $('.ie-logo-hidden-input').val('').trigger('change'); 41 | $('.ie-logo-media').attr('src', ''); 42 | }); 43 | 44 | $('body').on('click', '.ie-logo2x-delete-button', function () { 45 | $('.ie-logo2x-hidden-input').val('').trigger('change'); 46 | $('.ie-logo2x-media').attr('src', ''); 47 | }); 48 | 49 | })(jQuery); -------------------------------------------------------------------------------- /author.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 |
15 |
16 | 17 |
18 |
19 | 20 | 21 | 22 |
23 | 31 |
32 | 33 | 34 | 35 |
36 |
37 |

38 | 39 |

40 |
41 |
42 | 43 | 44 | 45 |
46 | 47 | 6 | 10, 11 | //'paged'=> '.get_query_var('paged')', 12 | 'paged' => get_query_var( 'paged' ), 13 | 'post_type' => array ( 'post'), 14 | 'posts_per_page'=>get_option('posts_per_page'), 15 | 'tax_query' => array( array( 16 | 'taxonomy' => 'post_format', 17 | 'field' => 'slug', 18 | 'terms' => array('post-format-link'), 19 | 'operator' => 'NOT IN' 20 | ) ) 21 | ); 22 | query_posts( $args); 23 | //query_posts('post_type=post&post_status=publish&posts_per_page=12&paged='. get_query_var('paged')); 24 | ?> 25 | 26 | 27 |
28 | 29 | 30 | 31 |
32 | 38 |
39 | 40 | 41 | 42 |
43 |
44 | 45 |
46 |
47 | 48 | 49 | 50 |
51 | 52 | 23 | 24 |
25 | 26 |
27 |
28 | 'ie-btn', 31 | 'title_reply' => '' . esc_html__('Write A Comment', 'iebase') . '', 32 | 'comment_field' => 33 | '

', 34 | //'fields' => apply_filters( 'comment_form_default_fields', $fields ), 35 | 'format' => 'xhtml' 36 | ); 37 | 38 | comment_form($args); 39 | ?> 40 |
41 | 42 |
43 | 44 | 45 | 46 |
47 |

57 | 58 |
    59 | 'ol', 62 | 'short_ping' => true, 63 | ) ); 64 | ?> 65 |
66 | 67 | 1 && get_option( 'page_comments' ) ) { 70 | get_template_part( 'template-parts/comments-navigation' ); 71 | } 72 | ?> 73 | 74 | 75 | 76 | 79 | 80 |

81 | 82 | 83 | 84 | 85 |
86 |
87 | -------------------------------------------------------------------------------- /contact-page.php: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 | 25 |
26 |
27 |
> 28 | 29 |
30 | 40 | 41 |
42 |
43 |
44 |
45 | 46 |
47 | 48 | 6 | 10, 11 | //'paged'=> '.get_query_var('paged')', 12 | 'paged' => get_query_var( 'paged' ), 13 | 'post_type' => array ( 'post'), 14 | 'posts_per_page'=>get_option('posts_per_page'), 15 | 'tax_query' => array( array( 16 | 'taxonomy' => 'post_format', 17 | 'field' => 'slug', 18 | 'terms' => array('post-format-link'), 19 | 'operator' => 'IN' 20 | ) ) 21 | ); 22 | query_posts( $args); 23 | //query_posts('post_type=post&post_status=publish&posts_per_page=12&paged='. get_query_var('paged')); 24 | ?> 25 | 26 | 27 |
28 | 29 | 30 | 31 |
32 | 38 |
39 | 40 | 41 | 42 |
43 |
44 | 45 |
46 |
47 | 48 | 49 | 50 |
51 | 52 | 13 | 14 |
15 |
16 | 17 | 25 | 26 |
27 | 47 |
48 | 49 | 56 | 57 |
58 | 74 |
75 | 76 | 83 | 84 |
85 | 97 |
98 | 99 | 106 | 107 |
108 | 116 |
117 | 118 |
119 | 122 |
123 | 124 | 127 | 128 |
129 | 130 | 131 | 132 | © '> 133 | Made with ❤ by Ietheme  134 |
135 | 136 |
137 |
138 | 139 | 140 | 141 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /header-sim.php: -------------------------------------------------------------------------------- 1 | section and everything up until
6 | * 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 | * 9 | * @package Iebase 10 | */ 11 | 12 | ?> 13 | > 14 | 15 | '> 16 | 17 | 18 | '> 19 | 20 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | section and everything up until
6 | * 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 | * 9 | * @package Iebase 10 | */ 11 | 12 | ?> 13 | > 14 | 15 | '> 16 | 17 | 18 | '> 19 | 20 | 21 | 22 | > 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /inc/class-ads.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 29 | 30 | '. stripslashes($dd_top_code) .'

'; 43 | } 44 | 45 | add_action( 'dd_loop_start', 'iebase_dd_top_content', 1 ); 46 | } 47 | 48 | if (!function_exists('iebase_dd_bottom_content')){ 49 | function iebase_dd_bottom_content() { 50 | $dd_bottom_code = get_theme_mod( 'dd_page_bottom_code', '' ); 51 | if( $dd_bottom_code ) 52 | echo '

'. stripslashes($dd_bottom_code) .'

'; 53 | } 54 | 55 | add_action( 'dd_loop_end', 'iebase_dd_bottom_content', 1 ); 56 | } 57 | 58 | /** 59 | * Add Random Ad in homepage 60 | */ 61 | if(!empty(get_theme_mod( 'ads_home_select')) && get_theme_mod( 'ads_home_select') == "1") { 62 | add_action( 'loop_start', 'iebase_loop_start' ); 63 | } 64 | //add_action( 'loop_start', 'iebase_loop_start' ); 65 | 66 | function iebase_loop_start( $query ) 67 | { 68 | if( $query->is_home() && $query->is_main_query() ) 69 | { 70 | add_action( 'the_post', 'iebase_the_post' ); 71 | add_action( 'loop_end', 'iebase_loop_end' ); 72 | } 73 | } 74 | 75 | function iebase_the_post() 76 | { 77 | static $nr = 0; 78 | 79 | $home_ads = get_theme_mod( 'ads_home_code'); 80 | $if_mobile_ads = get_theme_mod( 'home_mobile_ads'); 81 | 82 | if( wp_is_mobile() && $if_mobile_ads==1 ){ 83 | if( 0 === ++$nr % 3 ) 84 | echo '
'. stripslashes($home_ads) .'
'; 85 | }else if ($if_mobile_ads==0){ 86 | 87 | if( 0 === ++$nr % 3 ) 88 | echo '
'. stripslashes($home_ads) .'
'; 89 | } 90 | } 91 | 92 | function iebase_loop_end() 93 | { 94 | remove_action( 'the_post', 'iebase_the_post' ); 95 | } 96 | 97 | 98 | if (!function_exists('iebase_ads_content') ) : 99 | 100 | /** 101 | *single ads managment 102 | */ 103 | function iebase_ads_content ($content) { 104 | global $post; 105 | 106 | $logg_in = get_theme_mod( 'hide_ad_logg_in', '0' ); 107 | $top_style = get_theme_mod( 'ads_top_style', '' ); 108 | $bottom_style = get_theme_mod( 'ads_bottom_style', '' ); 109 | $middle_style = get_theme_mod( 'ads_middle_style', '' ); 110 | $p1_style = get_theme_mod( 'ads_paragraph1_style', '' ); 111 | $p2_style = get_theme_mod( 'ads_paragraph2_style', '' ); 112 | $p3_style = get_theme_mod( 'ads_paragraph3_style', '' ); 113 | $p1_num = get_theme_mod( 'post_paragraph1_num', '' ); 114 | $p2_num = get_theme_mod( 'post_paragraph2_num', '' ); 115 | $p3_num = get_theme_mod( 'post_paragraph3_num', '' ); 116 | $top = get_theme_mod( 'ads_single_post_top', '' ); 117 | $top_code = get_theme_mod( 'single_post_top_code', '' ); 118 | $bottom = get_theme_mod( 'ads_single_post_bottom', '' ); 119 | $bottom_code = get_theme_mod( 'single_post_bottom_code', '' ); 120 | $middle = get_theme_mod( 'ads_single_post_middle', '' ); 121 | $middle_code = get_theme_mod( 'single_post_middle_code', '' ); 122 | $p1 = get_theme_mod( 'ads_single_post_paragraph1', '' ); 123 | $p1_code = get_theme_mod( 'single_post_paragraph1_code', '' ); 124 | $p2 = get_theme_mod( 'ads_single_post_paragraph2', '' ); 125 | $p2_code = get_theme_mod( 'single_post_paragraph2_code', '' ); 126 | $p3 = get_theme_mod( 'ads_single_post_paragraph3', '' ); 127 | $p3_code = get_theme_mod( 'single_post_paragraph3_code', '' ); 128 | $mobile_top = get_theme_mod('single_post_top_mobile_ads', '' ); 129 | $mobile_bot = get_theme_mod('single_post_bottom_mobile_ads', '' ); 130 | $mobile_mid = get_theme_mod('single_post_middle_mobile_ads', '' ); 131 | $mobile_p1 = get_theme_mod('single_post_paragraph1_mobile_ads', '' ); 132 | $mobile_p2 = get_theme_mod('single_post_paragraph2_mobile_ads', '' ); 133 | $mobile_p3 = get_theme_mod('single_post_paragraph3_mobile_ads', '' ); 134 | $type = get_post_meta($post->ID, 'post_option_post-type', true); 135 | 136 | //global $post; 137 | 138 | if ( is_singular('post') /*|| is_page() */) { 139 | 140 | if ( is_user_logged_in () && $logg_in || $type==true || 'link' == get_post_format()) { 141 | return $content; 142 | } 143 | 144 | //if ( $age >= $show_ad_age ) { 145 | 146 | if( wp_is_mobile() && $mobile_top==1 ){ 147 | if ( $top && $top_code ) { 148 | $content = '
' . $top_code . '
' . $content; 149 | } 150 | }else if ($mobile_top==0){ 151 | if ( $top && $top_code ) { 152 | $content = '
' . $top_code . '
' . $content; 153 | } 154 | } 155 | 156 | if( wp_is_mobile() && $mobile_mid==1 ){ 157 | if ( $middle && $middle_code ) { 158 | $insert_code = '
' . $middle_code . '
'; 159 | $content = iebase_insert_after_paragraph($insert_code, $content, 0, true); 160 | } 161 | }else if ($mobile_mid==0){ 162 | if ( $middle && $middle_code ) { 163 | $insert_code = '
' . $middle_code . '
'; 164 | $content = iebase_insert_after_paragraph($insert_code, $content, 0, true); 165 | } 166 | } 167 | 168 | if( wp_is_mobile() && $mobile_bot==1 ){ 169 | if ( $bottom && $bottom_code ) { 170 | $content = $content . '
' . $bottom_code . '
'; 171 | } 172 | }else if ($mobile_bot==0){ 173 | if ( $bottom && $bottom_code ) { 174 | $content = $content . '
' . $bottom_code . '
'; 175 | } 176 | } 177 | 178 | // Paragaph 1 179 | if( wp_is_mobile() && $mobile_p1==1 ){ 180 | if ( $p1 && $p1_code ) { 181 | $insert_code = '
' . $p1_code . '
'; 182 | $content = iebase_insert_after_paragraph($insert_code, $content , $p1_num/*, $theme_options[ 'ads_after_paragraph_num1' ]*/ ); 183 | } 184 | }else if ($mobile_p1==0){ 185 | if ( $p1 && $p1_code ) { 186 | $insert_code = '
' . $p1_code . '
'; 187 | $content = iebase_insert_after_paragraph($insert_code, $content , $p1_num/*, $theme_options[ 'ads_after_paragraph_num1' ]*/ ); 188 | } 189 | } 190 | 191 | // Paragaph 2 192 | if( wp_is_mobile() && $mobile_p2==1 ){ 193 | if ( $p2 && $p2_code ) { 194 | $insert_code = '
' . $p2_code . '
'; 195 | $content = iebase_insert_after_paragraph($insert_code, $content , $p2_num/*, $theme_options[ 'ads_after_paragraph_num2' ]*/ ); 196 | } 197 | }else if ($mobile_p2==0){ 198 | if ( $p2 && $p2_code ) { 199 | $insert_code = '
' . $p2_code . '
'; 200 | $content = iebase_insert_after_paragraph($insert_code, $content , $p2_num/*, $theme_options[ 'ads_after_paragraph_num2' ]*/ ); 201 | } 202 | } 203 | 204 | // Paragaph 3 205 | if( wp_is_mobile() && $mobile_p3==1 ){ 206 | if ( $p3 && $p3_code ) { 207 | $insert_code = '
' . $p3_code . '
'; 208 | $content = iebase_insert_after_paragraph($insert_code, $content, $p3_num ); 209 | } 210 | }else if ($mobile_p3==0){ 211 | if ( $p3 && $p3_code ) { 212 | $insert_code = '
' . $p3_code . '
'; 213 | $content = iebase_insert_after_paragraph($insert_code, $content, $p3_num ); 214 | } 215 | } 216 | 217 | } 218 | 219 | return $content; 220 | 221 | //} else { 222 | 223 | // return $content; 224 | 225 | //} 226 | 227 | } 228 | 229 | add_filter('the_content', 'iebase_ads_content'); 230 | 231 | endif; 232 | 233 | // Parent Function that makes the magic happen 234 | 235 | function iebase_insert_after_paragraph( $insertion, $content, $paragraph_id = 1, $middle = false ) { 236 | 237 | $closing_p = '

'; 238 | $paragraphs = explode( $closing_p, $content ); 239 | 240 | if ( $middle == true ) { 241 | $paragraph_id = round(count($paragraphs)/2); 242 | } 243 | 244 | if ( $paragraph_id < 1 ) { 245 | 246 | $content = $insertion . $content; 247 | 248 | } else if ( $paragraph_id >= count($paragraphs) ) { 249 | 250 | $content = $content . $insertion; 251 | 252 | } else { 253 | foreach ($paragraphs as $index => $paragraph) { 254 | 255 | if ( trim( $paragraph ) ) { 256 | $paragraphs[$index] .= $closing_p; 257 | } 258 | 259 | if ( $paragraph_id == $index + 1 ) { 260 | 261 | $paragraphs[$index] .= $insertion; 262 | } 263 | } 264 | 265 | $content = implode( '', $paragraphs ); 266 | 267 | } 268 | 269 | 270 | return $content; 271 | } -------------------------------------------------------------------------------- /inc/class-avatar.php: -------------------------------------------------------------------------------- 1 | iebase_get_avatar_name($id_or_email); 58 | //$alt = $alt? $alt: $this->iebase_get_html_tag_attribute($avatar, 'alt', $alt); 59 | if(!$alt) return $avatar; 60 | 61 | $colors = array("#1abc9c", "#2ecc71", "#3498db", "#9b59b6", "#34495e","#16a085", "#27ae60", "#2980b9", "#8e44ad", "#2c3e50","#f1c40f", "#e67e22", "#e74c3c", "#95a5a6", "#f39c12","#d35400", "#c0392b", "#bdc3c7", "#7f8c8d"); 62 | $random_color = $colors[array_rand($colors)]; 63 | 64 | $svg = '' . mb_substr( $alt, 0, 1 ) . ''; 65 | return $svg; 66 | } 67 | 68 | 69 | //* get the username 70 | public function iebase_get_avatar_name($id_or_email) { 71 | if(have_comments()) { 72 | return get_comment_author(); 73 | } 74 | 75 | $user = null; 76 | if(empty($id_or_email)) { 77 | return null; 78 | } else if(is_object($id_or_email)) { 79 | if(!empty($id_or_email->comment_author)) { 80 | return $id_or_email->comment_author; 81 | } else if(!empty($id_or_email->user_id)) { 82 | $id = (int) $id_or_email->user_id; 83 | $user = get_user_by('id', $id); 84 | } 85 | } else if(is_numeric($id_or_email)) { 86 | $id = (int) $id_or_email; 87 | $user = get_user_by('id', $id); 88 | } else if(is_string($id_or_email)) { 89 | if (!filter_var($id_or_email, FILTER_VALIDATE_EMAIL)) { 90 | return $id_or_email; 91 | } else { 92 | $user = get_user_by('email', $id_or_email); 93 | } 94 | } 95 | 96 | if(!empty($user) && is_object($user)) { 97 | return $user->display_name; 98 | } 99 | return null; 100 | } 101 | 102 | //Fix letter avatar style in admin 103 | public function hide_avatar_admin_bar() { 104 | echo ''; 106 | } 107 | 108 | // hidden user-info in admin_bar 109 | public function remove_my_account( $wp_admin_bar ) { 110 | $wp_admin_bar->remove_node( 'user-info' ); 111 | } 112 | 113 | } 114 | 115 | // Init 116 | Iebase_Letter_Avatar::get_instance(); 117 | -------------------------------------------------------------------------------- /inc/class-breadcrumbs.php: -------------------------------------------------------------------------------- 1 | '. $delimiter .''; 22 | $home_icon = ''; 23 | $home_text = __( 'Home','iebase' ); 24 | $before = ''; 25 | $after = ''; 26 | $breadcrumbs = array(); 27 | 28 | // bbPress breadcrumbs 29 | if( function_exists( 'is_bbpress' ) && is_bbpress() && ( ! function_exists( 'is_buddypress' ) || ( function_exists( 'is_buddypress' ) && ! is_buddypress() ))){ 30 | 31 | add_filter( 'bbp_no_breadcrumb', '__return_false' ); 32 | 33 | $args = array( 34 | 'before' => '', 36 | 'sep' => $delimiter, 37 | 'sep_before' => '', 38 | 'sep_after' => '', 39 | 'home_text' => $home_icon.' '.$home_text, 40 | 'current_before' => $before, 41 | 'current_after' => $after, 42 | ); 43 | 44 | echo bbp_get_breadcrumb( $args ); 45 | } 46 | 47 | // WordPress breadcrumbs 48 | elseif ( ! is_home() && ! is_front_page() || is_paged() ){ 49 | 50 | $post = get_post(); 51 | $home_url = esc_url(home_url( '/' )); 52 | 53 | // Home 54 | $breadcrumbs[] = array( 55 | 'url' => $home_url, 56 | 'name' => $home_text, 57 | 'icon' => $home_icon, 58 | ); 59 | 60 | // Category 61 | if ( is_category() ){ 62 | 63 | $category = get_query_var( 'cat' ); 64 | $category = get_category( $category ); 65 | 66 | if( $category->parent !== 0 ){ 67 | 68 | $parent_categories = array_reverse( get_ancestors( $category->cat_ID, 'category' ) ); 69 | 70 | foreach ( $parent_categories as $parent_category ) { 71 | $breadcrumbs[] = array( 72 | 'url' => get_category_link( $parent_category ), 73 | 'name' => get_cat_name( $parent_category ), 74 | ); 75 | } 76 | } 77 | 78 | $breadcrumbs[] = array( 79 | 'name' => get_cat_name( $category->cat_ID ), 80 | ); 81 | } 82 | 83 | // Day 84 | elseif ( is_day() ){ 85 | 86 | $breadcrumbs[] = array( 87 | 'url' => get_year_link( get_the_time( 'Y' ) ), 88 | 'name' => get_the_time( 'Y' ), 89 | ); 90 | 91 | $breadcrumbs[] = array( 92 | 'url' => get_month_link( get_the_time( 'Y' ), get_the_time( 'm' ) ), 93 | 'name' => get_the_time( 'F' ), 94 | ); 95 | 96 | $breadcrumbs[] = array( 97 | 'name' => get_the_time( 'd' ), 98 | ); 99 | } 100 | 101 | // Month 102 | elseif ( is_month() ){ 103 | 104 | $breadcrumbs[] = array( 105 | 'url' => get_year_link( get_the_time( 'Y' ) ), 106 | 'name' => get_the_time( 'Y' ), 107 | ); 108 | 109 | $breadcrumbs[] = array( 110 | 'name' => get_the_time( 'F' ), 111 | ); 112 | } 113 | 114 | // Year 115 | elseif ( is_year() ){ 116 | 117 | $breadcrumbs[] = array( 118 | 'name' => get_the_time( 'Y' ), 119 | ); 120 | } 121 | 122 | // Tag 123 | elseif ( is_tag() ){ 124 | 125 | $breadcrumbs[] = array( 126 | 'name' => get_the_archive_title(), 127 | ); 128 | } 129 | 130 | // Author 131 | elseif ( is_author() ){ 132 | 133 | $author = get_queried_object(); 134 | 135 | $breadcrumbs[] = array( 136 | 'name' => $author->display_name, 137 | ); 138 | } 139 | 140 | // Search 141 | elseif ( is_search() ){ 142 | 143 | $breadcrumbs[] = array( 144 | 'name' => sprintf( __ti( 'Search Results for: %s' ), get_search_query() ), 145 | ); 146 | } 147 | 148 | // 404 149 | elseif ( is_404() ){ 150 | 151 | $breadcrumbs[] = array( 152 | 'name' => __ti( 'No Results' ), 153 | ); 154 | } 155 | 156 | // BuddyPress 157 | elseif ( function_exists('bp_current_component') && bp_current_component() ){ 158 | 159 | $breadcrumbs[] = array( 160 | 'name' => get_the_title(), 161 | ); 162 | } 163 | 164 | // Pages 165 | elseif ( is_page() ){ 166 | 167 | if ( $post->post_parent ){ 168 | 169 | $parent_id = $post->post_parent; 170 | $page_parents = array(); 171 | 172 | while ( $parent_id ){ 173 | $get_page = get_page( $parent_id ); 174 | $parent_id = $get_page->post_parent; 175 | 176 | $page_parents[] = array( 177 | 'url' => get_permalink( $get_page->ID ), 178 | 'name' => get_the_title( $get_page->ID ), 179 | ); 180 | } 181 | 182 | $page_parents = array_reverse( $page_parents ); 183 | 184 | foreach( $page_parents as $single_page ){ 185 | 186 | $breadcrumbs[] = array( 187 | 'url' => $single_page['url'], 188 | 'name' => $single_page['name'], 189 | ); 190 | } 191 | } 192 | 193 | $breadcrumbs[] = array( 194 | 'name' => get_the_title(), 195 | ); 196 | } 197 | 198 | // Attachment 199 | elseif ( is_attachment() ){ 200 | 201 | if( ! empty( $post->post_parent ) ){ 202 | $parent = get_post( $post->post_parent ); 203 | 204 | $breadcrumbs[] = array( 205 | 'url' => get_permalink( $parent ), 206 | 'name' => $parent->post_title, 207 | ); 208 | } 209 | 210 | $breadcrumbs[] = array( 211 | 'name' => get_the_title(), 212 | ); 213 | } 214 | 215 | // Single Posts 216 | elseif ( is_singular() ){ 217 | 218 | // Single Post 219 | if ( get_post_type() == 'post' ){ 220 | 221 | $category = get_the_category(); 222 | 223 | if( ! empty( $category ) ){ 224 | 225 | $category = $category[0]; 226 | 227 | if( $category->parent !== 0 ){ 228 | $parent_categories = array_reverse( get_ancestors( $category->term_id, 'category' ) ); 229 | 230 | foreach ( $parent_categories as $parent_category ) { 231 | $breadcrumbs[] = array( 232 | 'url' => get_category_link( $parent_category ), 233 | 'name' => get_cat_name( $parent_category ), 234 | ); 235 | } 236 | } 237 | 238 | $breadcrumbs[] = array( 239 | 'url' => get_category_link( $category->term_id ), 240 | 'name' => get_cat_name( $category->term_id ), 241 | ); 242 | } 243 | } 244 | 245 | // Custom Post Type 246 | else{ 247 | 248 | // Get the main Post type archive link 249 | if( $archive_link = get_post_type_archive_link( get_post_type() ) ){ 250 | 251 | $post_type = get_post_type_object( get_post_type() ); 252 | 253 | $breadcrumbs[] = array( 254 | 'url' => $archive_link, 255 | 'name' => $post_type->labels->singular_name, 256 | ); 257 | } 258 | 259 | // Get custom Post Types taxonomies 260 | $taxonomies = get_object_taxonomies( $post, 'objects' ); 261 | 262 | if( ! empty( $taxonomies ) && is_array( $taxonomies ) ){ 263 | foreach( $taxonomies as $taxonomy ){ 264 | if( $taxonomy->hierarchical ){ 265 | $taxonomy_name = $taxonomy->name; 266 | break; 267 | } 268 | } 269 | } 270 | 271 | if( ! empty( $taxonomy_name ) ){ 272 | $custom_terms = get_the_terms( $post, $taxonomy_name ); 273 | 274 | if( ! empty( $custom_terms ) && ! is_wp_error( $custom_terms )){ 275 | 276 | foreach ( $custom_terms as $term ){ 277 | 278 | $breadcrumbs[] = array( 279 | 'url' => get_term_link( $term ), 280 | 'name' => $term->name, 281 | ); 282 | 283 | break; 284 | } 285 | } 286 | } 287 | } 288 | 289 | $breadcrumbs[] = array( 290 | 'name' => get_the_title(), 291 | ); 292 | } 293 | 294 | 295 | // Print the BreadCrumb 296 | if( ! empty( $breadcrumbs ) ){ 297 | 298 | $counter = 0; 299 | $item_list_elements = array(); 300 | $breadcrumbs_schema = array( 301 | '@context' => 'http://schema.org', 302 | '@type' => 'BreadcrumbList', 303 | '@id' => '#Breadcrumb', 304 | ); 305 | 306 | echo ''; 335 | 336 | if( get_theme_mod( 'structure_data' ) ){ 337 | 338 | // To remove the latest current element 339 | $latest_element = array_pop( $item_list_elements ); 340 | 341 | if( ! empty( $item_list_elements ) && is_array( $item_list_elements ) ){ 342 | 343 | $breadcrumbs_schema['itemListElement'] = $item_list_elements; 344 | echo ''; 345 | } 346 | } 347 | } 348 | } 349 | 350 | wp_reset_postdata(); 351 | 352 | } 353 | 354 | } 355 | 356 | 357 | 358 | 359 | // WooCommerce Breadcrumb Args 360 | add_filter( 'woocommerce_breadcrumb_defaults', 'tie_wc_breadcrumbs_args' ); 361 | function tie_wc_breadcrumbs_args(){ 362 | return array( 363 | 'delimiter' => ''. ( tie_get_option( 'breadcrumbs_delimiter') ? wp_kses_post( tie_get_option( 'breadcrumbs_delimiter') ) : '»' ) .'', 364 | 'wrap_before' => '', 366 | 'home' => ' '. __ti( 'Home' ), 367 | 'before' => '', 368 | 'after' => '', 369 | ); 370 | } 371 | -------------------------------------------------------------------------------- /inc/class-comments.php: -------------------------------------------------------------------------------- 1 | ' 22 | * https://raam.org/2013/personalizing-the-wordpress-comment-reply-link/ 23 | */ 24 | function iebase_add_comment_author_to_reply_link( $link, $args, $comment ) { 25 | 26 | $comment = get_comment( $comment ); 27 | 28 | // If no comment author is blank, use 'Anonymous' 29 | if ( empty( $comment->comment_author ) ) { 30 | if ( !empty( $comment->user_id ) ) { 31 | $user=get_userdata( $comment->user_id ); 32 | $author=$user->user_login; 33 | } else { 34 | $author = esc_html__('Anonymous', 'iebase'); 35 | } 36 | } else { 37 | $author = $comment->comment_author; 38 | } 39 | 40 | // If the user provided more than a first name, use only first name 41 | if( strpos( $author, ' ' ) ) { 42 | $author = substr( $author, 0, strpos( $author, ' ' ) ); 43 | } 44 | 45 | // Replace Reply Link with "Reply to Author First Name>" 46 | $reply_link_text = $args['reply_text']; 47 | $link = str_replace( $reply_link_text, esc_html__( 'Reply to', 'iebase' ) . ' ' . $author, $link ); 48 | 49 | return $link; 50 | } 51 | add_filter( 'comment_reply_link', 'iebase_add_comment_author_to_reply_link', 10, 3 ); 52 | 53 | /** 54 | * Add Placehoder in comment Form Field (Comment) 55 | */ 56 | function iebase_comment_textarea_placeholder( $fields ) { 57 | $fields['comment_field'] = str_replace( 58 | '

'; 77 | 78 | $fields['email'] = '
'. 79 | '

'; 80 | 81 | return $fields; 82 | } 83 | add_filter( 'comment_form_default_fields', 'iebase_custom_comment_form_fields' ); 84 | 85 | /** 86 | * Remove url Field (Comment) 87 | */ 88 | add_filter('comment_form_field_url', '__return_false'); 89 | 90 | /** 91 | * Remove cookies Field (Comment) 92 | */ 93 | remove_action( 'set_comment_cookies', 'wp_set_comment_cookies' ); -------------------------------------------------------------------------------- /inc/class-download-function.php: -------------------------------------------------------------------------------- 1 | __( 'Download Now', 'iebase' ), 19 | 'admessage' => __( 'Please disable your Ad-Block! Otherwise download button will not be displayed', 'iebase' ), 20 | 'dllink' => iebase_download_link($ie_download), 21 | ) ); 22 | } 23 | if ( $get_demo ) { 24 | wp_enqueue_style( 'demo-style', get_template_directory_uri() . '/assets/css/demo.min.css' ); 25 | wp_enqueue_script( 'iebase-demo-script', get_template_directory_uri() . '/assets/js/demo.min.js', array(), '1.0.4', false ); 26 | 27 | } 28 | } 29 | } 30 | 31 | //add_filter( 'pre_get_document_title', 'iebase_change_items_title', 1 ); 32 | function iebase_change_items_title( $title ) { 33 | global $post; 34 | $get_down = get_query_var( 'down' ); 35 | $get_demo = get_query_var( 'demo' ); 36 | $demo_slug = $_GET["demo"]; 37 | $down_slug = $_GET["down"]; 38 | $down_id = iebase_get_post_id_by_slug($down_slug); 39 | $demo_id = iebase_get_post_id_by_slug($demo_slug); 40 | $down_prefix = __( 'Download', 'iebase' ); 41 | $demo_prefix = __( 'demo', 'iebase' ); 42 | $down_title = get_the_title($down_id); 43 | $demo_title = get_the_title($demo_id); 44 | if ( is_page_template('page-dl-demo.php') ) { 45 | if ( $get_down ) { 46 | $title = $down_prefix . $down_title .' - '. get_bloginfo('name'); 47 | } 48 | if ( $get_demo ) { 49 | $title = $demo_prefix . $demo_title .' - '. get_bloginfo('name'); 50 | } 51 | return $title; 52 | } 53 | return $title; 54 | } 55 | 56 | function iebase_get_post_id_by_slug($post_slug, $slug_post_type = 'post') { 57 | $post = get_page_by_path($post_slug, OBJECT, $slug_post_type); 58 | if ($post) { 59 | return $post->ID; 60 | } else { 61 | return null; 62 | } 63 | } 64 | 65 | function iebase_encrypt_decrypt($action, $string) { 66 | $output = false; 67 | $encrypt_method = "AES-256-CBC"; 68 | $secret_key = 'SecretKey'.get_bloginfo('url'); 69 | $secret_iv = 'SecretKeyIV'.get_bloginfo('url'); 70 | $key = hash('sha256', $secret_key); 71 | 72 | $iv = substr(hash('sha256', $secret_iv), 0, 16); 73 | if ( $action == 'encrypt' ) { 74 | $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv); 75 | $output = base64_encode($output); 76 | } else if( $action == 'decrypt' ) { 77 | $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv); 78 | } 79 | return $output; 80 | } 81 | 82 | function iebase_download_link($url) { 83 | 84 | return add_query_arg( 'download_link', iebase_encrypt_decrypt( 'encrypt', $url ), get_bloginfo('url') ); 85 | 86 | return $url; 87 | } 88 | 89 | add_action( 'wp', 'redirect_download_link' ); 90 | function redirect_download_link() { 91 | $dl = get_query_var( 'download_link' ); 92 | if( $dl ) { 93 | $dl = iebase_encrypt_decrypt( 'decrypt', $dl ); 94 | wp_redirect($dl); 95 | exit; 96 | } 97 | } 98 | 99 | function add_query_vars_filter( $vars ){ 100 | $vars[] = "down"; 101 | $vars[] = "demo"; 102 | $vars[] = "download_link"; 103 | return $vars; 104 | } 105 | add_filter( 'query_vars', 'add_query_vars_filter' ); 106 | 107 | add_filter( 'wp_head', 'iebase_noindex_downloadpage', 1 ); 108 | function iebase_noindex_downloadpage() { 109 | $noindex = ''; 110 | 111 | if ( is_page_template('page-dl-demo.php') ) { 112 | $noindex = ''; 113 | } 114 | echo $noindex . "\n"; 115 | } 116 | 117 | function iebase_single_item_images() { 118 | ?> 119 | 120 |
)'> 121 |
122 | 123 |
124 |
125 | 126 | post_name; 132 | $download_items = get_post_meta( $post->ID, 'iebase_download_items', true ); 133 | $download_author = get_post_meta( $post->ID, 'iebase_download_author', true ); 134 | $download_official = get_post_meta( $post->ID, 'iebase_download_official', true ); 135 | $download_license = get_post_meta( $post->ID, 'iebase_download_license', true ); 136 | $base_link = get_permalink( get_page_by_path( 'items' ) ); 137 | $ie_download = get_post_meta($post->ID, 'iebase_download_links', true); 138 | $get_download = get_query_var( 'down' ); 139 | if( empty($download_items) ){ 140 | return; 141 | } 142 | ?> 143 |
144 |
145 | 146 |
147 |
148 |
149 |
    150 | 151 |
  • 152 | 153 | 154 |
  • 155 | 156 | 157 | '.__( 'Author', 'iebase' ).''.$download_author.'' : '--'; ?> 158 | '.__( 'License', 'iebase' ).''.$download_license.'' : 'GPGL'; ?> 159 | '.__( 'Official Website', 'iebase' ).''.__( 'Go to website', 'iebase' ).'' : 'ietheme'; ?> 160 |
161 | 164 |
165 | 166 | 167 | 168 |
169 |
170 |
171 |
172 | 'iebase_download_link', 14 | 'label' => __( 'Download Information' , 'iebase'), 15 | 'post_type' => array( 'post'), 16 | 'context' => 'normal', // side|normal|advanced 17 | 'priority' => 'high', // high|low 18 | 'hook_priority' => 9, 19 | 'fields' => array( 20 | array( 21 | 'name' => 'iebase_download_items', 22 | 'label' => __( 'Enable Download Function', 'iebase' ), 23 | 'type' => 'checkbox', 24 | 'default' => 0, 25 | ), 26 | array( 27 | 'name' => 'iebase_download_links', 28 | 'label' => __( 'Download Links', 'iebase' ), 29 | 'type' => 'file', 30 | 'default' => 'https://ietheme.com', 31 | ), 32 | array( 33 | 'name' => 'iebase_demo_links', 34 | 'label' => __( 'Demo Links', 'iebase'), 35 | 'type' => 'url', 36 | 'default' => 'https://ietheme.com', 37 | ), 38 | array( 39 | 'name' => 'iebase_download_author', 40 | 'label' => __( 'Author', 'iebase'), 41 | 'type' => 'text', 42 | 'default' => __( 'ietheme', 'iebase'), 43 | ), 44 | array( 45 | 'name' => 'iebase_download_official', 46 | 'label' => __( 'Official Website', 'iebase'), 47 | 'type' => 'url', 48 | 'default' => 'https://ietheme.com', 49 | ), 50 | array( 51 | 'name' => 'iebase_download_license', 52 | 'label' => __( 'License', 'iebase'), 53 | 'type' => 'text', 54 | 'default' => __( 'MIT', 'iebase'), 55 | ), 56 | ) 57 | ); 58 | 59 | iebase_meta_box( $args ); 60 | } -------------------------------------------------------------------------------- /inc/class-images.php: -------------------------------------------------------------------------------- 1 | ]*) src=("(?:[^"]+)"|\'(?:[^\']+)\'|(?:[^ >]+))([^>]*)>#', array($this, '__iebase_lazyload_replace_callback'), $html ); 70 | 71 | return $html; 72 | } 73 | 74 | 75 | //* Used to check if LazyLoad this or not 76 | public function __iebase_lazyload_replace_callback( $matches ) { 77 | if ( strpos( $matches[1] . $matches[3], 'data-no-lazy=' ) === false && strpos( $matches[1] . $matches[3], 'data-src=' ) === false && strpos( $matches[2], '/wpcf7_captcha/' ) === false ) { 78 | $html = sprintf( '', 79 | $matches[1], $matches[2], $matches[3] ); 80 | 81 | //* Filter the LazyLoad HTML output 82 | $html = apply_filters( 'iebase_lazyload_html', $html, true ); 83 | 84 | return $html; 85 | } else { 86 | return $matches[0]; 87 | } 88 | } 89 | 90 | // Add lazy load script in footer inline HTML 91 | public function iebase_lazyload_script() { 92 | if ( ! apply_filters( 'do_not_lazyload', true ) ) { 93 | return; 94 | } 95 | 96 | echo ''; 97 | } 98 | 99 | 100 | } 101 | 102 | // Init 103 | Iebase_LazyLoad::get_instance(); -------------------------------------------------------------------------------- /inc/class-metabox.php: -------------------------------------------------------------------------------- 1 | 'iebase_post_link', 13 | 'label' => __( 'AD Post' , 'iebase'), 14 | 'post_type' => array( 'post'), 15 | 'context' => 'normal', // side|normal|advanced 16 | 'priority' => 'high', // high|low 17 | 'hook_priority' => 10, 18 | 'fields' => array( 19 | array( 20 | 'name' => 'iebase_ad_url', 21 | 'label' => __( 'Ad URL', 'iebase' ), 22 | 'type' => 'url', 23 | 'desc' => __( 'This is a sponsor url.', 'iebase' ), 24 | 'default' => 'https://ietheme.com', 25 | ), 26 | array( 27 | 'name' => 'iebase_ad_button_value', 28 | 'label' => __( 'Ad Button Value', 'iebase'), 29 | 'type' => 'text', 30 | 'desc' => __( 'Ad Button Value text.', 'iebase' ), 31 | 'default' => __( 'Buy Now !', 'iebase' ), 32 | ), 33 | array( 34 | 'name' => 'iebase_ad_extra_field', 35 | 'label' => __( 'Ad Extra Field', 'iebase'), 36 | 'type' => 'text', 37 | 'desc' => __( 'You can add extra information about ad , etc. price, name,.', 'iebase' ), 38 | 'default' => __( 'was $300 now only $250', 'iebase' ), 39 | ), 40 | array( 41 | 'name' => 'iebase_sponsored_text', 42 | 'label' => __( 'Sponsored Text', 'iebase'), 43 | 'type' => 'text', 44 | 'desc' => __( 'This is a sponsored text.', 'iebase' ), 45 | 'default' => __( 'Ad Post', 'iebase' ), 46 | ), 47 | ) 48 | ); 49 | 50 | iebase_meta_box( $args ); 51 | } -------------------------------------------------------------------------------- /inc/class-pagination.php: -------------------------------------------------------------------------------- 1 | query_vars['posts_per_page']; 58 | // current page 59 | $current_page = (int) $wp_query->query_vars['paged']; 60 | // the overall amount of pages 61 | $max_page = $wp_query->max_num_pages; 62 | 63 | // we don't have to display pagination or load more button in this case 64 | if( $max_page <= 1 ) return; 65 | 66 | // set the current page to 1 if not exists 67 | if( empty( $current_page ) || $current_page == 0) $current_page = 1; 68 | 69 | // you can play with this parameter - how much links to display in pagination 70 | $links_in_the_middle = 4; 71 | $links_in_the_middle_minus_1 = $links_in_the_middle-1; 72 | 73 | // the code below is required to display the pagination properly for large amount of pages 74 | // I mean 1 ... 10, 12, 13 .. 100 75 | // $first_link_in_the_middle is 10 76 | // $last_link_in_the_middle is 13 77 | $first_link_in_the_middle = $current_page - floor( $links_in_the_middle_minus_1/2 ); 78 | $last_link_in_the_middle = $current_page + ceil( $links_in_the_middle_minus_1/2 ); 79 | 80 | // some calculations with $first_link_in_the_middle and $last_link_in_the_middle 81 | if( $first_link_in_the_middle <= 0 ) $first_link_in_the_middle = 1; 82 | if( ( $last_link_in_the_middle - $first_link_in_the_middle ) != $links_in_the_middle_minus_1 ) { $last_link_in_the_middle = $first_link_in_the_middle + $links_in_the_middle_minus_1; } 83 | if( $last_link_in_the_middle > $max_page ) { $first_link_in_the_middle = $max_page - $links_in_the_middle_minus_1; $last_link_in_the_middle = (int) $max_page; } 84 | if( $first_link_in_the_middle <= 0 ) $first_link_in_the_middle = 1; 85 | 86 | 87 | // begin to generate HTML of the pagination 88 | $pagination = '\n"; 139 | // replace first page before printing it 140 | echo str_replace(array("/page/1?", "/page/1\""), array("?", "\""), $pagination); 141 | 142 | 143 | } -------------------------------------------------------------------------------- /inc/class-post-view.php: -------------------------------------------------------------------------------- 1 | 85 | -------------------------------------------------------------------------------- /inc/class-submit.php: -------------------------------------------------------------------------------- 1 | '_wp_page_template', 7 | 'meta_value' => $template_name 8 | )); 9 | if(isset($pages[0])) { 10 | $url = get_page_link($pages[0]->ID); 11 | } 12 | return $url; 13 | } 14 | 15 | function iebase_custom_post_status(){ 16 | register_post_status( 'iebase_pending', array( 17 | 'label' => _x( 'Pending', 'post' ), 18 | 'public' => false, 19 | 'exclude_from_search' => false, 20 | 'show_in_admin_all_list' => false, 21 | 'show_in_admin_status_list' => true, 22 | 'label_count' => _n_noop( 'Pending (%s)', 'Pending (%s)' ), 23 | ) ); 24 | } 25 | add_action( 'init', 'iebase_custom_post_status' ); 26 | 27 | function iebase_post_post_upload(){ 28 | 29 | $err_status = array(); 30 | 31 | $post_title = isset( $_POST['iebase_post_title'] ) ? $_POST['iebase_post_title'] : ''; 32 | $post_content = isset( $_POST['iebase_post_content'] ) ? $_POST['iebase_post_content'] : ''; 33 | //$post_type = isset( $_POST['iebase_post_type'] ) ? $_POST['iebase_post_type'] : ''; 34 | $post_id = isset( $_POST['iebase_post_url'] ) ? $_POST['iebase_post_url'] : ''; 35 | $post_poster = isset( $_FILES['iebase_post_poster'] ) ? $_FILES['iebase_post_poster'] : ''; 36 | $post_category = isset( $_POST['iebase_post_category'] ) ? $_POST['iebase_post_category'] : ''; 37 | $post_new_category = isset( $_POST['iebase_new_post_category'] ) ? $_POST['iebase_new_post_category'] : ''; 38 | $post_category = !empty( $post_category ) && is_array( $post_category ) ? $post_category : array(); 39 | 40 | $poster_id = ''; 41 | 42 | if( empty( $post_title ) ){ 43 | $err_status[] = esc_html__( 'title must be fill!', 'iebase' ); 44 | } 45 | if( empty( $post_content ) ){ 46 | $err_status[] = esc_html__( 'content must be fill!', 'iebase' ); 47 | } 48 | if( empty( $post_id ) ){ 49 | $err_status[] = esc_html__( 'Url must not empty!', 'iebase' ); 50 | } 51 | 52 | if( !empty( $post_poster ) ){ 53 | $img_result = iebase_upload_featured_img( $post_poster ); 54 | if( isset( $img_result['msg'] ) && !empty( $img_result['msg'] ) ){ 55 | $err_status[] = $img_result['msg']; 56 | } 57 | if( isset( $img_result['img_id'] ) && $img_result['img_id'] != '' ){ 58 | $poster_id = $img_result['img_id']; 59 | }else{ 60 | $err_status[] = esc_html__( 'Featured image missing!', 'iebase' ); 61 | } 62 | } 63 | 64 | if( empty( $err_status ) && !empty( $post_new_category ) ){ 65 | $cats = explode( ",", $post_new_category ); 66 | foreach( $cats as $cat ){ 67 | if( !function_exists( 'wp_create_category' ) ){ 68 | require_once ABSPATH . 'wp-admin/includes/taxonomy.php'; 69 | } 70 | $id = wp_create_category( $cat ); 71 | $post_category[] = $id; 72 | } 73 | 74 | } 75 | 76 | $meta_array = array( 77 | //'iebase_post_post_type' => $post_type, 78 | 'iebase_post_post_url' => $post_id 79 | ); 80 | 81 | $post_data = array( 82 | 'post_type' => 'post', 83 | 'post_title' => esc_html( $post_title ), 84 | 'post_content' => wp_slash( $post_content ), 85 | 'post_status' => 'iebase_pending', 86 | 'post_author' => 1, 87 | 'post_category' => $post_category, 88 | 'meta_input' => $meta_array, 89 | ); 90 | 91 | if( empty( $err_status ) ){ 92 | $post_id = wp_insert_post( $post_data ); 93 | if( $poster_id ){ 94 | 95 | $tag = 'post-format-post'; 96 | $taxonomy = 'post_format'; 97 | wp_set_post_terms( $post_id, $tag, $taxonomy ); 98 | 99 | $featured_img_stat = set_post_thumbnail( $post_id, $poster_id ); 100 | } 101 | $url = home_url(); 102 | echo '

'. esc_html__( 'Your post added successfully. Admin will approve soon.', 'iebase' ) .''. esc_html__( 'Back to Home page', 'iebase' ).'

'; 103 | return true; 104 | }else{ 105 | echo ''; 110 | return false; 111 | } 112 | 113 | } 114 | 115 | function iebase_upload_featured_img( $image_file ){ 116 | 117 | $result = $upload_message = array(); 118 | 119 | $valid_formats = array("jpg", "png", "gif", "bmp", "jpeg"); // Supported file types 120 | $max_file_size = 1024 * 500; // in kb 121 | $wp_upload_dir = wp_upload_dir(); 122 | $path = $wp_upload_dir['path'] . '/'; 123 | $count = 0; 124 | 125 | $attach_id = ''; 126 | // Image upload handler 127 | 128 | $extension = pathinfo( $image_file['name'], PATHINFO_EXTENSION ); 129 | // Generate a randon code for each file name 130 | $new_filename = $image_file['name']; 131 | 132 | if ( $image_file['error'] == 4 ) { 133 | $upload_message[] = "$new_filename post poster file error!."; 134 | } 135 | 136 | if ( $image_file['error'] == 0 ) { 137 | // Check if image size is larger than the allowed file size 138 | if ( $image_file['size'] > $max_file_size ) { 139 | $upload_message[] = "$new_filename is too large!."; 140 | 141 | // Check if the file being uploaded is in the allowed file types 142 | } elseif( ! in_array( strtolower( $extension ), $valid_formats ) ){ 143 | $upload_message[] = "$new_filename is not a valid format"; 144 | 145 | } else{ 146 | // If no errors, upload the file... 147 | 148 | $t_filename = $new_filename; 149 | $i = 0; 150 | while( file_exists( $path.$t_filename ) ){ 151 | $t_fname = preg_replace( '/\.[^.]+$/', '', basename( $t_filename ) ); 152 | $i++; 153 | $last2chars = substr( $t_fname, -2 ); 154 | if( $last2chars[0] == '-' && ( isset( $last2chars[1] ) && is_numeric( $last2chars[1] ) ) ){ 155 | $num_char = $last2chars[1]; 156 | $num_char++; 157 | $t_fname = substr( $t_fname, 0, -2 ); 158 | $t_filename = $t_fname . '-' . $num_char .'.'. $extension; 159 | }else{ 160 | $t_filename = $t_fname . '-' . $i .'.'. $extension; 161 | } 162 | } 163 | 164 | if( move_uploaded_file( $image_file["tmp_name"], $path.$t_filename ) ) { 165 | 166 | $count++; 167 | 168 | $filename = $path.$t_filename; 169 | $filetype = wp_check_filetype( basename( $filename ), null ); 170 | $wp_upload_dir = wp_upload_dir(); 171 | $attachment = array( 172 | 'guid' => $wp_upload_dir['url'] . '/' . basename( $filename ), 173 | 'post_mime_type' => $filetype['type'], 174 | 'post_title' => preg_replace( '/\.[^.]+$/', '', basename( $filename ) ), 175 | 'post_content' => '', 176 | 'post_status' => 'inherit' 177 | ); 178 | // Insert attachment to the database 179 | $attach_id = wp_insert_attachment( $attachment, $filename ); 180 | 181 | require_once ABSPATH . 'wp-admin/includes/image.php'; 182 | 183 | // Generate meta data 184 | $attach_data = wp_generate_attachment_metadata( $attach_id, $filename ); 185 | wp_update_attachment_metadata( $attach_id, $attach_data ); 186 | 187 | } 188 | } 189 | 190 | } 191 | 192 | 193 | // Loop through each error then output it to the screen 194 | if ( isset( $upload_message ) ) : 195 | foreach ( $upload_message as $msg ){ 196 | $result['msg'] = $msg; 197 | } 198 | endif; 199 | 200 | // If no error, show success message 201 | if( $count != 0 ){ 202 | $result['img_id'] = $attach_id; 203 | } 204 | return $result; 205 | 206 | } -------------------------------------------------------------------------------- /inc/class-woocommerce.php: -------------------------------------------------------------------------------- 1 | get_price() || 0 == $product->get_price() ) { 93 | $price = ''.esc_html__( 'Free', 'tijarah' ).''; 94 | } 95 | return $price; 96 | } 97 | add_filter( 'woocommerce_get_price_html', 'tijarah_price_free_zero_empty', 100, 2 ); 98 | 99 | /** 100 | * Remove "Description" Title @ WooCommerce Single Product Tabs 101 | */ 102 | 103 | add_filter( 'woocommerce_product_description_heading', '__return_null' ); 104 | add_filter( 'woocommerce_product_reviews_heading', '__return_null' ); 105 | 106 | // Add AJAX Shortcode when cart contents update 107 | function tijarah_cart_button_count( $fragments ) { 108 | 109 | ob_start(); 110 | 111 | $cart_count = WC()->cart->cart_contents_count; 112 | $cart_url = wc_get_cart_url(); 113 | 114 | ?> 115 | 116 | 117 | cart->get_cart_contents_count(), 'tijarah' ), $cart_count ); ?> 120 | 121 | 122 | false, 135 | 'attribute' => false, 136 | 'product' => false, 137 | 'selected' => false, 138 | 'name' => '', 139 | 'id' => '', 140 | 'class' => '', 141 | 'show_option_none' => __('Choose an option', 'tijarah'), 142 | )); 143 | 144 | if(false === $args['selected'] && $args['attribute'] && $args['product'] instanceof WC_Product) { 145 | $selected_key = 'attribute_'.sanitize_title($args['attribute']); 146 | $args['selected'] = isset($_REQUEST[$selected_key]) ? wc_clean(wp_unslash($_REQUEST[$selected_key])) : $args['product']->get_variation_default_attribute($args['attribute']); 147 | } 148 | 149 | $options = $args['options']; 150 | $product = $args['product']; 151 | $attribute = $args['attribute']; 152 | $name = $args['name'] ? $args['name'] : 'attribute_'.sanitize_title($attribute); 153 | $id = $args['id'] ? $args['id'] : sanitize_title($attribute); 154 | $class = $args['class']; 155 | $show_option_none = (bool)$args['show_option_none']; 156 | $show_option_none_text = $args['show_option_none'] ? $args['show_option_none'] : __('Choose an option', 'tijarah'); 157 | 158 | if(empty($options) && !empty($product) && !empty($attribute)) { 159 | $attributes = $product->get_variation_attributes(); 160 | $options = $attributes[$attribute]; 161 | } 162 | 163 | $radios = '
'; 164 | 165 | if(!empty($options)) { 166 | if($product && taxonomy_exists($attribute)) { 167 | $terms = wc_get_product_terms($product->get_id(), $attribute, array( 168 | 'fields' => 'all', 169 | )); 170 | 171 | foreach($terms as $term) { 172 | if(in_array($term->slug, $options, true)) { 173 | $radios .= 'slug, false).'>'; 174 | } 175 | } 176 | } else { 177 | foreach($options as $option) { 178 | $checked = sanitize_title($args['selected']) === $args['selected'] ? checked($args['selected'], sanitize_title($option), false) : checked($args['selected'], $option, false); 179 | $radios .= ' 180 | 181 | '; 182 | } 183 | } 184 | } 185 | 186 | $radios .= '
'; 187 | 188 | return $html.$radios; 189 | } 190 | add_filter('woocommerce_dropdown_variation_attribute_options_html', 'tijarah_variation_radio_buttons', 20, 2); 191 | 192 | remove_theme_support( 'wc-product-gallery-zoom' ); 193 | remove_theme_support( 'wc-product-gallery-lightbox' ); 194 | remove_theme_support( 'wc-product-gallery-slider' ); 195 | 196 | add_filter( 'woocommerce_output_related_products_args', 'jk_related_products_args', 20 ); 197 | function jk_related_products_args( $args ) { 198 | $args['posts_per_page'] = 5; // 4 related products 199 | $args['columns'] = 1; // arranged in 2 columns 200 | return $args; 201 | } 202 | 203 | add_action( 'woocommerce_account_content', 'remove_dashboard_account_default', 5 ); 204 | function remove_dashboard_account_default() { 205 | remove_action( 'woocommerce_account_content', 'woocommerce_account_content', 10 ); 206 | add_action( 'woocommerce_account_content', 'custom_account_orders', 10 ); 207 | } 208 | 209 | 210 | function custom_account_orders( $current_page ) { 211 | global $wp; 212 | 213 | if ( ! empty( $wp->query_vars ) ) { 214 | foreach ( $wp->query_vars as $key => $value ) { 215 | // Ignore pagename param. 216 | if ( 'pagename' === $key ) { 217 | continue; 218 | } 219 | 220 | if ( has_action( 'woocommerce_account_' . $key . '_endpoint' ) ) { 221 | do_action( 'woocommerce_account_' . $key . '_endpoint', $value ); 222 | return; 223 | } 224 | } 225 | } 226 | 227 | $current_page = empty( $current_page ) ? 1 : absint( $current_page ); 228 | $customer_orders = wc_get_orders( apply_filters( 'woocommerce_my_account_my_orders_query', array( 229 | 'customer' => get_current_user_id(), 230 | 'page' => $current_page, 231 | 'paginate' => true, 232 | ) ) ); 233 | 234 | wc_get_template( 235 | 'myaccount/orders.php', 236 | array( 237 | 'current_page' => absint( $current_page ), 238 | 'customer_orders' => $customer_orders, 239 | 'has_orders' => 0 < $customer_orders->total, 240 | ) 241 | ); 242 | } 243 | 244 | add_filter ( 'woocommerce_account_menu_items', 'misha_remove_my_account_links' ); 245 | function misha_remove_my_account_links( $menu_links ){ 246 | 247 | unset( $menu_links['edit-address'] ); // Addresses 248 | 249 | unset( $menu_links['dashboard'] ); // Remove Dashboard 250 | unset( $menu_links['payment-methods'] ); // Remove Payment Methods 251 | unset( $menu_links['orders'] ); // Remove Orders 252 | unset( $menu_links['downloads'] ); // Disable Downloads 253 | unset( $menu_links['edit-account'] ); // Remove Account details tab 254 | unset( $menu_links['customer-logout'] ); // Remove Logout link 255 | 256 | return $menu_links; 257 | 258 | } -------------------------------------------------------------------------------- /inc/customizer-controls.php: -------------------------------------------------------------------------------- 1 | array( 22 | 'href' => array(), 23 | 'title' => array(), 24 | 'class' => array(), 25 | 'target' => array(), 26 | ), 27 | 'br' => array(), 28 | 'em' => array(), 29 | 'strong' => array(), 30 | 'i' => array( 31 | 'class' => array() 32 | ), 33 | 'span' => array( 34 | 'class' => array(), 35 | ), 36 | 'code' => array(), 37 | ); 38 | ?> 39 |
40 | label ) ) { ?> 41 | label ); ?> 42 | 43 | description ) ) { ?> 44 | description, $allowed_html ); ?> 45 | 46 |
47 | get_skyrocket_resource_url() . 'css/customizer.css', array(), '1.0', 'all' ); 64 | }*/ 65 | /** 66 | * Render the control in the customizer 67 | */ 68 | public function render_content(){ 69 | ?> 70 |
71 |
72 | link(); checked( $this->value() ); ?>> 73 | 77 |
78 | label ); ?> 79 | description ) ) { ?> 80 | description ); ?> 81 | 82 |
83 | manager->get_control( $setting->id )->choices; 118 | return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); 119 | } 120 | 121 | /** 122 | * checkbox sanitization 123 | */ 124 | function iebase_checkbox_sanitize( $input ) { 125 | if ( $input == 1 ) { 126 | return 1; 127 | } else { 128 | return ''; 129 | } 130 | } 131 | 132 | /** 133 | * Radio Button and Select sanitization 134 | */ 135 | if ( ! function_exists( 'iebase_radio_sanitization' ) ) { 136 | function iebase_radio_sanitization( $input, $setting ) { 137 | //get the list of possible radio box or select options 138 | $choices = $setting->manager->get_control( $setting->id )->choices; 139 | 140 | if ( array_key_exists( $input, $choices ) ) { 141 | return $input; 142 | } else { 143 | return $setting->default; 144 | } 145 | } 146 | } 147 | 148 | /** 149 | * checkbox sanitization 150 | */ 151 | if ( ! function_exists( 'iebase_sanitize_checkbox' ) ) { 152 | function iebase_sanitize_checkbox( $input ) { 153 | return ( ( isset( $input ) && true == $input ) ? true : false ); 154 | } 155 | } 156 | 157 | /** 158 | * Sanitizes Fonts 159 | */ 160 | if ( ! function_exists( 'iebase_sanitize_fonts' ) ) { 161 | function iebase_sanitize_fonts( $input ) { 162 | $valid = array( 163 | 'Georgia,Times,"Times New Roman",serif' => 'Serif', 164 | '-apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif' => 'Sans Serif', 165 | '-apple-system, BlinkMacSystemFont, "Microsoft YaHei", Helvetica, Arial, sans-serif' => 'Microsoft YaHei', 166 | 'Helvetica, Arial, sans-serif' => 'Helvetica', 167 | '-apple-system, BlinkMacSystemFont, "Noto Sans", Helvetica, Arial, sans-serif' => 'Noto Sans', 168 | '"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif'=> 'Roboto', 169 | 'Arial, sans-serif' => 'Arial', 170 | 'Trebuchet MS, Helvetica, sans-serif' => 'Trebuchet MS', 171 | 'MS Sans Serif, Geneva, sans-serif' => 'MS Sans Serif', 172 | 'Arial, sans-serif' => 'Arial', 173 | '"Avant Garde", sans-serif' => 'Avant Garde', 174 | 'Cambria, Georgia, serif' => 'Cambria', 175 | 'tahoma,arial,\5b8b\4f53,sans-serif' =>'SimSun', 176 | '-apple-system, BlinkMacSystemFont, "Lato", Helvetica, Arial, sans-serif' => 'Lato', 177 | ); 178 | if ( array_key_exists( $input, $valid ) ) { 179 | return $input; 180 | } else { 181 | return ''; 182 | } 183 | } 184 | } 185 | 186 | 187 | } -------------------------------------------------------------------------------- /inc/extras.php: -------------------------------------------------------------------------------- 1 | = 10 ) { 91 | $additional_time += 3 * (int) $wpm / 60; 92 | } else { 93 | $additional_time += (12 - ($i - 1) ) * (int) $wpm / 60; 94 | } 95 | } 96 | 97 | return $additional_time; 98 | } 99 | } 100 | 101 | /* Excerpt Optimize 102 | /***********************************************************************/ 103 | add_filter( 'get_the_excerpt', 'iebase_filter_chinese_excerpt' ); 104 | 105 | function iebase_filter_chinese_excerpt( $output ) { 106 | global $post; 107 | $length = 100; 108 | //check if its chinese character input 109 | $chinese_output = preg_match_all("/\p{Han}+/u", $post->post_content, $matches); 110 | if($chinese_output) { 111 | $output = mb_substr( $output, 0, $length/2 ) . '...'; 112 | } 113 | else{ 114 | $output = mb_substr( $output, 0, $length ) . '...'; 115 | } 116 | return $output; 117 | } 118 | 119 | /** 120 | * social names 121 | */ 122 | if ( !function_exists( 'iebase_social_names' ) ) { 123 | function iebase_social_names() { 124 | 125 | $account_names = array( 126 | 'facebook', 127 | 'twitter', 128 | 'weibo', 129 | 'qq', 130 | 'pinterest', 131 | 'google', 132 | 'linkedin' 133 | ); 134 | 135 | return $account_names; 136 | 137 | } 138 | } 139 | /* Social Icons */ 140 | if ( !function_exists( 'iebase_social_labels' ) ) { 141 | function iebase_social_labels() { 142 | 143 | $labels = array( 144 | esc_html__( 'Facebook', 'iebase' ), 145 | esc_html__( 'Twitter', 'iebase' ), 146 | esc_html__( 'Weibo', 'iebase' ), 147 | esc_html__( 'QQ', 'iebase' ), 148 | esc_html__( 'Pinterest', 'iebase' ), 149 | esc_html__( 'Google+', 'iebase' ), 150 | esc_html__( 'LinkedIn', 'iebase' ) 151 | ); 152 | 153 | return $labels; 154 | 155 | } 156 | } 157 | 158 | if ( !function_exists( 'iebase_social_icons' ) ) { 159 | function iebase_social_icons() { 160 | 161 | $icons = array( 162 | 'facebook', 163 | 'twitter', 164 | 'weibo', 165 | 'qq', 166 | 'pinterest', 167 | 'google-plus', 168 | 'linkedin' 169 | ); 170 | 171 | return $icons; 172 | 173 | } 174 | } 175 | 176 | /** 177 | * Add numerical words to numbers 178 | */ 179 | function iebase_numerical_word( $number ) { 180 | 181 | if ( $number < 1000 ) { 182 | return $number; 183 | } else if ( $number <= 1000000 ) { 184 | $scale_to = 1000; 185 | $suffix = esc_html__( 'k', 'iebase' ); 186 | } else { 187 | $scale_to = 1000000; 188 | $suffix = esc_html__( 'M', 'iebase' ); 189 | } 190 | 191 | $precision = 1; 192 | $multiple = pow( 10, $precision ); 193 | $number = round( ( $number / $scale_to ) * $multiple ) / $multiple; 194 | 195 | return sprintf( '%1$s%2$s', $number, $suffix ); 196 | } 197 | 198 | /** 199 | * custom js in footer 200 | */ 201 | if (!function_exists('iebase_custom_script')) { 202 | function iebase_custom_script() { 203 | $custom_js = get_theme_mod('custom_js'); 204 | if ($custom_js) { 205 | echo''; 208 | } 209 | } 210 | add_action('wp_footer', 'iebase_custom_script' ,1); 211 | } 212 | 213 | /** 214 | * Related Posts Function. 215 | */ 216 | if ( ! function_exists ( 'iebase_related_posts' ) ) { 217 | function iebase_related_posts() { 218 | global $post; 219 | $tags = wp_get_post_tags( $post->ID ); 220 | $tag_arr = ''; 221 | 222 | if( $tags ) { 223 | foreach( $tags as $tag ) { 224 | $tag_arr .= $tag->slug . ','; 225 | } 226 | 227 | $args = array( 228 | 'tag' => $tag_arr, 229 | 'numberposts' => 3, 230 | 'post__not_in' => array( $post->ID ) 231 | ); 232 | 233 | $related_posts = get_posts( $args ); 234 | 235 | if( $related_posts ) { 236 | echo ''); 107 | } 108 | endif; 109 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 |
42 | 43 | post_title, 0, 50, '...'); 23 | $ie_item_official = get_post_meta( $down_id, 'iebase_download_official', true ); 24 | $ie_item_license = get_post_meta($down_id , 'iebase_download_license', true); 25 | } 26 | $ie_item_contact = get_permalink( get_page_by_path( 'contact' ) ); 27 | ?> 28 | 29 | 30 | 31 |
32 | 33 |
34 | 35 | 42 | 43 |
44 | 45 | 62 | 63 | 74 | 75 |
76 |
77 | 79 | 80 | 81 | 82 |
83 | 84 |
85 |
86 |
> 87 | 88 |
89 | 90 |

%s from our site. The following are available links. And just press the button and the file will be automatically downloaded.', 'iebase' ), $ie_item_title); ?> 91 |

92 |
93 |
10 seconds...', 'iebase' ); ?>
94 |
95 | 96 |
97 |

%s for free. Here are some notes:', 'iebase' ), $ie_item_title); ?>

98 |

use guide.', 'iebase' ), $ie_item_official); ?>

99 |

contact form here.', 'iebase' ), $ie_item_contact); ?>

100 |

101 |

102 |

103 |
104 |
105 | 108 |
109 |
110 |
111 | 112 |
113 | 114 | 11 | 12 | 13 | 14 |
15 | 16 |
17 |
18 |
> 19 | 20 |
21 | 26 | 27 |
28 | 29 | 42 |
43 |
44 |
45 | 46 |
47 | 48 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | 15 |
> 16 |
17 | ' . $display_message . '
'; 24 | 25 | }else{ 26 | 27 | $upload_stat = false; 28 | 29 | if( isset( $_POST['iebase_post_submit'] ) ){ 30 | 31 | if( function_exists( 'iebase_post_post_upload' ) ) $upload_stat = iebase_post_post_upload(); 32 | 33 | } 34 | 35 | if( !$upload_stat ){ 36 | 37 | $post_title = isset( $_POST['iebase_post_title'] ) ? $_POST['iebase_post_title'] : ''; 38 | 39 | $post_content = isset( $_POST['iebase_post_content'] ) ? $_POST['iebase_post_content'] : ''; 40 | 41 | $post_id = isset( $_POST['iebase_post_url'] ) ? $_POST['iebase_post_url'] : ''; 42 | 43 | $post_poster = isset( $_FILES['iebase_post_poster'] ) ? $_FILES['iebase_post_poster'] : ''; 44 | 45 | $post_category = isset( $_POST['iebase_post_category'] ) ? $_POST['iebase_post_category'] : ''; 46 | 47 | $post_new_category = isset( $_POST['iebase_new_post_category'] ) ? $_POST['iebase_new_post_category'] : ''; 48 | 49 | $cat_list = ''; 50 | 51 | $categories = get_categories( array( 52 | 'orderby' => 'name', 53 | 'order' => 'ASC', 54 | 'hide_empty' => 0, 55 | ) ); 56 | 57 | foreach( $categories as $category ) { 58 | $seleted_cat = is_array( $post_category ) && in_array( $category->term_id, $post_category ) ? $category->term_id : ''; 59 | 60 | $cat_list .= ''; 61 | } 62 | 63 | $category_allowed_html = array( 64 | 'option' => array( 65 | 'value' => array(), 66 | 'selected' => array() 67 | ) 68 | ); 69 | ?> 70 | 71 |
72 | 73 |

74 | 75 |

76 | 77 |
78 | 79 |
80 | 81 | 84 |
85 | 86 | 87 | '. esc_html__( 'Use raw text for post title. Don\'t include here html.', 'iebase' ) .' 88 |
89 | 90 |
91 | 92 | 93 | '. esc_html__( 'Use raw text for post content. Don\'t include here html.', 'iebase' ) .' 94 |
95 | 96 |
97 | 98 | 99 | '. esc_html__( 'Choose and upload image for featured image. Supported file types: jpg, png, gif, bmp, jpeg', 'iebase' ) .' 100 |
101 | 102 |
103 | 104 | 105 | '. esc_html__( 'Place here your post original url', 'iebase' ) .' 106 |
107 | 108 |
109 | 110 | 111 | 112 | '. esc_html__( 'This is optional. You can choose post category from existing categories.', 'iebase' ) .' 113 |
114 | 115 |
116 | 117 | 118 | '. esc_html__( 'This is optional. You can enter new post category separated by comma(,). Example Travel,Fun', 'iebase' ) .' 119 |
120 | 121 | '. wp_nonce_field( 'iebase_security_post_nonce', 'iebase_post_nonce' ) .' 122 | 123 | 124 | 125 | ';?> 126 | 127 |
128 | 129 |
130 | 131 |
132 | 133 |
134 |
135 | 136 | 16 | 17 |
18 | 19 |
20 |
21 | 22 |
23 | 28 |
29 |
30 |
31 | 32 |
33 | 34 | 16 | 17 | 18 | 19 |
20 | 21 |
22 |
23 |
> 24 | 25 |
26 | 36 | 37 |
38 | 39 | 52 |
53 |
54 |
55 | 56 |
57 | 58 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /sim-page.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 |
20 |
21 |
> 22 | 23 |
24 | 25 | 35 | 36 | 37 |
38 | 39 | 42 |
43 |
44 |
45 | 46 |
47 | 48 | 11 | 12 | 13 | 14 |
15 | 16 |
17 |
18 | 19 |
> 20 | 21 |
22 | 23 | 29 | 30 | 31 |
32 | 33 |
34 |
35 |
36 | 37 |
38 |
39 |
40 | 41 |
42 |
43 | 44 | 53 | 54 |
55 |
56 |
57 | 58 |
59 |
60 | 61 |
62 | 63 | 11 | 12 |
13 | 14 |
15 |
16 | 17 |
18 |
19 | 20 | 21 | 22 |
23 | 29 |
30 | 31 | 32 | 33 |
34 |
35 | 36 |
37 |
38 | 39 | 40 | 41 |
42 | 43 | 9 | 10 |
11 |
12 |
13 | 14 | 28 | 29 |
30 |
31 |
-------------------------------------------------------------------------------- /template-parts/author-bio.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 |
15 |
16 |

' . get_the_author() . ''); 18 | ?>

19 |
20 |

21 |
22 |
23 |
24 | 25 |
-------------------------------------------------------------------------------- /template-parts/comments-navigation.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /template-parts/content-none.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 |
14 | 15 | 16 | 17 | 18 |

19 | 20 | 21 | 22 |
23 |
-------------------------------------------------------------------------------- /template-parts/content-search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 |
14 | 15 |
16 |
17 | 18 |
19 | 24 |
25 | 26 |
27 | 28 |
-------------------------------------------------------------------------------- /template-parts/header.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 | 12 |
13 |
14 | 17 | 18 | 19 | 20 | 21 | '> 22 | 23 | 24 |
25 | 28 | 29 | 30 | 31 | 32 |
33 |
34 |
35 | 36 |
37 | 38 |
39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /template-parts/hero.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 |
18 | 19 |
20 |

21 |
22 | 23 |
24 | 25 |
26 | 27 | 28 |
29 | 30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /template-parts/modal-search-form.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /template-parts/navigation.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 |

12 |
    13 | 'primary', 'items_wrap' => '%3$s', 'container' => false ) ); ?> 14 |
15 | -------------------------------------------------------------------------------- /template-parts/no-results.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 |

13 | Get started here.', 'iebase' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?> 14 |

15 | 16 | 17 | 18 |

19 | 20 |

21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |

29 | 30 |

31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /template-parts/page-hero.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 |
12 |

13 |
14 |
-------------------------------------------------------------------------------- /template-parts/pagination.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 |
12 | 13 |
14 | -------------------------------------------------------------------------------- /template-parts/post-card.php: -------------------------------------------------------------------------------- 1 | 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 | 37 |

38 | 39 |

40 | 41 | 42 |
43 | 44 |
45 | 46 |
47 | 48 | 49 | 50 | 51 | )'> 52 | '> 53 | 54 | 55 | 56 | 57 | 58 | '> 59 | 60 | 61 | 62 | 63 |
64 | 65 |

66 |

67 | 68 |

69 |
70 | 71 |
72 |
73 | 74 | 75 |
76 | 77 | 80 | 81 | '; 84 | echo iebase_numerical_word( $post_view ); 85 | echo ''; 86 | };?> 87 | 88 | 89 | 90 | 93 | 94 |
95 | 96 | 97 |
98 | 99 |
100 |
-------------------------------------------------------------------------------- /template-parts/post-hero.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 |
12 | 13 | 14 | 15 |
16 |
-------------------------------------------------------------------------------- /template-parts/post-navigation.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | ' ' . 13 | '' . esc_html__( 'Next post:', 'iebase' ) . '' . 14 | '%title', 15 | 'prev_text' => '' . 16 | '' . esc_html__( 'Previous post:', 'iebase' ) . '' . 17 | '%title', 18 | ) ); 19 | ?> -------------------------------------------------------------------------------- /template-parts/post-related.php: -------------------------------------------------------------------------------- 1 | 9 | 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 |
-------------------------------------------------------------------------------- /template-parts/search-header.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 |
12 |
13 |

' . get_search_query() . '' ); ?>

14 |
15 |
16 |
-------------------------------------------------------------------------------- /template-parts/share.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /template-parts/social-nav.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /template-parts/tag-header.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 |
12 |
13 | 14 |

' . single_tag_title( '', false ) . '' ); 17 | ?>

18 | 19 | 20 |

21 | 22 |

23 | 24 | 25 |
26 |
27 |
-------------------------------------------------------------------------------- /template-parts/wp-link-pages.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | '', 14 | ) ); 15 | ?> -------------------------------------------------------------------------------- /woocommerce.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 |
20 | 21 |
22 |
23 | 26 |
27 |
28 | 29 |
30 | 31 |