Changeset 183 for trunk/blocks
- Timestamp:
- Apr 20, 2009, 6:16:29 PM (16 years ago)
- Location:
- trunk/blocks
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/archives_block.php
r125 r183 30 30 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 31 31 $form .= "<br />"; 32 $a_month = _MB_XP RESS_ARC_MONTH ;33 $a_week = _MB_XP RESS_ARC_WEEK ;32 $a_month = _MB_XP2_ARC_MONTH ; 33 $a_week = _MB_XP2_ARC_WEEK ; 34 34 35 $form .= _MB_XP RESS_ARC_TYPE .": ";35 $form .= _MB_XP2_ARC_TYPE .": "; 36 36 $form .= "<select name='options[2]'>"; 37 37 if ($type =='yearly') 38 $form .= "<option value='yearly' selected='selected'>". _MB_XP RESS_ARC_YEAR;38 $form .= "<option value='yearly' selected='selected'>". _MB_XP2_ARC_YEAR; 39 39 else 40 $form .= "<option value='yearly'>". _MB_XP RESS_ARC_YEAR;40 $form .= "<option value='yearly'>". _MB_XP2_ARC_YEAR; 41 41 42 42 if ($type =='monthly') 43 $form .= "<option value='monthly' selected='selected'>". _MB_XP RESS_ARC_MONTH;43 $form .= "<option value='monthly' selected='selected'>". _MB_XP2_ARC_MONTH; 44 44 else 45 $form .= "<option value='monthly'>". _MB_XP RESS_ARC_MONTH;45 $form .= "<option value='monthly'>". _MB_XP2_ARC_MONTH; 46 46 47 47 if ($type =='weekly') 48 $form .= "<option value='weekly' selected='selected'>". _MB_XP RESS_ARC_WEEK;48 $form .= "<option value='weekly' selected='selected'>". _MB_XP2_ARC_WEEK; 49 49 else 50 $form .= "<option value='weekly'>". _MB_XP RESS_ARC_WEEK;50 $form .= "<option value='weekly'>". _MB_XP2_ARC_WEEK; 51 51 52 52 if ($type =='daily') 53 $form .= "<option value='daily' selected='selected'>". _MB_XP RESS_ARC_DAY;53 $form .= "<option value='daily' selected='selected'>". _MB_XP2_ARC_DAY; 54 54 else 55 $form .= "<option value='daily'>". _MB_XP RESS_ARC_DAY;55 $form .= "<option value='daily'>". _MB_XP2_ARC_DAY; 56 56 57 57 if ($type =='postbypost') 58 $form .= "<option value='postbypost' selected='selected'>". _MB_XP RESS_ARC_POST;58 $form .= "<option value='postbypost' selected='selected'>". _MB_XP2_ARC_POST; 59 59 else 60 $form .= "<option value='postbypost'>". _MB_XP RESS_ARC_POST;60 $form .= "<option value='postbypost'>". _MB_XP2_ARC_POST; 61 61 62 62 $form .= "</select><br/>"; 63 63 64 $form .= "<br />" . _MB_XP RESS_COUNT_ZERO_ALL . " <input type='text' name='options[3]' value='" . $limit . "' />";65 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XP RESS_SHOW_NUM_OF_POST , $show_post_count);66 $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XP RESS_SHOW_DROP_DOWN , $drop_down);64 $form .= "<br />" . _MB_XP2_COUNT_ZERO_ALL . " <input type='text' name='options[3]' value='" . $limit . "' />"; 65 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XP2_SHOW_NUM_OF_POST , $show_post_count); 66 $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XP2_SHOW_DROP_DOWN , $drop_down); 67 67 // $form .="<br /><input type='text' size='60' name='options[5]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 68 68 -
trunk/blocks/authors_block.php
r121 r183 30 30 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 31 31 $form .= "<br />"; 32 $form .= yes_no_radio_option('options[2]', _MB_XP RESS_SHOW_NUM_OF_POST , $optioncount);33 $form .= "<br />" . yes_no_radio_option('options[3]', _MB_XP RESS_EXCLUEDEADMIN , $exclude_admin);34 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XP RESS_SHOW_FULLNAME , $show_fullname);35 $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XP RESS_HIDE_EMPTY , $hide_empty);32 $form .= yes_no_radio_option('options[2]', _MB_XP2_SHOW_NUM_OF_POST , $optioncount); 33 $form .= "<br />" . yes_no_radio_option('options[3]', _MB_XP2_EXCLUEDEADMIN , $exclude_admin); 34 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XP2_SHOW_FULLNAME , $show_fullname); 35 $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XP2_HIDE_EMPTY , $hide_empty); 36 36 // $form .="<br /><input type='text' size='60' name='options[4]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 37 37 -
trunk/blocks/calender_block.php
r121 r183 28 28 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 29 29 $form .= "<br />"; 30 $form .= _MB_XP RESS_SUN_COLOR .": <input type='text' name='options[2]' value='" . $sun_color . "' /><br />\n";31 $form .= _MB_XP RESS_SAT_COLOR .": <input type='text' name='options[3]' value='" . $sat_color . "' /><br />\n";30 $form .= _MB_XP2_SUN_COLOR .": <input type='text' name='options[2]' value='" . $sun_color . "' /><br />\n"; 31 $form .= _MB_XP2_SAT_COLOR .": <input type='text' name='options[3]' value='" . $sat_color . "' /><br />\n"; 32 32 33 33 return $form; -
trunk/blocks/category_block.php
r122 r183 37 37 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 38 38 $form .= "<br />"; 39 $form .= _MB_XP RESS_CAT_ALL_STR . " <input type='text' name='options[2]' value='" . $show_option_all . "' /><br />";40 $form .= _MB_XP RESS_CAT_ORDERBY .": ";39 $form .= _MB_XP2_CAT_ALL_STR . " <input type='text' name='options[2]' value='" . $show_option_all . "' /><br />"; 40 $form .= _MB_XP2_CAT_ORDERBY .": "; 41 41 $form .= "<select name='options[3]'>"; 42 42 if ($orderby =='name') 43 $form .= "<option value='name' selected='selected'>". _MB_XP RESS_CAT_NAME;43 $form .= "<option value='name' selected='selected'>". _MB_XP2_CAT_NAME; 44 44 else 45 $form .= "<option value='name'>". _MB_XP RESS_CAT_NAME;45 $form .= "<option value='name'>". _MB_XP2_CAT_NAME; 46 46 if ($orderby =='count') 47 $form .= "<option value='count' selected='selected'>". _MB_XP RESS_CAT_COUNT;47 $form .= "<option value='count' selected='selected'>". _MB_XP2_CAT_COUNT; 48 48 else 49 $form .= "<option value='count'>". _MB_XP RESS_CAT_COUNT;49 $form .= "<option value='count'>". _MB_XP2_CAT_COUNT; 50 50 if ($orderby =='ID') 51 $form .= "<option value='ID' selected='selected'>". _MB_XP RESS_CAT_ID;51 $form .= "<option value='ID' selected='selected'>". _MB_XP2_CAT_ID; 52 52 else 53 $form .= "<option value='ID'>". _MB_XP RESS_CAT_ID;53 $form .= "<option value='ID'>". _MB_XP2_CAT_ID; 54 54 $form .= "</select><br/>"; 55 55 56 $form .= _MB_XP RESS_SORT_ORDER .": ";56 $form .= _MB_XP2_SORT_ORDER .": "; 57 57 $form .= "<select name='options[4]'>"; 58 58 if ($order =='ASC') 59 $form .= "<option value='ASC' selected='selected'>" . _MB_XP RESS_SORT_ASC;59 $form .= "<option value='ASC' selected='selected'>" . _MB_XP2_SORT_ASC; 60 60 else 61 $form .= "<option value='ASC'>" . _MB_XP RESS_SORT_ASC;61 $form .= "<option value='ASC'>" . _MB_XP2_SORT_ASC; 62 62 if ($order =='DESC') 63 $form .= "<option value='DESC' selected='selected'>" . _MB_XP RESS_SORT_DESC;63 $form .= "<option value='DESC' selected='selected'>" . _MB_XP2_SORT_DESC; 64 64 else 65 $form .= "<option value='DESC'>" . _MB_XP RESS_SORT_DESC;65 $form .= "<option value='DESC'>" . _MB_XP2_SORT_DESC; 66 66 $form .= "</select><br/>"; 67 67 68 $form .= yes_no_radio_option('options[5]', _MB_XP RESS_SHOW_LAST_UPDATE , $show_last_updated) . "<br />" ;69 $form .= yes_no_radio_option('options[6]', _MB_XP RESS_SHOW_NUM_OF_POST , $show_count) . "<br />" ;70 $form .= yes_no_radio_option('options[7]', _MB_XP RESS_CAT_HIDE_EMPTY , $hide_empty) . "<br />" ;71 $form .= yes_no_radio_option('options[8]', _MB_XP RESS_DESC_FOR_TITLE , $use_desc_for_title) . "<br />" ;72 $form .= _MB_XP RESS_CAT_EXCLUDE . " <input type='text' name='options[9]' value='" . $exclude . "' size ='60' /><br />";73 $form .= _MB_XP RESS_CAT_INCLUDE . " <input type='text' name='options[10]' value='" . $includes . "' size ='60' /><br />";74 $form .= yes_no_radio_option('options[11]', _MB_XP RESS_CAT_HIERARCHICAL , $hierarchical) . "<br />" ;75 $form .= _MB_XP RESS_CAT_DEPTH . " <input type='text' name='options[12]' value='" . $depth . "' size ='8' /><br />";68 $form .= yes_no_radio_option('options[5]', _MB_XP2_SHOW_LAST_UPDATE , $show_last_updated) . "<br />" ; 69 $form .= yes_no_radio_option('options[6]', _MB_XP2_SHOW_NUM_OF_POST , $show_count) . "<br />" ; 70 $form .= yes_no_radio_option('options[7]', _MB_XP2_CAT_HIDE_EMPTY , $hide_empty) . "<br />" ; 71 $form .= yes_no_radio_option('options[8]', _MB_XP2_DESC_FOR_TITLE , $use_desc_for_title) . "<br />" ; 72 $form .= _MB_XP2_CAT_EXCLUDE . " <input type='text' name='options[9]' value='" . $exclude . "' size ='60' /><br />"; 73 $form .= _MB_XP2_CAT_INCLUDE . " <input type='text' name='options[10]' value='" . $includes . "' size ='60' /><br />"; 74 $form .= yes_no_radio_option('options[11]', _MB_XP2_CAT_HIERARCHICAL , $hierarchical) . "<br />" ; 75 $form .= _MB_XP2_CAT_DEPTH . " <input type='text' name='options[12]' value='" . $depth . "' size ='8' /><br />"; 76 76 return $form; 77 77 } -
trunk/blocks/enhanced_block.php
r138 r183 25 25 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 26 26 $form .= "<br />"; 27 $form .= _MB_XP RESS_ENHACED_FILE .":<br />\n";28 $form .= ' ' . _MB_XP RESS_FILE_NAME . ": my_<input type='text' name='options[2]' value='" . $include_file . "' />_block.php<br>\n";29 $form .= ' ' . _MB_XP RESS_MAKE_ENHACED_FILE . "<br>\n";27 $form .= _MB_XP2_ENHACED_FILE .":<br />\n"; 28 $form .= ' ' . _MB_XP2_FILE_NAME . ": my_<input type='text' name='options[2]' value='" . $include_file . "' />_block.php<br>\n"; 29 $form .= ' ' . _MB_XP2_MAKE_ENHACED_FILE . "<br>\n"; 30 30 return $form; 31 31 } -
trunk/blocks/meta_block.php
r122 r183 33 33 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 34 34 $form .= "<br />"; 35 $form .= yes_no_radio_option('options[2]', _MB_XP RESS_META_WP_LINK , $wp_link) . "<br />\n";36 $form .= yes_no_radio_option('options[3]', _MB_XP RESS_META_XOOPS_LINK , $xoops_link) . "<br />\n";37 $form .= yes_no_radio_option('options[4]', _MB_XP RESS_META_POST_RSS , $post_rss) . "<br />\n";38 $form .= yes_no_radio_option('options[5]', _MB_XP RESS_META_COMMENT_RSS , $comment_rss) . "<br />\n";39 $form .= yes_no_radio_option('options[6]', _MB_XP RESS_META_POST_NEW , $post_new) . "<br />\n";40 $form .= yes_no_radio_option('options[7]', _MB_XP RESS_META_ADMIN , $admin_edit) . "<br />\n";41 $form .= yes_no_radio_option('options[8]', _MB_XP RESS_META_README , $readme) . "<br />\n";42 $form .= yes_no_radio_option('options[9]', _MB_XP RESS_META_CH_STYLE , $ch_style) . "\n";35 $form .= yes_no_radio_option('options[2]', _MB_XP2_META_WP_LINK , $wp_link) . "<br />\n"; 36 $form .= yes_no_radio_option('options[3]', _MB_XP2_META_XOOPS_LINK , $xoops_link) . "<br />\n"; 37 $form .= yes_no_radio_option('options[4]', _MB_XP2_META_POST_RSS , $post_rss) . "<br />\n"; 38 $form .= yes_no_radio_option('options[5]', _MB_XP2_META_COMMENT_RSS , $comment_rss) . "<br />\n"; 39 $form .= yes_no_radio_option('options[6]', _MB_XP2_META_POST_NEW , $post_new) . "<br />\n"; 40 $form .= yes_no_radio_option('options[7]', _MB_XP2_META_ADMIN , $admin_edit) . "<br />\n"; 41 $form .= yes_no_radio_option('options[8]', _MB_XP2_META_README , $readme) . "<br />\n"; 42 $form .= yes_no_radio_option('options[9]', _MB_XP2_META_CH_STYLE , $ch_style) . "\n"; 43 43 44 44 return $form; -
trunk/blocks/page_block.php
r127 r183 37 37 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 38 38 $form .= "<br />"; 39 $form .= _MB_XP RESS_PAGE_ORDERBY .": ";39 $form .= _MB_XP2_PAGE_ORDERBY .": "; 40 40 $form .= "<select name='options[2]'>"; 41 41 42 42 if ($sort_column =='post_title') 43 $form .= "<option value='post_title' selected='selected'>". _MB_XP RESS_PAGE_TITLE;43 $form .= "<option value='post_title' selected='selected'>". _MB_XP2_PAGE_TITLE; 44 44 else 45 $form .= "<option value='post_title'>". _MB_XP RESS_PAGE_TITLE;45 $form .= "<option value='post_title'>". _MB_XP2_PAGE_TITLE; 46 46 47 47 if ($sort_column =='menu_order') 48 $form .= "<option value='menu_order' selected='selected'>". _MB_XP RESS_PAGE_MENU_ORDER;48 $form .= "<option value='menu_order' selected='selected'>". _MB_XP2_PAGE_MENU_ORDER; 49 49 else 50 $form .= "<option value='menu_order'>". _MB_XP RESS_PAGE_MENU_ORDER;50 $form .= "<option value='menu_order'>". _MB_XP2_PAGE_MENU_ORDER; 51 51 52 52 if ($sort_column =='post_date') 53 $form .= "<option value='post_date' selected='selected'>". _MB_XP RESS_PAGE_POST_DATE;53 $form .= "<option value='post_date' selected='selected'>". _MB_XP2_PAGE_POST_DATE; 54 54 else 55 $form .= "<option value='post_date'>". _MB_XP RESS_PAGE_POST_DATE;55 $form .= "<option value='post_date'>". _MB_XP2_PAGE_POST_DATE; 56 56 57 57 if ($sort_column =='post_modified') 58 $form .= "<option value='post_modified' selected='selected'>". _MB_XP RESS_PAGE_POST_MODIFY;58 $form .= "<option value='post_modified' selected='selected'>". _MB_XP2_PAGE_POST_MODIFY; 59 59 else 60 $form .= "<option value='post_modified'>". _MB_XP RESS_PAGE_POST_MODIFY;60 $form .= "<option value='post_modified'>". _MB_XP2_PAGE_POST_MODIFY; 61 61 62 62 if ($sort_column =='ID') 63 $form .= "<option value='ID' selected='selected'>". _MB_XP RESS_PAGE_ID;63 $form .= "<option value='ID' selected='selected'>". _MB_XP2_PAGE_ID; 64 64 else 65 $form .= "<option value='ID'>". _MB_XP RESS_PAGE_ID;65 $form .= "<option value='ID'>". _MB_XP2_PAGE_ID; 66 66 67 67 if ($sort_column =='post_author') 68 $form .= "<option value='post_author' selected='selected'>". _MB_XP RESS_PAGE_AUTHOR;68 $form .= "<option value='post_author' selected='selected'>". _MB_XP2_PAGE_AUTHOR; 69 69 else 70 $form .= "<option value='post_author'>". _MB_XP RESS_PAGE_AUTHOR;70 $form .= "<option value='post_author'>". _MB_XP2_PAGE_AUTHOR; 71 71 72 72 if ($sort_column =='post_name') 73 $form .= "<option value='post_name' selected='selected'>". _MB_XP RESS_PAGE_SLUG;73 $form .= "<option value='post_name' selected='selected'>". _MB_XP2_PAGE_SLUG; 74 74 else 75 $form .= "<option value='post_name'>". _MB_XP RESS_PAGE_SLUG;75 $form .= "<option value='post_name'>". _MB_XP2_PAGE_SLUG; 76 76 77 77 $form .= "</select><br/>"; 78 78 79 79 80 $form .= _MB_XP RESS_SORT_ORDER .": ";80 $form .= _MB_XP2_SORT_ORDER .": "; 81 81 $form .= "<select name='options[3]'>"; 82 82 if ($sort_order =='asc') 83 $form .= "<option value='asc' selected='selected'>" . _MB_XP RESS_SORT_ASC;83 $form .= "<option value='asc' selected='selected'>" . _MB_XP2_SORT_ASC; 84 84 else 85 $form .= "<option value='asc'>" . _MB_XP RESS_SORT_ASC;85 $form .= "<option value='asc'>" . _MB_XP2_SORT_ASC; 86 86 if ($sort_order =='desc') 87 $form .= "<option value='desc' selected='selected'>" . _MB_XP RESS_SORT_DESC;87 $form .= "<option value='desc' selected='selected'>" . _MB_XP2_SORT_DESC; 88 88 else 89 $form .= "<option value='desc'>" . _MB_XP RESS_SORT_DESC;89 $form .= "<option value='desc'>" . _MB_XP2_SORT_DESC; 90 90 $form .= "</select><br/>\n"; 91 91 92 $form .= _MB_XP RESS_PAGE_EXCLUDE . " <input type='text' name='options[4]' value='" . $exclude . "' size ='60' /><br />\n";93 $form .= _MB_XP RESS_PAGE_EXCLUDE_TREE . " <input type='text' name='options[5]' value='" . $exclude_tree . "' size ='8' /><br />\n";94 $form .= _MB_XP RESS_PAGE_INCLUDE . " <input type='text' name='options[6]' value='" . $includes . "' size ='60' /><br />\n";95 $form .= _MB_XP RESS_PAGE_DEPTH . " <input type='text' name='options[7]' value='" . $depth . "' size ='8' /><br />";96 $form .= _MB_XP RESS_PAGE_CHILD_OF . " <input type='text' name='options[8]' value='" . $child_of . "' size ='8' /><br />";92 $form .= _MB_XP2_PAGE_EXCLUDE . " <input type='text' name='options[4]' value='" . $exclude . "' size ='60' /><br />\n"; 93 $form .= _MB_XP2_PAGE_EXCLUDE_TREE . " <input type='text' name='options[5]' value='" . $exclude_tree . "' size ='8' /><br />\n"; 94 $form .= _MB_XP2_PAGE_INCLUDE . " <input type='text' name='options[6]' value='" . $includes . "' size ='60' /><br />\n"; 95 $form .= _MB_XP2_PAGE_DEPTH . " <input type='text' name='options[7]' value='" . $depth . "' size ='8' /><br />"; 96 $form .= _MB_XP2_PAGE_CHILD_OF . " <input type='text' name='options[8]' value='" . $child_of . "' size ='8' /><br />"; 97 97 98 $form .= _MB_XP RESS_SHOW_DATE_SELECT .": ";98 $form .= _MB_XP2_SHOW_DATE_SELECT .": "; 99 99 $form .= "<select name='options[9]'>"; 100 100 if ($show_date =='none') 101 $form .= "<option value='none' selected='selected'>" . _MB_XP RESS_SHOW_DATE_NONE;101 $form .= "<option value='none' selected='selected'>" . _MB_XP2_SHOW_DATE_NONE; 102 102 else 103 $form .= "<option value='none'>" . _MB_XP RESS_SHOW_DATE_NONE;103 $form .= "<option value='none'>" . _MB_XP2_SHOW_DATE_NONE; 104 104 105 105 if ($show_date =='post_date') 106 $form .= "<option value='post_date' selected='selected'>" . _MB_XP RESS_SHOW_POST_DATE;106 $form .= "<option value='post_date' selected='selected'>" . _MB_XP2_SHOW_POST_DATE; 107 107 else 108 $form .= "<option value='post_date'>" . _MB_XP RESS_SHOW_POST_DATE;108 $form .= "<option value='post_date'>" . _MB_XP2_SHOW_POST_DATE; 109 109 110 110 if ($show_date =='modified') 111 $form .= "<option value='modified' selected='selected'>" . _MB_XP RESS_SHOW_MODIFY_DATE;111 $form .= "<option value='modified' selected='selected'>" . _MB_XP2_SHOW_MODIFY_DATE; 112 112 else 113 $form .= "<option value='modified'>" . _MB_XP RESS_SHOW_MODIFY_DATE;113 $form .= "<option value='modified'>" . _MB_XP2_SHOW_MODIFY_DATE; 114 114 115 115 $form .= "</select><br/>\n"; 116 116 117 $form .= _MB_XP RESS_DATE_FORMAT .": <input type='text' name='options[10]' value='" . $date_format . "' /><br />\n";118 $form .= yes_no_radio_option('options[11]', _MB_XP RESS_PAGE_HIERARCHICAL , $hierarchical) . "<br />" ;119 $form .= _MB_XP RESS_PAGE_META_KEY . " <input type='text' name='options[12]' value='" . $meta_key . "' size ='40' /><br />\n";120 $form .= _MB_XP RESS_PAGE_META_VALUE . " <input type='text' name='options[12]' value='" . $meta_value . "' size ='40' /><br />\n";117 $form .= _MB_XP2_DATE_FORMAT .": <input type='text' name='options[10]' value='" . $date_format . "' /><br />\n"; 118 $form .= yes_no_radio_option('options[11]', _MB_XP2_PAGE_HIERARCHICAL , $hierarchical) . "<br />" ; 119 $form .= _MB_XP2_PAGE_META_KEY . " <input type='text' name='options[12]' value='" . $meta_key . "' size ='40' /><br />\n"; 120 $form .= _MB_XP2_PAGE_META_VALUE . " <input type='text' name='options[12]' value='" . $meta_value . "' size ='40' /><br />\n"; 121 121 122 122 return $form; -
trunk/blocks/popular_posts_block.php
r142 r183 32 32 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 33 33 $form .= "<br />\n"; 34 $form .= _MB_XP RESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n";35 $form .= _MB_ MONTH_RANGE .": <input type='text' name='options[3]' value='" . $show_month_range . "' /><br />\n";36 $form .= _MB_XP RESS_DATE_FORMAT .": <input type='text' name='options[4]' value='" . $date_format . "' /><br />\n";37 $form .= _MB_XP RESS_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n";34 $form .= _MB_XP2_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 35 $form .= _MB_XP2_MONTH_RANGE .": <input type='text' name='options[3]' value='" . $show_month_range . "' /><br />\n"; 36 $form .= _MB_XP2_DATE_FORMAT .": <input type='text' name='options[4]' value='" . $date_format . "' /><br />\n"; 37 $form .= _MB_XP2_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n"; 38 38 $form .= "<br />\n"; 39 $form .= _MB_XP RESS_TAGS_SELECT .": <input type='text' name='options[6]' value='" . $tag_select . "' /><br />\n";40 $form .= _MB_XP RESS_CATS_SELECT ."<br />\n";39 $form .= _MB_XP2_TAGS_SELECT .": <input type='text' name='options[6]' value='" . $tag_select . "' /><br />\n"; 40 $form .= _MB_XP2_CATS_SELECT ."<br />\n"; 41 41 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 42 42 $form .= " <select name=\"options[]\" multiple=\"multiple\">"; 43 43 $form .= "<option value=\"0\" "; 44 44 if ($isAll) $form .= " selected=\"selected\""; 45 $form .= ">"._MB_XP RESS_ALL ."</option>";45 $form .= ">"._MB_XP2_ALL ."</option>"; 46 46 ob_start(); 47 47 dropdown_cats_options('ID','asc',$selected); -
trunk/blocks/recent_comments_block.php
r142 r183 32 32 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 33 33 $form .= "<br />"; 34 $form .= _MB_XP RESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n";35 $form .= _MB_XP RESS_LENGTH .": <input type='text' name='options[3]' value='" . $disp_length . "' /><br />\n";36 $form .= _MB_XP RESS_DATE_FORMAT .": <input type='text' name='options[4]' value='" . $date_format . "' /><br />\n";37 $form .= _MB_XP RESS_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n";34 $form .= _MB_XP2_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 35 $form .= _MB_XP2_LENGTH .": <input type='text' name='options[3]' value='" . $disp_length . "' /><br />\n"; 36 $form .= _MB_XP2_DATE_FORMAT .": <input type='text' name='options[4]' value='" . $date_format . "' /><br />\n"; 37 $form .= _MB_XP2_TIME_FORMAT .": <input type='text' name='options[5]' value='" . $time_format . "' /><br />\n"; 38 38 $form .= "<br />\n"; 39 $form .= _MB_XP RESS_COM_TYPE . "<br />\n";39 $form .= _MB_XP2_COM_TYPE . "<br />\n"; 40 40 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 41 41 $form .= " <select name=\"options[]\" multiple=\"multiple\">"; 42 42 $form .= "<option value=\"0\" "; 43 43 if ($isAll) $form .= " selected=\"selected\""; 44 $form .= ">"._MB_XP RESS_ALL ."</option>";44 $form .= ">"._MB_XP2_ALL ."</option>"; 45 45 46 46 $form .= "<option value=\"1\" "; 47 47 if (in_array(1, $selected)) 48 48 $form .= " selected=\"selected\""; 49 $form .= ">"._MB_XP RESS_COMMENT ."</option>";49 $form .= ">"._MB_XP2_COMMENT ."</option>"; 50 50 51 51 $form .= "<option value=\"2\" "; 52 52 if (in_array(2, $selected)) 53 53 $form .= " selected=\"selected\""; 54 $form .= ">"._MB_XP RESS_TRUCKBACK ."</option>";54 $form .= ">"._MB_XP2_TRUCKBACK ."</option>"; 55 55 56 56 $form .= "<option value=\"3\" "; 57 57 if (in_array(3, $selected)) 58 58 $form .= " selected=\"selected\""; 59 $form .= ">"._MB_XP RESS_PINGBACK ."</option>";59 $form .= ">"._MB_XP2_PINGBACK ."</option>"; 60 60 $form .= "</select><br />"; 61 61 // $form .="<br /><input type='text' size='60' name='options[5]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; -
trunk/blocks/recent_posts_content_block.php
r145 r183 34 34 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 35 35 $form .= "<br />"; 36 $form .= _MB_XP RESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n";37 $form .= yes_no_radio_option('options[3]', _MB_XP RESS_P_EXCERPT , $excerpt) . "<br />\n";38 $form .= _MB_XP RESS_P_EXCERPT_SIZE .": <input type='text' name='options[4]' value='" . $excerpt_size . "' /><br />\n";39 $form .= _MB_XP RESS_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n";40 $form .= _MB_XP RESS_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n";36 $form .= _MB_XP2_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 37 $form .= yes_no_radio_option('options[3]', _MB_XP2_P_EXCERPT , $excerpt) . "<br />\n"; 38 $form .= _MB_XP2_P_EXCERPT_SIZE .": <input type='text' name='options[4]' value='" . $excerpt_size . "' /><br />\n"; 39 $form .= _MB_XP2_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n"; 40 $form .= _MB_XP2_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n"; 41 41 42 42 $form .= "<br />\n"; 43 $form .= _MB_XP RESS_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n";44 $form .= _MB_XP RESS_CATS_SELECT ."<br />\n";43 $form .= _MB_XP2_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n"; 44 $form .= _MB_XP2_CATS_SELECT ."<br />\n"; 45 45 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 46 46 $form .= " <select name=\"options[]\" multiple=\"multiple\">\n"; 47 47 $form .= "\t<option value=\"0\" "; 48 48 if ($isAll) $form .= " selected=\"selected\""; 49 $form .= ">"._MB_XP RESS_ALL ."</option>\n";49 $form .= ">"._MB_XP2_ALL ."</option>\n"; 50 50 ob_start(); 51 51 dropdown_cats_options('ID','asc',$selected); -
trunk/blocks/recent_posts_list_block.php
r142 r183 33 33 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 34 34 $form .= "<br />\n"; 35 $form .= _MB_XP RESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n";36 $form .= _MB_XP RESS_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n";37 $form .= _MB_XP RESS_GREENNEW_DAYS .": <input type='text' name='options[4]' value='" . $disp_green . "' /><br />\n";38 $form .= _MB_XP RESS_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n";39 $form .= _MB_XP RESS_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n";35 $form .= _MB_XP2_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 36 $form .= _MB_XP2_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n"; 37 $form .= _MB_XP2_GREENNEW_DAYS .": <input type='text' name='options[4]' value='" . $disp_green . "' /><br />\n"; 38 $form .= _MB_XP2_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n"; 39 $form .= _MB_XP2_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n"; 40 40 41 41 $form .= "<br />\n"; 42 $form .= _MB_XP RESS_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n";43 $form .= _MB_XP RESS_CATS_SELECT ."<br />\n";42 $form .= _MB_XP2_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n"; 43 $form .= _MB_XP2_CATS_SELECT ."<br />\n"; 44 44 $isAll = (count($selected)==0||empty($selected[0]))?true:false; 45 45 $form .= " <select name=\"options[]\" multiple=\"multiple\">\n"; 46 46 $form .= "\t<option value=\"0\" "; 47 47 if ($isAll) $form .= " selected=\"selected\""; 48 $form .= ">"._MB_XP RESS_ALL ."</option>\n";48 $form .= ">"._MB_XP2_ALL ."</option>\n"; 49 49 ob_start(); 50 50 dropdown_cats_options('ID','asc',$selected); -
trunk/blocks/search_block.php
r121 r183 27 27 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 28 28 $form .= "<br />"; 29 $form .= _MB_XP RESS_SEARCH_LENGTH .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />";29 $form .= _MB_XP2_SEARCH_LENGTH .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />"; 30 30 // $form .="<br /><input type='text' size='60' name='options[2]' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 31 31 -
trunk/blocks/tag_cloud_block.php
r122 r183 34 34 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 35 35 $form .= "<br />"; 36 $form .= _MB_XP RESS_CLOUD_SMALLEST .": <input type='text' size='4' name='options[2]' value='" . $smallest . "' /><br />";37 $form .= _MB_XP RESS_CLOUD_LARGEST .": <input type='text' size='4' name='options[3]' value='" . $largest . "' /><br />";38 $form .= _MB_XP RESS_CLOUD_UNIT .": ";36 $form .= _MB_XP2_CLOUD_SMALLEST .": <input type='text' size='4' name='options[2]' value='" . $smallest . "' /><br />"; 37 $form .= _MB_XP2_CLOUD_LARGEST .": <input type='text' size='4' name='options[3]' value='" . $largest . "' /><br />"; 38 $form .= _MB_XP2_CLOUD_UNIT .": "; 39 39 $form .= "<select name='options[4]'>"; 40 40 if ($unit =='pt') … … 56 56 $form .= "</select><br/>"; 57 57 58 $form .= _MB_XP RESS_CLOUD_NUMBER .": <input type='text' size='4' name='options[5]' value='" . $number . "' /><br />";58 $form .= _MB_XP2_CLOUD_NUMBER .": <input type='text' size='4' name='options[5]' value='" . $number . "' /><br />"; 59 59 60 $form .= _MB_XP RESS_CLOUD_FORMAT .": ";60 $form .= _MB_XP2_CLOUD_FORMAT .": "; 61 61 $form .= "<select name='options[6]'>"; 62 62 if ($format =='flat') 63 $form .= "<option value='flat' selected='selected'>" . _MB_XP RESS_FLAT;63 $form .= "<option value='flat' selected='selected'>" . _MB_XP2_FLAT; 64 64 else 65 $form .= "<option value='flat'>" . _MB_XP RESS_FLAT;65 $form .= "<option value='flat'>" . _MB_XP2_FLAT; 66 66 if ($format =='list') 67 $form .= "<option value='list' selected='selected'>". _MB_XP RESS_LIST;67 $form .= "<option value='list' selected='selected'>". _MB_XP2_LIST; 68 68 else 69 $form .= "<option value='list'>". _MB_XP RESS_LIST;69 $form .= "<option value='list'>". _MB_XP2_LIST; 70 70 $form .= "</select><br/>"; 71 71 72 $form .= _MB_XP RESS_CLOUD_ORDERBY .": ";72 $form .= _MB_XP2_CLOUD_ORDERBY .": "; 73 73 $form .= "<select name='options[7]'>"; 74 74 if ($orderby =='name') 75 $form .= "<option value='name' selected='selected'>". _MB_XP RESS_TAG_NAME;75 $form .= "<option value='name' selected='selected'>". _MB_XP2_TAG_NAME; 76 76 else 77 $form .= "<option value='name'>". _MB_XP RESS_TAG_NAME;77 $form .= "<option value='name'>". _MB_XP2_TAG_NAME; 78 78 if ($orderby =='count') 79 $form .= "<option value='count' selected='selected'>". _MB_XP RESS_TAG_COUNT;79 $form .= "<option value='count' selected='selected'>". _MB_XP2_TAG_COUNT; 80 80 else 81 $form .= "<option value='count'>". _MB_XP RESS_TAG_COUNT;81 $form .= "<option value='count'>". _MB_XP2_TAG_COUNT; 82 82 $form .= "</select><br/>"; 83 83 84 $form .= _MB_XP RESS_CLOUD_ORDER .": ";84 $form .= _MB_XP2_CLOUD_ORDER .": "; 85 85 $form .= "<select name='options[8]'>"; 86 86 if ($order =='ASC') 87 $form .= "<option value='ASC' selected='selected'>" . _MB_XP RESS_SORT_ASC;87 $form .= "<option value='ASC' selected='selected'>" . _MB_XP2_SORT_ASC; 88 88 else 89 $form .= "<option value='ASC'>" . _MB_XP RESS_SORT_ASC;89 $form .= "<option value='ASC'>" . _MB_XP2_SORT_ASC; 90 90 if ($order =='DESC') 91 $form .= "<option value='DESC' selected='selected'>" . _MB_XP RESS_SORT_DESC;91 $form .= "<option value='DESC' selected='selected'>" . _MB_XP2_SORT_DESC; 92 92 else 93 $form .= "<option value='DESC'>" . _MB_XP RESS_SORT_DESC;93 $form .= "<option value='DESC'>" . _MB_XP2_SORT_DESC; 94 94 if ($order =='RAND') 95 $form .= "<option value='RAND' selected='selected'>" . _MB_XP RESS_RAND;95 $form .= "<option value='RAND' selected='selected'>" . _MB_XP2_RAND; 96 96 else 97 $form .= "<option value='RAND'>" . _MB_XP RESS_RAND;97 $form .= "<option value='RAND'>" . _MB_XP2_RAND; 98 98 $form .= "</select><br/>"; 99 99 100 $form .= _MB_XP RESS_CLOUD_EXCLUDE .": <input type='text' size='25' name='options[9]' value='" . $exclude . "' /><br />";101 $form .= _MB_XP RESS_CLOUD_INCLUDE .": <input type='text' size='25' name='options[10]' value='" . $wp_include . "' /><br />";100 $form .= _MB_XP2_CLOUD_EXCLUDE .": <input type='text' size='25' name='options[9]' value='" . $exclude . "' /><br />"; 101 $form .= _MB_XP2_CLOUD_INCLUDE .": <input type='text' size='25' name='options[10]' value='" . $wp_include . "' /><br />"; 102 102 103 103 -
trunk/blocks/widget_block.php
r136 r183 30 30 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 31 31 $form .= "<br />"; 32 $form .= _MB_XP RESS_SELECT_WIDGET .":<br />\n";32 $form .= _MB_XP2_SELECT_WIDGET .":<br />\n"; 33 33 $form .= " <select name='options[]' multiple=\"multiple\">\n"; 34 34 $sidebars_widgets = wp_get_sidebars_widgets();
Note: See TracChangeset
for help on using the changeset viewer.