Title: Cairn
Author: BF
Published: <strong>2014 年 1 月 2 日</strong>
Last modified: 2014 年 4 月 16 日

---

搜索插件

![](https://ps.w.org/cairn/assets/banner-772x250.png?rev=831960)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/cairn_f6eaeb.svg)

# Cairn

 作者：[BF](https://profiles.wordpress.org/braydonf/)

[下载](https://downloads.wordpress.org/plugin/cairn.zip)

 * [详情](https://cn.wordpress.org/plugins/cairn/#description)
 * [评价](https://cn.wordpress.org/plugins/cairn/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/cairn/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/cairn/#developers)

 [支持](https://wordpress.org/support/plugin/cairn/)

## 描述

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 is fast because template rendering is handled on the client side. Cairn replaces
the theme and permalink features of WordPress by hooking into the rewrite rules 
with url rules defined in static/urls.json. Templates are written using EJS Templating
and are rendered on the client side. 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.

Cairn is secure because personally identifiable information is stored in the database
encrypted with a GPG public key, and private keys stored optimistically offline.
This information should be submitted over an TLS connection (HTTPS), and is compulsory
when using this plugin. 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

Prerequisites:

 * A computer running GNU/Linux, Apache, MySQL to do development and testing.
 * The use of GPG and have a public/private for email
 * Expert knowledge of JavaScript, jQuery and AJAX
 * General knowledge of EJS JavaScript templating
 * Experience with the Electrum Bitcoin Wallet and general concepts of peer-to-peer
   payments.
 * Understand priciples of asymetric cryptography and public/private keys
 * Intermediate knowledge of PHP
 * USPS Web Tools API account for shipping calculations
 * A Stripe account to process credit cards
 * General knowledge of RSS/Atom feeds
 * Apache .htaccess and general priciples of rewriting URLs
 * Experience with configuring cron schedules
 * Knowledge of PHP APC for caching is a plus

## 安装

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

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

define(‘DISABLE_WP_CRON’,true);

And then enable the cron to be scheduled externally so that tasks do not
 interfere
with page loading:

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 (._) /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.

To generate documentation:

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

PHP Documented with http://phpdoc.org/ phpdoc -d . -t ./docs/php/

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

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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Cairn」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ BF ](https://profiles.wordpress.org/braydonf/)

[帮助将「Cairn」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/cairn)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/cairn/)，查看[SVN仓库](https://plugins.svn.wordpress.org/cairn/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/cairn/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/cairn/)。

## 额外信息

 *  版本 **0.1.5**
 *  最后更新：**12 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/cairn/)
 * 标签
 * [art](https://cn.wordpress.org/plugins/tags/art/)[bitcoin](https://cn.wordpress.org/plugins/tags/bitcoin/)
   [cart](https://cn.wordpress.org/plugins/tags/cart/)[checkout](https://cn.wordpress.org/plugins/tags/checkout/)
   [commerce](https://cn.wordpress.org/plugins/tags/commerce/)[creative commons](https://cn.wordpress.org/plugins/tags/creative-commons/)
   [ecommerce](https://cn.wordpress.org/plugins/tags/ecommerce/)[electrum](https://cn.wordpress.org/plugins/tags/electrum/)
   [exhibition](https://cn.wordpress.org/plugins/tags/exhibition/)[gallery](https://cn.wordpress.org/plugins/tags/gallery/)
   [gpg](https://cn.wordpress.org/plugins/tags/gpg/)[javascript](https://cn.wordpress.org/plugins/tags/javascript/)
   [license](https://cn.wordpress.org/plugins/tags/license/)[pgp](https://cn.wordpress.org/plugins/tags/pgp/)
   [privacy](https://cn.wordpress.org/plugins/tags/privacy/)[sales](https://cn.wordpress.org/plugins/tags/sales/)
   [sell](https://cn.wordpress.org/plugins/tags/sell/)[shipping](https://cn.wordpress.org/plugins/tags/shipping/)
   [shop](https://cn.wordpress.org/plugins/tags/shop/)[shopping](https://cn.wordpress.org/plugins/tags/shopping/)
   [store](https://cn.wordpress.org/plugins/tags/store/)[templates](https://cn.wordpress.org/plugins/tags/templates/)
   [usps](https://cn.wordpress.org/plugins/tags/usps/)
 *  [高级视图](https://cn.wordpress.org/plugins/cairn/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/cairn/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/cairn/reviews/)

## 贡献者

 *   [ BF ](https://profiles.wordpress.org/braydonf/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/cairn/)