XPressME Integration Kit

Trac

Changeset 142


Ignore:
Timestamp:
Mar 30, 2009, 2:01:07 PM (15 years ago)
Author:
toemon
Message:

ブロックオプションで日付スタイルをカスタマイズできるオプションを追加 bump Ver0.19

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/blocks/popular_posts_block.php

    r121 r142  
    2020                $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
    2121                $show_month_range = empty( $options[3] ) ? '0' : $options[3] ; 
    22                 $tag_select = $options[4] ; 
    23                 $selected = array_slice($options, 5); // get allowed cats 
     22                $date_format = empty( $options[4] ) ? '' : $options[4] ; 
     23                $time_format = empty( $options[5] ) ? '' : $options[5] ; 
     24                $tag_select = $options[6] ; 
     25                $selected = array_slice($options, 7); // get allowed cats 
     26 
    2427                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    2528                 
     
    2730 
    2831                $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    29             $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 
    30                 $form .= "<br />"; 
     32            $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 
     33                $form .= "<br />\n"; 
    3134                $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 
    3235                $form .= _MB_MONTH_RANGE .": <input type='text' name='options[3]' value='" . $show_month_range . "' /><br />\n"; 
     36                $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[4]' value='" . $date_format . "' /><br />\n"; 
     37                $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n"; 
    3338                $form .= "<br />\n"; 
    34  
    35                 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n";        
     39                $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[6]' value='" . $tag_select . "' /><br />\n";        
    3640            $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 
    3741            $isAll = (count($selected)==0||empty($selected[0]))?true:false; 
    38             $form .= "<br />&nbsp;&nbsp;<select name=\"options[]\" multiple=\"multiple\">"; 
     42            $form .= "&nbsp;&nbsp;<select name=\"options[]\" multiple=\"multiple\">"; 
    3943            $form .= "<option value=\"0\" "; 
    4044            if ($isAll) $form .= " selected=\"selected\""; 
  • trunk/blocks/recent_comments_block.php

    r121 r142  
    2121                $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
    2222                $disp_length = empty( $options[3] ) ? '30' : $options[3] ; 
    23             $selected = array_slice($options,4); // get allowed cats 
     23                $date_format = empty( $options[4] ) ? '' : $options[4] ; 
     24                $time_format = empty( $options[5] ) ? '' : $options[5] ; 
     25            $selected = array_slice($options,6); // get allowed cats 
     26 
    2427                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    2528 
    2629                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    2730                 
    28                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
    29             $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 
     31                $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
     32            $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 
    3033                $form .= "<br />"; 
    31                 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />"; 
    32                 $form .= _MB_XPRESS_LENGTH .": <input type='text' name='options[3]' value='" . $disp_length . "' />"; 
    33             $form .= "<br /><br />" . _MB_XPRESS_COM_TYPE ; 
     34                $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 
     35                $form .= _MB_XPRESS_LENGTH .": <input type='text' name='options[3]' value='" . $disp_length . "' /><br />\n"; 
     36                $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[4]' value='" . $date_format . "' /><br />\n"; 
     37                $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n"; 
     38            $form .= "<br />\n"; 
     39            $form .= _MB_XPRESS_COM_TYPE . "<br />\n"; 
    3440            $isAll = (count($selected)==0||empty($selected[0]))?true:false; 
    35             $form .= "<br />&nbsp;&nbsp;<select name=\"options[]\" multiple=\"multiple\">"; 
     41            $form .= "&nbsp;&nbsp;<select name=\"options[]\" multiple=\"multiple\">"; 
    3642                    $form .= "<option value=\"0\" "; 
    3743                    if ($isAll) $form .= " selected=\"selected\""; 
  • trunk/blocks/recent_posts_content_block.php

    r121 r142  
    2222                $except = empty( $options[3] ) ? false : true ; 
    2323                $except_size =  ($options[4])?intval($options[4]):100; 
    24                 $tag_select = $options[5] ; 
    25             $selected = array_slice($options,6); // get allowed cats 
     24                $date_format = empty( $options[5] ) ? '' : $options[5] ; 
     25                $time_format = empty( $options[6] ) ? '' : $options[6] ; 
     26                $tag_select = $options[7] ; 
     27            $selected = array_slice($options,8); // get allowed cats 
    2628 
    2729                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     
    3537                $form .= yes_no_radio_option('options[3]', _MB_XPRESS_P_EXCEPT , $except) . "<br />\n"; 
    3638                $form .= _MB_XPRESS_P_EXCEPT_SIZE .": <input type='text' name='options[4]' value='" . $except_size . "' /><br />\n"; 
     39                $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n"; 
     40                $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n"; 
    3741                 
    3842                $form .= "<br />\n"; 
    39                 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[5]' value='" . $tag_select . "' /><br />\n"; 
     43                $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n"; 
    4044            $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 
    4145            $isAll = (count($selected)==0||empty($selected[0]))?true:false; 
  • trunk/blocks/recent_posts_list_block.php

    r121 r142  
    2121                $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 
    2222                $disp_green = empty( $options[4] ) ? '7' : $options[4] ; 
    23                 $tag_select = $options[5] ; 
    24                 $selected = array_slice($options,6); // get allowed cats 
     23                $date_format = empty( $options[5] ) ? '' : $options[5] ; 
     24                $time_format = empty( $options[6] ) ? '' : $options[6] ; 
     25                $tag_select = $options[7] ; 
     26                $selected = array_slice($options,8); // get allowed cats 
     27 
    2528                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    2629                 
     
    2831 
    2932                $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    30             $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 
    31                 $form .= "<br />";       
     33            $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 
     34                $form .= "<br />\n";     
    3235                $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 
    3336                $form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n"; 
    3437                $form .= _MB_XPRESS_GREENNEW_DAYS .": <input type='text' name='options[4]' value='" . $disp_green . "' /><br />\n"; 
     38                $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n"; 
     39                $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n"; 
    3540                 
    3641            $form .= "<br />\n"; 
    37                 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[5]' value='" . $tag_select . "' /><br />\n"; 
     42                $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n"; 
    3843            $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 
    3944            $isAll = (count($selected)==0||empty($selected[0]))?true:false; 
  • trunk/language/ja_utf8/blocks.php

    r138 r142  
    2222        define("_MB_XPRESS_SHOW_DATE","日付を表示する"); 
    2323        define("_MB_XPRESS_DATE_FORMAT","日付のフォーマット(空白の場合WordPressでの設定が適用されます)"); 
     24        define("_MB_XPRESS_TIME_FORMAT","時刻のフォーマット(空白の場合WordPressでの設定が適用されます)"); 
    2425        define("_MB_XPRESS_FLAT","フラット"); 
    2526        define("_MB_XPRESS_LIST","リスト"); 
  • trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php

    r120 r142  
    66        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
    77        $show_month_range = empty( $options[3] ) ? '0' : $options[3] ; 
    8         $tag_select = $options[4] ; 
    9         $selected = array_slice($options,5); // get allowed cats 
     8        $date_format = empty( $options[4] ) ? '' : $options[4] ; 
     9        $time_format = empty( $options[5] ) ? '' : $options[5] ; 
     10        $tag_select = $options[6] ; 
     11        $selected = array_slice($options, 7); // get allowed cats 
     12 
    1013        $mydirpath = get_xpress_dir_path(); 
    1114         
     15        if (empty($date_format)) $date_format = get_settings('date_format'); 
     16        if (empty($time_format)) $time_format = get_settings('time_format'); 
    1217        if (array_search(0,$selected)===0) { 
    1318                $cat_select = false; 
     
    112117                         
    113118                        ob_start(); 
    114                                 the_modified_date(get_settings('date_format')); 
     119                                the_modified_date($date_format); 
    115120                                $post_modified_date = ob_get_contents(); 
    116121                        ob_end_clean(); 
    117122                         
    118123                        ob_start(); 
    119                                 the_modified_date(get_settings('time_format')); 
     124                                the_modified_date($time_format); 
    120125                                $post_modified_time = ob_get_contents(); 
    121126                        ob_end_clean(); 
    122127                         
    123128                        ob_start(); 
    124                                 the_time(get_settings('date_format')); 
     129                                the_time($date_format); 
    125130                                $post_date = ob_get_contents(); 
    126131                        ob_end_clean(); 
    127132                         
    128133                        ob_start(); 
    129                                 the_time(get_settings('time_format')); 
     134                                the_time($time_format); 
    130135                                $post_time = ob_get_contents(); 
    131136                        ob_end_clean(); 
  • trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php

    r120 r142  
    88        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
    99        $disp_length = empty( $options[3] ) ? '30' : $options[3] ; 
    10         $selected = array_slice($options,4); // get allowed cats 
    11 //      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     10        $date_format = empty( $options[4] ) ? '' : $options[4] ; 
     11        $time_format = empty( $options[5] ) ? '' : $options[5] ; 
     12    $selected = array_slice($options,6); // get allowed cats 
     13 
    1214        $mydirpath = get_xpress_dir_path(); 
    13         $this_url = '/modules/'. $mydirname; 
    14         $call_url = $_SERVER['REQUEST_URI']; 
     15         
     16        if (empty($date_format)) $date_format = get_settings('date_format'); 
     17        if (empty($time_format)) $time_format = get_settings('time_format'); 
    1518         
    1619        $disp_all = in_array('0',$selected); 
     
    4750 
    4851                $comments = $wpdb->get_results($comment_sql); 
    49                 $format = get_settings('date_format') . ' ' . get_settings('time_format');                               
    5052                 
    5153                if ( $comments ) { 
     
    7476                                        'comment_ID'            => $comment->comment_ID , 
    7577                                        'comment_post_ID'       => $comment->comment_post_ID , 
    76                                         'comment_date'          => date(get_settings('date_format'),$comment->comment_unix_time) , 
    77                                         'comment_date_time' => date(get_settings('date_format') . ' ' . get_settings('time_format'),$comment->comment_unix_time) , 
     78                                        'comment_date'          => date($date_format,$comment->comment_unix_time) , 
     79                                        'comment_date_time' => date($date_format . ' ' . $time_format,$comment->comment_unix_time) , 
    7880                                        'comment_content'       => $comment_content , 
    7981                                        'comment_excerpt'       => $comment_excerpt , 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php

    r120 r142  
    99        $except = empty( $options[3] ) ? false : true ; 
    1010        $except_size =  ($options[4])?intval($options[4]):100; 
    11         $tag_select = $options[5] ; 
    12     $selected = array_slice($options,6); // get allowed cats 
    13 //      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     11        $date_format = empty( $options[5] ) ? '' : $options[5] ; 
     12        $time_format = empty( $options[6] ) ? '' : $options[6] ; 
     13        $tag_select = $options[7] ; 
     14    $selected = array_slice($options,8); // get allowed cats 
     15 
    1416        $mydirpath = get_xpress_dir_path(); 
    1517         
    16         $this_url = '/modules/'. $mydirname; 
    17         $call_url = $_SERVER['REQUEST_URI']; 
    18          
     18        if (empty($date_format)) $date_format = get_settings('date_format'); 
     19        if (empty($time_format)) $time_format = get_settings('time_format'); 
    1920        if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 
    2021         
     
    7071 
    7172                        ob_start(); 
    72                                 the_modified_date(get_settings('date_format')); 
     73                                the_modified_date($date_format); 
    7374                                $post_modified_date = ob_get_contents(); 
    7475                        ob_end_clean(); 
    7576                         
    7677                        ob_start(); 
    77                                 the_modified_date(get_settings('time_format')); 
     78                                the_modified_date($time_format); 
    7879                                $post_modified_time = ob_get_contents(); 
    7980                        ob_end_clean(); 
    8081                         
    8182                        ob_start(); 
    82                                 the_time(get_settings('date_format')); 
     83                                the_time($date_format); 
    8384                                $post_date = ob_get_contents(); 
    8485                        ob_end_clean(); 
    8586                         
    8687                        ob_start(); 
    87                                 the_time(get_settings('time_format')); 
     88                                the_time($time_format); 
    8889                                $post_time = ob_get_contents(); 
    8990                        ob_end_clean(); 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php

    r121 r142  
    77        $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 
    88        $disp_green = empty( $options[4] ) ? '7' : $options[4] ; 
    9         $tag_select = $options[5] ; 
    10         $selected = array_slice($options,6); // get allowed cats 
    11 //      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     9        $date_format = empty( $options[5] ) ? '' : $options[5] ; 
     10        $time_format = empty( $options[6] ) ? '' : $options[6] ; 
     11        $tag_select = $options[7] ; 
     12        $selected = array_slice($options,8); // get allowed cats 
     13 
    1214        $mydirpath = get_xpress_dir_path(); 
    1315 
     16        if (empty($date_format)) $date_format = get_settings('date_format'); 
     17        if (empty($time_format)) $time_format = get_settings('time_format'); 
    1418        if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 
    1519         
     
    5963                         
    6064                        ob_start(); 
    61                                 the_modified_date(get_settings('date_format')); 
     65                                the_modified_date($date_format); 
    6266                                $post_modified_date = ob_get_contents(); 
    6367                        ob_end_clean(); 
    6468                         
    6569                        ob_start(); 
    66                                 the_modified_date(get_settings('time_format')); 
     70                                the_modified_date($time_format); 
    6771                                $post_modified_time = ob_get_contents(); 
    6872                        ob_end_clean(); 
    6973                         
    7074                        ob_start(); 
    71                                 the_time(get_settings('date_format')); 
     75                                the_time($date_format); 
    7276                                $post_date = ob_get_contents(); 
    7377                        ob_end_clean(); 
    7478                         
    7579                        ob_start(); 
    76                                 the_time(get_settings('time_format')); 
     80                                the_time($time_format); 
    7781                                $post_time = ob_get_contents(); 
    7882                        ob_end_clean(); 
  • trunk/xoops_version.php

    r141 r142  
    3131$modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 
    3232$modversion['description'] = constant( '_MI_XPRESS_DESC'); 
    33 $modversion['version'] = "0.18"; 
     33$modversion['version'] = "0.19"; 
    3434$modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 
    3535$modversion['author'] = "toemon (http://www.toemon.com)"; 
     
    4040 
    4141// status 
    42 $modversion['codename'] = "r141"; 
     42$modversion['codename'] = "r142"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
     
    107107$b_no =1; 
    108108$modversion['blocks'][$b_no] = array( 
     109        'file'                  => 'recent_posts_content_block.php' , 
     110        'name'                  => constant('_MI_XPRESS_BLOCK_CONTENT') , 
     111        'description'   => '' , 
     112        'show_func'     => "b_". $mydirname . "_content_show" , 
     113        'edit_func'     => "b_". $mydirname . "_content_edit" , 
     114        'template'              => '' , 
     115        'options'               => $mydirname. '||10|0|100||||0' , 
     116        'can_clone'             => true , 
     117        'func_num'              => $b_no, 
     118); 
     119$b_no++; 
     120$modversion['blocks'][$b_no] = array( 
     121        'file'                  => 'recent_posts_list_block.php' , 
     122        'name'                  => constant('_MI_XPRESS_BLOCK_POSTS') , 
     123        'description'   => '' , 
     124        'show_func'     => "b_". $mydirname . "_posts_show" , 
     125        'edit_func'     => "b_". $mydirname . "_posts_edit" , 
     126        'options'               => $mydirname. '||10|1|7||||0' , 
     127        'can_clone'             => true , 
     128        'func_num'              => $b_no,        
     129); 
     130$b_no++; 
     131$modversion['blocks'][$b_no] = array( 
     132        'file'                  => 'popular_posts_block.php' , 
     133        'name'                  => constant('_MI_XPRESS_BLOCK_POPULAR') , 
     134        'description'   => '' , 
     135        'show_func'     => "b_". $mydirname . "_popular_show" , 
     136        'edit_func'     => "b_". $mydirname . "_popular_edit" , 
     137        'options'               => $mydirname. '||10|0||||0' , 
     138        'can_clone'             => true , 
     139        'func_num'              => $b_no,        
     140); 
     141$b_no++; 
     142$modversion['blocks'][$b_no] = array( 
     143        'file'                  => 'page_block.php' , 
     144        'name'                  => constant('_MI_XPRESS_BLOCK_PAGE') , 
     145        'description'   => '' , 
     146        'show_func'     => "b_". $mydirname . "_page_show" , 
     147        'edit_func'     => "b_". $mydirname . "_page_edit" , 
     148        'options'               => $mydirname. '||post_title|asc||0||0|0|none||1||' , 
     149        'can_clone'             => true , 
     150        'func_num'              => $b_no, 
     151); 
     152$b_no++; 
     153$modversion['blocks'][$b_no] = array( 
    109154        'file'                  => 'recent_comments_block.php' , 
    110155        'name'                  => constant('_MI_XPRESS_BLOCK_COMMENTS') , 
     
    113158        'edit_func'     => "b_". $mydirname . "_comments_edit" , 
    114159        'template'              => '' , 
    115         'options'               => $mydirname. '||10|30|0' , 
    116         'can_clone'             => true , 
    117         'func_num'              => $b_no,        
    118 ); 
    119 $b_no++; 
    120 $modversion['blocks'][$b_no] = array( 
    121         'file'                  => 'recent_posts_content_block.php' , 
    122         'name'                  => constant('_MI_XPRESS_BLOCK_CONTENT') , 
    123         'description'   => '' , 
    124         'show_func'     => "b_". $mydirname . "_content_show" , 
    125         'edit_func'     => "b_". $mydirname . "_content_edit" , 
    126         'template'              => '' , 
    127         'options'               => $mydirname. '||10|0|100||0' , 
    128         'can_clone'             => true , 
    129         'func_num'              => $b_no, 
    130 ); 
    131 $b_no++; 
    132 $modversion['blocks'][$b_no] = array( 
    133         'file'                  => 'recent_posts_list_block.php' , 
    134         'name'                  => constant('_MI_XPRESS_BLOCK_POSTS') , 
    135         'description'   => '' , 
    136         'show_func'     => "b_". $mydirname . "_posts_show" , 
    137         'edit_func'     => "b_". $mydirname . "_posts_edit" , 
    138         'options'               => $mydirname. '||10|1|7||0' , 
    139         'can_clone'             => true , 
    140         'func_num'              => $b_no,        
     160        'options'               => $mydirname. '||10|30|||0' , 
     161        'can_clone'             => true , 
     162        'func_num'              => $b_no,        
     163); 
     164$b_no++; 
     165$modversion['blocks'][$b_no] = array( 
     166        'file'                  => 'sidebar_block.php' , 
     167        'name'                  => constant('_MI_XPRESS_BLOCK_SIDEBAR') , 
     168        'description'   => '' , 
     169        'show_func'     => "b_". $mydirname . "_sidebar_show" , 
     170        'edit_func'     => '' , 
     171        'options'               => '' , 
     172        'can_clone'             => false , 
     173        'func_num'              => $b_no,        
     174); 
     175$b_no++; 
     176$modversion['blocks'][$b_no] = array( 
     177        'file'                  => 'search_block.php' , 
     178        'name'                  => constant('_MI_XPRESS_BLOCK_SEARCH') , 
     179        'description'   => '' , 
     180        'show_func'     => "b_". $mydirname . "_search_show" , 
     181        'edit_func'     => "b_". $mydirname . "_search_edit" , 
     182        'options'               => $mydirname. '||18' , 
     183        'can_clone'             => false , 
     184        'func_num'              => $b_no ,       
    141185); 
    142186$b_no++; 
     
    153197$b_no++; 
    154198$modversion['blocks'][$b_no] = array( 
    155         'file'                  => 'popular_posts_block.php' , 
    156         'name'                  => constant('_MI_XPRESS_BLOCK_POPULAR') , 
    157         'description'   => '' , 
    158         'show_func'     => "b_". $mydirname . "_popular_show" , 
    159         'edit_func'     => "b_". $mydirname . "_popular_edit" , 
    160         'options'               => $mydirname. '||10|0||0' , 
    161         'can_clone'             => true , 
    162         'func_num'              => $b_no,        
    163 ); 
    164 $b_no++; 
    165 $modversion['blocks'][$b_no] = array( 
    166199        'file'                  => 'archives_block.php' , 
    167200        'name'                  => constant('_MI_XPRESS_BLOCK_ARCHIVE') , 
     
    186219$b_no++; 
    187220$modversion['blocks'][$b_no] = array( 
    188         'file'                  => 'page_block.php' , 
    189         'name'                  => constant('_MI_XPRESS_BLOCK_PAGE') , 
    190         'description'   => '' , 
    191         'show_func'     => "b_". $mydirname . "_page_show" , 
    192         'edit_func'     => "b_". $mydirname . "_page_edit" , 
    193         'options'               => $mydirname. '||post_title|asc||0||0|0|none||1||' , 
    194         'can_clone'             => true , 
    195         'func_num'              => $b_no, 
    196 ); 
    197 $b_no++; 
    198 $modversion['blocks'][$b_no] = array( 
    199         'file'                  => 'search_block.php' , 
    200         'name'                  => constant('_MI_XPRESS_BLOCK_SEARCH') , 
    201         'description'   => '' , 
    202         'show_func'     => "b_". $mydirname . "_search_show" , 
    203         'edit_func'     => "b_". $mydirname . "_search_edit" , 
    204         'options'               => $mydirname. '||18' , 
    205         'can_clone'             => false , 
    206         'func_num'              => $b_no ,       
    207 ); 
    208 $b_no++; 
    209 $modversion['blocks'][$b_no] = array( 
    210221        'file'                  => 'tag_cloud_block.php' , 
    211222        'name'                  => constant('_MI_XPRESS_BLOCK_TAG') , 
     
    236247        'edit_func'     => "b_". $mydirname . "_meta_edit" , 
    237248        'options'               => $mydirname. '||1|1|1|1|1|1|1|1' , 
    238         'can_clone'             => false , 
    239         'func_num'              => $b_no,        
    240 ); 
    241 $b_no++; 
    242 $modversion['blocks'][$b_no] = array( 
    243         'file'                  => 'sidebar_block.php' , 
    244         'name'                  => constant('_MI_XPRESS_BLOCK_SIDEBAR') , 
    245         'description'   => '' , 
    246         'show_func'     => "b_". $mydirname . "_sidebar_show" , 
    247         'edit_func'     => '' , 
    248         'options'               => '' , 
    249249        'can_clone'             => false , 
    250250        'func_num'              => $b_no,        
Note: See TracChangeset for help on using the changeset viewer.