Dotclear


Ignore:
Timestamp:
10/25/12 15:16:46 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Move XML/RPC information under appropriate checkbox, addresses #1185

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_pref.php

    r907 r908  
    342342     '<p><label for="enable_xmlrpc" class="classic">'. 
    343343     form::checkbox('enable_xmlrpc','1',$blog_settings->system->enable_xmlrpc). 
    344      __('Enable XML/RPC interface').'</label>'. 
    345      ' - <a href="#xmlrpc">'.__('more information').'</a></p>'. 
     344     __('Enable XML/RPC interface').'</label></p>'; 
     345 
     346     echo 
     347          '<p class="form-note">'.__('XML/RPC interface allows you to edit your blog with an external client.').'</p>';  
     348 
     349     if ($blog_settings->system->enable_xmlrpc) { 
     350          echo 
     351          '<p>'.__('XML/RPC interface is active. You should set the following parameters on your XML/RPC client:').'</p>'. 
     352          '<ul>'. 
     353          '<li>'.__('Server URL:').' <strong><code>'. 
     354          sprintf(DC_XMLRPC_URL,$core->blog->url,$core->blog->id). 
     355          '</code></strong></li>'. 
     356          '<li>'.__('Blogging system:').' <strong><code>Movable Type</code></strong></li>'. 
     357          '<li>'.__('User name:').' <strong><code>'.$core->auth->userID().'</code></strong></li>'. 
     358          '<li>'.__('Password:').' <strong><code>&lt;'.__('your password').'&gt;</code></strong></li>'. 
     359          '<li>'.__('Blog ID:').' <strong><code>1</code></strong></li>'. 
     360          '</ul>'; 
     361     } 
     362 
     363     echo 
    346364     '</div>'. 
    347365     '</div>'. 
     
    499517          $core->formNonce().'</p>'. 
    500518          '</form>'; 
    501      } 
    502       
    503      # XML/RPC information 
    504      echo '<h3 id="xmlrpc">'.__('XML/RPC interface').'</h3>'; 
    505       
    506      echo '<p>'.__('XML/RPC interface allows you to edit your blog with an external client.').'</p>'; 
    507       
    508      if (!$blog_settings->system->enable_xmlrpc) 
    509      { 
    510           echo '<p>'.__('XML/RPC interface is not active. Change settings to enable it.').'</p>'; 
    511      } 
    512      else 
    513      { 
    514           echo 
    515           '<p>'.__('XML/RPC interface is active. You should set the following parameters on your XML/RPC client:').'</p>'. 
    516           '<ul>'. 
    517           '<li>'.__('Server URL:').' <strong>'. 
    518           sprintf(DC_XMLRPC_URL,$core->blog->url,$core->blog->id). 
    519           '</strong></li>'. 
    520           '<li>'.__('Blogging system:').' <strong>Movable Type</strong></li>'. 
    521           '<li>'.__('User name:').' <strong>'.$core->auth->userID().'</strong></li>'. 
    522           '<li>'.__('Password:').' <strong>'.__('your password').'</strong></li>'. 
    523           '<li>'.__('Blog ID:').' <strong>1</strong></li>'. 
    524           '</ul>'; 
    525519     } 
    526520      
Note: See TracChangeset for help on using the changeset viewer.

Sites map