Changeset 3187 for branches/2.0/plugins/LocalFilesEditor
- Timestamp:
- Mar 11, 2009, 5:42:01 PM (15 years ago)
- Location:
- branches/2.0/plugins/LocalFilesEditor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/plugins/LocalFilesEditor/main.inc.php
r3132 r3187 24 24 /* 25 25 Plugin Name: LocalFiles Editor 26 Version: 2.0 26 Version: 2.0.a 27 27 Description: Edit local files from administration panel / Editeur de fichiers locaux 28 28 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=144 -
branches/2.0/plugins/LocalFilesEditor/show_default.php
r3046 r3187 23 23 24 24 define('PHPWG_ROOT_PATH', '../../'); 25 define('IN_ADMIN', true); 25 26 include_once(PHPWG_ROOT_PATH . 'include/common.inc.php'); 26 27 include_once(LOCALEDIT_PATH.'functions.inc.php'); … … 47 48 48 49 $file = file_get_contents(PHPWG_ROOT_PATH . $path); 49 50 $title = str_replace('/', ' / ', $path); 51 50 52 $template->assign(array( 53 'TITLE' => $title, 51 54 'DEFAULT_CONTENT' => $file, 52 55 'LOCALEDIT_PATH' => LOCALEDIT_PATH, … … 54 57 'EDITAREA_OPTIONS' => $editarea_options)); 55 58 56 $title = $path;57 $page['page_banner'] = '<h1>'.str_replace('/', ' / ', $path).'</h1>';58 59 $page['body_id'] = 'thePopuphelpPage'; 59 60 -
branches/2.0/plugins/LocalFilesEditor/show_default.tpl
r2588 r3187 1 1 {* $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} 3 6 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 4 7 {known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"} … … 25 28 26 29 <div id="LocalFilesEditor"> 30 <h1>{$TITLE}</h1> 27 31 28 32 <textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
Note: See TracChangeset
for help on using the changeset viewer.