-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a94558f
Showing
265 changed files
with
50,195 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 4.1.14 | ||
-- http://www.phpmyadmin.net | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Generation Time: Oct 23, 2015 at 05:21 PM | ||
-- Server version: 5.6.17 | ||
-- PHP Version: 5.5.12 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
SET time_zone = "+00:00"; | ||
|
||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8 */; | ||
|
||
|
||
-- | ||
-- Table structure for table `aperture_settings` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `aperture_settings` ( | ||
`websitetitle` text NOT NULL, | ||
`subtitle` text NOT NULL, | ||
`footer` text NOT NULL, | ||
`facebook` text NOT NULL, | ||
`twitter` text NOT NULL, | ||
`instagram` text NOT NULL, | ||
`github` text NOT NULL, | ||
`email` text NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Dumping data for table `aperture_settings` | ||
-- | ||
|
||
INSERT INTO `aperture_settings` (`websitetitle`, `subtitle`, `footer`, `facebook`, `twitter`, `instagram`, `github`, `email`) VALUES | ||
('Aperture', 'Minimal Photo Album', '', 'vsaravind007', 'vsaravind007', 'vsaravind007', 'vsaravind007', '[email protected]'); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `aperture` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `aperture` ( | ||
`filename` text NOT NULL, | ||
`title` text NOT NULL, | ||
`description` text NOT NULL, | ||
`dateuploaded` date NOT NULL, | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ; | ||
|
||
|
||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
Lens by HTML5 UP | ||
html5up.net | @n33co | ||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) | ||
|
||
|
||
This is Lens, a full screen (and entirely responsive) photo gallery design. Unlike previous | ||
designs I've done in this vein (Parallelism, for instance), this one eschews the usual | ||
lightbox in favor of a completely full screen experience -- one that I'm happy to say | ||
translates awesomely all the way down to the tiniest of mobile devices. Full instructions | ||
below! | ||
|
||
Demo images* courtesy of Unsplash, a radtastic collection of CC0 (public domain) images | ||
you can use for pretty much whatever. | ||
|
||
(* = Not included) | ||
|
||
Feedback, bug reports, and comments are not only welcome, but strongly encouraged :) | ||
|
||
AJ | ||
n33.co @n33co dribbble.com/n33 | ||
|
||
|
||
Instructions: | ||
|
||
Overview: | ||
|
||
Lens is made up of three primary components: | ||
|
||
- The "main wrapper": The skinny little column on the right. Home to what little | ||
"regular" content you may have (header, footer, anything else you want to cram | ||
in there), as well as ... | ||
|
||
- The "thumbnails" section: A grid of thumbnails pointing to their respective | ||
full size images. | ||
|
||
- The "viewer": Basically the rest of the page, and basically where your full size | ||
images will show up when a thumbnail is clicked. | ||
|
||
Note: Only the main wrapper and the thumbnails section are actually present in | ||
index.html. The viewer will be dynamically created on page load. | ||
|
||
How it works: | ||
|
||
Just add your thumbnails to the thumbnails section in the following format: | ||
|
||
<article> | ||
<a class="thumbnail" href="path/to/fullsize.jpg"> | ||
<img src="path/to/thumbnail.jpg" alt="" /> | ||
</a> | ||
<h2>Title</h2> | ||
<p>Description.</p> | ||
</article> | ||
|
||
And that's it. Lens will figure out the rest. | ||
|
||
The "data-position" attribute: | ||
|
||
As a full screen experience, the viewer will be subject to changes in its size and, | ||
consequently, its aspect ratio. Since your full size images are basically applied as | ||
backgrounds to the viewer itself, this means they'll probably (okay, definitely) get | ||
cropped. All is not lost, however, as you can use the optional "data-position" attribute | ||
to control how the full size image is positioned within the viewer. To do this, simply | ||
add it to your thumbnail's <a> element and set it to any valid "background-position" | ||
value. For example, this: | ||
|
||
<a class="thumbnail" href="path/to/fullsize.jpg" data-position="top left">...</a> | ||
|
||
... positions this particular full size image in the top left corner of the viewer (as | ||
opposed to its center, the default), effectively limiting cropping to everything but | ||
the top left corner. | ||
|
||
Keyboard shortcuts: | ||
|
||
Lens is set up to respond to the following keyboard shortcuts: | ||
|
||
- Left Arrow: Go to previous image. | ||
- Right Arrow: Go to next image. | ||
- Up Arrow: Go to image above the current one in the thumbnails section. | ||
- Down Arrow: Go to image below the current one in the thumbnails section. | ||
- Space: Go to next image. | ||
- Escape: Toggle the main wrapper. | ||
|
||
Note: All keyboard shortcuts are disabled when the "xsmall" breakpoint is active | ||
(since they don't really make a whole lot of sense there). | ||
|
||
Other stuff: | ||
|
||
- The main wrapper can be moved to the left by changing the "misc.main-side" variable | ||
in assets/sass/libs/_vars.scss to "left" (and of course recompiling your CSS). | ||
|
||
- Additional tweakable settings can be found at the top of assets/js/main.js, but | ||
be aware most of these need to sync with certain Sass variables (see comments | ||
for details). | ||
|
||
|
||
Credits: | ||
|
||
Demo Images: | ||
Unsplash (unsplash.com) | ||
|
||
Icons: | ||
Font Awesome (fortawesome.github.com/Font-Awesome) | ||
|
||
Other: | ||
jQuery (jquery.com) | ||
html5shiv.js (@afarkas @jdalton @jon_neal @rem) | ||
Respond.js (j.mp/respondjs) | ||
Skel (skel.io) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
 | ||
|
||
**Aperture** is a minimal responsive album with a built in CMS for simplified image upload and management. Aperture was built in an hour for a friend of mine and later on I decided to make it public. Aperture uses simple PHP session for admin access. | ||
|
||
**Requirements** | ||
- PHP 5.x with Mysqli extension | ||
- MySQL Server | ||
|
||
**Installation** | ||
|
||
- Copy all files to a folder on your server | ||
- Make the folders admin/uploads and admin/thumbs writeable (chmod 777) | ||
- Import DB.sql to a database on your server using PhpMyAdmin or a similar program. | ||
- Edit admin/CONFIG.php to reflect your server details | ||
- Change Username and Password in admin/CONFIG.php | ||
- DONE! | ||
|
||
**Accessing Admin Area** | ||
Go to `/apertureinstalldirectory/admin` for admin access. Default username is *admin*, password is *pass* | ||
|
||
**Demo** | ||
http://aravindvs.com/aperture | ||
|
||
**Note** | ||
Aperture wasn't built using the best practices for building PHP applications. No frameworks are used since they'll render the project complex. | ||
|
||
**Contributions** | ||
Contributions are 100% welcome! | ||
|
||
**Future** | ||
I'll try to update the project or maybe rewrite it to make it clean. | ||
|
||
**License** | ||
Free for Personal & Commercial Use under Creative Commons Attribution 3.0 License | ||
|
||
|
||
**Credits** | ||
Lens HTML5 album by HTML5 UP - http://html5up.net | ||
AdminLTE by Almsaeed Studio - https://almsaeedstudio.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Aperture Minimal PHP Album by Aravind VS | ||
http://aravindvs.com | http://github.com/vsaravind007 | ||
Free for Personal & Commercial Use under Creative Commons Attribution 3.0 License | ||
|
||
|
||
Aperture is a minimal PHP album with a built in CMS for simplified usage. Aperture was built in an hour for a friend of mine and later on I decided to make it public. | ||
|
||
Requirements | ||
- PHP 5.x with Mysqli extension | ||
- MySQL Server | ||
|
||
Installation | ||
- Copy all files to your server | ||
- Make the folders admin/uploads and admin/thumbs writeable (chmod 777) | ||
- Import DB.sql to a database on your server using PhpMyAdmin or similar | ||
- Edit admin/CONFIG.php to reflect your server details | ||
- Change Username and Password for security reasons | ||
- DONE! | ||
|
||
|
||
-Credits- | ||
|
||
Lens HTML5 album by HTML5 UP - http://html5up.net | ||
AdminLTE by Almsaeed Studio - https://almsaeedstudio.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
//Database Settings | ||
define('dbHost', "localhost"); | ||
define("dbUser", "root"); | ||
define("dbPass", ""); | ||
define("dbName", "test"); | ||
|
||
//User Settings | ||
define("userName", "admin"); | ||
define("userPass", "pass"); | ||
|
||
?> |
Oops, something went wrong.