svn: /pear2/sandbox/pear2.php.net/trunk/templates/pear2/ Categories.tpl.php css/img/category-background.png

[email protected] (Amir Mohammad Saied)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
amir                                     Thu, 27 May 2010 18:05:13 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=299868

Log:
Categories title background, and and left clear when required

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/templates/pear2/Categories.tpl.php
    A   pear2/sandbox/pear2.php.net/trunk/templates/pear2/css/img/category-background.png

Modified: pear2/sandbox/pear2.php.net/trunk/templates/pear2/Categories.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/templates/pear2/Categories.tpl.php	2010-05-27 17:58:50 UTC (rev 299867)
+++ pear2/sandbox/pear2.php.net/trunk/templates/pear2/Categories.tpl.php	2010-05-27 18:05:13 UTC (rev 299868)
@@ -11,9 +11,9 @@
             <div class="pearbox-content">
                 <ul class="categories">
                     <?php
-                    foreach ($context as $category) : ?>
-                    <li id="category-<?php echo $num; ?>" class="category">
-                        <h3><a href=""><span class="category-title"><?php echo $category->name; ?></span> <span class="category-count"> (<?php echo count($category); ?>)</span></a></h3>
+                    $num = 0; foreach ($context as $category) : ?>
+                    <li id="category-<?php echo ++$num; ?>" class="category <?php echo (($num % 3) === 1) ? 'category-clear' : ''; ?>">
+                        <h3><a href=""><span class="category-title"><?php echo $category->name; ?></span> <span class="category-count"><?php echo count($category); ?></span></a></h3>
                         <div><?php
                         if (count($category)) {
                             echo '<ul>';
@@ -44,4 +44,4 @@

                 <div class="clearfix"></div>
             </div>
-        </div>
\ No newline at end of file
+        </div>

Added: pear2/sandbox/pear2.php.net/trunk/templates/pear2/css/img/category-background.png
===================================================================
(Binary files differ)


Property changes on: pear2/sandbox/pear2.php.net/trunk/templates/pear2/css/img/category-background.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.