Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekVolsk committed Feb 17, 2021
1 parent fe16d42 commit 8c36350
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CFI

![Version](https://img.shields.io/badge/VERSION-1.0.7-0366d6.svg?style=for-the-badge)
![Version](https://img.shields.io/badge/VERSION-1.0.8-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CFI

![Version](https://img.shields.io/badge/VERSION-1.0.7-0366d6.svg?style=for-the-badge)
![Version](https://img.shields.io/badge/VERSION-1.0.8-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

Expand Down
11 changes: 11 additions & 0 deletions cfi.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,20 @@ class plgSystemCfi extends CMSPlugin
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);

$this->_app = Factory::getApplication('administrator');
$this->_doc = Factory::getDocument();

if (!$this->_app->isClient('administrator')) {
return;
}

$option = $this->_app->input->get('option');
$view = $this->_app->input->get('view');
if (!($option == 'com_content' && (in_array($view, ['articles', 'featured', ''])))) {
return;
}

$this->_doc->addScript('/plugins/system/cfi/assets/cfi.js');
$this->_doc->addStylesheet('/plugins/system/cfi/assets/cfi.css');

Expand Down
2 changes: 1 addition & 1 deletion cfi.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.7" type="plugin" group="system" method="upgrade">
<name>PLG_CFI</name>
<version>1.0.7</version>
<version>1.0.8</version>
<creationDate>February 2021</creationDate>
<author>Aleksey A. Morozov</author>
<authorEmail>[email protected]</authorEmail>
Expand Down

0 comments on commit 8c36350

Please sign in to comment.