這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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
  • Slider
  • Masonry
  • Carousel
  • Slider
  • Lightbox
  • Admin galleries
  • Editing gallery
  • Editing image info
  • 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〉的開發相關工作。

參與者

將〈Gallery One〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Release