Skip to content

Commit

Permalink
NEW: Add ContentCleaner Link in Sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed Mar 18, 2023
1 parent 05ad382 commit 036c45c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Assets/css/plugin-manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@
pointer-events: none;
}

#PluginMenu li .plugin-content-cleaner-item svg {
display: block;
margin: auto;
width: 36px;
height: 36px;
margin-bottom: 0;
pointer-events: none;
}

#PluginMenu li.content-cleaner-menu-link {
padding-top: 0;
}

.plugin-count {
font-style: italic;
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Features
- `'template:plugin:sidebar'` is located in the plugins menu sidebar
- Add _selected_ [Bootstrap](https://icons.getbootstrap.com) and [Octicons](https://primer.style/octicons/) icons for better clarity and an improved end user experience
- Clean coded icons - no images
- Direct link to [ContentCleaner](https://github.com/aljawaid/ContentCleaner) from the PluginManager sidebar


**Plugin Manager**
Expand Down
11 changes: 11 additions & 0 deletions Template/plugin/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
</svg>'.t('Technical Info'), 'TechnicalSupportController', 'show', array('plugin' => 'KanboardSupport'), false, 'plugin-problems-support') ?>
</li>
<?php endif ?>
<?php if (file_exists('plugins/ContentCleaner')): ?>
<li class="content-cleaner-menu-link">
<?= $this->url->link('
<svg width="24px" height="24px" class="content-cleaner" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
<rect fill="currentColor" x="20" y="18" width="6" height="2" transform="translate(46 38) rotate(-180)"/>
<rect fill="currentColor" x="24" y="26" width="6" height="2" transform="translate(54 54) rotate(-180)"/>
<rect fill="currentColor" x="22" y="22" width="6" height="2" transform="translate(50 46) rotate(-180)"/>
<path fill="brown" d="M17.0029,20a4.8952,4.8952,0,0,0-2.4044-4.1729L22,3,20.2691,2,12.6933,15.126A5.6988,5.6988,0,0,0,7.45,16.6289C3.7064,20.24,3.9963,28.6821,4.01,29.04a1,1,0,0,0,1,.96H20.0012a1,1,0,0,0,.6-1.8C17.0615,25.5439,17.0029,20.0537,17.0029,20ZM11.93,16.9971A3.11,3.11,0,0,1,15.0041,20c0,.0381.0019.208.0168.4688L9.1215,17.8452A3.8,3.8,0,0,1,11.93,16.9971ZM15.4494,28A5.2,5.2,0,0,1,14,25H12a6.4993,6.4993,0,0,0,.9684,3H10.7451A16.6166,16.6166,0,0,1,10,24H8a17.3424,17.3424,0,0,0,.6652,4H6c.031-1.8364.29-5.8921,1.8027-8.5527l7.533,3.35A13.0253,13.0253,0,0,0,17.5968,28Z"/>
</svg>'.t('Content Cleaner'), 'ContentCleanerController', 'show', array('plugin' => 'ContentCleaner'), false, 'plugin-content-cleaner-item') ?>
</li>
<?php endif ?>
<?= $this->hook->render('template:plugin:sidebar') ?>
</ul>
</div>

0 comments on commit 036c45c

Please sign in to comment.