Git Product home page Git Product logo

tint-pro's Introduction

https://old.webapproach.net/shop/tint-pro.html

为防止泄露收费代码,dev分支的本地commit不再提交,请查看Master分支,其中功能函数为二进制加密,需要购买使用->传送门

Tint

基于WordPress内容管理系统的高级扩展主题(原Tinection 2)

Tint为付费主题,购买地址为WebApproach商店

Tint主题介绍:查看介绍

Tint主题专用git仓库和wiki: 访问WebApproach仓库

Tint特点

Tint颠覆了以往的WordPress主题开发模式,在各种MVVM框架大行其道的今天,有必要将其优点引入到这之中来。

类似MVVM,Tint添加了View Model层,其有以下若干优点:

* 降低View Controller或View的重量,例如通常WordPress直接在页面模板中混杂各种运行计算逻辑或函数以及HTML代码,现在页面模板主要作为控制器,可以引入多个小的模块页面,数据由响应的ViewModel类实例提供并输入到页面
* 更方便的数据管理,易于在ViewModel中引入缓存控制器,目前缓存控制逻辑在Base ViewModel中,而具体的ViewModel可以拥有缓存控制开关和缓存时间等配置
* 更清晰的目录结构,Tint完全改写了原有的模板加载方式,不让各类模板完全集中在主题主目录,代码文件按照功能/类型存放,如assets、core/classes、core/functions、core/templates、core/viewModels等,修改或二次开发更方便

Tint使用了工程化的开发方式,src为开发目录,各种功能脚本按模块开发并最终打包压缩为一份适用于生产环境的JS文件,如果你需要添加或修改功能,非常容易添加模块或修改已有模块。同样对于使用Less开发的样式表也是如此。

Tint集成了多种缓存方式,包括如下几种:

* 数据库片段:将多个高度相关查询结果存为一份数据,降低查询次数(首页queries降低约40%至50~60queries)
* Memcache对象缓存: 内存对象键值对缓存,只需要后台设置填写对应服务器地址和端口即可使用
* Redis对象缓存: 同样是内存对象缓存,不同于Memcache的是其可以将数据同步到文件系统并随时恢复,配置也和Memcache一样只需填写服务器和端口

内存对象缓存能极大降低查询次数,目前WebApproach已开启Memcache并将首页查询降低到个位数,稳定在7queries左右,相比数据库片段方式优势明显

其他...见介绍文章

使用的开源代码\资源

tint-pro's People

Contributors

thundernet8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tint-pro's Issues

[问题]主题缓存似乎对页面进行了二次处理

使用某短代码插件,此插件需要加载自己的css和js。
在文章内使用短代码后,第一次打开文章页面正常显示。第二次打开,页面没有加载短代码css、js。
清理主题缓存后再打开页面,正常显示。再次打开,页面没有加载短代码资源。


我尝试自己在页面内引入代码,但似乎引入的代码没有任何效果。我确保引入的代码确实被加载了。

function myxxxCss() {  
        wp_register_style( 'xxx', '/wp-content/themes/Tint/assets/css/xxx.css', false, false, true );
		wp_register_style( 'box_shortcodes', '/wp-content/plugins/shortcodes-ultimate/assets/css/box-shortcodes.css', false, false, true );
		wp_register_script( 'jquery', '//staticfile.qnssl.com/jquery/2.2.1/jquery.min.js');
		wp_register_script( 'other_shortcodes', '/wp-content/plugins/shortcodes-ultimate/assets/js/other-shortcodes.js', array('jquery'), false, true );
		wp_deregister_script( 'jquery' );
		if ( !is_admin() ) { /** Load Scripts and Style on Website Only */
			wp_enqueue_style( 'xxx' ); 
			wp_enqueue_style( 'box_shortcodes' );
			wp_enqueue_script( 'jquery' );
			wp_enqueue_script( 'other_shortcodes' ); 
		}  
}
add_action( 'init', 'myxxxCss' );

http://ww1.sinaimg.cn/large/ec76730dgy1fcsdh5xqisj208f0anaag.jpg
例如其中xxx.css内有样式

#header-menu i.tico {
    margin-right: 10px;
}

但根本没有任何效果,如果我手动直接在页脚载入则没有任何问题。

