Created
July 2, 2010 16:51
-
-
Save favrik/461596 to your computer and use it in GitHub Desktop.
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
<?php | |
/* | |
Template Name: Photo Album | |
If you want to customize the look and feel of your photo album, follow these steps. | |
You'll probably need a good understanding of HTML and CSS! | |
1. Copy this file into your current active theme's directory | |
2. Also copy all the files starting with "photoalbum-" into your theme's directory | |
* Alternatively, you could only copy just the "photoalbum-" file you want to customize into your current themes directory. | |
3. Customize the CSS in photoalbum-header.html to your liking. | |
4. That's it :) | |
The main template files: | |
- photoalbum-albums-index.html shows all your Flickr sets (aka albums) | |
- photoalbum-album.html displays a highlight photo and all the photos for an album | |
- photoalbum-photo.html displays one photo, along with next and previous photo links | |
Troubleshooting Tips: | |
Not all WordPress themes are created equal, so default look and feel might look a little weird | |
on your blog. Try looking at your theme's "index.php" and copy and paste any extra HTML or | |
PHP into this file. | |
$Revision: 128 $ | |
$Date: 2008-04-24 00:16:32 -0400 (Thu, 24 Apr 2008) $ | |
$Author: joetan54 $ | |
*/ | |
global $TanTanFlickrPlugin; | |
if (!is_object($TanTanFlickrPlugin)) wp_die('Flickr Photo Album plugin is not installed / activated!'); | |
$path = ABSPATH . 'wp-content' | |
. DIRECTORY_SEPARATOR . 'plugins' | |
. DIRECTORY_SEPARATOR . 'tubepress_pro_2_0_0' | |
. DIRECTORY_SEPARATOR . 'env' | |
. DIRECTORY_SEPARATOR . 'pro' | |
. DIRECTORY_SEPARATOR . 'tubepress-pro.php'; | |
require_once $path; | |
get_header(); | |
// load the appropriate albums index, album's photos, or individual photo template. | |
// $photoTemplate contains the template being used | |
?> | |
<div id="content" class="narrowcolumn"> | |
<?php | |
include($tpl = $TanTanFlickrPlugin->getDisplayTemplate($photoTemplate)); | |
// uncomment this line to print out the template being used | |
// echo 'Photo Album Template: '.$tpl; | |
?> | |
<?php if (!is_object($Silas)):?> | |
<div class="flickr-meta-links"> | |
Powered by the <a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Album</a> plugin for WordPress. | |
</div> | |
<?php endif; ?> | |
<div class="youtubeStream"> | |
<h2>Youtube Stream</h2> | |
<?php print tubepressGallery('mode="user" userValue="myUser"'); ?> | |
</div> | |
</div> | |
<?php | |
// uncomment this if you need a sidebar | |
//get_sidebar(); | |
get_footer(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment