XPressME Integration Kit

Trac

Changeset 121


Ignore:
Timestamp:
Mar 19, 2009, 6:14:15 PM (15 years ago)
Author:
toemon
Message:

ブロックオプションのうち$this_templateをポストしていなかったため、オプション変更時にデータずれが発生するバグを修正

Location:
trunk
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • trunk/blocks/archives_block.php

    r120 r121  
    2828 
    2929                $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     30            $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 
     31                $form .= "<br />"; 
    3032                $a_month = _MB_XPRESS_ARC_MONTH ; 
    3133                $a_week = _MB_XPRESS_ARC_WEEK ;          
    3234 
    33                 $form .= "<br />" . yes_no_radio_option('options[1]', _MB_XPRESS_ARC_TYPE , $type,$a_month,$a_week); 
     35                $form .= "<br />" . yes_no_radio_option('options[2]', _MB_XPRESS_ARC_TYPE , $type,$a_month,$a_week); 
    3436                $form .= "<br />" . _MB_XPRESS_COUNT . "  <input type='text' name='options[3]' value='" . $limit . "' />"; 
    3537                $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count); 
  • trunk/blocks/authors_block.php

    r120 r121  
    2828                         
    2929                $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     30            $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 
     31                $form .= "<br />"; 
    3032                $form .= yes_no_radio_option('options[2]', _MB_XPRESS_SHOW_NUM_OF_POST , $optioncount); 
    3133                $form .= "<br />" . yes_no_radio_option('options[3]', _MB_XPRESS_EXCLUEDEADMIN , $exclude_admin); 
  • trunk/blocks/calender_block.php

    r120 r121  
    2626 
    2727                $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    28                 $form .= _MB_XPRESS_SUN_COLOR .": <input type='text' name='options[1]' value='" . $sun_color . "' /><br />\n"; 
    29                 $form .= _MB_XPRESS_SAT_COLOR .": <input type='text' name='options[2]' value='" . $sat_color . "' /><br />\n"; 
     28            $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 
     29                $form .= "<br />"; 
     30                $form .= _MB_XPRESS_SUN_COLOR .": <input type='text' name='options[2]' value='" . $sun_color . "' /><br />\n"; 
     31                $form .= _MB_XPRESS_SAT_COLOR .": <input type='text' name='options[3]' value='" . $sat_color . "' /><br />\n"; 
    3032 
    3133                return $form; 
  • trunk/blocks/page_block.php

    r118 r121  
    2727 
    2828                $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 />"; 
     30                $form .= "<br />"; 
    2931                $form .= _MB_XPRESS_SORT_COLUMN ."\n"; 
    3032                $form .= "<select name='options[2]' size='1'>\n"; 
  • trunk/blocks/popular_posts_block.php

    r120 r121  
    2727 
    2828                $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 />"; 
    2931                $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 
    3032                $form .= _MB_MONTH_RANGE .": <input type='text' name='options[3]' value='" . $show_month_range . "' /><br />\n"; 
  • trunk/blocks/recent_comments_block.php

    r120 r121  
    2727                 
    2828                $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 />"; 
     30                $form .= "<br />"; 
    2931                $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />"; 
    3032                $form .= _MB_XPRESS_LENGTH .": <input type='text' name='options[3]' value='" . $disp_length . "' />"; 
  • trunk/blocks/recent_posts_content_block.php

    r120 r121  
    3030                 
    3131                $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 />"; 
     33                $form .= "<br />"; 
    3234                $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 
    3335                $form .= yes_no_radio_option('options[3]', _MB_XPRESS_P_EXCEPT , $except) . "<br />\n"; 
  • trunk/blocks/recent_posts_list_block.php

    r120 r121  
    2828 
    2929                $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 />";       
    3032                $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 
    3133                $form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n"; 
  • trunk/blocks/search_block.php

    r120 r121  
    2525                 
    2626                $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
    27                 $form .= _MB_XPRESS_SEARCH_LENGTH .": <input type='text' name='options[1]' value='" . $disp_count . "' /><br />"; 
     27            $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 
     28                $form .= "<br />";               
     29                $form .= _MB_XPRESS_SEARCH_LENGTH .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />"; 
    2830//          $form .="<br /><input type='text' size='60' name='options[2]' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 
    2931 
  • trunk/templates/source/archives_block.html

    r115 r121  
    1212************************* End of usage ************************ *}> 
    1313<{* Start Template *}> 
     14 
    1415<div class="xpress_block"> 
     16        <{$block.err_message}> 
    1517        <div class="xpress_archive_block"> 
    16                 <{$block.err_message}> 
    1718                <{if $block.config.is_archive_doropdown}> 
    1819                        <{$block.archive_dropdown}> 
  • trunk/templates/source/authors_block.html

    r115 r121  
    1010************************* End of usage ************************ *}> 
    1111<{* Start Template *}> 
     12 
    1213<div class="xpress_block"> 
     14        <{$block.err_message}> 
    1315        <div class="xpress_authors_block"> 
    14                 <{$block.err_message}> 
    1516                <ul> 
    1617                <{foreach from=$block.contents item=content}> 
  • trunk/templates/source/calender_block.html

    r115 r121  
    55   ************************* End of usage ************************ *}> 
    66<{* Start Template *}> 
     7 
    78<div class="xpress_block"> 
     9        <{$block.err_message}> 
    810        <div class="xpress_calender_block"> 
    9                 <{$block.err_message}> 
    1011                <{$block.calender}> 
    1112        </div> 
  • trunk/templates/source/page_block.html

    r118 r121  
    1010************************* End of usage ************************ *}> 
    1111<{* Start Template *}> 
     12 
    1213<div class="xpress_block"> 
    1314        <{$block.err_message}> 
    14         <div class='xpress_page_block> 
     15        <div class='xpress_page_block'> 
    1516                <ul> 
    1617                <{foreach from=$block.contents item=content}> 
  • trunk/templates/source/popular_posts_block.html

    r115 r121  
    2323************************* End of usage ************************ *}> 
    2424<{* Start Template *}> 
     25 
    2526<div class="xpress_block"> 
     27        <{$block.err_message}> 
    2628        <div class="xpress_popular_post_block"> 
    27                 <{$block.err_message}> 
    2829                <ul> 
    2930                <{foreach from=$block.contents item=content}> 
  • trunk/templates/source/recent_comments_block.html

    r115 r121  
    2626   ************************* End of usage ************************ *}> 
    2727<{* Start Template *}> 
     28 
    2829<div class="xpress_block"> 
     30        <{$block.err_message}> 
    2931        <div class="xpress_recent_comments_block"> 
    30                 <{$block.err_message}> 
    3132                <ul> 
    3233                <{foreach from=$block.contents item=content}> 
  • trunk/templates/source/recent_posts_content_block.html

    r115 r121  
    2424************************* End of usage ************************ *}> 
    2525<{* Start Template *}> 
     26 
    2627<div class="xpress_block"> 
     28        <{$block.err_message}> 
    2729        <div class="xpress_recent_post_content_block"> 
    28                 <{$block.err_message}> 
    2930                <ul> 
    3031                <{foreach from=$block.contents item=content}> 
  • trunk/templates/source/recent_posts_list_block.html

    r115 r121  
    2424************************* End of usage ************************ *}> 
    2525<{* Start Template *}> 
     26 
    2627<div class="xpress_block"> 
     28        <{$block.err_message}> 
    2729        <div class="xpress_recent_post_list_block"> 
    2830                <{$block.err_message}> 
  • trunk/templates/source/search_block.html

    r119 r121  
    55   ************************* End of usage ************************ *}> 
    66<{* Start Template *}> 
     7 
    78<div class="xpress_block"> 
     9        <{$block.err_message}> 
    810        <div class="xpress_search_block"> 
    9                 <{$block.err_message}> 
    1011                <{$block.search}> 
    1112        </div> 
  • trunk/wp-content/themes/xpress_default/blocks/page_block_theme.php

    r118 r121  
    55        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    66        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_page_block.html' : trim( $options[1] ); 
    7         $sort_column = empty( $options[2] ) ? 0 : $options[1] ; 
     7        $sort_column = empty( $options[2] ) ? 0 : $options[2] ; 
    88        $sort_order_asc = empty( $options[3] ) ? 0 : 1 ; 
    99        $show_date = empty( $options[4] ) ? 0 : 1 ; 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php

    r120 r121  
    9393                        $new_mark = ''; 
    9494                        if ($elapse < $red_sec ) { 
    95                                 $new_mark = '<em style="color: red; font-size: small;">New!</em>'; 
     95                                $new_mark = '<em style="color: red; font-size: small;">New! </em>'; 
    9696 
    9797                        } else if ($elapse < $green_sec) { 
    98                                 $new_mark = '<em style="color: green; font-size: small;">New!</em>'; 
     98                                $new_mark = '<em style="color: green; font-size: small;">New! </em>'; 
    9999                        } 
    100100                         
  • trunk/wp-content/themes/xpress_default/blocks/search_block_theme.php

    r119 r121  
    55        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    66        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_search.html' : trim( $options[1] ); 
    7         $input_length = empty( $options[2] ) ? '18' : $options[1] ; 
     7        $input_length = empty( $options[2] ) ? '18' : $options[2] ; 
    88        $mydirpath = get_xpress_dir_path(); 
    99 
Note: See TracChangeset for help on using the changeset viewer.