Changeset 2412:9aa048292cca for plugins/widgets/_default_widgets.php
- Timestamp:
- 10/16/13 23:23:09 (12 years ago)
- Branch:
- widgets
- Children:
- 2413:6af4dde5a9c0, 2414:850136421c06
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/_default_widgets.php
r2409 r2412 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));25 $__widgets->search-> advanced_setting('class',__('CSS class:'),'');24 $__widgets->search->setting('content_only',__('Content only'),0,'check'); 25 $__widgets->search->setting('class',__('CSS class:'),''); 26 26 27 27 $__widgets->create('navigation',__('Navigation links'),array('defaultWidgets','navigation'),null,'List of navigation links'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));32 $__widgets->navigation-> advanced_setting('class',__('CSS class:'),'');31 $__widgets->navigation->setting('content_only',__('Content only'),0,'check'); 32 $__widgets->navigation->setting('class',__('CSS class:'),''); 33 33 34 34 $__widgets->create('bestof',__('Selected entries'),array('defaultWidgets','bestof'),null,'List of selected entries'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));40 $__widgets->bestof-> advanced_setting('class',__('CSS class:'),'');39 $__widgets->bestof->setting('content_only',__('Content only'),0,'check'); 40 $__widgets->bestof->setting('class',__('CSS class:'),''); 41 41 42 42 $__widgets->create('langs',__('Blog languages'),array('defaultWidgets','langs'),null,'List of available 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));47 $__widgets->langs-> advanced_setting('class',__('CSS class:'),'');46 $__widgets->langs->setting('content_only',__('Content only'),0,'check'); 47 $__widgets->langs->setting('class',__('CSS class:'),''); 48 48 49 49 $__widgets->create('categories',__('List of categories'),array('defaultWidgets','categories'),null,'List of categories'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));57 $__widgets->categories-> advanced_setting('class',__('CSS class:'),'');56 $__widgets->categories->setting('content_only',__('Content only'),0,'check'); 57 $__widgets->categories->setting('class',__('CSS class:'),''); 58 58 59 59 $__widgets->create('subscribe',__('Subscribe links'),array('defaultWidgets','subscribe'),null,'Feed subscription links (RSS or Atom)'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));65 $__widgets->subscribe-> advanced_setting('class',__('CSS class:'),'');64 $__widgets->subscribe->setting('content_only',__('Content only'),0,'check'); 65 $__widgets->subscribe->setting('class',__('CSS class:'),''); 66 66 67 67 $__widgets->create('feed',__('Feed reader'),array('defaultWidgets','feed'),null,'List of last entries from feed (RSS or Atom)'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));74 $__widgets->feed-> advanced_setting('class',__('CSS class:'),'');73 $__widgets->feed->setting('content_only',__('Content only'),0,'check'); 74 $__widgets->feed->setting('class',__('CSS class:'),''); 75 75 76 76 $__widgets->create('text',__('Text'),array('defaultWidgets','text'),null,'Simple text'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));82 $__widgets->text-> advanced_setting('class',__('CSS class:'),'');81 $__widgets->text->setting('content_only',__('Content only'),0,'check'); 82 $__widgets->text->setting('class',__('CSS class:'),''); 83 83 84 84 $__widgets->create('lastposts',__('Last entries'),array('defaultWidgets','lastposts'),null,'List of last entries published'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));100 $__widgets->lastposts-> advanced_setting('class',__('CSS class:'),'');99 $__widgets->lastposts->setting('content_only',__('Content only'),0,'check'); 100 $__widgets->lastposts->setting('class',__('CSS class:'),''); 101 101 102 102 $__widgets->create('lastcomments',__('Last comments'),array('defaultWidgets','lastcomments'),null,'List of last comments published'); … … 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-> advanced_setting('content_only','',0,'radio', array(array(__('Content only'), '1'), array(__('Enclosing div'), '0')));108 $__widgets->lastcomments-> advanced_setting('class',__('CSS class:'),'');107 $__widgets->lastcomments->setting('content_only',__('Content only'),0,'check'); 108 $__widgets->lastcomments->setting('class',__('CSS class:'),''); 109 109 110 110 # --BEHAVIOR-- initWidgets
Note: See TracChangeset
for help on using the changeset viewer.