<?php require_once ('/usr/local/www/public_html/gallery2/embed.php'); // Path to Gallery's embed.php $ret = GalleryEmbed::init(array('g2Uri'=>'http://www.flashyourweb.com/gallery2/main.php', 'embedUri'=>'http://www.flashyourweb.com/gallery2/embed_samples/g2_html_segments_example.php', 'fullInit'=>'false')); if ($ret) { print $ret->getAsHtml(); } $gallery->setConfig('showSidebarBlocks', false); // you can hide the sidebarblocks in fact you must to use $g2data['sidebarBlocksHtml'] $gallery->setConfig('login', true); // you can allow for login if you want $gallery->setConfig('defaultAlbumId', 32); // set the default home album $ret = GalleryEmbed::setThemeForRequest('matrix'); if ($ret) { print 'Failed to set theme'.$ret->getAsHtml(); } $g2data = GalleryEmbed::handleRequest(); if ($g2data['isDone']) { exit; } GalleryEmbed::done();?>
<link rel="stylesheet" type="text/css" href="/gallery2/main.php?g2_view=imageframe.CSS&g2_frames=shadow%7Cnone"/><link rel="stylesheet" type="text/css" href="/gallery2/modules/core/data/gallery.css"/><link rel="stylesheet" type="text/css" href="/gallery2/modules/icons/iconpacks/silk/icons.css"/><link rel="alternate" type="application/rss+xml" title="Photo RSS" href="/gallery2/embed_samples/g2_html_segments_example.php?g2_view=slideshow.SlideshowMediaRss&g2_itemId=24213&g2_browserPlugin=1&g2_offset=0"/><script type="text/javascript" src="http://www.flashyourweb.com/gallery2/main.php?g2_view=core.CombinedJavascript&g2_key=2b620d7067abee00022f50bd59336d58"></script><script type="text/javascript" src="/gallery2/main.php?g2_view=slideshow.DownloadPicLens&g2_file=js&g2_v=1.3.1.14221"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>Mount Cook New Zealand </title><link rel="stylesheet" type="text/css" href="/gallery2/themes/matrix/theme.css"/>
Date: 01/17/2007 Views: 21664
Requires $gallery->setConfig('showSidebarBlocks', false); as seen above.
Basically you would only use this if you were planning on placing your sidebar in a specific location in your layout. Otherwise the sidebar is included in bodyHtml.
<?php if(isset($g2data['sidebarBlocksHtml'])){ foreach ($g2data['sidebarBlocksHtml'] as $snippet) { echo $snippet; } }?>
Mount Cook on a clear and crisp morning. Mount Cook is located on the South Island of New Zealand. This was the view from our overnight camping spot where we camped in our little campervan. Awesome ain't it? By Ron Vink, The Netherlands.