art-web r554 - in branches/art-hub: . css views



Author: thos
Date: Sat Nov 22 23:17:26 2008
New Revision: 554
URL: http://svn.gnome.org/viewvc/art-web?rev=554&view=rev

Log:
Try an alternate theme/background list layout


Modified:
   branches/art-hub/config.inc.php
   branches/art-hub/css/art.css
   branches/art-hub/views/backgrounds.php
   branches/art-hub/views/themes.php

Modified: branches/art-hub/config.inc.php
==============================================================================
--- branches/art-hub/config.inc.php	(original)
+++ branches/art-hub/config.inc.php	Sat Nov 22 23:17:26 2008
@@ -195,14 +195,14 @@
 		'' => 'Unknown');
 
 $license_config_link_array = array (
-		'cc-atrib' => '<a href="http://creativecommons.org/licenses/by/2.0/";>CC Attribution</a>',
-		'cc-atrib-sharealike' => '<a href="http://creativecommons.org/licenses/by-sa/2.0/";>CC Attribution-ShareAlike</a>',
-		'cc-atrib-noderivs' => '<a href="http://creativecommons.org/licenses/by-nd/2.0/";>CC Attribution-NoDerivs</a>',
-		'cc-attrib-noncom' => '<a href="http://creativecommons.org/licenses/by-nc/2.0/";>CC Attribution-NonCommercial</a>',
-		'cc-atrib-noncom-sharealike' => '<a href="http://creativecommons.org/licenses/by-nc-sa/2.0/";>CC Attribution-NonCommercial-ShareAlike</a>',
-		'cc-atrib-noncom-noderivs' => '<a href="http://creativecommons.org/licenses/by-nc-nd/2.0/";>CC Attribution-NonCommercial-NoDerivs</a>',
-		'gnu-gpl' => '<a href="http://creativecommons.org/licenses/GPL/2.0/";>GNU General Public License</a>',
-		'gnu-lgpl' => '<a href="http://creativecommons.org/licenses/LGPL/2.1/";>GNU Lesser General Public License</a>',
+		'cc-atrib' => '<a href="http://creativecommons.org/licenses/by/2.0/";>CC BY</a>',
+		'cc-atrib-sharealike' => '<a href="http://creativecommons.org/licenses/by-sa/2.0/";>CC BY-SA</a>',
+		'cc-atrib-noderivs' => '<a href="http://creativecommons.org/licenses/by-nd/2.0/";>CC BY-ND</a>',
+		'cc-attrib-noncom' => '<a href="http://creativecommons.org/licenses/by-nc/2.0/";>CC BY-NC</a>',
+		'cc-atrib-noncom-sharealike' => '<a href="http://creativecommons.org/licenses/by-nc-sa/2.0/";>CC BY-NC-SA</a>',
+		'cc-atrib-noncom-noderivs' => '<a href="http://creativecommons.org/licenses/by-nc-nd/2.0/";>CC BY-NC-ND</a>',
+		'gnu-gpl' => '<a href="http://creativecommons.org/licenses/GPL/2.0/";>GNU GPL</a>',
+		'gnu-lgpl' => '<a href="http://creativecommons.org/licenses/LGPL/2.1/";>GNU LGPL</a>',
 		'pub-dom' => '<a href="http://web.resource.org/cc/PublicDomain/";>Public Domain</a>',
 		'free-art' => '<a href="http://artlibre.org/licence/lal/en/";>Free Art License</a>');
 

