Changeset 3187 for branches


Ignore:
Timestamp:
Mar 11, 2009, 5:42:01 PM (15 years ago)
Author:
patdenice
Message:

merge r3186 from trunk to branch 2.0.
Cosmetic Corections for LocalFiles Editor.

Location:
branches/2.0/plugins/LocalFilesEditor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/plugins/LocalFilesEditor/main.inc.php

    r3132 r3187  
    2424/*
    2525Plugin Name: LocalFiles Editor
    26 Version: 2.0
     26Version: 2.0.a
    2727Description: Edit local files from administration panel / Editeur de fichiers locaux
    2828Plugin URI: http://piwigo.org/ext/extension_view.php?eid=144
  • branches/2.0/plugins/LocalFilesEditor/show_default.php

    r3046 r3187  
    2323
    2424define('PHPWG_ROOT_PATH', '../../');
     25define('IN_ADMIN', true);
    2526include_once(PHPWG_ROOT_PATH . 'include/common.inc.php');
    2627include_once(LOCALEDIT_PATH.'functions.inc.php');
     
    4748
    4849  $file = file_get_contents(PHPWG_ROOT_PATH . $path);
    49  
     50  $title = str_replace('/', ' / ', $path);
     51
    5052  $template->assign(array(
     53    'TITLE' => $title,
    5154    'DEFAULT_CONTENT' => $file,
    5255    'LOCALEDIT_PATH' => LOCALEDIT_PATH,
     
    5457    'EDITAREA_OPTIONS' => $editarea_options));
    5558
    56   $title = $path;
    57   $page['page_banner'] = '<h1>'.str_replace('/', ' / ', $path).'</h1>';
    5859  $page['body_id'] = 'thePopuphelpPage';
    5960
  • branches/2.0/plugins/LocalFilesEditor/show_default.tpl

    r2588 r3187  
    11{* $Id$ *}
    2 {html_head}<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">{/html_head}
     2{html_head}
     3<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">
     4<style type="text/css">#headbranch, #theHeader, #copyright {ldelim} display: none; }</style>
     5{/html_head}
    36{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    47{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"}
     
    2528
    2629<div id="LocalFilesEditor">
     30<h1>{$TITLE}</h1>
    2731
    2832<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
Note: See TracChangeset for help on using the changeset viewer.