Changeset 945:a373e04f8ac3 for plugins/widgets/_default_widgets.php
- Timestamp:
- 10/31/12 10:13:50 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/_default_widgets.php
r904 r945 20 20 $__widgets->create('search',__('Search engine'),array('defaultWidgets','search')); 21 21 $__widgets->search->setting('title',__('Title:'),__('Search')); 22 $__widgets->search->setting('homeonly',__('Display on:'),0,'combo', 23 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 22 24 $__widgets->search->setting('class',__('CSS class:'),''); 23 25 24 26 $__widgets->create('navigation',__('Navigation links'),array('defaultWidgets','navigation')); 25 27 $__widgets->navigation->setting('title',__('Title:'),''); 28 $__widgets->navigation->setting('homeonly',__('Display on:'),0,'combo', 29 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 26 30 $__widgets->navigation->setting('class',__('CSS class:'),''); 27 31 … … 29 33 $__widgets->bestof->setting('title',__('Title:'),__('Best of me')); 30 34 $__widgets->bestof->setting('orderby',__('Sort:'),'asc','combo',array(__('Ascending') => 'asc', __('Descending') => 'desc')); 31 $__widgets->bestof->setting('homeonly',__('Home page only'),1,'check'); 35 $__widgets->bestof->setting('homeonly',__('Display on:'),1,'combo', 36 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 32 37 $__widgets->bestof->setting('class',__('CSS class:'),''); 33 38 34 39 $__widgets->create('langs',__('Blog languages'),array('defaultWidgets','langs')); 35 40 $__widgets->langs->setting('title',__('Title:'),__('Languages')); 36 $__widgets->langs->setting('homeonly',__('Home page only'),1,'check'); 41 $__widgets->langs->setting('homeonly',__('Display on:'),1,'combo', 42 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 37 43 $__widgets->langs->setting('class',__('CSS class:'),''); 38 44 … … 40 46 $__widgets->categories->setting('title',__('Title:'),__('Categories')); 41 47 $__widgets->categories->setting('postcount',__('With entries counts'),0,'check'); 48 $__widgets->categories->setting('homeonly',__('Display on:'),0,'combo', 49 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 42 50 $__widgets->categories->setting('class',__('CSS class:'),''); 43 51 … … 45 53 $__widgets->subscribe->setting('title',__('Title:'),__('Subscribe')); 46 54 $__widgets->subscribe->setting('type',__('Feeds type:'),'atom','combo',array('Atom' => 'atom', 'RSS' => 'rss2')); 47 $__widgets->subscribe->setting('homeonly',__('Home page only'),0,'check'); 55 $__widgets->subscribe->setting('homeonly',__('Display on:'),1,'combo', 56 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 48 57 $__widgets->subscribe->setting('class',__('CSS class:'),''); 49 58 … … 52 61 $__widgets->feed->setting('url',__('Feed URL:'),''); 53 62 $__widgets->feed->setting('limit',__('Entries limit:'),10); 54 $__widgets->feed->setting('homeonly',__('Home page only'),1,'check'); 63 $__widgets->feed->setting('homeonly',__('Display on:'),1,'combo', 64 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 55 65 $__widgets->feed->setting('class',__('CSS class:'),''); 56 66 … … 58 68 $__widgets->text->setting('title',__('Title:'),''); 59 69 $__widgets->text->setting('text',__('Text:'),'','textarea'); 60 $__widgets->text->setting('homeonly',__('Home page only'),0,'check'); 70 $__widgets->text->setting('homeonly',__('Display on:'),0,'combo', 71 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 61 72 $__widgets->text->setting('class',__('CSS class:'),''); 62 73 … … 74 85 } 75 86 $__widgets->lastposts->setting('limit',__('Entries limit:'),10); 76 $__widgets->lastposts->setting('homeonly',__('Home page only'),1,'check'); 87 $__widgets->lastposts->setting('homeonly',__('Display on:'),1,'combo', 88 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 77 89 $__widgets->lastposts->setting('class',__('CSS class:'),''); 78 90 … … 80 92 $__widgets->lastcomments->setting('title',__('Title:'),__('Last comments')); 81 93 $__widgets->lastcomments->setting('limit',__('Comments limit:'),10); 82 $__widgets->lastcomments->setting('homeonly',__('Home page only'),1,'check'); 94 $__widgets->lastcomments->setting('homeonly',__('Display on:'),1,'combo', 95 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); 83 96 $__widgets->lastcomments->setting('class',__('CSS class:'),''); 84 97
Note: See TracChangeset
for help on using the changeset viewer.