Changeset 3600:f9ab70453f48
- Timestamp:
 - 11/13/17 11:35:59 (8 years ago)
 - Branch:
 - default
 - File:
 - 
          
- 1 edited
 
- 
          plugins/simpleMenu/_public.php (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
plugins/simpleMenu/_public.php
r3583 r3600 102 102 103 103 $targetBlank = ((isset($m['targetBlank'])) && ($m['targetBlank']))? true:false; 104 104 105 105 # Active item test 106 106 $active = false; … … 112 112 } 113 113 $title = $span = ''; 114 114 115 115 if ($m['descr']) { 116 116 if (($description == 'title' || $description == 'both') && $targetBlank) { … … 124 124 } 125 125 } 126 126 127 127 if( empty($title) && $targetBlank){ 128 128 $title = ' title="'.__("the link will open a new window").'"'; 129 129 } 130 130 131 131 $label = html::escapeHTML(__($m['label'])); 132 132 … … 150 150 '">'. 151 151 '<a href="'.$href.'"'.$item['title']. 152 (($targetBlank) ? 'target="_blank" ': '').'>'.152 (($targetBlank) ? 'target="_blank" rel="noopener noreferrer"': '').'>'. 153 153 '<span class="simple-menu-label">'.$item['label'].'</span>'. 154 154 $item['span'].'</a>'.  
Note: See TracChangeset
          for help on using the changeset viewer.
      