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/wp-content/plugins/xpressme/xpressme_class.php

    r201 r202  
    3131        var $meta_keyword_type; 
    3232        var $meta_description_type; 
     33        var $meta_robot_type; 
    3334        //constructor 
    3435        function XPressME_Class() 
     
    8384                $this->meta_keyword_type = 'xoops'; 
    8485                $this->meta_description_type = 'xoops'; 
     86                $this->meta_robot_type = 'xoops';        
    8587        } 
    8688         
     
    132134                        'is_multi_user' => $this->is_multi_user, 
    133135                        'meta_keyword_type' => $this->meta_keyword_type, 
    134                         'meta_description_type' => $this->meta_description_type 
     136                        'meta_description_type' => $this->meta_description_type, 
     137                        'meta_robot_type' => $this->meta_robot_type 
    135138                ); 
    136139                if ($mode == 'add_new') { 
     
    246249                $this->meta_keyword_type = stripslashes(trim($_POST['ch_meta_keyword_type'])); 
    247250                $this->meta_description_type = stripslashes(trim($_POST['ch_meta_description_type'])); 
     251                $this->meta_robot_type = stripslashes(trim($_POST['ch_meta_robot_type'])); 
    248252 
    249253                global $xoops_db; 
     
    661665                $form .= "</td>\n"; 
    662666                $form .= "</tr>\n"; 
     667 
     668                $form .= "<tr>\n"; 
     669                $form .=  "<td>" . __('Select the Header Robots Index.', 'xpressme') . "</td>\n"; 
     670                $form .= "<td>\n"; 
     671                $form .= '<select name="ch_meta_robot_type">' . "\n"; 
     672                $form .= '<option value="xoops" '; 
     673                if ($this->meta_robot_type == 'xoops') $form .= ' selected="selected"'; 
     674                $form .= '>'.__('Xoops Robots Index', 'xpressme') ."</option>\n"; 
     675                $form .= '<option value="wordpress" '; 
     676                if ($this->meta_robot_type == 'wordpress') $form .= ' selected="selected"'; 
     677                $form .= '>'.__('WordPress Robots Index', 'xpressme') ."</option>\n"; 
     678                $form .= "</select><br />\n"; 
     679                $form .= "</td>\n"; 
     680                $form .= "</tr>\n"; 
     681 
    663682                $form .= "</table>\n"; 
    664683                 
Note: See TracChangeset for help on using the changeset viewer.