<mt:setvar name="page_title" value="<__trans phrase="Web Services Settings">">
<mt:setvar name="position_actions_bottom" value="1">
<mt:setvar name="web_services" value="1">

<mt:setvarblock name="system_msg">
<mt:if name="error">
  <mtapp:statusmsg
     id="generic-error"
     class="error"
     can_close="0">
    <mt:var name="error">
  </mtapp:statusmsg>
</mt:if>
<mt:if name="saved">
  <mtapp:statusmsg
     id="saved"
     class="success"
     republish="all"
     can_close="0">
    <__trans phrase="Your blog preferences have been saved.">
  </mtapp:statusmsg>
</mt:if>
</mt:setvarblock>

<mt:include name="include/header.tmpl">

<form name="cfg_form" method="post" action="<mt:var name="script_url">">
  <input type="hidden" name="id" value="<mt:var name="id" escape="html">" />
  <input type="hidden" name="__mode" value="save" />
  <input type="hidden" name="_type" value="blog" />
  <input type="hidden" name="cfg_screen" value="cfg_web_services" />
  <input type="hidden" name="blog_id" value="<mt:var name="blog_id" escape="html">" />
  <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
  <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
  
  <h2><__trans phrase="Web Services from Six Apart"></h2>
  <mtapp:settinggroup id="web-service-setting">
    <mtapp:setting
       id="typekey_settings"
       label="<__trans phrase="TypePad">"
       hint="<__trans phrase="Your TypePad token is used to access services from Six Apart like TypePad Connect and TypePad AntiSpam.">"
       show_hint="1">
      <div id="options_TypeKey">
      <mt:if name="remote_auth_token">
        <div id="token_curr_status">
          <p><span class="alert-success-inline icon-left icon-success"><__trans phrase="TypePad is enabled."></span></p>
          <p><label for="remote_auth_token"><__trans phrase="TypePad token:"></label> <input type="text" name="remote_auth_token" id="remote_auth_token" class="text short" value="<mt:var name="REMOTE_AUTH_TOKEN" escape="HTML">" /> <a href="javascript:void(0)" onclick="getByID('remote_auth_token').value='';getByID('save_token_msg').style.display='block';getByID('token_curr_status').style.display='none';return false"><__trans phrase="Clear TypePad Token"></a></p>
        </div>
        <p id="save_token_msg" style="display:none">
          <span class="alert-warning-inline icon-left icon-warning"><__trans phrase="Please click the Save Changes button below to disable authentication."></span>
        </p>
        <mt:else>
        <p><span class="icon-left icon-neutral"><__trans phrase="TypePad is not enabled."></span></p>
        <p>
          <label for="remote_auth_token"><__trans phrase="TypePad token:"></label> <input type="text" name="remote_auth_token" id="remote_auth_token" class="text short" value="<mt:var name="REMOTE_AUTH_TOKEN" escape="HTML">" />
          <__trans phrase="&nbsp;or&nbsp;[_1]obtain a TypePad token[_2] from TypePad.com."  params="<a href="javascript:void(0)" onclick="window.open('<mt:var name="IDENTITY_SYSTEM">/handshake?<mt:if name="LANG">lang=<mt:var name="LANG">&amp;</mt:if>url=<mt:var name="HANDSHAKE_RETURN" escape="URL">&amp;blog_id=<mt:var name="BLOG_ID">');return false">%%</a>">
        </p>
        <p id="save_token_msg" style="display:none">
          <span class="alert-warning-inline icon-left icon-warning"><__trans phrase="Please click the 'Save Changes' button below to enable TypePad."></span>
        </p>
      </mt:if>
      </div>
    </mtapp:setting>
  </mtapp:settinggroup>

  <h2><__trans phrase="External Notifications"></h2>
  <mtapp:settinggroup id="system-feedback-controls">
    <mtapp:setting
       id="ping_blogs"
       label="<__trans phrase="Notify ping services of website updates">"
       hint="<__trans phrase="When this website is updated, Movable Type will automatically notify the selected sites.">"
       help_page="blog_settings_entry_defaults"
       help_section="update_pings">
    <mt:if name="system_disabled_notify_pings">
      <p>
        <img src="<mt:var name="static_uri">images/status_icons/warning.gif" alt="<__trans phrase="Setting Ignored">" width="9" height="9" />
        <span class="alert-warning-inline"><__trans phrase="Note: This option is currently ignored because outbound notification pings are disabled system-wide."></span>
      </p>
    </mt:if>
      <ul>
      <mt:if name="pings_loop">
      <mt:loop name="pings_loop">
        <li><input type="checkbox" name="ping_<mt:var name="key" escape="html">" id="ping_<mt:var name="key" escape="html">" value="1"<mt:if name="selected"> checked="checked"</mt:if> class="cb" /> <label for="ping_<mt:var name="key" escape="html">"><mt:var name="label" escape="html"></label></li>
      </mt:loop>
      </mt:if>
      </ul>
      <label for="ping_others"><__trans phrase="Others:"> <span class="hint"><__trans phrase="(Separate URLs with a carriage return.)"></span></label><br />
      <textarea name="ping_others" id="ping_others" class="text low"><mt:var name="ping_others" escape="html"></textarea>
    </mtapp:setting>

    <mtapp:setting
        id="mt_update_key"
        label="<__trans phrase="Recently Updated Key">"
        hint="<__trans phrase="If you received a Recently Updated Key with the purchase of a Movable Type license, enter it here.">"
        help_page="blog_settings_entry_defaults"
        help_section="recently_updated_key"
        show_hint="1">
        <input type="text" name="mt_update_key" id="mt_update_key" value="<mt:var name="mt_update_key" escape="html">" class="full-width" />
    </mtapp:setting>
  </mtapp:settinggroup>


<mt:setvarblock name="action_buttons">
    <button
        type="submit"
        accesskey="s"
        title="<__trans phrase="Save changes to these settings (s)">"
        class="save action primary button"
        ><__trans phrase="Save Changes"></button>
</mt:setvarblock>
<mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">

</form>

<mt:include name="include/footer.tmpl">
