Changeset 2402 for sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php
- Timestamp:
- 01/28/2016 07:01:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php
r1867 r2402 42 42 // add_filter( 'wcpt_register_post_type', array( __CLASS__, 'wcpt_register_post_type' ) ); // set to public in wcpt plugin 43 43 add_filter( 'nav_menu_css_class', array( __CLASS__, 'nav_menu_css_class' ), 10, 3 ); 44 add_filter( 'wp_nav_menu_items', array( __CLASS__, 'add_ rss_links_to_footer_menu' ), 10, 2 );44 add_filter( 'wp_nav_menu_items', array( __CLASS__, 'add_links_to_footer_menu' ), 10, 2 ); 45 45 46 46 add_shortcode( 'wcc_map', array( __CLASS__, 'shortcode_map' ) ); … … 357 357 } 358 358 359 public static function add_ rss_links_to_footer_menu( $items, $args ) {359 public static function add_links_to_footer_menu( $items, $args ) { 360 360 if ( 'menu-footer' == $args->container_class ) { 361 361 ob_start(); … … 365 365 <li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="<?php echo esc_url( get_feed_link() ); ?>">RSS (posts)</a></li> 366 366 <li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="<?php echo esc_url( get_post_type_archive_feed_link( 'wordcamp' ) ); ?>">RSS (WordCamps)</a></li> 367 <li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="https://wordpress.org/about/privacy/">Privacy Policy</a></li> 367 368 368 369 <?php
Note: See TracChangeset
for help on using the changeset viewer.