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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.