Modified: branches/art-hub/css/art.css
==============================================================================
--- branches/art-hub/css/art.css	(original)
+++ branches/art-hub/css/art.css	Sat Nov 22 23:17:26 2008
@@ -1,7 +1,19 @@
 div.list-item {
-  border: 1px solid #ccc;
   padding: 4px;
-  margin: 4px;
+  margin: 1em;
+  float: left;
+  width: 20%;
+  height: 12em;
+  text-align: center;
+}
+
+.list-item img {
+  margin: 0.5em;
+}
+
+span.item-detail {
+  font-size: small;
+  color: gray;
 }
 
 td.label {

Modified: branches/art-hub/views/backgrounds.php
==============================================================================
--- branches/art-hub/views/backgrounds.php	(original)
+++ branches/art-hub/views/backgrounds.php	Sat Nov 22 23:17:26 2008
@@ -75,36 +75,22 @@
 
 <?php foreach ($view_data as $row): ?>
 <div class="list-item">
-<table cellpadding="4" width="100%">
-  <tr>
-    <td colspan='6'><b><?php echo $row['name']?></b> by
-      <a href="mailto:<?php echo $row['email']?>"><?php echo $row['realname']?></a>
-    </td>
-  </tr>
-  <tr>
-    <td rowspan="3">
-      <img width="96" alt="Preview" src='/images/thumbnails/backgrounds/<?php echo $row['thumbnail_filename']?>'>
-    </td>
-    <td colspan="4" style="width:100%"><?php echo $row['description']?></td>
-    <td rowspan="2">
+    <b><?php echo $row['name']?></b>
+    <br>
+    <span class="item-detail">by <a href="mailto:<?php echo $row['email']?>"><?php echo $row['realname']?></a></span>
+    <br><span class="item-detail"><?php echo $license_config_link_array[$row['license']]?></span>
+    <br>
+    <img width="96" alt="Preview" src='/images/thumbnails/backgrounds/<?php echo $row['thumbnail_filename']?>'>
+    <br>
      <?php foreach ($bg_res[$row['backgroundID']] as $res):?>
        <a href="/download/backgrounds/<?php printf ("%s/%s/%s", $row['category'], $res['background_resolutionID'], $res['filename'])?>">
        <?php echo $res['resolution']?></a><br>
      <?php endforeach ?>
-    </td>
-  </tr>
-  <tr>
-    <td class="label">Date:</td>
-    <td><?php $tm = strtotime ($row['release_date']); echo date ("d M Y", $tm); ?></td>
-    <td class="label">License:</td>
-    <td><?php echo $license_config_array[$row['license']]?></td>
-  </tr>
-</table>
 </div>
-<br>
 <?php endforeach ?>
 
 
+<br clear="both">
 <br>
 <div style="text-align:center"><?php $p->print_pagination (); ?></div>
 

Modified: branches/art-hub/views/themes.php
==============================================================================
--- branches/art-hub/views/themes.php	(original)
+++ branches/art-hub/views/themes.php	Sat Nov 22 23:17:26 2008
@@ -79,34 +79,19 @@
 <br><br>
 <div style="text-align:center"><?php $p->print_pagination (); ?></div>
 <br>
-
 <?php foreach ($view_data as $row): ?>
 
 <div class="list-item">
-<table cellpadding="4" width="100%">
-  <tr>
-    <td colspan='6'><b><?php echo $row['name']?></b> by
-      <a href="mailto:<?php echo $row['email']?>"><?php echo $row['realname']?></a>
-    </td>
-  </tr>
-  <tr>
-    <td rowspan="3">
-      <img width="96" alt="Preview" src='/images/thumbnails/<?php echo $row['category']?>/<?php echo $row['thumbnail_filename']?>'>
-    </td>
-    <td colspan="5" style="width:100%"><?php echo $row['description']?></td>
-  </tr>
-  <tr>
-    <td class="label">Date:</td>
-    <td><?php $tm = strtotime ($row['release_date']); echo date ("d M Y", $tm); ?></td>
-    <td class="label">License:</td>
-    <td><?php echo $license_config_array[$row['license']]?></td>
-    <td><a href="/download/themes/<?php printf ("%s/%s/%s", $row['category'], $row['themeID'], $row['download_filename'])?>">Download</a></td>
-  </tr>
-</table>
+  <b><?php echo $row['name']?></b>
+  <br><span class="item-detail"> by <a href="mailto:<?php echo $row['email']?>"><?php echo $row['realname']?></a></span>
+   <br><span class="item-detail"><?php echo $license_config_link_array[$row['license']]?></span>
+  <br>
+  <img style="margin:0.5em;" width="96" alt="Preview" src='/images/thumbnails/<?php echo $row['category']?>/<?php echo $row['thumbnail_filename']?>'>
+  <br>
+   <a href="/download/themes/<?php printf ("%s/%s/%s", $row['category'], $row['themeID'], $row['download_filename'])?>">Download</a>
 </div>
-<br>
 <?php endforeach ?>
-
+<br clear="both">
 <br>
 <div style="text-align:center"><?php $p->print_pagination (); ?></div>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]