- Timestamp:
- Jul 15, 2009, 12:58:34 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/extras/for_wordpressme2011/ja_EUC/language/japanese/blocks.php
r314 r339 126 126 define("_MB_XP2_SELECT_WIDGET","ɽ¼¨¤¹¤ë¥¦¥£¥¸¥§¥Ã¥È¤òÁªÂò (Ê£¿ôÁªÂò²Ä)"); 127 127 define("_MB_XP2_NO_WIDGET","WordPress¦¤Çɽ¼¨¤¹¤ë¥¦¥£¥¸¥§¥Ã¥È¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤»¤ó"); 128 define("_MB_XP2_WIDGET_TITLE_SHOW","ñÆÈ¥¦¥£¥¸¥§¥Ã¥ÈÁªÂò»þ¡¢¥¦¥£¥¸¥§¥Ã¥È¤Î¥¿¥¤¥È¥ë¤òɽ¼¨"); 128 129 129 130 // custom -
trunk/extras/for_wordpressme2011/ja_UTF/language/ja_utf8/blocks.php
r314 r339 126 126 define("_MB_XP2_SELECT_WIDGET","表示するウィジェットを選択 (複数選択可)"); 127 127 define("_MB_XP2_NO_WIDGET","WordPress側で表示するウィジェットが選択されていません"); 128 define("_MB_XP2_WIDGET_TITLE_SHOW","単独ウィジェット選択時、ウィジェットのタイトルを表示"); 128 129 129 130 // custom -
trunk/extras/xpress_i18n/portuguese-br/xpressme_modules_root/language/portuguesebr/blocks.php
r315 r339 126 126 define("_MB_XP2_SELECT_WIDGET","Displayed Widget is selected."); 127 127 define("_MB_XP2_NO_WIDGET","Widget displayed on the WordPress side has not been selected. "); 128 define("_MB_XP2_WIDGET_TITLE_SHOW","When only one Widget has been selected, the title of Widget is displayed."); 128 129 129 130 // custom -
trunk/xpressme_integration_kit/blocks/widget_block.php
r324 r339 19 19 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 20 20 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_widget_block.html' : trim( $options[1] ); 21 $selected = array_slice($options,2); // get allowed cats 21 $title_show = empty( $options[2] ) ? false : true ; 22 $selected = array_slice($options,3); // get allowed cats 22 23 23 24 if ($mydirname == 'wordpress'){ … … 44 45 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 45 46 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 47 $form .= "<br />" . yes_no_radio_option('options[2]', _MB_XP2_WIDGET_TITLE_SHOW , $title_show); 46 48 $form .= "<br />"; 47 49 $form .= _MB_XP2_SELECT_WIDGET .":<br />\n"; -
trunk/xpressme_integration_kit/language/english/blocks.php
r305 r339 126 126 define("_MB_XP2_SELECT_WIDGET","Displayed Widget is selected."); 127 127 define("_MB_XP2_NO_WIDGET","Widget displayed on the WordPress side has not been selected. "); 128 define("_MB_XP2_WIDGET_TITLE_SHOW","When only one Widget has been selected, the title of Widget is displayed."); 128 129 129 130 // custom -
trunk/xpressme_integration_kit/language/ja_utf8/blocks.php
r305 r339 126 126 define("_MB_XP2_SELECT_WIDGET","表示するウィジェットを選択 (複数選択可)"); 127 127 define("_MB_XP2_NO_WIDGET","WordPress側で表示するウィジェットが選択されていません"); 128 define("_MB_XP2_WIDGET_TITLE_SHOW","単独ウィジェット選択時、ウィジェットのタイトルを表示"); 128 129 129 130 -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/widget_block_theme.php
r252 r339 4 4 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 5 5 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_widget.html' : trim( $options[1] ); 6 $selected = array_slice($options,2); // get allowed cats 6 $title_show = empty( $options[2] ) ? false : true ; 7 $selected = array_slice($options,3); // get allowed cats 7 8 8 9 $output = ''; … … 17 18 ob_end_clean(); 18 19 } 19 // if (count($selected) > 1) 20 $block['widget'] = "<ul>\n" . $output . "\n</ul>\n"; 21 // else 22 // $block['widget'] = $output; 20 if (count($selected) > 1){ 21 $output = "<ul>\n" . $output . "\n</ul>\n"; 22 } else { 23 if(!$title_show){ 24 $del_pattern = '<[^>]*class\s*=\s*[\'|"]widgettitle[\'|"]\s*>[^<]*<\/[^>]*>'; 25 $output = preg_replace('/' . $del_pattern . '/', '', $output); 26 } 27 if (preg_match('/^<li[^>]*>.*<\/li>$/s',$output)){ 28 $output = preg_replace('/^<li[^>]*>/', '', $output); 29 $output = preg_replace('/<\/li>$/', '', $output); 30 } 31 } 32 $block['widget'] = $output; 23 33 return $block ; 24 34 } -
trunk/xpressme_integration_kit/xoops_version.php
r337 r339 276 276 'show_func' => "b_". $mydirname . "_widget_show" , 277 277 'edit_func' => "b_". $mydirname . "_widget_edit" , 278 'options' => $mydirname. '|| ' ,278 'options' => $mydirname. '||1|' , 279 279 'can_clone' => true , 280 280 'func_num' => $b_no,
Note: See TracChangeset
for help on using the changeset viewer.