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