Title: Gallery One
Author: shrimp2t
Published: <strong>2016 年 5 月 24 日</strong>
Last modified: 2016 年 5 月 28 日

---

搜索插件

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

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

![](https://ps.w.org/gallery-one/assets/icon-256x256.png?rev=1425220)

# Gallery One

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

[下载](https://downloads.wordpress.org/plugin/gallery-one.zip)

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

 [支持](https://wordpress.org/support/plugin/gallery-one/)

## 描述

See demo: http://shrimp2t.com/gallery-one/

#### Features

 * Fully responsive, Touch enabled
 * **Unlimited albums**
 * **Unlimited images**
 * Carousel
 * Gird
 * Justified
 * Masonry
 * Slideshow
 * Blog style (comming soon )
 * JustifiedGallery Light box
 * Load Facebook album images
 * Load Flickr album images
 * Add image from url
 * Shortcode creator

#### Load Facebook Album

Just paste your album url, example:

    ```
    https://www.facebook.com/BillGates/photos/?tab=album&album_id=10153110017351961
    ```

Note: Your album status must be public to load.

#### Load Flickr Album

Just paste your album url, example:

    ```
    https://www.flickr.com/photos/gianstefanofontana/albums/72157649693279051
    ```

Note: Your album status must be public to load.

#### Adding your own view in your theme

 * Create a folder `gallery-one` on your theme.
 * Inside folder which created add a file and name `view.php`
 * [Optional] Inside folder which created add a file and name `config.php`

Example file `view.php`:

    ```
    <div class="my-view">
    <?php
     var_dump( $this->settings ); /* You config data in file config.php
     var_dump( $this->media->get_data() ); // Gallery items data
     ?>
    </div>
    ```

Example file `config.php`:

    ```
    $config = array(
        'name' => __( 'Justified', 'gallery-one' ), // view name
        'js' => 'js/js.js',
        'css' => 'css/css.css',
        'view_settings' => array(
            array(
                'id' => 'margins',
                'default' => '10',
                'label' => __( 'Margins', 'gallery-one' ),
                'type' => 'text'
            ),
            array(
                'id'        => 'lightbox',
                'default'   => '1',
                'label'     => __( 'Lightbox', 'gallery-one' ),
                'type'      => 'checkbox'
            ),

        ),
    );
    ```

#### Adding your own view in your plugin

 * Create new folder in your plugin, example: `my-cool-views`.
 * Add add new view folder example: `my-cool-views/full-screen`.
 * Add `view.php` file for you view `my-cool-views/full-screen/view.php`.
 * [Optional] Add `config.php` file for you view `my-cool-views/full-screen/config.
   php`.
 * Add your your views folder to view loader:
 * add_filter( ‘gallery_one_get_template_folders’, ‘my_cool_views_path’);
 * function my_cool_views_path( $view_paths ){
    $view_paths[‘my_cool_view’] = PATH_TO_MY_PLUGIN.’/
   my-cool-views’; return $view_paths; }

#### Config Parameters

name: (string) Name of your view.

css: (string/array) CSS files will enqueue when this view load.

js: (string/array) JS files will enqueue when this view load.

view_settings: (array) list field settings for your view.

**view_settings** Parameters:

 * id: Id of setting field.
 * label: Label of setting files.
 * default: Default value.
 * type: Field type: text|select|checkbox|textarea.
 * option: For field type select (array).
 * desc: Field description.

## 屏幕截图

[⌊Justified⌉⌊Justified⌉[

Justified

[⌊Slider⌉⌊Slider⌉[

Slider

[⌊Masonry⌉⌊Masonry⌉[

Masonry

[⌊Carousel⌉⌊Carousel⌉[

Carousel

[⌊Slider⌉⌊Slider⌉[

Slider

[⌊Lightbox⌉⌊Lightbox⌉[

Lightbox

[⌊Admin galleries⌉⌊Admin galleries⌉[

Admin galleries

[⌊Editing gallery⌉⌊Editing gallery⌉[

Editing gallery

[⌊Editing image info⌉⌊Editing image info⌉[

Editing image info

[⌊Shortcode creator⌉⌊Shortcode creator⌉[

Shortcode creator

## 安装

 1. Upload `gallery-one` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the Galleries Name screen to add gallery

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Release

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**10 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 4.5 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/gallery-one/)
 * 标签
 * [facebook](https://cn.wordpress.org/plugins/tags/facebook/)[galleries](https://cn.wordpress.org/plugins/tags/galleries/)
   [gallery](https://cn.wordpress.org/plugins/tags/gallery/)[image](https://cn.wordpress.org/plugins/tags/image/)
   [images](https://cn.wordpress.org/plugins/tags/images/)
 *  [高级视图](https://cn.wordpress.org/plugins/gallery-one/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://shrimp2t.com/gallery-one/)