-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
3,003 additions
and
1,814 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
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
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
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
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
42 changes: 42 additions & 0 deletions
42
app/code/community/Luigifab/Apijs/Block/Adminhtml/Rewrite/Tree.php
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,42 @@ | ||
<?php | ||
/** | ||
* Created S/04/01/2020 | ||
* Updated M/21/01/2020 | ||
* | ||
* Copyright 2008-2020 | Fabrice Creuzot (luigifab) <code~luigifab~fr> | ||
* https://www.luigifab.fr/magento/apijs | ||
* | ||
* This program is free software, you can redistribute it or modify | ||
* it under the terms of the GNU General Public License (GPL) as published | ||
* by the free software foundation, either version 2 of the license, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but without any warranty, without even the implied warranty of | ||
* merchantability or fitness for a particular purpose. See the | ||
* GNU General Public License (GPL) for more details. | ||
*/ | ||
|
||
class Luigifab_Apijs_Block_Adminhtml_Rewrite_Tree extends Mage_Adminhtml_Block_Cms_Wysiwyg_Images_Tree { | ||
|
||
public function getTreeJson() { | ||
|
||
$helper = $this->helper('cms/wysiwyg_images'); | ||
$helper->getStorageRoot(); // très important | ||
|
||
$collection = Mage::registry('storage')->getDirsCollection($helper->getCurrentPath()); | ||
$items = []; | ||
|
||
foreach ($collection as $item) { | ||
if ($item->getBasename() != 'cache') { | ||
$items[] = [ | ||
'text' => $helper->getShortFilename($item->getBasename(), 20), | ||
'id' => $helper->convertPathToId($item->getFilename()), | ||
'cls' => 'folder' | ||
]; | ||
} | ||
} | ||
|
||
return Zend_Json::encode($items); | ||
} | ||
} |
43 changes: 0 additions & 43 deletions
43
app/code/community/Luigifab/Apijs/Block/Adminhtml/Rewrite/Uploader.php
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
<?php | ||
/** | ||
* Created V/11/10/2019 | ||
* Updated V/11/10/2019 | ||
* | ||
* Copyright 2008-2020 | Fabrice Creuzot (luigifab) <code~luigifab~fr> | ||
* https://www.luigifab.fr/magento/apijs | ||
* | ||
* This program is free software, you can redistribute it or modify | ||
* it under the terms of the GNU General Public License (GPL) as published | ||
* by the free software foundation, either version 2 of the license, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but without any warranty, without even the implied warranty of | ||
* merchantability or fitness for a particular purpose. See the | ||
* GNU General Public License (GPL) for more details. | ||
*/ | ||
|
||
class Luigifab_Apijs_Block_Browser extends Mage_Core_Block_Template { | ||
|
||
public function getBrowserData() { | ||
return Mage::getSingleton('apijs/useragentparser')->parse(); | ||
} | ||
|
||
public function getCacheKeyInfo() { | ||
return null; | ||
} | ||
|
||
public function getCacheKey() { | ||
return null; | ||
} | ||
|
||
public function getCacheTags() { | ||
return null; | ||
} | ||
|
||
public function getCacheLifetime() { | ||
return null; | ||
} | ||
} |
Oops, something went wrong.