Je suis un concepteur/développeur frontal mais je dois déplacer la div avec une classe de "span-4" avant la div avec une classe de "span-20". Le développeur qui a écrit le php n'est pas disponible pour me demander comment ne pas gâcher son balisage php.
Merci d'avance pour toute aide !
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>THRIVE</title>
<?php include("header.php"); ?>
</head>
<body>
<div class="container">
<div id="thumbnails" class="span-20 last">
<?php
$accessoriesDir = "images/accessories/";
$collectionCount = 1;
while(is_dir($accessoriesDir . $collectionCount . "/"))
{
$collection_dir = $accessoriesDir . $collectionCount . "/";
if ($season_dh = opendir($collection_dir))
{
$accsArray = array();
$accsCount = 0;
while (($accessoryFolder = readdir($season_dh)) !== false)
{
if(filetype($collection_dir . $accessoryFolder) == "dir" && strlen($accessoryFolder) > 2)
$accsArray[$accsCount++] = $accessoryFolder;
}
closedir($season_dh);
?>
<div id="collection<?php echo $collectionCount?>" class="thumbsHolder <?php if($collectionCount !== 1) echo 'hidden'?>">
<div class="cats span-4">
<?php
foreach($accsArray as $index => $accessory)
{
$class = "accessory-tab";
if($index == 0)
{
$class .= " selected";
}
echo "<a id='".strtolower($accessory)."-tab' class='".$class."'>".$accessory."</a><br/>";
}
?>
</div>
<?php
foreach($accsArray as $index => $accessory)
{
?>
<div id="<?php echo strtolower($accessory);?>-view" class="view <?php if($index != 0) echo 'hidden';?>">
<?php
$imageCount = 0;
$accessoryDir = $collection_dir.$accessory."/";
$dh = opendir($accessoryDir);
while (($file = readdir($dh)) !== false && $imageCount < 8)
{
if(filetype($accessoryDir . $file) == "file" && substr($file, -4) == ".jpg")
{
?>
<div class="thumbnailExpander <?php if($imageCount % 2 !== 0)echo 'expandLeft';?> <?php if($imageCount >= 4)echo 'bottom';?>"
style="left:<?php echo ($imageCount % 4) * (317-132) ?>px;top:<?php echo 110+((132+53)*intval($imageCount/4));?>px;">
<!--div class="thumbAnchor"-->
<img src="<?php echo $accessoryDir . $file ?>" style=""/>
<!--/div-->
</div>
<?php
$imageCount++;
}
}
?>
</div><!-- #accessory-view -->
<?php
closedir($dh);
}
?>
</div><!-- .thumbsHolder -->
<?php
}
$collectionCount++;
}
?>
</div><!-- #thumbnails -->
<?php include("nav.php"); ?>
<div id="debug" style="color:white"></div>
</div>
</body>
</html>