Index: trunk/phase3/skins/Vector.php |
— | — | @@ -694,11 +694,13 @@ |
695 | 695 | ?> |
696 | 696 | <div id="p-namespaces" class="vectorTabs<?php if ( count( $this->data['namespace_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
697 | 697 | <h5><?php $this->msg('namespaces') ?></h5> |
| 698 | + <?php if ( count( $this->data['namespace_urls'] ) ): ?> |
698 | 699 | <ul<?php $this->html('userlangattributes') ?>> |
699 | 700 | <?php foreach ($this->data['namespace_urls'] as $key => $link ): ?> |
700 | 701 | <li <?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><span><?php echo htmlspecialchars( $link['text'] ) ?></span></a></li> |
701 | 702 | <?php endforeach; ?> |
702 | 703 | </ul> |
| 704 | + <?php endif; ?> |
703 | 705 | </div> |
704 | 706 | <?php |
705 | 707 | break; |
— | — | @@ -707,11 +709,13 @@ |
708 | 710 | <div id="p-variants" class="vectorMenu<?php if ( count( $this->data['variant_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
709 | 711 | <h5><span><?php $this->msg('variants') ?></span><a href="#"></a></h5> |
710 | 712 | <div class="menu"> |
| 713 | + <?php if ( count( $this->data['variant_urls'] ) ): ?> |
711 | 714 | <ul<?php $this->html('userlangattributes') ?>> |
712 | 715 | <?php foreach ($this->data['variant_urls'] as $key => $link ): ?> |
713 | 716 | <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li> |
714 | 717 | <?php endforeach; ?> |
715 | 718 | </ul> |
| 719 | + <?php endif; ?> |
716 | 720 | </div> |
717 | 721 | </div> |
718 | 722 | <?php |
— | — | @@ -720,11 +724,13 @@ |
721 | 725 | ?> |
722 | 726 | <div id="p-views" class="vectorTabs<?php if ( count( $this->data['view_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
723 | 727 | <h5><?php $this->msg('views') ?></h5> |
| 728 | + <?php if ( count( $this->data['view_urls'] ) ): ?> |
724 | 729 | <ul<?php $this->html('userlangattributes') ?>> |
725 | 730 | <?php foreach ($this->data['view_urls'] as $key => $link ): ?> |
726 | 731 | <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo (array_key_exists('img',$link) ? '<img src="'.$link['img'].'" alt="'.$link['text'].'" />' : '<span>'.htmlspecialchars( $link['text'] ).'</span>') ?></a></li> |
727 | 732 | <?php endforeach; ?> |
728 | 733 | </ul> |
| 734 | + <?php endif; ?> |
729 | 735 | </div> |
730 | 736 | <?php |
731 | 737 | break; |
— | — | @@ -733,11 +739,13 @@ |
734 | 740 | <div id="p-cactions" class="vectorMenu<?php if ( count( $this->data['action_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
735 | 741 | <h5><span><?php $this->msg('actions') ?></span><a href="#"></a></h5> |
736 | 742 | <div class="menu"> |
| 743 | + <?php if ( count( $this->data['action_urls'] ) ): ?> |
737 | 744 | <ul<?php $this->html('userlangattributes') ?>> |
738 | 745 | <?php foreach ($this->data['action_urls'] as $key => $link ): ?> |
739 | 746 | <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li> |
740 | 747 | <?php endforeach; ?> |
741 | 748 | </ul> |
| 749 | + <?php endif; ?> |
742 | 750 | </div> |
743 | 751 | </div> |
744 | 752 | <?php |
— | — | @@ -746,11 +754,13 @@ |
747 | 755 | ?> |
748 | 756 | <div id="p-personal" class="<?php if ( count( $this->data['personal_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
749 | 757 | <h5><?php $this->msg('personaltools') ?></h5> |
| 758 | + <?php if ( count( $this->data['personal_urls'] ) ): ?> |
750 | 759 | <ul<?php $this->html('userlangattributes') ?>> |
751 | 760 | <?php foreach($this->data['personal_urls'] as $key => $item): ?> |
752 | 761 | <li <?php echo $item['attributes'] ?>><a href="<?php echo htmlspecialchars($item['href']) ?>"<?php echo $item['key'] ?><?php if(!empty($item['class'])): ?> class="<?php echo htmlspecialchars($item['class']) ?>"<?php endif; ?>><?php echo htmlspecialchars($item['text']) ?></a></li> |
753 | 762 | <?php endforeach; ?> |
754 | 763 | </ul> |
| 764 | + <?php endif; ?> |
755 | 765 | </div> |
756 | 766 | <?php |
757 | 767 | break; |