Plugin Directory

Changeset 775038


Ignore:
Timestamp:
09/19/2013 04:29:44 AM (13 years ago)
Author:
royaltechbd
Message:

Update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • royal-responsive-menu/trunk/royal-responsive-menu.php

    r775037 r775038  
    416416        }
    417417
    418     // //IF RoyalMENU
    419     // if( $responsiveMenuSelect->getSettings()->op( 'Royal-enabled' ) ){
    420 
    421         // global $RoyalMenu;
    422         // $settings = $RoyalMenu->getSettings();
    423 
    424         // //Test override settings
    425         // $override = $this->getRoyalOption( $item->ID, 'shortcode' );
    426         // $overrideOn = /*$depth > 0  && */ $settings->op( 'wpmega-shortcodes' ) && !empty( $override ) ? true : false;
    427        
    428         // //Test sidebar settings
    429         // $sidebar = $this->getRoyalOption( $item->ID, 'sidebars' );
    430         // $sidebarOn = ( $settings->op( 'wpmega-top-level-widgets' ) || $depth > 0 ) && $settings->op( 'wpmega-sidebars' ) && !empty( $sidebar ) ? true : false;
    431 
    432         // $notext = $this->getRoyalOption( $item->ID, 'notext' ) == 'on' || $item->title == RoyalMENU_NOTEXT ? true : false;
    433         // $nolink = $this->getRoyalOption( $item->ID, 'nolink' ) == 'on' ? true : false;
    434 
    435         // if( $nolink && $responsiveMenuSelect->getSettings()->op( 'Royal-exclude-nonlinks' ) ){
    436             // return;
    437         // }
    438         // if( $notext && $responsiveMenuSelect->getSettings()->op( 'Royal-exclude-notext' ) ){
    439             // return;
    440         // }
    441         // if( $sidebarOn && $responsiveMenuSelect->getSettings()->op( 'Royal-exclude-sidebar' ) ){
    442             // return;
    443         // }
    444         // if( $overrideOn && $responsiveMenuSelect->getSettings()->op( 'Royal-exclude-content-overrides' ) ){
    445             // return;
    446         // }                   
    447     // }
    448 
    449    
    450    
    451418   
    452419        //$attributes = ! empty( $item->url )        ? ' value="'   . esc_attr( $item->url        ) .'"' : '';
     
    472439    }
    473440
    474     // function getRoyalOption( $item_id , $id ){
    475         // //get_post_meta or from Royal_options, depending on whether Royal_options is set
    476 
    477         // $option_id = 'menu-item-'.$id;
    478 
    479         // //Initialize array
    480         // if( !is_array( $this->menuItemOptions ) ){
    481             // $this->menuItemOptions = array();
    482             // $this->noRoyalOps = array();
    483         // }
    484 
    485         // //We haven't investigated this item yet
    486         // if( !isset( $this->menuItemOptions[ $item_id ] ) ){
    487            
    488             // $Royal_options = false;
    489             // if( empty( $this->noRoyalOps[ $item_id ] ) ) {
    490                 // $Royal_options = get_post_meta( $item_id , '_Royal_options', true );
    491                 // if( !$Royal_options ) $this->noRoyalOps[ $item_id ] = true; //don't check again for this menu item
    492             // }
    493 
    494             // //If $Royal_options are set, use them
    495             // if( $Royal_options ){
    496                 // $this->menuItemOptions[ $item_id ] = $Royal_options;
    497             // }
    498             // //Otherwise get the old meta
    499             // else{
    500                 // $option_id = '_menu_item_'.$id; //RoyalMenu::convertToOldParameter( $id );
    501                 // return get_post_meta( $item_id, $option_id , true );
    502             // }
    503         // }
    504         // return isset( $this->menuItemOptions[ $item_id ][ $option_id ] ) ? stripslashes( $this->menuItemOptions[ $item_id ][ $option_id ] ) : '';
    505     // }
     441
    506442}
Note: See TracChangeset for help on using the changeset viewer.