generated from aljawaid/KanboardSkeletonPlugin
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW: Create Plugins Configuration Accordion
- migrate values - #19
- Loading branch information
Showing
2 changed files
with
70 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<details class="accordion-section app-config"> | ||
<summary class="accordion-title"> | ||
<?= t('Plugins Configuration') ?> | ||
</summary> | ||
<div class="accordion-content"> | ||
<span class="data-wrap"> | ||
<li class="app-info-title"><?= t('Plugins Installer') ?></li> | ||
<li class="app-info-value border-bottom-thick"> | ||
<?php if (PLUGIN_INSTALLER == false): ?> | ||
<?= t('Disabled') ?> | ||
<?php else: ?> | ||
<?= t('Enabled') ?> | ||
<?php endif ?> | ||
</li> | ||
<?php if (PLUGIN_INSTALLER == false): ?> | ||
<span class="fail-x" title="<?= t('Plugins cannot be installed. This is also set by default for security reasons.') ?>">✘</span> | ||
<?php else: ?> | ||
<span class="pass-tick" title="<?= t('Plugins can be automatically installed through the Plugins Directory') ?>">✔</span> | ||
<?php endif ?> | ||
</span> | ||
<span class="data-wrap"> | ||
<li class="app-info-title"><?= t('Plugins Directory') ?></li> | ||
<li class="app-info-value value-path border-bottom-thick privacy"><?= PLUGINS_DIR ?></li> | ||
<?php if (!is_writable(PLUGINS_DIR)): ?> | ||
<span class="fail-x" title="<?= t('This directory is not writeable by the web server user') ?>">✘</span> | ||
<?php else: ?> | ||
<span class="pass-tick" title="<?= t('This directory is writeable by the web server user') ?>">✔</span> | ||
<?php endif ?> | ||
<?php if ($this->user->isAdmin()): ?> | ||
<div id="pCheck" class="p-check"> | ||
<?php if (!is_writable(PLUGINS_DIR)): ?> | ||
<span class="p-dir" title="<?= t('Directory Permissions') ?>"> | ||
<?= $this->helper->supportHelper->getPermissions(PLUGINS_DIR) ?> | ||
</span> | ||
<span class="p-linux value-ip" title="<?= t('Linux Directory Permissions') ?>"> | ||
<?= $this->helper->supportHelper->getPermissionsLinux(PLUGINS_DIR) ?> | ||
</span> | ||
<span class="p-owner" title="<?= t('Directory Owner') ?>"> | ||
<?= $this->helper->supportHelper->getPermissionsOwner(PLUGINS_DIR) ?> | ||
</span> | ||
<?php else: ?> | ||
<span class="p-dir" title="<?= t('Directory Permissions') ?>"> | ||
<?= $this->helper->supportHelper->getPermissions(PLUGINS_DIR) ?> | ||
</span> | ||
<span class="p-linux value-ip" title="<?= t('Linux Directory Permissions') ?>"> | ||
<?= $this->helper->supportHelper->getPermissionsLinux(PLUGINS_DIR) ?> | ||
</span> | ||
<span class="p-owner" title="<?= t('Directory Owner') ?>"> | ||
<?= $this->helper->supportHelper->getPermissionsOwner(PLUGINS_DIR) ?> | ||
</span> | ||
<?php endif ?> | ||
</div> | ||
<?php endif ?> | ||
</span> | ||
<span class="data-wrap"> | ||
<li class="app-info-title"><?= t('Plugins Directory URL') ?></li> | ||
<?php if (PLUGIN_API_URL == 'https://kanboard.org/plugins.json'): ?> | ||
<li class="app-info-value border-bottom-thick" title="<?= t('Plugins will be listed from the default source') ?>"> | ||
<?= PLUGIN_API_URL ?> | ||
</li> | ||
<span class="pass-tick" title="<?= t('Plugins will be listed from the default source') ?>">✔</span> | ||
<?php else: ?> | ||
<li class="app-info-value border-bottom-thick privacy" title="<?= t('Plugins will be listed from a custom source') ?>"> | ||
<?= PLUGIN_API_URL ?> | ||
</li> | ||
<span class="pass-tick" title="<?= t('Plugins will be listed from a custom source') ?>">✔</span> | ||
<?php endif ?> | ||
</span> | ||
</div> | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters