Ejemplo n.º 1
0
<?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');
}
Ejemplo n.º 2
0
<?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>
Ejemplo n.º 3
0
			</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>
Ejemplo n.º 4
0
<?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');
}