move to Franck style
This commit is contained in:
parent
373a26d730
commit
42f12a73e6
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,14 +1,14 @@
|
||||
pacKman 2021.08.17
|
||||
* move to Franck style
|
||||
|
||||
pacKman 2013.11.15
|
||||
===========================================================
|
||||
* Fix all forms: Use modules root intead of Id
|
||||
|
||||
pacKman 2013.10.28
|
||||
===========================================================
|
||||
* Change behaviors arguments
|
||||
* Typo and minor fixes
|
||||
|
||||
pacKman 2013.10.26
|
||||
===========================================================
|
||||
* Switch to DC 2.6
|
||||
* Fix use of dcThemes, thx franckpaul
|
||||
* New icon, thx kozlika
|
||||
@ -16,23 +16,19 @@ pacKman 2013.10.26
|
||||
* Clean up code and (again) lighter admin interface
|
||||
|
||||
pacKman 2013.05.11
|
||||
===========================================================
|
||||
* Added option to remove comments from files
|
||||
* Fixed page title and messages and contents
|
||||
|
||||
pacKman 0.5.1 - 2010-10-12
|
||||
===========================================================
|
||||
* Fixed install on nightly build
|
||||
* Fixed missing namespace on admin
|
||||
|
||||
pacKman 0.5 - 2010-06-05
|
||||
===========================================================
|
||||
* Switched to DC 2.2
|
||||
* Changed admin interface (easy, light, fast)
|
||||
* Added direct download button on repository (closes #449)
|
||||
|
||||
pacKman 0.4 - 2009-10-10
|
||||
===========================================================
|
||||
* Fixed second package management
|
||||
* Fixed subfolder in filename
|
||||
* Added install and uninstall features
|
||||
|
@ -27,3 +27,9 @@ go to ''configure plugin'', fill in form.
|
||||
|
||||
Once it's done you can manage your packages from menu
|
||||
''Packages repository'' on sidebar or you can add dashboard icon.
|
||||
|
||||
## MORE
|
||||
|
||||
* License : GNU GPL v2
|
||||
* Source & contribution : [GitHub Page](https://github.com/JcDenis/pacKman)
|
||||
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/pacKman)
|
10
_admin.php
10
_admin.php
@ -13,16 +13,12 @@
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
$core->blog->settings->addNamespace('pacKman');
|
||||
|
||||
$core->addBehavior(
|
||||
'adminDashboardFavorites',
|
||||
array('packmanBehaviors', 'adminDashboardFavorites')
|
||||
);
|
||||
$core->addBehavior('adminDashboardFavorites', ['packmanBehaviors', 'adminDashboardFavorites']);
|
||||
|
||||
$_menu['Plugins']->addItem(
|
||||
__('Packages repository'),
|
||||
@ -39,7 +35,7 @@ class packmanBehaviors
|
||||
{
|
||||
public static function adminDashboardFavorites($core, $favs)
|
||||
{
|
||||
$favs->register('pacKman', array(
|
||||
$favs->register('pacKman', [
|
||||
'title' => __('Packages repository'),
|
||||
'url' => 'plugin.php?p=pacKman#packman-repository-repository',
|
||||
'small-icon' => 'index.php?pf=pacKman/icon.png',
|
||||
@ -49,7 +45,7 @@ class packmanBehaviors
|
||||
'packmanBehaviors',
|
||||
'adminDashboardFavoritesActive'
|
||||
)
|
||||
));
|
||||
]);
|
||||
}
|
||||
|
||||
public static function adminDashboardFavoritesActive($request, $params)
|
||||
|
@ -13,7 +13,6 @@
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
|
||||
if (!defined('DC_CONTEXT_MODULE')) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -74,7 +73,6 @@ if (!empty($_POST['save'])) {
|
||||
|
||||
# -- Display form --
|
||||
echo '
|
||||
|
||||
<div class="fieldset">
|
||||
<h4>' . __('Root') . '</h4>
|
||||
|
||||
|
24
_define.php
24
_define.php
@ -13,25 +13,19 @@
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
$this->registerModule(
|
||||
/* Name */
|
||||
"pacKman",
|
||||
/* Description*/
|
||||
"Manage your Dotclear packages",
|
||||
/* Author */
|
||||
"Jean-Christian Denis",
|
||||
/* Version */
|
||||
'2013.11.15',
|
||||
/* Properies */
|
||||
array(
|
||||
'pacKman', // Name
|
||||
'Manage your Dotclear packages', // Description
|
||||
'Jean-Christian Denis', // Author
|
||||
'2021.08.17', // Version
|
||||
[
|
||||
'permissions' => null,
|
||||
'type' => 'plugin',
|
||||
'dc_min' => '2.6',
|
||||
'support' => 'http://jcd.lv/q=pacKman',
|
||||
'details' => 'http://plugins.dotaddict.org/dc2/details/pacKman'
|
||||
)
|
||||
'dc_min' => '2.19',
|
||||
'support' => 'https://github.com/JcDenis/pacKman',
|
||||
'details' => 'https://plugins.dotaddict.org/dc2/details/pacKman'
|
||||
]
|
||||
);
|
@ -13,7 +13,6 @@
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -109,5 +108,3 @@ catch (Exception $e) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
?>
|
@ -13,7 +13,6 @@
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -348,11 +348,4 @@ $core->callBehavior('packmanAdminTabs', $core);
|
||||
dcPage::helpBlock('pacKman');
|
||||
|
||||
echo
|
||||
'<hr class="clear"/><p class="right modules">
|
||||
<a class="module-config" '.
|
||||
'href="plugins.php?module=pacKman&conf=1&redir='.
|
||||
urlencode('plugin.php?p=pacKman').'">'.__('Configuration').'</a> -
|
||||
pacKman - '.$core->plugins->moduleInfo('pacKman', 'version').'
|
||||
<img alt="'.__('pacKman').'" src="index.php?pf=pacKman/icon.png" />
|
||||
</p>
|
||||
</body></html>';
|
||||
'</body></html>';
|
Loading…
Reference in New Issue
Block a user