<link rel="stylesheet" type="text/css" href="https://hegou.*******/wp-content/themes/Tint/assets/css/xxx.css">

[建议]希望能显示购买了商品的用户邮箱

方便在商品更新时通知购买了商品的用户。

另外推荐 邮件队列 插件 SMTP Mailing Queue,支持 SMTP。

不过好像这款插件和主题不兼容,主题不能使用第三方SMTP插件吗?

新版主题问题反馈

问题:

  1. 主题商城固定链接问题(具体表现商城首页进不去,商品页面可以。)。。
  2. 订单支付页面二维码 未标注是支付宝还是微信 。
  3. IOS支付宝扫码转账无备注选项。
  4. 免签需要的支付宝cookie通过js无法导出完全,需要直接查看网页header头复制完整cookie。
  5. 登出登录错误。网站使用https 登出被引导到https://域名:80,手机登录也存在此问题。

建议:

  1. 希望能告主题使用的字体图标能在哪里看到图标列表?方便设置菜单图标,没能搜索到。
  2. 希望商品页面商品能显示剩余数量。
  3. 希望能告知邮件发送代码在哪,想取消掉一些邮件发送。(一笔订单4封邮件太多了)
  4. 微信支付需要手动确认,还需要添加好友。建议移除微信二维码。

[BUG]购物车支付问题

将商品加入购物车后生成的订单有一个子订单,就算主订单支付完成,子订单也显示未支付。
有些用户看着一个未支付不顺眼,直接将子订单删除。导致无法查看付费内容。

2.0.4版本未合并 库存剩余代码

如题

<!-- Product meta --> <div class="product_meta"> <span class="sku_wrapper"><?php _e('SKU: ', 'tt'); ?><span class="sku" itemprop="sku"><?php echo $productdata->ID; ?></span></span> <span class="posted_in"><?php _e('Categories: ', 'tt'); ?><?php echo implode(', ', $cat_breads); ?></span> </div>
然后2.0.4更新未修改style.css内主题版本号,导致wp依旧显示2.0.3 。

[BUG]邮件模板代码未闭合

Tint2.0.4\core\templates\plates\emails/register-admin.php:9
\Tint2.0.4\core\templates\plates\emails\register.php:8
错误代码:</div

[建议]前端管理&用户中心 移动css样式代码

@media screen and (max-width:767px) {
	.row>aside.col-left {
		width: 100%!important
	}

	nav>ul.mg_tabs>li,nav>ul.me_tabs>li {
		margin: 0 1.5%!important;
		float: left;
		padding: 10px;
		width: 19.2%;
		text-align: center
	}
	nav>ul.mg_tabs,nav>ul.me_tabs {
		padding-left: 40px;
	}

	.row>.col-right {
		margin-left: 0!important
	}

	body.me>.wrapper>.user-area .nav>.context-avatar a {
		display: none
	}

	body.me>.wrapper>.user-area .nav>.context-avatar {
		text-align: center
	}

	.row>aside.col-left,body.me>.wrapper>.user-area .nav>.context-avatar img {
		position: static!important
	}

	.user-area>.row>aside>nav {
		padding: 20px 0!important
	}
	.main-area>.row>aside>nav {
		padding: 20px 0 20px 40px!important;
	}
}

@media screen and (max-width:991px) {
	aside#sidebar {
		display: none
	}
}

[建议]邮件过多

一次订单交易多达5份邮件,实在太多了。如果每天50单交易,则多大250封邮件需要发送。
一封管理员通知邮件
一封免签支付宝通知邮件
一封用户通知邮件
一封用户订单变更邮件
一封用户商品付费内容邮件
本来打算自己改改,但是似乎邮件发送代码被加密了,没能找到。
因为我使用的是收费邮件推送服务,希望能少一些。希望能告诉我如何修改,以上内容无需邮件通知。
新用户注册也会发送管理员通知邮件,我通过wp钩子似乎也无法关闭。

小工具不能使用

主题设置里面 设置 好,然后小工具 添加不上,刷新 已经添加的小工具就消失了。

[BUG]管理员邮箱显示无法更新

管理员邮箱为 A ,后来将邮箱改为 B。

结果通知邮件还是发给A,网站里显示的管理员邮箱也是 A。

以上情况,已关闭对象缓存和主题缓存,并清理。


更改 设置 - 常规 里的邮箱地址即可。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.