Skip to content

Commit

Permalink
https://github.com/fballiano/magento1-image-cleaner/issues/14
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Apr 13, 2021
1 parent 4ea4772 commit 977f359
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public function render(Varien_Object $row)

$return = "<img src='{$url}{$row->getPath()}' style='max-width:{$max_width}px' />";
if (Mage::getStoreConfig('admin/fb_image_cleaner/enable_image_click')) {
$target = Mage::getStoreConfig('admin/fb_image_cleaner/how_to_open_image') == Fballiano_ImageCleaner_Helper_Data::OPEN_IMAGE_SAME_WINDOW ? '' : 'target=_blank';
$return = "<a href='{$url}{$row->getPath()}' {$target}>$return</a>";
$return = "<a href='{$url}{$row->getPath()}' target=_blank>$return</a>";
}

return $return;
Expand Down
3 changes: 0 additions & 3 deletions app/code/community/Fballiano/ImageCleaner/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
*/
class Fballiano_ImageCleaner_Helper_Data extends Mage_Core_Helper_Abstract
{
const OPEN_IMAGE_SAME_WINDOW = 'same';
const OPEN_IMAGE_NEW_WINDOW = 'new';

public function scandirRecursive($dir)
{
$result = array();
Expand Down
1 change: 0 additions & 1 deletion app/code/community/Fballiano/ImageCleaner/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
<fb_image_cleaner>
<thumbnail_max_width>200</thumbnail_max_width>
<enable_image_click>1</enable_image_click>
<how_to_open_image>new</how_to_open_image>
</fb_image_cleaner>
</admin>
</default>
Expand Down
8 changes: 0 additions & 8 deletions app/code/community/Fballiano/ImageCleaner/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@
<show_in_website>0</show_in_website>
<show_in_store>0</show_in_store>
</enable_image_click>
<how_to_open_image translate="label">
<label>Ho to open full size image</label>
<frontend_type>select</frontend_type>
<source_model>fballiano_imagecleaner/system_config_source_howtoopenimage</source_model>
<show_in_default>1</show_in_default>
<show_in_website>0</show_in_website>
<show_in_store>0</show_in_store>
</how_to_open_image>
<blacklist translate="label comment">
<frontend_type>textarea</frontend_type>
<label>Files/folders blacklist</label>
Expand Down

0 comments on commit 977f359

Please sign in to comment.