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