[wordpress插件] Cairn凯恩

wordpress 插件 文章 2020-03-15 14:50 477 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Sell fine art online.

在线销售美术作品。

Cairn is built to be fast and secure to display artwork full screen and across a wide range of display sizes.

凯恩(Cairn)的构建旨在快速,安全地全屏显示艺术作品,并显示各种尺寸的图像。

Cairn is fast because template rendering is handled on the client side.

Cairn快速,因为模板渲染是在客户端处理的。

Cairn replaces the theme and permalink features of WordPress by hooking into the rewrite rules with url rules defined in static/urls.json.

Cairn通过使用static / urls.json中定义的url规则替代重写规则,从而替换了WordPress的主题和永久链接功能。

Templates are written using EJS Templating and are rendered on the client side.

模板是使用EJS模板编写的,并在客户端呈现。

There is a jQuery plugin written that uses the same rules to speed up user interactions, and with enough data able to render URLS without a request to the remote server.

有一个jQuery插件被编写,它使用相同的规则来加速用户交互,并且具有足够的数据来呈现URL,而无需请求远程服务器。

Cairn is secure because personally identifiable information is stored in the database encrypted with a GPG public key, and private keys stored optimistically offline.

Cairn是安全的,因为个人身份信息存储在使用GPG公钥加密的数据库中,而私钥则乐观地离线存储。

This information should be submitted over an TLS connection (HTTPS), and is compulsory when using this plugin.

此信息应通过TLS连接(HTTPS)提交,并且在使用此插件时是强制性的。

Additionally security features include payments being able to be handled using cryptocurrency Bitcoin, and thus no potentially personally identifiable information is nessasary to be shared with a third party and can be directly peer-to-peer.

此外,安全功能还包括可以使用加密货币比特币进行付款的功能,因此,无需与第三方共享任何可能的个人身份信息,就可以直接进行点对点。

Features

功能

    • Accept bitcoin and credit card payments
    • 接受比特币和信用卡付款

    • Personal privacy and security
    • 个人隐私和安全性

    • Dynamic prices and currency preference
    • 动态价格和货币偏爱

    • Designed for mobile
    • 专为移动设备设计

    • URL navigation is client side and lightweight
    • URL导航是客户端且轻量级

    Prerequisites:

    先决条件:

      • A computer running GNU/Linux, Apache, MySQL to do development and testing.
      • 运行GNU / Linux,Apache,MySQL的计算机进行开发和测试。

      • The use of GPG and have a public/private for email
      • 使用GPG并公开/不公开电子邮件

      • Expert knowledge of JavaScript, jQuery and AJAX
      • JavaScript,jQuery和AJAX的专业知识

      • General knowledge of EJS JavaScript templating
      • EJS JavaScript模板的常识

      • Experience with the Electrum Bitcoin Wallet and general concepts of peer-to-peer payments.
      • 使用Electrum比特币钱包以及点对点支付的一般概念。

      • Understand priciples of asymetric cryptography and public/private keys
      • 了解非对称密码和公用/专用密钥的原理

      • Intermediate knowledge of PHP
      • PHP的中级知识

      • USPS Web Tools API account for shipping calculations
      • 用于运费计算的USPS Web工具API帐户

      • A Stripe account to process credit cards
      • 用于处理信用卡的Stripe帐户

      • General knowledge of RSS/Atom feeds
      • RSS / Atom提要的常识

      • Apache .htaccess and general priciples of rewriting URLs
      • Apache .htaccess和重写URL的一般原则

      • Experience with configuring cron schedules
      • 配置cron计划的经验

      • Knowledge of PHP APC for caching is a plus
      • 具有PHP APC缓存知识为佳

安装步骤

URI are defined in /static/urls.json which is parsed and used within WordPress and jQuery Cairn

URI是在/static/urls.json中定义的,该文件在WordPress和jQuery Cairn中进行了解析和使用

It is recommended to disable the default cron in the wp-config.php

建议在wp-config.php中禁用默认cron

define(‘DISABLE_WP_CRON’,true);

define('DISABLE_WP_CRON',true);

And then enable the cron to be scheduled externally so that tasks do not

然后启用外部计划cron,以免执行任务

interfere with page loading:

干扰页面加载:

php5 -q //wp-cron.php

php5 -q //wp-cron.php

Rewrite rules needed to be added for images to be scaled dynamically:

需要添加重写规则以动态缩放图像:

RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} .(gif|png|jpg|jpeg) RewriteCond %{QUERY_STRING} (w|h)=(.)$ RewriteRule (.

RewriteCond%{REQUEST_FILENAME} -f RewriteCond%{REQUEST_URI}。(gif | png | jpg | jpeg)RewriteCond%{QUERY_STRING}(w | h)=(。)$ RewriteRule(。

) /wp-content/plugins/cairn/includes/timthumb/timthumb.php?src=$1&%1=%2&%3=%4 [L]

)/wp-content/plugins/cairn/includes/timthumb/timthumb.php?src=$1&%1=%2&%3=%4 [L]

It is also recommended to use object caching such as APC.

还建议使用对象缓存,例如APC。

To generate documentation:

要生成文档:

JavaScript Documented with http://usejsdoc.org/ jsdoc static/callbacks.js static/jquery.cairn.js staticeadme.md -d docs/js/

使用http://usejsdoc.org/ jsdoc static / callbacks.js static / jquery.cairn.js static / readme.md -d docs / js / 记录的JavaScript

PHP Documented with http://phpdoc.org/ phpdoc -d .

PHP用http://phpdoc.org/ phpdoc -d记录。

-t ./docs/php/

-t ./docs/php /

Full Documentation is available at: http://bitgress.com/cairn/

完整文档可从以下网站获得:http://bitgress.com/cairn/

To clone a git repository: git clone https://git.gitorious.org/cairn/cairn.git

要克隆git存储库:git clone https://git.gitorious.org/cairn/cairn.git

下载地址
https://downloads.wordpress.org/plugin/cairn.zip
-EOF-

AI助手支持GPT4.0