Hallo.
Ich habe die Enhanced Simple PHP Gallery ( Link : http://wwthree.bplaced.net/gallery/index.php?dir=./wallpaper ) "installiert" und möchte diese nun anpassen.
Ich möchte den oberen Bereich der Gallery ausblenden / entfernen,weiss jedoch nicht, wie das möglich ist. Ich habe mal einen Screenshot angefertigt :
Hier der Quellcode der sp_index.php :
Und hier noch der Quellcode der header.php :
Ich wäre froh, wenn mir jemand diesbezüglich helfen könnte.Wenn noch Infos benötigt werden, einfach fragen. Ich danke.
MfG
Ich habe die Enhanced Simple PHP Gallery ( Link : http://wwthree.bplaced.net/gallery/index.php?dir=./wallpaper ) "installiert" und möchte diese nun anpassen.
Ich möchte den oberen Bereich der Gallery ausblenden / entfernen,weiss jedoch nicht, wie das möglich ist. Ich habe mal einen Screenshot angefertigt :
Hier der Quellcode der sp_index.php :
PHP:
<?php
/*
Enhanced Simple PHP Gallery by Rich Pedley
based on Simple PHP Gallery by Paul Griffin.
see readme for full attribs.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License.
see license.txt for further info
*/
$editmode = false;
require('lang/index.php');
require('sp_config.php');
require('sp_helper_functions.php');
require('sp_def_vars.php');
include('header.php');
?>
<p id="breadcrumb"><?php getBreadCrumbs();?></p>
<?php
//IF A FILE WAS REQUESTED FOR VIEWING, OUTPUT IT
if($display_file != '')
{
?>
<div id="prevnext">
<?php getPrevAndNext();?>
</div>
<div class="clearer"></div>
<div id="image"><?php getFile(); ?></div>
<?php
if(descriptionExists())
{
?>
<p id="description"><?php getDescription();?></p>
<?php
}
if (dateExists()==true)
{
?>
<p id="thedate"><?php echo $GLOBALS['lang_date_added']; ?><?php getImageDate(); ?></p>
<?php
}
if($showcomments==true){
?>
<div id="comments">
<?php include("comment.php"); ?>
</div>
<?php
}
}
//OTHERWISE, A DIRECTORY LISTING REQUEST WAS MADE. DISPLAY THE THUMBNAIL LINKS.
else
{
//IF THIS DIRECTORY HAS A DESCRIPTION, OUTPUT IT
if(getDirDescription() != '')
{
?>
<div id="dirdesc">
<?php echo getDirDescription(); ?>
</div>
<?php
}
//IF THERE ARE SUB-DIRECTORIES, LIST THEM.
if(subDirExist())
{
?>
<div id="directories"> <?php getDirLinks(); ?></div>
<?php
}
?>
<div id="gallery">
<?php
//OUTPUT THUMBNAIL LINKS TO ALL IMAGES IN THIS DIRECTORY
if (isset($_GET['page'])){
$page=$_GET['page'];
$page = preg_replace('#[^0-9]#', '', $page);
}
if(empty($page))
{
$page=1;
$_GET['page']=1;
}
$i=0;
foreach(getImgLinks() as $link)
{
global $limit;
$totalrows=getNumImages($dir);
$numofpages = $totalrows / $limit;
$limitvalue = $page * $limit - ($limit);
$b=$limitvalue+$limit-1;
if ($i>=$limitvalue && $i<=$b) echo $link;
$i++;
}
?>
<div class="pagination">
<?php
paginate();
?>
</div>
</div>
<?php
}
?>
<p id="credit">
<?php echo $GLOBALS['lang_powered']; ?> <a href="http://www.quirm.net/"><?php echo VERSION ?></a> <br />
<a href="http://<?php echo $_SERVER["HTTP_HOST"].returnCurrentWorkingDirectory()."/"; ?>sp_editor.php?<?php echo $_SERVER["QUERY_STRING"]; ?>"><?php echo $GLOBALS['lang_admin_link']; ?></a>
</p>
<?php include('footer.php'); ?>
Und hier noch der Quellcode der header.php :
PHP:
<?php
header('Content-type: text/html; charset=utf-8');
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><?php getPageTitle(); ?></title>
<link rel="stylesheet" type="text/css" href="<?php getCurrentWorkingDirectory();?>/sp_styles.css" media="screen" />
<style type="text/css" media="screen">
<?php
// Add dynamic styles here
if($display_file == '')
{
$divwidth = $maxthumbwidth + 10;
$divheight = $maxthumbheight + 24;
if($showimgtitles)
$divheight += 16;
if($showdatesonthumbspage)
$divheight += 16;
echo "div.imgwrapper {\n";
echo " width: " . $divwidth . "px;\n height: " . $divheight . "px;\n";
if($alignimages)
echo " text-align: center;\n";
echo "}\n";
}
else
{
echo "div#image {\n";
echo " width: " . ($img_attr_width + 8) . "px;\n";
echo " height: " . ($img_attr_height + 8) . "px;\n";
echo "}\n";
}
?>
</style>
<?php
//INSERT LINK ELEMENTS
// if($display_file != '')
if(!empty($display_file)){ //IF A FILE WAS REQUESTED FOR VIEWING, OUTPUT Prev & Next LINKS.
getPrevAndNextLink();
}
else //OTHERWISE, A DIRECTORY LISTING REQUEST WAS MADE; DISPLAY THE Start LINK.
{
if(empty($disablestart))
getStartLink();
} // END IF
//IF A FILE WAS REQUESTED FOR VIEWING, LINK TO IMAGE-FADE SCRIPT
if(!empty($display_file) && $image_fade_in)
{
?><script src="<?php getCurrentWorkingDirectory();?>/imagefade/imagefadein.js" type="text/javascript"></script>
<?php
}
?>
</head>
<body>
<div id="espg">
<div id="header">
<h1 id="top">Enhanced Simple PHP Gallery</h1>
</div>
<h2><?php getPageTitle(); ?></h2>
Ich wäre froh, wenn mir jemand diesbezüglich helfen könnte.Wenn noch Infos benötigt werden, einfach fragen. Ich danke.
MfG