Dotclear

Changeset 3391


Ignore:
Timestamp:
03/15/16 12:26:49 (7 years ago)
Author:
brol
Message:

1.4.4 : cosmétique dc2.6, ajout favori, dc2.9 mini requis

Location:
plugins/cleanConfig
Files:
1 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/cleanConfig/_admin.php

    r2402 r3391  
    33# 
    44# This file is part of clean:config, a plugin for Dotclear 2 
    5 # Copyright (C) 2007,2009,2010 Moe (http://gniark.net/) 
     5# Copyright (C) 2007-2016 Moe (http://gniark.net/) 
    66# 
    77# clean:config is free software; you can redistribute it and/or 
     
    2828     'index.php?pf=cleanConfig/icon.png',preg_match('/plugin.php\?p=cleanConfig(&.*)?$/', 
    2929     $_SERVER['REQUEST_URI']),$core->auth->check('admin',$core->blog->id)); 
    30 ?> 
     30      
     31$core->addBehavior('adminDashboardFavorites','cleanConfigDashboardFavorites'); 
     32 
     33function cleanConfigDashboardFavorites($core,$favs) 
     34{ 
     35     $favs->register('cleanConfig', array( 
     36          'title' => __('clean:config'), 
     37          'url' => 'plugin.php?p=cleanConfig', 
     38          'small-icon' => 'index.php?pf=cleanConfig/icon.png', 
     39          'large-icon' => 'index.php?pf=cleanConfig/icon-big.png', 
     40          'permissions' => 'usage,contentadmin' 
     41     )); 
     42} 
  • plugins/cleanConfig/_define.php

    r2615 r3391  
    33# 
    44# This file is part of clean:config, a plugin for Dotclear 2 
    5 # Copyright (C) 2007,2009,2010 Moe (http://gniark.net/) 
     5# Copyright (C) 2007-2016 Moe (http://gniark.net/) 
    66# 
    77# clean:config is free software; you can redistribute it and/or 
     
    2929     /* Description */        "Delete blog and global settings", 
    3030     /* Author      */        "Moe (http://gniark.net/)", 
    31      /* Version     */        "1.4.2", 
    32      /* Permissions */        null 
     31     /* Version     */        "1.4.4", 
     32     /* Properties */ 
     33     array( 
     34          'permissions' => null, 
     35          'type' => 'plugin', 
     36          'dc_min' => '2.9', 
     37          'support' => 'http://lab.dotclear.org/wiki/plugin/cleanConfig', 
     38          'details' => 'http://plugins.dotaddict.org/dc2/details/cleanConfig' 
     39          ) 
    3340); 
    34 ?> 
  • plugins/cleanConfig/inc/lib.cleanconfig.php

    r2423 r3391  
    33# 
    44# This file is part of clean:config, a plugin for Dotclear 2 
    5 # Copyright (C) 2007,2009,2010 Moe (http://gniark.net/) 
     5# Copyright (C) 2007-2016 Moe (http://gniark.net/) 
    66# 
    77# clean:config is free software; you can redistribute it and/or 
     
    126126                         { 
    127127                              $value = form::field(html::escapeHTML($ns.'_field'),40, 
    128                                    null,html::escapeHTML($v['value']),null,null,null, 
     128                                   null,html::escapeHTML(($v['type'] == 'array' ? json_encode($v['value']) : $v['value'])),null,null,null, 
    129129                                   'readonly="readonly"'); 
    130130                         } 
     
    158158     } 
    159159} 
    160  
    161 ?> 
  • plugins/cleanConfig/index.php

    r2402 r3391  
    33# 
    44# This file is part of clean:config, a plugin for Dotclear 2 
    5 # Copyright (C) 2007,2009,2010 Moe (http://gniark.net/) 
     5# Copyright (C) 2007-2016 Moe (http://gniark.net/) 
    66# 
    77# clean:config is free software; you can redistribute it and/or 
     
    2626 
    2727l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/admin'); 
     28 
     29$page_title = __('clean:config'); 
    2830 
    2931require_once(dirname(__FILE__).'/php-xhtml-table/class.table.php'); 
     
    5355          $msg = '<div class="message"><p>'. 
    5456           
    55           http::redirect($p_url.'&settingsdeleted=1&limit='.$limit); 
     57          http::redirect($p_url.'&amp;settingsdeleted=1&amp;limit='.$limit); 
    5658     } 
    5759} 
     
    6769<html> 
    6870<head> 
    69      <title><?php echo __('clean:config'); ?></title> 
     71  <title><?php echo $page_title; ?></title> 
    7072     <?php echo dcPage::jsPageTabs($default_tab); ?> 
    7173     <style type="text/css"> 
     
    9496</head> 
    9597<body> 
    96  
    97      <h2><?php echo html::escapeHTML($core->blog->name); ?> &rsaquo; <?php echo __('clean:config'); ?></h2> 
     98<?php 
     99     echo dcPage::breadcrumb( 
     100          array( 
     101               html::escapeHTML($core->blog->name) => '', 
     102               '<span class="page-title">'.$page_title.'</span>' => '' 
     103          )); 
     104if (!empty($msg)) { 
     105  dcPage::success($msg); 
     106} 
     107?> 
    98108      
    99      <?php  
    100           if (!empty($msg)) {echo '<p class="message">'.$msg.'</p>';} 
    101      ?> 
    102       
    103      <div class="multi-part" id="blog_settings" title="<?php echo __('blog settings'); ?>"> 
     109     <div class="multi-part" id="blog_settings" title="<?php echo __('Blog settings'); ?>"> 
    104110          <?php echo(cleanconfig::settings('blog')); ?> 
    105111     </div> 
    106112 
    107      <div class="multi-part" id="global_settings" title="<?php echo __('global settings'); ?>"> 
     113     <div class="multi-part" id="global_settings" title="<?php echo __('Global settings'); ?>"> 
    108114          <?php echo(cleanconfig::settings('global')); ?> 
    109115     </div> 
    110116 
    111      <div class="multi-part" id="versions" title="<?php echo __('versions'); ?>"> 
     117     <div class="multi-part" id="versions" title="<?php echo __('Versions'); ?>"> 
    112118          <p><?php printf(__('This function has been moved to the %s plugin.'), 
    113119               '<a href="http://plugins.dotaddict.org/dc2/details/versionsManager">'. 
  • plugins/cleanConfig/locales/fr/admin.po

    r2585 r3391  
    4040msgstr "Êtes-vous certain de vouloir supprimer les paramètres ?" 
    4141 
    42 msgid "versions" 
    43 msgstr "versions" 
    44  
    4542msgid "This function has been moved to the %s plugin." 
    4643msgstr "Cette fonction a été déplacée dans le plugin %s." 
Note: See TracChangeset for help on using the changeset viewer.

Sites map