Skip to content

Commit

Permalink
Version 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Mar 13, 2020
1 parent 0a7f0d6 commit 1586b6e
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 48 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ For more information, go to https://www.luigifab.fr/apijs and https://www.luigif

This repository is a mirror. To install the module, please use the extension key available in the documentation. If you like, take some of your time to improve the translations, go to https://bit.ly/2HyCCEc.

Version 6.0.0 released on 03/03/2020.
Version 6.0.1 released on 13/03/2020.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Created L/26/10/2015
* Updated M/21/01/2020
* Updated V/13/03/2020
*
* Copyright 2008-2020 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/magento/apijs
Expand Down Expand Up @@ -33,7 +33,7 @@ public function getElementHtml() {
if ($this->getValue()) {
$url = $this->_getUrl();
$url = (mb_stripos($url, 'http') === 0) ? $url : Mage::getBaseUrl('media').$url;
$html .= sprintf(' <a href="%s" onclick="apijs.dialog.dialogPhoto(this.href, \'false\', \'false\', \'%s\'); return false;" id="%s_image">%s</a> ', $url, addslashes($this->getValue()), $this->getHtmlId(), $this->helper('apijs')->__('Preview'));
$html .= sprintf(' <a href="%s" onclick="apijs.dialog.dialogPhoto(this.href, \'false\', \'false\', \'%s\'); return false;" id="%s_image">%s</a> ', $url, addslashes($this->getValue()), $this->getHtmlId(), Mage::helper('apijs')->__('Preview'));
}

$html .= Varien_Data_Form_Element_Abstract::getElementHtml();
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Luigifab/Apijs/etc/config.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Created S/19/11/2011
* Updated S/01/02/2020
* Updated V/13/03/2020
*
* Copyright 2008-2020 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/magento/apijs
Expand All @@ -20,7 +20,7 @@
<config>
<modules>
<Luigifab_Apijs>
<version>6.0.0</version>
<version>6.0.1</version>
</Luigifab_Apijs>
</modules>
<global>
Expand Down
34 changes: 5 additions & 29 deletions app/design/adminhtml/default/default/layout/luigifab/apijs.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Created S/19/11/2011
* Updated M/07/01/2020
* Updated V/13/03/2020
*
* Copyright 2008-2020 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/magento/apijs
Expand Down Expand Up @@ -39,53 +39,29 @@
<type>skin_js</type>
<name>js/luigifab/apijs/apijs.min.js</name>
</action>
<action method="addItem">
<type>skin_js</type>
<name>js/luigifab/apijs/apijs-magento.min.js</name>
</action>
</reference>
<reference name="notifications">
<block type="apijs/browser" template="luigifab/apijs/browser.phtml" name="apijs_browser" />
</reference>
</default>

<adminhtml_catalog_product_edit>
<reference name="head">
<action method="addItem" ifconfig="apijs/general/backend">
<type>skin_js</type>
<name>js/luigifab/apijs/apijs-magento.min.js</name>
</action>
</reference>
<reference name="product_tabs">
<action method="setActiveTab" ifconfig="apijs/general/show_gallery_tab">
<var helper="apijs/getTabName" />
</action>
</reference>
</adminhtml_catalog_product_edit>

<adminhtml_cms_page_edit>
<reference name="head">
<action method="addItem" ifconfig="apijs/general/backend">
<type>skin_js</type>
<name>js/luigifab/apijs/apijs-magento.min.js</name>
</action>
</reference>
</adminhtml_cms_page_edit>

<adminhtml_cms_block_edit>
<reference name="head">
<action method="addItem" ifconfig="apijs/general/backend">
<type>skin_js</type>
<name>js/luigifab/apijs/apijs-magento.min.js</name>
</action>
</reference>
</adminhtml_cms_block_edit>

<adminhtml_apijs_wysiwyg_index>
<reference name="head">
<action method="setTitle" translate="title">
<title>Media Storage / CMS / Magento Admin</title>
</action>
<action method="addItem" ifconfig="apijs/general/backend">
<type>skin_js</type>
<name>js/luigifab/apijs/apijs-magento.min.js</name>
</action>
</reference>
<reference name="left">
<block type="adminhtml/cms_wysiwyg_images_content" name="wysiwyg_images.js" template="cms/browser/js.phtml" />
Expand Down
8 changes: 4 additions & 4 deletions package.xml

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions skin/adminhtml/default/default/js/luigifab/apijs/apijs.min.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions skin/frontend/base/default/js/luigifab/apijs/apijs.min.js

Large diffs are not rendered by default.

0 comments on commit 1586b6e

Please sign in to comment.