XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 5, 2009, 8:20:17 AM (15 years ago)
Author:
toemon
Message:

#121 meta robotをXOOPS側を使うかWordPress側を使うか選択できるようにする。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_render.php

    r201 r202  
    168168                default : 
    169169        } 
    170                  
     170 
     171        $wp_robots = get_xpress_meta_name('robots',$contents); 
     172        switch ($xpress_config->meta_robot_type){ 
     173                case 'xoops': 
     174                        break; 
     175                case 'wordpress': 
     176                        if (!empty($wp_robots)) 
     177                                $xoopsTpl->assign('xoops_meta_robots', $wp_robots); 
     178                        break; 
     179                default : 
     180        } 
    171181         
    172182        $xpress_data['body_contents'] = get_body($contents); 
Note: See TracChangeset for help on using the changeset viewer.