trker/voyager-awesome-albums

为 Voyager 管理员提供的简单快速创建相册的工具

此包的规范存储库似乎已消失,因此该包已被冻结。

1.1 2018-07-26 06:28 UTC

This package is auto-updated.

Last update: 2024-09-18 18:51:16 UTC


README

此包的功能

为 Voyager 管理员轻松创建图片相册

Voyage Admin image upload system
Voyage Admin permission system
Voyager Admin Bread System (Can set conditions on input values.)
Voyager Admin Multi language input system (optional use)
Multi Language Support (English and Turkish other languages need translation.)
Quick easy album sharing with editor (via shortcut code) (optional dependent)
Shortcut to share pictures selected from the album in writing.
3 Stock Gallery Design (possibility to choose design on different pages or make special design)
Quick and Easy to Use.
Upload multiple images.
Delete multiple pictures
Image Sequence Determination
----------TR--------------
Voyage Admin  resim yükleme sistemi
Voyage Admin  permission sistemi
Voyager Admin bread Sistemi( Giriş değerlerine koşul koyabilme.)
Voyager Admin Çoklu dil girişi Sistemi( istege bağlı kullanım)
Çoklu Dil Desteği( İngilizce ve türkçe Diğer dillere çeviri gerekir.)
Editör Aracılığı ile hızlı kolay albüm paylaşımı (kısayol kodu ile )( istege bağlı kullanım)
Kısayol ile albümden seçilen resimleri yazıda paylaşabilme.
3 Hazır Galeri Tasarımı (farklı sayfalarda tasarım seçebilme veya özel tasarım yapabilme imkanı)
Hızlı Kolay Kullanım.
Çoklu resim yükleme.
Çoklu resim silmek
Resim Sırası Belirleyebilme

所需条件

Voyager Admin v1.0 或更高版本

安装

composer require trker/voyager-awesome-albums

添加服务提供者(config/app)


trker\VoyagerAwesomeAlbums\VoyagerAwesomeAlbumsServiceProvider::class,

添加别名

'VoyagerAlbums' => trker\VoyagerAwesomeAlbums\VoyagerAlbums::class,

在您的目录中运行代码。

 php artisan vendor:publish --provider="trker\VoyagerAwesomeAlbums\VoyagerAwesomeAlbumsServiceProvider"

登录管理员后,Voyager 会自动加载,并给予管理员角色扮演权限。

查询

\Albums::all(); //all albums
//example
$albums=\Albums::wherestatus(1)->first(); //status 1 get

$albums->images //all images in the album from

//All images

\AlbumsImage::all(); //all image

快捷方式使用(可选)

快捷方式显示您在创建的相册中指定的快捷方式显示的图片。必须启用,无需配置快捷方式。(默认启用)

{!!  \VoyagerAlbums::shortcode(article,template) !!}

{!!  \VoyagerAlbums::shortcode($post->body,'bootstrap') !!}

standard templates
"default"
"bootstrap"
"special"
------Add or call a new template--------
Path 1: albums config add new template
    albums config add
      'template_folder' => [
                'test_template' => 'albums.test' //example
             'template name' => 'path' // add album template
         ],
call

{!! \VoyagerAlbums::shortcode(article,'test_template') !!} 
Path 2: direct template calling with calling code
{!! \VoyagerAlbums::shortcode(article,'albums.test_template') !!}

配置文件

    'albums_shortcode' => true, //albums shortcut enable | disable  
'slug_shortcut'=> true, //editor slug search album | [album('%slug%');] or [album(slug:'%slug%'),ids('%image ids% 5,3,2');]

'id_shortcut'=> true, //editor id search album | [album(%album id%);] or [album(id:1),ids('3,7');]

'image_exif_data'=> true, //Album image exif data return array |$image->exif(); | $image->exif()['FileName'];

'default_album_template'=> "default", //default - bootstrap - special | default template

'template_folder' => [
    'default' => 'albums.default',
    'bootstrap' => 'albums.bootstrap',
    'special' => 'albums.special',
],

'image_folder'=>url('/storage'), // image storage folder //example www.webname.app/storage / for paths within the package.

1.jpg?raw=true

2.jpg?raw=true