jkauflin / jjkgallery
Web Media Gallery display for photos, videos, music, and docs
Installs: 161
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
- dev-master
- v3.3.17
- v3.3.16
- v3.3.15
- v3.3.14
- v3.3.13
- v3.3.12
- v3.3.11
- v3.3.10
- v3.3.9
- v3.3.8
- v3.3.7
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.0
- v2.2.1
- V2.2.0
- V2.1.1
- v2.1.0
- v2.0.0
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2024-11-14 21:11:42 UTC
README
HTML5 Javascript PHP dynamic media gallery for photos, youtube links, MP3 files, and PDF docs
It will dynamically build menus, breadcrumbs, and thumbnails based on the file structure and files
Photo gallery is based on blueimp library
Music is straight HTML5 Audio
Video uses a text file with YouTube links
Currently dependent on Bootstrap 5, and Font Awesome icons being included in the main page
Getting Started
- Put your files in a Media folder on the web root with the following folders:
Media
Docs
images
Music
Photos
Videos
- Add the following dependencies to
composer.json
to pull in the package from packagist.org
{
"require": {
"jkauflin/jjkgallery": "^2.1.0"
}
}
- Add the mediagallery javascript file to the root web page:
<script src="vendor/jkauflin/jjkgallery/mediagallery.js?ver=1.003"></script>
- Add navigation link with data-dir and MediaPage references:
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#MediaPage" data-dir="Photos"><i class="fa fa-camera"></i> Photos</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#MediaPage" data-dir="Videos" ><i class="fa fa-video-camera"></i> Videos</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#MediaPage" data-dir="Music"><i class="fa fa-music"></i> Music</a></li>
</ul>
</div>
- Add a MediaPage tab-pane with the following DIV sections
<div class="tab-pane" id="MediaPage">
<div class="row">
<div class="col-sm-5 col-md-3 d-none d-sm-block">
<h4 id=MediaHeader></h4>
<div id="MediaMenu" class="panel-group"></div>
</div>
<div class="col-sm-7 col-md-9">
<div id="MediaConfig" class="float-right m-2"></div>
<ol id="MediaBreadcrumbs" class="breadcrumb mt-2 p-1"></ol>
<div id="MediaFolders"></div>
<div id="MediaThumbnails"></div>
</div>
</div><!-- row -->
</div><!-- end of Detail -->