XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 18, 2009, 10:59:02 PM (16 years ago)
Author:
toemon
Message:

ブロックオプションの$selected = array_slice()部分が最後になるようにするため、ブロックオプションの$this_templateの位置を最後尾から2番目に変更
Ver 0.09 bump

Location:
trunk/wp-content/themes/xpress_default/blocks
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/xpress_default/blocks/archives_block_theme.php

    r110 r120  
    33{ 
    44        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    5         $type = empty( $options[1] ) ? false : true ; 
    6         $limit = empty( $options[2] ) ? '10' : $options[2] ; 
    7         $show_post_count = empty( $options[3] ) ? false : true ;                 
    8         $drop_down = empty( $options[4] ) ? false : true ;       
    9         $this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_archives_block.html' : trim( $options[3] ); 
     5        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_archives_block.html' : trim( $options[1] ); 
     6        $type = empty( $options[2] ) ? false : true ; 
     7        $limit = empty( $options[3] ) ? '10' : $options[3] ; 
     8        $show_post_count = empty( $options[4] ) ? false : true ;                 
     9        $drop_down = empty( $options[5] ) ? false : true ;       
    1010         
    1111        if ($type) { 
  • trunk/wp-content/themes/xpress_default/blocks/authors_block_theme.php

    r110 r120  
    33{ 
    44        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    5         $optioncount = empty( $options[1] ) ? false : true ; 
    6         $exclude_admin = empty( $options[2] ) ? false : true ; 
    7         $show_fullname = empty( $options[3] ) ? false : true ; 
    8         $hide_empty = empty( $options[4] ) ? false : true ;              
    9         $this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[5] ); 
     5        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[1] ); 
     6        $optioncount = empty( $options[2] ) ? false : true ; 
     7        $exclude_admin = empty( $options[3] ) ? false : true ; 
     8        $show_fullname = empty( $options[4] ) ? false : true ; 
     9        $hide_empty = empty( $options[5] ) ? false : true ;              
    1010        $mydirpath = get_xpress_dir_path(); 
    1111         
  • trunk/wp-content/themes/xpress_default/blocks/calender_block_theme.php

    r115 r120  
    33{ 
    44        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    5         $sun_color = empty( $options[1] ) ? '#DB0000' : $options[1] ; 
    6         $sat_color = empty( $options[2] ) ? '#004D99' : $options[2] ; 
    7         $this_template = empty( $options[3] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[3] ); 
     5        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_calender_block.html' : trim( $options[1] ); 
     6        $sun_color = empty( $options[2] ) ? '#DB0000' : $options[2] ; 
     7        $sat_color = empty( $options[3] ) ? '#004D99' : $options[3] ; 
    88//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    99        $mydirpath = get_xpress_dir_path(); 
  • trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php

    r109 r120  
    33{ 
    44        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    5         $disp_count = empty( $options[1] ) ? '10' : $options[1] ; 
    6         $show_month_range = empty( $options[2] ) ? '0' : $options[2] ; 
    7         $tag_select = $options[3] ; 
    8         $selected = array_slice($options,4); // get allowed cats 
    9         $this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[5] ); 
     5        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[1] ); 
     6        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
     7        $show_month_range = empty( $options[3] ) ? '0' : $options[3] ; 
     8        $tag_select = $options[4] ; 
     9        $selected = array_slice($options,5); // get allowed cats 
    1010        $mydirpath = get_xpress_dir_path(); 
    1111         
  • trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php

    r110 r120  
    55{ 
    66        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    7         $disp_count = empty( $options[1] ) ? '10' : $options[1] ; 
    8         $disp_length = empty( $options[2] ) ? '30' : $options[2] ; 
    9         $selected = array_slice($options,3); // get allowed cats 
    10         $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[4] ); 
     7        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[1] ); 
     8        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
     9        $disp_length = empty( $options[3] ) ? '30' : $options[3] ; 
     10        $selected = array_slice($options,4); // get allowed cats 
    1111//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    1212        $mydirpath = get_xpress_dir_path(); 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php

    r109 r120  
    55{ 
    66        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    7         $disp_count =  ($options[1])?intval($options[1]):10; 
    8         $except = empty( $options[2] ) ? false : true ; 
    9         $except_size =  ($options[3])?intval($options[3]):100; 
    10         $tag_select = $options[4] ; 
    11     $selected = array_slice($options,5); // get allowed cats 
    12         $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[6] ); 
     7        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[1] ); 
     8        $disp_count =  ($options[2])?intval($options[2]):10; 
     9        $except = empty( $options[3] ) ? false : true ; 
     10        $except_size =  ($options[4])?intval($options[4]):100; 
     11        $tag_select = $options[5] ; 
     12    $selected = array_slice($options,6); // get allowed cats 
    1313//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    1414        $mydirpath = get_xpress_dir_path(); 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php

    r109 r120  
    33{ 
    44        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    5         $disp_count = empty( $options[1] ) ? '10' : $options[1] ; 
    6         $disp_red = empty( $options[2] ) ? '1' : $options[2] ; 
    7         $disp_green = empty( $options[3] ) ? '7' : $options[3] ; 
    8         $tag_select = $options[4] ; 
    9         $selected = array_slice($options,5); // get allowed cats 
    10         $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[6] ); 
     5        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[1] ); 
     6        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
     7        $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 
     8        $disp_green = empty( $options[4] ) ? '7' : $options[4] ; 
     9        $tag_select = $options[5] ; 
     10        $selected = array_slice($options,6); // get allowed cats 
    1111//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    1212        $mydirpath = get_xpress_dir_path(); 
Note: See TracChangeset for help on using the changeset viewer.