Changeset 3187
- Timestamp:
- 09/19/13 19:52:56 (10 years ago)
- Location:
- plugins/templateWidget/trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/templateWidget/trunk/Settings.php
r3147 r3187 31 31 public function Display($settings) { 32 32 print 33 form::hidden($settings->GetHttpDefinition('id'), html::escapeHTML($this->id)).33 '<p>'.form::hidden($settings->GetHttpDefinition('id'), html::escapeHTML($this->id)).'</p>'. 34 34 '<p><label class="classic">'. 35 35 ' '.form::checkbox($settings->GetHttpDefinition('isActive'), html::escapeHTML($this->id), $this->isActive). -
plugins/templateWidget/trunk/_define.php
r3147 r3187 28 28 /* Description*/ "Define widgets using template file only", 29 29 /* Author */ "Olivier Azeau", 30 /* Version */ '1.4. 2',30 /* Version */ '1.4.3', 31 31 /* Permissions */ null 32 32 ); -
plugins/templateWidget/trunk/index.php
r3147 r3187 24 24 if (!defined('DC_CONTEXT_ADMIN')) { return; } 25 25 26 $page_title = __('Template Widget'); 27 26 28 dcPage::check('usage,contentadmin'); 27 29 … … 33 35 <html> 34 36 <head> 35 <title>Template Widget</title>37 <title><?php echo $page_title; ?></title> 36 38 </head> 37 39 <body> 38 40 <?php 41 42 echo dcPage::breadcrumb( 43 array( 44 html::escapeHTML($core->blog->name) => '', 45 '<span class="page-title">'.$page_title.'</span>' => '' 46 )); 47 39 48 $activeWidgets = new templateWidgetSettings(); 40 49 if ($activeWidgets->LoadFromHTTP()) { 41 50 $activeWidgets->Store(); 42 print '<p class="message">'.__('Settings have been successfully updated.').'</p>';51 dcPage::success(__('Settings have been successfully updated.')); 43 52 } 44 53 foreach (templateWidgetAdmin::GetAllWidgetDefinitions() as $widgetId => $widgetDefinition) { 45 54 $activeWidgets->UpdateWith( templateWidgetActive::FromWidgetDefinition($widgetDefinition) ); 46 55 } 47 print '<h2>'.__('Define active widgets').'</h2>'; 56 48 57 print '<form action="'.$p_url.'" method="post">'; 49 58 $activeWidgets->Display(); 50 print '<p><input type="submit" value="'.__(' save').'" />'.$core->formNonce().'</p>'.'</form>';59 print '<p><input type="submit" value="'.__('Save').'" />'.$core->formNonce().'</p>'.'</form>'; 51 60 ?> 52 61 </body>
Note: See TracChangeset
for help on using the changeset viewer.