Dotclear


Ignore:
Timestamp:
07/09/12 14:44:20 (13 years ago)
Author:
JcDenis
Branch:
default
Message:

Clean up structure, added (un)zip to flat import/export, fixes #1319

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/inc/class.dc.import.feed.php

    r557 r840  
    22# -- BEGIN LICENSE BLOCK --------------------------------------- 
    33# 
    4 # This file is part of Dotclear 2. 
     4# This file is part of importExport, a plugin for DotClear2. 
    55# 
    6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2012 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    1919     public function setInfo() 
    2020     { 
    21           $this->type = 'i'; 
     21          $this->type = 'import'; 
    2222          $this->name = __('Feed import'); 
    2323          $this->description = __('Imports a feed as new entries.'); 
     
    8181           
    8282          echo 
    83           '<h3>'.__('Import from a feed').'</h3>'. 
    84           '<p>'.sprintf(__('This will import a feed (RSS or Atom) a as new content in the current blog: %s.'), 
    85           '<strong>'.html::escapeHTML($this->core->blog->name).'</strong>').'</p>'. 
    8683          '<form action="'.$this->getURL(true).'" method="post">'. 
     84          '<fieldset><legend>'.__('Single blog').'</legend>'. 
     85          '<p>'.sprintf(__('This will import a feed (RSS or Atom) a as new content in the current blog: %s.'),html::escapeHTML($this->core->blog->name)).'</p>'. 
    8786           
    88           '<div class="fieldset">'. 
     87          '<p><label for="feed_url">'.__('Feed URL:').'</label>'. 
     88          form::field('feed_url',50,300,html::escapeHTML($this->feed_url)).'</p>'. 
     89           
     90          '<p>'. 
    8991          $this->core->formNonce(). 
    9092          form::hidden(array('do'),1). 
    91           '<p><label for="feed_url">'.__('Feed URL:').'</label>'. 
    92           form::field('feed_url',40,300,html::escapeHTML($this->feed_url)).'</p>'. 
    93           '<p><input type="submit" value="'.__('Import').'" /></p>'. 
    94           '</div>'. 
     93          '<input type="submit" value="'.__('Import').'" /></p>'. 
     94           
     95          '</fieldset>'. 
    9596          '</form>'; 
    9697     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map