Changeset 183 for trunk/blocks/page_block.php
- Timestamp:
- Apr 20, 2009, 6:16:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.