| 1 | <mt:setvar name="page_title" value="<__trans phrase="General Settings">"> |
|---|
| 2 | <$mt:setvar name="position_actions_bottom" value="1"$> |
|---|
| 3 | <mt:setvar name="general-settings" value="1"> |
|---|
| 4 | <MTSetVarBlock name="system_msg"> |
|---|
| 5 | <mt:if name="error"> |
|---|
| 6 | <mtapp:statusmsg |
|---|
| 7 | id="generic-error" |
|---|
| 8 | class="error"> |
|---|
| 9 | <mt:var name="error"> |
|---|
| 10 | </mtapp:statusmsg> |
|---|
| 11 | </mt:if> |
|---|
| 12 | <mt:if name="saved"> |
|---|
| 13 | <mtapp:statusmsg |
|---|
| 14 | id="saved" |
|---|
| 15 | class="success" |
|---|
| 16 | rebuild="all"> |
|---|
| 17 | <__trans phrase="Your preferences have been saved."> |
|---|
| 18 | </mtapp:statusmsg> |
|---|
| 19 | </mt:if> |
|---|
| 20 | </MTSetVarBlock> |
|---|
| 21 | <MTSetVarBlock name="content_nav"> |
|---|
| 22 | <mt:include name="include/cfg_content_nav.tmpl"> |
|---|
| 23 | </MTSetVarBlock> |
|---|
| 24 | <mt:include name="include/header.tmpl"> |
|---|
| 25 | |
|---|
| 26 | <script type="text/javascript"> |
|---|
| 27 | /* <![CDATA[ */ |
|---|
| 28 | function doRemoveLicense () { |
|---|
| 29 | document.cfg_form.cc_license.value = ''; |
|---|
| 30 | var e = getByID('has-license'); |
|---|
| 31 | if (e) e.style.display = 'none'; |
|---|
| 32 | e = getByID('no-license'); |
|---|
| 33 | if (e) e.style.display = 'block'; |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | function validate (f) { |
|---|
| 37 | if (!f.name.value) { |
|---|
| 38 | alert('<__trans phrase="You must set your Blog Name." escape="singlequotes">'); |
|---|
| 39 | return false; |
|---|
| 40 | } else if (f.server_offset.value == '') { |
|---|
| 41 | alert('<__trans phrase="You did not select a timezone." escape="singlequotes">'); |
|---|
| 42 | return false; |
|---|
| 43 | } |
|---|
| 44 | return true; |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | function setLicense() { |
|---|
| 48 | var w = window.open('http://creativecommons.org/license/?partner=SixApart&jurisdiction_choose=1&exit_url=<mt:var name="script_full_url">?__mode=cc_return%26license_code=[license_code]%26license_url=[license_url]%26license_button=[license_button]', 'cc', 'width=600,height=650,scrollbars=yes,resizable=no'); |
|---|
| 49 | if ( w ) w.focus(); |
|---|
| 50 | return false; |
|---|
| 51 | } |
|---|
| 52 | /* ]]> */ |
|---|
| 53 | </script> |
|---|
| 54 | |
|---|
| 55 | <form name="cfg_form" method="post" action="<mt:var name="script_url">" onsubmit="return validate(this)"> |
|---|
| 56 | <input type="hidden" name="id" value="<mt:var name="id">" /> |
|---|
| 57 | <input type="hidden" name="__mode" value="save" /> |
|---|
| 58 | <input type="hidden" name="_type" value="blog" /> |
|---|
| 59 | <input type="hidden" name="cfg_screen" value="cfg_prefs" /> |
|---|
| 60 | <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" /> |
|---|
| 61 | <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" /> |
|---|
| 62 | <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" /> |
|---|
| 63 | |
|---|
| 64 | <fieldset> |
|---|
| 65 | |
|---|
| 66 | <h3><__trans phrase="Blog Settings"></h3> |
|---|
| 67 | |
|---|
| 68 | <mtapp:setting |
|---|
| 69 | id="name" |
|---|
| 70 | label="<__trans phrase="Name">" |
|---|
| 71 | hint="<__trans phrase="Name your blog. The blog name can be changed at any time.">" |
|---|
| 72 | help_page="blog_settings_general" |
|---|
| 73 | help_section="blog_name"> |
|---|
| 74 | <div class="textarea-wrapper"> |
|---|
| 75 | <input name="name" id="name" class="full-width" value="<mt:var name="name" escape="html">" size="30" /> |
|---|
| 76 | </div> |
|---|
| 77 | </mtapp:setting> |
|---|
| 78 | |
|---|
| 79 | <mtapp:setting |
|---|
| 80 | id="description" |
|---|
| 81 | label="<__trans phrase="Description">" |
|---|
| 82 | hint="<__trans phrase="Enter a description for your blog.">" |
|---|
| 83 | help_page="blog_settings_general" |
|---|
| 84 | help_section="blog_description"> |
|---|
| 85 | <textarea name="description" id="description" class="full-width short" cols="" rows=""><mt:var name="description" escape="html"></textarea> |
|---|
| 86 | </mtapp:setting> |
|---|
| 87 | |
|---|
| 88 | <mtapp:setting |
|---|
| 89 | id="server_offset" |
|---|
| 90 | label="<__trans phrase="Timezone">" |
|---|
| 91 | hint="<__trans phrase="Select your timezone from the pulldown menu.">" |
|---|
| 92 | help_page="blog_settings_general" |
|---|
| 93 | help_section="blog_timezone"> |
|---|
| 94 | <select name="server_offset" id="server_offset" class="half-width"> |
|---|
| 95 | <option value=""><__trans phrase="Time zone not selected"></option> |
|---|
| 96 | <option value="13"<mt:if name="SERVER_OFFSET_13"> selected="selected"</mt:if>><__trans phrase="UTC+13 (New Zealand Daylight Savings Time)"></option> |
|---|
| 97 | <option value="12"<mt:if name="SERVER_OFFSET_12"> selected="selected"</mt:if>><__trans phrase="UTC+12 (International Date Line East)"></option> |
|---|
| 98 | <option value="11"<mt:if name="SERVER_OFFSET_11"> selected="selected"</mt:if>><__trans phrase="UTC+11"></option> |
|---|
| 99 | <option value="10"<mt:if name="SERVER_OFFSET_10"> selected="selected"</mt:if>><__trans phrase="UTC+10 (East Australian Time)"></option> |
|---|
| 100 | <option value="9.5"<mt:if name="SERVER_OFFSET_9_5"> selected="selected"</mt:if>><__trans phrase="UTC+9.5 (Central Australian Time)"></option> |
|---|
| 101 | <option value="9"<mt:if name="SERVER_OFFSET_9"> selected="selected"</mt:if>><__trans phrase="UTC+9 (Japan Time)"></option> |
|---|
| 102 | <option value="8"<mt:if name="SERVER_OFFSET_8"> selected="selected"</mt:if>><__trans phrase="UTC+8 (China Coast Time)"></option> |
|---|
| 103 | <option value="7"<mt:if name="SERVER_OFFSET_7"> selected="selected"</mt:if>><__trans phrase="UTC+7 (West Australian Time)"></option> |
|---|
| 104 | <option value="6.5"<mt:if name="SERVER_OFFSET_6_5"> selected="selected"</mt:if>><__trans phrase="UTC+6.5 (North Sumatra)"></option> |
|---|
| 105 | <option value="6"<mt:if name="SERVER_OFFSET_6"> selected="selected"</mt:if>><__trans phrase="UTC+6 (Russian Federation Zone 5)"></option> |
|---|
| 106 | <option value="5.5"<mt:if name="SERVER_OFFSET_5_5"> selected="selected"</mt:if>><__trans phrase="UTC+5.5 (Indian)"></option> |
|---|
| 107 | <option value="5"<mt:if name="SERVER_OFFSET_5"> selected="selected"</mt:if>><__trans phrase="UTC+5 (Russian Federation Zone 4)"></option> |
|---|
| 108 | <option value="4"<mt:if name="SERVER_OFFSET_4"> selected="selected"</mt:if>><__trans phrase="UTC+4 (Russian Federation Zone 3)"></option> |
|---|
| 109 | <option value="3.5"<mt:if name="SERVER_OFFSET_3_5"> selected="selected"</mt:if>><__trans phrase="UTC+3.5 (Iran)"></option> |
|---|
| 110 | <option value="3"<mt:if name="SERVER_OFFSET_3"> selected="selected"</mt:if>><__trans phrase="UTC+3 (Baghdad Time/Moscow Time)"></option> |
|---|
| 111 | <option value="2"<mt:if name="SERVER_OFFSET_2"> selected="selected"</mt:if>><__trans phrase="UTC+2 (Eastern Europe Time)"></option> |
|---|
| 112 | <option value="1"<mt:if name="SERVER_OFFSET_1"> selected="selected"</mt:if>><__trans phrase="UTC+1 (Central European Time)"></option> |
|---|
| 113 | <option value="0"<mt:if name="SERVER_OFFSET_0"> selected="selected"</mt:if>><__trans phrase="UTC+0 (Universal Time Coordinated)"></option> |
|---|
| 114 | <option value="-1"<mt:if name="SERVER_OFFSET__1"> selected="selected"</mt:if>><__trans phrase="UTC-1 (West Africa Time)"></option> |
|---|
| 115 | <option value="-2"<mt:if name="SERVER_OFFSET__2"> selected="selected"</mt:if>><__trans phrase="UTC-2 (Azores Time)"></option> |
|---|
| 116 | <option value="-3"<mt:if name="SERVER_OFFSET__3"> selected="selected"</mt:if>><__trans phrase="UTC-3 (Atlantic Time)"></option> |
|---|
| 117 | <option value="-3.5"<mt:if name="SERVER_OFFSET__3_5"> selected="selected"</mt:if>><__trans phrase="UTC-3.5 (Newfoundland)"></option> |
|---|
| 118 | <option value="-4"<mt:if name="SERVER_OFFSET__4"> selected="selected"</mt:if>><__trans phrase="UTC-4 (Atlantic Time)"></option> |
|---|
| 119 | <option value="-5"<mt:if name="SERVER_OFFSET__5"> selected="selected"</mt:if>><__trans phrase="UTC-5 (Eastern Time)"></option> |
|---|
| 120 | <option value="-6"<mt:if name="SERVER_OFFSET__6"> selected="selected"</mt:if>><__trans phrase="UTC-6 (Central Time)"></option> |
|---|
| 121 | <option value="-7"<mt:if name="SERVER_OFFSET__7"> selected="selected"</mt:if>><__trans phrase="UTC-7 (Mountain Time)"></option> |
|---|
| 122 | <option value="-8"<mt:if name="SERVER_OFFSET__8"> selected="selected"</mt:if>><__trans phrase="UTC-8 (Pacific Time)"></option> |
|---|
| 123 | <option value="-9"<mt:if name="SERVER_OFFSET__9"> selected="selected"</mt:if>><__trans phrase="UTC-9 (Alaskan Time)"></option> |
|---|
| 124 | <option value="-10"<mt:if name="SERVER_OFFSET__10"> selected="selected"</mt:if>><__trans phrase="UTC-10 (Aleutians-Hawaii Time)"></option> |
|---|
| 125 | <option value="-11"<mt:if name="SERVER_OFFSET__11"> selected="selected"</mt:if>><__trans phrase="UTC-11 (Nome Time)"></option> |
|---|
| 126 | </select> |
|---|
| 127 | </mtapp:setting> |
|---|
| 128 | |
|---|
| 129 | <mtapp:setting |
|---|
| 130 | id="has-license" |
|---|
| 131 | label="<__trans phrase="License">" |
|---|
| 132 | content_class="field-content-text" |
|---|
| 133 | help_page="blog_settings_general" |
|---|
| 134 | help_section="creative_commons_license"> |
|---|
| 135 | |
|---|
| 136 | <div id="has-license" style="display: none;"> |
|---|
| 137 | <mt:if name="cc_license"><a href="<mt:var name="cc_license_url">"><img src="<mt:var name="cc_license_image_url">" /></a><br /></mt:if> |
|---|
| 138 | <__trans phrase="Your blog is currently licensed under:"> <strong id="cc-license-name"><mt:var name="cc_license_name"></strong><br /> |
|---|
| 139 | <a href="javascript:void(0);" onclick="return setLicense();"><__trans phrase="Change license"></a> | <a href="javascript:void(0);" onclick="return doRemoveLicense();"><__trans phrase="Remove license"></a> |
|---|
| 140 | </div> |
|---|
| 141 | <div id="no-license" style="display: none;"> |
|---|
| 142 | <__trans phrase="Your blog does not have an explicit Creative Commons license."><br /> |
|---|
| 143 | <a href="javascript:void(0);" onclick="return setLicense();"><__trans phrase="Select a license"></a> |
|---|
| 144 | </div> |
|---|
| 145 | <script type="text/javascript"> |
|---|
| 146 | /* <![CDATA[ */ |
|---|
| 147 | var e = getByID(<mt:if name="cc_license">'has-license'<mt:else>'no-license'</mt:if>); |
|---|
| 148 | if (e) e.style.display = 'block'; |
|---|
| 149 | /* ]]> */ |
|---|
| 150 | </script> |
|---|
| 151 | <input type="hidden" name="cc_license" value="<mt:var name="cc_license" escape="html">" /> |
|---|
| 152 | </mtapp:setting> |
|---|
| 153 | |
|---|
| 154 | </fieldset> |
|---|
| 155 | |
|---|
| 156 | <mt:setvarblock name="action_buttons"> |
|---|
| 157 | <button |
|---|
| 158 | type="submit" |
|---|
| 159 | accesskey="s" |
|---|
| 160 | title="<__trans phrase="Save changes to these settings (s)">" |
|---|
| 161 | class="primary-button" |
|---|
| 162 | ><__trans phrase="Save Changes"></button> |
|---|
| 163 | </mt:setvarblock> |
|---|
| 164 | <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1"> |
|---|
| 165 | |
|---|
| 166 | </form> |
|---|
| 167 | |
|---|
| 168 | <mt:include name="include/footer.tmpl"> |
|---|