Plugin Directory

Changeset 373255


Ignore:
Timestamp:
04/15/2011 12:40:35 PM (15 years ago)
Author:
jaredh123
Message:

handle custom imgs and icons in menu taxonomy update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prophoto-beta-tester/trunk/pp-beta-tester.php

    r373046 r373255  
    55    Description: Facilitates beta-testing for future releases of the ProPhoto theme
    66    Author: Jared Henderson
    7     Version: 0.07
     7    Version: 0.08
    88    Author URI: http://www.prophotoblogs.com/beta-testing-plugin/
    99 */
     
    6767            $imgs = ppActiveDesign::imgs();
    6868            if ( isset( $imgs['nav_bg'] ) ) {
    69                 ppImg::update( 'primary_nav_menu_bg', $imgs['nav_bg' ] );
     69                ppImg::update( 'primary_nav_menu_bg', $imgs['nav_bg'] );
     70            }
     71           
     72            for ( $i = 1; $i <= 100; $i++ ) {
     73                if ( isset( $imgs['main_menu_link_'.$i] ) ) {
     74                    ppImg::update( 'primary_nav_menu_item_' . $i, $imgs['main_menu_link_'.$i] );
     75                }
     76                if ( isset( $imgs['main_menu_link_'.$i.'_icon'] ) ) {
     77                    ppImg::update( 'primary_nav_menu_item_' . $i . '_icon', $imgs['main_menu_link_'.$i.'_icon'] );
     78                }
    7079            }
    7180        }
Note: See TracChangeset for help on using the changeset viewer.