cosmetic, cleanup
parent
c0e7836f19
commit
f16cdeb673
|
@ -1,39 +0,0 @@
|
|||
# EditorConfig is awesome: http://EditorConfig.org
|
||||
|
||||
# Recommended for Dotclear developments and contribution
|
||||
# See https://dotclear.org/documentation/2.0/resources/coding-standards
|
||||
|
||||
# Revisions
|
||||
#
|
||||
# 1. Franck: creation (2017-12-04)
|
||||
# 2. Franck: PSR-2 for PHP, add specific extension settings (2018-01-19)
|
||||
# 3. Franck: switch to 2 spaces by default, only *.php and *.md use 4 spaces (2018-01-24)
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# PHP - PSR-2
|
||||
[*.php]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# Markdown
|
||||
[*.md]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
# Makefile
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = false
|
|
@ -1,2 +0,0 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
|
@ -1,11 +0,0 @@
|
|||
# Ignore Mac DS_Store files.
|
||||
.DS_Store
|
||||
|
||||
# Ignore .psd files.
|
||||
*.psd
|
||||
|
||||
# Ignore the file _disabled created by Dotclear when the theme/plugin has been unactivated.
|
||||
_disabled
|
||||
|
||||
# Ignore "code" folder.
|
||||
/prive
|
|
@ -24,7 +24,7 @@ $this->registerModule(
|
|||
'permissions' => dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||
'priority' => 150000,
|
||||
'type' => 'plugin',
|
||||
'support' => 'http://forum.dotclear.org/viewforum.php?id=16',
|
||||
'support' => 'https://github.com/JcDenis/myUrlHandlers',
|
||||
'details' => 'http://plugins.dotaddict.org/dc2/details/myUrlHandlers',
|
||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/myUrlHandlers/master/dcstore.xml',
|
||||
]
|
||||
|
|
38
index.php
38
index.php
|
@ -100,9 +100,9 @@ try {
|
|||
--------------------------------------------------- */
|
||||
|
||||
?>
|
||||
<html><head>
|
||||
<title><?php echo $page_title; ?></title>
|
||||
</head><body>
|
||||
<html><head>
|
||||
<title><?php echo $page_title; ?></title>
|
||||
</head><body>
|
||||
<?php
|
||||
|
||||
echo dcPage::breadcrumb(
|
||||
|
@ -114,17 +114,17 @@ try {
|
|||
dcPage::notices();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php if (empty($handlers)): ?>
|
||||
<p class="message"><?php echo __('No URL handler to configure.'); ?></p>
|
||||
<p class="message"><?php echo __('No URL handler to configure.'); ?></p>
|
||||
<?php else: ?>
|
||||
<p><?php echo __('You can write your own URL for each handler of this list.'); ?></p>
|
||||
<form action="<?php echo dcCore::app()->admin->getPageURL(); ?>" method="post">
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Type</th><th>URL</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<p><?php echo __('You can write your own URL for each handler of this list.'); ?></p>
|
||||
<form action="<?php echo dcCore::app()->admin->getPageURL(); ?>" method="post">
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Type</th><th>URL</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($handlers as $name => $url) {
|
||||
echo
|
||||
|
@ -133,11 +133,11 @@ foreach ($handlers as $name => $url) {
|
|||
'</td></tr>' . "\n";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><input type="submit" name="act_save" value="<?php echo __('Save'); ?>" />
|
||||
<input type="submit" name="act_restore" value="<?php echo __('Reset'); ?>" />
|
||||
<?php echo dcCore::app()->formNonce(); ?></p>
|
||||
</form>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><input type="submit" name="act_save" value="<?php echo __('Save'); ?>" />
|
||||
<input type="submit" name="act_restore" value="<?php echo __('Reset'); ?>" />
|
||||
<?php echo dcCore::app()->formNonce(); ?></p>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</body></html>
|
||||
</body></html>
|
||||
|
|
Loading…
Reference in New Issue