Dotclear

Changeset 3187


Ignore:
Timestamp:
09/19/13 19:52:56 (10 years ago)
Author:
brol
Message:

version 1.4.3 : compatibilité dc2.6, page valide

Location:
plugins/templateWidget/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/templateWidget/trunk/Settings.php

    r3147 r3187  
    3131  public function Display($settings) { 
    3232    print 
    33       form::hidden($settings->GetHttpDefinition('id'), html::escapeHTML($this->id)). 
     33      '<p>'.form::hidden($settings->GetHttpDefinition('id'), html::escapeHTML($this->id)).'</p>'. 
    3434      '<p><label class="classic">'. 
    3535      ' '.form::checkbox($settings->GetHttpDefinition('isActive'), html::escapeHTML($this->id), $this->isActive). 
  • plugins/templateWidget/trunk/_define.php

    r3147 r3187  
    2828     /* Description*/         "Define widgets using template file only", 
    2929     /* Author */             "Olivier Azeau", 
    30      /* Version */            '1.4.2', 
     30     /* Version */            '1.4.3', 
    3131     /* Permissions */        null 
    3232); 
  • plugins/templateWidget/trunk/index.php

    r3147 r3187  
    2424if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2525 
     26$page_title = __('Template Widget'); 
     27 
    2628dcPage::check('usage,contentadmin'); 
    2729 
     
    3335<html> 
    3436<head> 
    35   <title>Template Widget</title> 
     37     <title><?php echo $page_title; ?></title> 
    3638</head> 
    3739<body> 
    3840<?php 
     41 
     42     echo dcPage::breadcrumb( 
     43          array( 
     44               html::escapeHTML($core->blog->name) => '', 
     45               '<span class="page-title">'.$page_title.'</span>' => '' 
     46          )); 
     47 
    3948  $activeWidgets = new templateWidgetSettings(); 
    4049  if ($activeWidgets->LoadFromHTTP()) { 
    4150    $activeWidgets->Store(); 
    42     print '<p class="message">'.__('Settings have been successfully updated.').'</p>'; 
     51    dcPage::success(__('Settings have been successfully updated.')); 
    4352  } 
    4453  foreach (templateWidgetAdmin::GetAllWidgetDefinitions() as $widgetId => $widgetDefinition) { 
    4554    $activeWidgets->UpdateWith( templateWidgetActive::FromWidgetDefinition($widgetDefinition) ); 
    4655  } 
    47   print '<h2>'.__('Define active widgets').'</h2>'; 
     56 
    4857  print '<form action="'.$p_url.'" method="post">'; 
    4958  $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>'; 
    5160?> 
    5261</body> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map