Changeset 2398:c06651a81e7e for plugins/widgets/_default_widgets.php
- Timestamp:
- 10/05/13 17:56:12 (12 years ago)
- Branch:
- widgets
- Parents:
- 2397:effa61ef2c4b (diff), 2278:e4c8da04bec4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/_default_widgets.php
r2198 r2398 19 19 20 20 $__widgets->create('search',__('Search engine'),array('defaultWidgets','search'),null,'Search engine form'); 21 $__widgets->search->setting('title',__('Title :'),__('Search'));21 $__widgets->search->setting('title',__('Title (optional)').' :',__('Search')); 22 22 $__widgets->search->setting('homeonly',__('Display on:'),0,'combo', 23 23 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 24 $__widgets->search-> setting('content_only',__('Content only'),0,'check');25 $__widgets->search-> setting('class',__('CSS class:'),'');24 $__widgets->search->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 25 $__widgets->search->advanced_setting('class',__('CSS class:'),''); 26 26 27 27 $__widgets->create('navigation',__('Navigation links'),array('defaultWidgets','navigation'),null,'List of navigation links'); 28 $__widgets->navigation->setting('title',__('Title :'),'');28 $__widgets->navigation->setting('title',__('Title (optional)').' :',''); 29 29 $__widgets->navigation->setting('homeonly',__('Display on:'),0,'combo', 30 30 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 31 $__widgets->navigation-> setting('content_only',__('Content only'),0,'check');32 $__widgets->navigation-> setting('class',__('CSS class:'),'');31 $__widgets->navigation->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 32 $__widgets->navigation->advanced_setting('class',__('CSS class:'),''); 33 33 34 34 $__widgets->create('bestof',__('Selected entries'),array('defaultWidgets','bestof'),null,'List of selected entries'); 35 $__widgets->bestof->setting('title',__('Title :'),__('Best of me'));35 $__widgets->bestof->setting('title',__('Title (optional)').' :',__('Best of me')); 36 36 $__widgets->bestof->setting('orderby',__('Sort:'),'asc','combo',array(__('Ascending') => 'asc', __('Descending') => 'desc')); 37 37 $__widgets->bestof->setting('homeonly',__('Display on:'),1,'combo', 38 38 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 39 $__widgets->bestof-> setting('content_only',__('Content only'),0,'check');40 $__widgets->bestof-> setting('class',__('CSS class:'),'');39 $__widgets->bestof->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 40 $__widgets->bestof->advanced_setting('class',__('CSS class:'),''); 41 41 42 42 $__widgets->create('langs',__('Blog languages'),array('defaultWidgets','langs'),null,'List of available languages'); 43 $__widgets->langs->setting('title',__('Title :'),__('Languages'));43 $__widgets->langs->setting('title',__('Title (optional)').' :',__('Languages')); 44 44 $__widgets->langs->setting('homeonly',__('Display on:'),1,'combo', 45 45 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 46 $__widgets->langs-> setting('content_only',__('Content only'),0,'check');47 $__widgets->langs-> setting('class',__('CSS class:'),'');46 $__widgets->langs->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 47 $__widgets->langs->advanced_setting('class',__('CSS class:'),''); 48 48 49 49 $__widgets->create('categories',__('Categories'),array('defaultWidgets','categories'),null,'List of categories'); 50 $__widgets->categories->setting('title',__('Title :'),__('Categories'));50 $__widgets->categories->setting('title',__('Title (optional)').' :',__('Categories')); 51 51 $__widgets->categories->setting('postcount',__('With entries counts'),0,'check'); 52 52 $__widgets->categories->setting('subcatscount', __('Include sub cats in count'), false, 'check'); … … 54 54 $__widgets->categories->setting('homeonly',__('Display on:'),0,'combo', 55 55 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 56 $__widgets->categories-> setting('content_only',__('Content only'),0,'check');57 $__widgets->categories-> setting('class',__('CSS class:'),'');56 $__widgets->categories->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 57 $__widgets->categories->advanced_setting('class',__('CSS class:'),''); 58 58 59 59 $__widgets->create('subscribe',__('Subscribe links'),array('defaultWidgets','subscribe'),null,'RSS or Atom feed subscription links'); 60 $__widgets->subscribe->setting('title',__('Title :'),__('Subscribe'));60 $__widgets->subscribe->setting('title',__('Title (optional)').' :',__('Subscribe')); 61 61 $__widgets->subscribe->setting('type',__('Feeds type:'),'atom','combo',array('Atom' => 'atom', 'RSS' => 'rss2')); 62 62 $__widgets->subscribe->setting('homeonly',__('Display on:'),1,'combo', 63 63 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 64 $__widgets->subscribe-> setting('content_only',__('Content only'),0,'check');65 $__widgets->subscribe-> setting('class',__('CSS class:'),'');64 $__widgets->subscribe->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 65 $__widgets->subscribe->advanced_setting('class',__('CSS class:'),''); 66 66 67 $__widgets->create('feed',__('Feed reader'),array('defaultWidgets','feed'),null,'Last entries from feed ');68 $__widgets->feed->setting('title',__('Title :'),__('Somewhere else'));67 $__widgets->create('feed',__('Feed reader'),array('defaultWidgets','feed'),null,'Last entries from feed ( RSS or Atom )'); 68 $__widgets->feed->setting('title',__('Title (optional)').' :',__('Somewhere else')); 69 69 $__widgets->feed->setting('url',__('Feed URL:'),''); 70 70 $__widgets->feed->setting('limit',__('Entries limit:'),10); 71 71 $__widgets->feed->setting('homeonly',__('Display on:'),1,'combo', 72 72 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 73 $__widgets->feed-> setting('content_only',__('Content only'),0,'check');74 $__widgets->feed-> setting('class',__('CSS class:'),'');73 $__widgets->feed->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 74 $__widgets->feed->advanced_setting('class',__('CSS class:'),''); 75 75 76 76 $__widgets->create('text',__('Text'),array('defaultWidgets','text'),null,'Simple text'); 77 $__widgets->text->setting('title',__('Title :'),'');77 $__widgets->text->setting('title',__('Title (optional)').' :',''); 78 78 $__widgets->text->setting('text',__('Text:'),'','textarea'); 79 79 $__widgets->text->setting('homeonly',__('Display on:'),0,'combo', 80 80 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 81 $__widgets->text-> setting('content_only',__('Content only'),0,'check');82 $__widgets->text-> setting('class',__('CSS class:'),'');81 $__widgets->text->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 82 $__widgets->text->advanced_setting('class',__('CSS class:'),''); 83 83 84 84 $__widgets->create('lastposts',__('Last entries'),array('defaultWidgets','lastposts'),null,'List of last entries published'); 85 $__widgets->lastposts->setting('title',__('Title :'),__('Last entries'));85 $__widgets->lastposts->setting('title',__('Title (optional)').' :',__('Last entries')); 86 86 $rs = $core->blog->getCategories(array('post_type'=>'post')); 87 87 $categories = array('' => '', __('Uncategorized') => 'null'); … … 97 97 $__widgets->lastposts->setting('homeonly',__('Display on:'),1,'combo', 98 98 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 99 $__widgets->lastposts-> setting('content_only',__('Content only'),0,'check');100 $__widgets->lastposts-> setting('class',__('CSS class:'),'');99 $__widgets->lastposts->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 100 $__widgets->lastposts->advanced_setting('class',__('CSS class:'),''); 101 101 102 102 $__widgets->create('lastcomments',__('Last comments'),array('defaultWidgets','lastcomments'),null,'List of last comments posted'); 103 $__widgets->lastcomments->setting('title',__('Title :'),__('Last comments'));103 $__widgets->lastcomments->setting('title',__('Title (optional)').' :',__('Last comments')); 104 104 $__widgets->lastcomments->setting('limit',__('Comments limit:'),10); 105 105 $__widgets->lastcomments->setting('homeonly',__('Display on:'),1,'combo', 106 106 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 107 $__widgets->lastcomments-> setting('content_only',__('Content only'),0,'check');108 $__widgets->lastcomments-> setting('class',__('CSS class:'),'');107 $__widgets->lastcomments->advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0'))); 108 $__widgets->lastcomments->advanced_setting('class',__('CSS class:'),''); 109 109 110 110 # --BEHAVIOR-- initWidgets -
plugins/widgets/_default_widgets.php
r2397 r2398 50 50 $__widgets->categories->setting('title',__('Title (optional)').' :',__('Categories')); 51 51 $__widgets->categories->setting('postcount',__('With entries counts'),0,'check'); 52 $__widgets->categories->setting('subcatscount', __('Include sub cats in count'), false, 'check'); 52 53 $__widgets->categories->setting('with_empty',__('Include empty categories'),0,'check'); 53 54 $__widgets->categories->setting('homeonly',__('Display on:'),0,'combo',
Note: See TracChangeset
for help on using the changeset viewer.