cosmetic, cleanup

This commit is contained in:
Jean-Christian Paul Denis 2022-11-28 23:02:18 +01:00
parent c0e7836f19
commit f16cdeb673
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
5 changed files with 20 additions and 72 deletions

View File

@ -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

2
.gitattributes vendored
View File

@ -1,2 +0,0 @@
# Auto detect text files and perform LF normalization
* text=auto

11
.gitignore vendored
View File

@ -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

View File

@ -24,7 +24,7 @@ $this->registerModule(
'permissions' => dcAuth::PERMISSION_CONTENT_ADMIN, 'permissions' => dcAuth::PERMISSION_CONTENT_ADMIN,
'priority' => 150000, 'priority' => 150000,
'type' => 'plugin', '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', 'details' => 'http://plugins.dotaddict.org/dc2/details/myUrlHandlers',
'repository' => 'https://raw.githubusercontent.com/JcDenis/myUrlHandlers/master/dcstore.xml', 'repository' => 'https://raw.githubusercontent.com/JcDenis/myUrlHandlers/master/dcstore.xml',
] ]

View File

@ -100,9 +100,9 @@ try {
--------------------------------------------------- */ --------------------------------------------------- */
?> ?>
<html><head> <html><head>
<title><?php echo $page_title; ?></title> <title><?php echo $page_title; ?></title>
</head><body> </head><body>
<?php <?php
echo dcPage::breadcrumb( echo dcPage::breadcrumb(
@ -114,17 +114,17 @@ try {
dcPage::notices(); dcPage::notices();
?> ?>
<?php if (empty($handlers)): ?> <?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: ?> <?php else: ?>
<p><?php echo __('You can write your own URL for each handler of this list.'); ?></p> <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"> <form action="<?php echo dcCore::app()->admin->getPageURL(); ?>" method="post">
<table> <table>
<thead> <thead>
<tr><th>Type</th><th>URL</th></tr> <tr><th>Type</th><th>URL</th></tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
foreach ($handlers as $name => $url) { foreach ($handlers as $name => $url) {
echo echo
@ -133,11 +133,11 @@ foreach ($handlers as $name => $url) {
'</td></tr>' . "\n"; '</td></tr>' . "\n";
} }
?> ?>
</tbody> </tbody>
</table> </table>
<p><input type="submit" name="act_save" value="<?php echo __('Save'); ?>" /> <p><input type="submit" name="act_save" value="<?php echo __('Save'); ?>" />
<input type="submit" name="act_restore" value="<?php echo __('Reset'); ?>" /> <input type="submit" name="act_restore" value="<?php echo __('Reset'); ?>" />
<?php echo dcCore::app()->formNonce(); ?></p> <?php echo dcCore::app()->formNonce(); ?></p>
</form> </form>
<?php endif; ?> <?php endif; ?>
</body></html> </body></html>