Changeset 949173
- Timestamp:
- 07/15/2014 11:49:10 PM (12 years ago)
- Location:
- pssubpages/trunk
- Files:
-
- 3 edited
-
index.php (modified) (1 diff)
-
psSubPages.class.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pssubpages/trunk/index.php
r789896 r949173 33 33 add_action('widgets_init','register_psSubPages_widget'); 34 34 35 ?> -
pssubpages/trunk/psSubPages.class.php
r687303 r949173 40 40 echo "</p>"; 41 41 } 42 42 43 43 /** 44 44 * … … 55 55 return $instance; 56 56 } 57 57 58 58 /** 59 59 * Renders the actual widget … … 90 90 echo "<ul>"; 91 91 foreach($pages as $page){ 92 echo "<li><a href='".get_permalink($page->ID)."'>".get_the_title($page->ID)."</a></li>"; 92 $styleCurPage = (get_queried_object_id() === $page->ID)?'current_page_item':''; 93 echo "<li class='${styleCurPage}'><a href='".get_permalink($page->ID)."'>".get_the_title($page->ID)."</a></li>"; 93 94 } 94 95 echo "</ul>"; -
pssubpages/trunk/readme.txt
r793561 r949173 1 1 === PS Sub-pages === 2 2 Contributors: jeff.cave 3 Donate link: https:// flattr.com/submit/auto?user_id=jeffcave&url=http://wordpress.org/plugins/pssubpages/&title=PS+Sub-Pages&description=Configurable+child+page+widget+for+Wordpress&language=en_GB&tags=wordpress,plugin&category=software3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=V8APT3KCY5TMC&lc=CA&item_name=Jeff%20Cave&item_number=psSubPage¤cy_code=CAD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted 4 4 Tags: child, page, widget, navigation 5 5 Requires at least: 3.4
Note: See TracChangeset
for help on using the changeset viewer.