<?php // Include the UberGallery class include 'resources/UberGallery.php'; // Initialize the UberGallery object $gallery = new UberGallery(); // Initialize the gallery array $galleryArray = $gallery->readImageDirectory('gallery-images'); // Define theme path if (!defined('THEMEPATH')) { define('THEMEPATH', $gallery->getThemePath()); } // Set path to theme index $themeIndex = $gallery->getThemePath(true) . '/index.php'; $themeIndex = "C:\\xampp\\htdocs\\UberGallery\\resources//themes//uber-naked//index.php"; echo $themeIndex; // Initialize the theme if (file_exists($themeIndex)) { include $themeIndex; } else { die('ERROR: Failed to initialize theme'); }
<?php $this->breadcrumbs = array('Home' => array('index'), 'Gallery'); ?> <div id="viewphotos"> <?php // Include the UberGallery class include '/themes/resources/UberGallery.php'; // Initialize the UberGallery object $gallery = new UberGallery(); // Initialize the gallery array $galleryArray = $gallery->readImageDirectory('./themes/gallery-images'); // Define theme path if (!defined('THEMEPATH')) { define('THEMEPATH', $gallery->getThemePath()); } // Set path to theme index $themeIndex = $gallery->getThemePath(true) . '/index.php'; // Initialize the theme if (file_exists($themeIndex)) { include $themeIndex; } else { die('ERROR: Failed to initialize theme'); } ?> </div>
</section> <div id="izq" class="col-xs-12 col-sm-8 col-md-9 col-md-9" style="border:0px solid blue; float:right; text-aling:center;"> <?php // Include the UberGallery class include 'galeria/resources/UberGallery.php'; // Initialize the UberGallery object $gallery = new UberGallery(); /*SI ES LA 1RA VEZ QUE ENTRA A LA PAGINA DE PRODUCTOS. EL PATH AUN NO ESTA DEFINIDO*/ if ($galeriaSeleccionada == "") { $galeriaSeleccionada = $cp->primerProducto; } // Initialize the gallery array $galleryArray = $gallery->readImageDirectory('galeria/productos/' . $galeriaSeleccionada); // Define theme path if (!defined('THEMEPATH')) { define('THEMEPATH', $gallery->getThemePath()); } // Set path to theme index $themeIndex = $gallery->getThemePath(true) . '/index.php'; // Initialize the theme if (file_exists($themeIndex)) { include $themeIndex; } else { die('ERROR: Failed to initialize theme'); } ?> </div> </div>
<?php // Include the UberGallery class include 'resources/UberGallery.php'; // Initialize the UberGallery object $gallery = new UberGallery(); // Initialize the gallery array $galleryArray = $gallery->readImageDirectory('uploads'); // Define theme path if (!defined('THEMEPATH')) { define('THEMEPATH', $gallery->getThemePath()); } // Set path to theme index $themeIndex = $gallery->getThemePath(true) . '/index.php'; // Initialize the theme if (file_exists($themeIndex)) { include $themeIndex; } else { die('ERROR: Failed to initialize theme'); }