Title: Repository Zip
Author: flashpixx
Published: <strong>2012 年 10 月 19 日</strong>
Last modified: 2012 年 11 月 1 日

---

搜索插件

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

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

# Repository Zip

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

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

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

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

## 描述

The plugin creates zip download links within articles and pages of a subversion 
or git repository. On each call the subversion revision number / git tag, link text,
css name and download
 name can be set, so that each link points to different repositority
parts.

#### Features

 * remote access to Git or Subversion repository
 * local caching for the repository data
 * automatic update to the head revision
 * extension access only need on access
 * free configuration of tags, branches, trunk and revision / commit access

### Requirements

 * WordPress 3.2 or newer
 * PHP 5.3.0 or newer
 * [PHP Zip extension](http://de3.php.net/manual/en/book.zip.php)

for SVN access
 * [PHP SVN extension](http://de3.php.net/manual/en/book.svn.php)

for Git access
 * Git client * PHP must execute shell commands (no safe mode)

### Shortcode

Shotcut for SVN access

    ```
    [svnzip url="url-to-your-svn"]
    ```

The SVN tag uses three optional flags (the default values are set within the plugin
settings):

 * “trunkdir” the name of the trunk directory
 * “branchdir” the name of the branch directory
 * “tagdir” the name of the tag directory

Shotcut for Git access

    ```
    [gitzip url="url-to-your-svn"]
    ```

Parameters for both commands are (all parameters are optional):

 * “version” defines a special revision (SVN) / commit (Git), which is used. If 
   the parameter is not set, the latest revision (head) is used
 * “downloadtext” filename for the downloaded file (if not is set, the linktext 
   is used)
 * “linktext” text of the link (default is set within the plugin settings)
 * “cssclass” sets the CSS class of the link (default is set within the plugin settings)
 * “type” enum value trunk | branch | tag for setting the repository part (default
   is trunk, for Git trunk is also used and it is applied to the master)
 * “name” the value for tag- or branchname (on trunk it is ignored / empty)

## 安装

 1. Upload the folder to the “/wp-content/plugins/” directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Take a look to the plugin setting page and set your initialization data

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.14

 * extend clean-up call
 * optimize Git download code
 * Git pull call changed with git-dir & work-tree flags

#### 0.13

 * clean-up expand for download files
 * git pull & checkout with force flag

#### 0.12

 * clean-up call for temporary data

#### 0.11

 * fixing Git pull path problem

#### 0.1

 * first version with the base functions for using Git and SVN support

## 额外信息

 *  版本 **0.14**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/repositoryzip/)
 * 标签
 * [download](https://cn.wordpress.org/plugins/tags/download/)[git](https://cn.wordpress.org/plugins/tags/git/)
   [subversion](https://cn.wordpress.org/plugins/tags/subversion/)[svn](https://cn.wordpress.org/plugins/tags/svn/)
   [zip](https://cn.wordpress.org/plugins/tags/zip/)
 *  [高级视图](https://cn.wordpress.org/plugins/repositoryzip/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/repositoryzip/reviews/#new-post)

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WCRMFYTNCJRAU)