Changeset 19328 for trunk/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 11/18/2011 12:12:57 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-wp-admin-bar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r19270 r19328 164 164 165 165 $is_parent = (bool) $node->children->primary; 166 $has_link = (bool) $node->href; 166 167 167 168 $menuclass = $is_parent ? 'menupop' : ''; … … 172 173 ?> 173 174 174 <li id="<?php echo esc_attr( "wp-admin-bar-{$node->id}" ); ?>" class="<?php echo esc_attr( $menuclass ); ?>"> 175 <a tabindex="<?php echo (int) $tabindex; ?>" href="<?php echo esc_url( $node->href ) ?>"<?php 176 if ( ! empty( $node->meta['onclick'] ) ) : 177 ?> onclick="<?php echo esc_js( $node->meta['onclick'] ); ?>"<?php 175 <li id="<?php echo esc_attr( "wp-admin-bar-{$node->id}" ); ?>" class="<?php echo esc_attr( $menuclass ); ?>"><?php 176 if ( $has_link ): 177 ?><a class="ab-item" tabindex="<?php echo (int) $tabindex; ?>" href="<?php echo esc_url( $node->href ) ?>"<?php 178 if ( ! empty( $node->meta['onclick'] ) ) : 179 ?> onclick="<?php echo esc_js( $node->meta['onclick'] ); ?>"<?php 180 endif; 181 if ( ! empty( $node->meta['target'] ) ) : 182 ?> target="<?php echo esc_attr( $node->meta['target'] ); ?>"<?php 178 183 endif; 179 if ( ! empty( $node->meta['target'] ) ) : 180 ?> target="<?php echo esc_attr( $node->meta['target'] ); ?>"<?php 184 if ( ! empty( $node->meta['title'] ) ) : 185 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 186 endif; 187 ?>><?php 188 else: 189 ?><div class="ab-item ab-empty-item" tabindex="<?php echo (int) $tabindex; ?>"><?php 181 190 endif; 182 if ( ! empty( $node->meta['title'] ) ) : 183 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 191 192 echo $node->title; 193 194 if ( $has_link ): 195 ?></a><?php 196 else: 197 ?></div><?php 184 198 endif; 185 199 186 ?>><?php187 188 echo $node->title;189 190 ?></a>191 192 <?php193 200 if ( $is_parent ) : 194 201 ?><div class="ab-sub-wrapper"><?php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)