Jump to content

gallery layout help


cerberus478

Recommended Posts

Hi I don't know if this is the right section but I would like to have my gallery open up in the content section. For example I have a page which has the gallery links on the navigation side and I want it to open in the content side. I have only been able to open it up in a new page. I'm using php to get the images.

 

Here is my default.php code:

<head>
<title><?php echo $this->get_title(); ?></title>
<meta name="Description" content="<?php echo $this->get_description(); ?>" />
<meta name="Keywords" content="<?php echo $this->get_keywords(); ?>" />
<title>Welcome to the Framework</title>
<?php
$this->_page->add_javascript('/vendor/lightbox/js/jquery.lightbox-0.5.min.js');
$this->_page->add_stylesheet('/vendor/lightbox/css/jquery.lightbox-0.5.css');
$this->_page->add_stylesheet('/css/default.css');

echo $this->page('stylesheets');
echo $this->page('javascripts');
?>

</head>

<body>


<div id="container">
<div id="banner">
	<h1>
	Welcome to the Grada djeri
	</h1>
</div>
<div id="nav">
<?php 
	echo $this->page('view');
?>



</div>
<div id="content">

	<?php  ?>
</div>



<div id="footer">
	<a href="/pages/about_me">About Me</a>
	<a href="/pages/contacts">Contacts</a>
	<a href="/pages/home">Home</a>
</div>
</div> 
</body>
</html>

 

and here is my home.php

 

<!-- <h2>This is the homepage</h2>-->




<?php 
//echo $this->_params['item']['content'];
// how to loop through an images and gallery name and put it into a list
foreach ($this->_params['list'] as $gallery ){
$gallery_name = $gallery['name'];
$image = $gallery['image'];

echo "<table>";
echo "<tr>";
echo "<td>";
echo "<a href=/galleries/view/".$gallery['id']."><img src='/image.php?path=$image&h=50&w=50'></a>";
echo "</td>";
echo "</tr>";
echo "</table>";
}

?>

Link to comment
https://forums.phpfreaks.com/topic/248955-gallery-layout-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.