Version Notes
+ Compatibility with FPC (Full Page Cache) extensions
Download this release
Release Info
Developer | Apptrian |
Extension | Apptrian_Minify_HTML_CSS_JS |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- app/code/community/Apptrian/Minify/Block/About.php +1 -1
- app/code/community/Apptrian/Minify/Block/Info.php +7 -4
- app/code/community/Apptrian/Minify/Block/Page/Html/Head.php +1 -1
- app/code/community/Apptrian/Minify/Helper/Data.php +1 -1
- app/code/community/Apptrian/Minify/Model/Cron.php +1 -1
- app/code/community/Apptrian/Minify/Model/Observer.php +1 -1
- app/code/community/Apptrian/Minify/etc/config.xml +2 -12
- app/code/community/Apptrian/Minify/etc/system.xml +6 -6
- app/etc/modules/Apptrian_Minify.xml +1 -1
- app/locale/en_US/Apptrian_Minify.csv +1 -1
- lib/Minify/HTMLComp.php +3 -3
- lib/Minify/HTMLMax.php +1 -1
- lib/Minify/HTMLMaxComp.php +3 -3
- package.xml +6 -6
app/code/community/Apptrian/Minify/Block/About.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Block_About
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Block_About
|
app/code/community/Apptrian/Minify/Block/Info.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Block_Info
|
@@ -39,15 +39,18 @@ class Apptrian_Minify_Block_Info
|
|
39 |
</div>
|
40 |
<div>
|
41 |
<p><strong>Products and services you might be interested in:</strong></p>
|
42 |
-
<a href="http://www.apptrian.com/products-and-services/magento/professional-magento-installation" target="_blank" style="margin-right: 15px; display: inline-block;">
|
43 |
-
<img src="http://www.apptrian.com/media/apptrian-promotional/professional-magento-installation.jpg" alt="Professional Magento Installation" style="border:1px solid #ccc;" />
|
44 |
-
</a>
|
45 |
<a href="http://www.apptrian.com/products-and-services/magento/minify-html-css-js-for-magento" target="_blank" style="margin-right: 15px; display: inline-block;">
|
46 |
<img src="http://www.apptrian.com/media/apptrian-promotional/minify-html-css-js-for-magento.jpg" alt="Minify HTML CSS JS for Magento" style="border:1px solid #ccc;" />
|
47 |
</a>
|
|
|
|
|
|
|
48 |
<a href="http://www.apptrian.com/products-and-services/magento/quick-search-for-magento" target="_blank" style="margin-right: 15px; display: inline-block;">
|
49 |
<img src="http://www.apptrian.com/media/apptrian-promotional/quick-search-for-magento.jpg" alt="Quick Search for Magento" style="border:1px solid #ccc;" />
|
50 |
</a>
|
|
|
|
|
|
|
51 |
<a href="http://www.apptrian.com/products-and-services/magento/schema-org-microdata-for-magento" target="_blank" style="margin-right: 15px; display: inline-block;">
|
52 |
<img src="http://www.apptrian.com/media/apptrian-promotional/schema-org-microdata-for-magento.jpg" alt="Schema.org Microdata for Magento" style="border:1px solid #ccc;" />
|
53 |
</a>
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Block_Info
|
39 |
</div>
|
40 |
<div>
|
41 |
<p><strong>Products and services you might be interested in:</strong></p>
|
|
|
|
|
|
|
42 |
<a href="http://www.apptrian.com/products-and-services/magento/minify-html-css-js-for-magento" target="_blank" style="margin-right: 15px; display: inline-block;">
|
43 |
<img src="http://www.apptrian.com/media/apptrian-promotional/minify-html-css-js-for-magento.jpg" alt="Minify HTML CSS JS for Magento" style="border:1px solid #ccc;" />
|
44 |
</a>
|
45 |
+
<a href="http://www.apptrian.com/products-and-services/magento/professional-magento-installation" target="_blank" style="margin-right: 15px; display: inline-block;">
|
46 |
+
<img src="http://www.apptrian.com/media/apptrian-promotional/professional-magento-installation.jpg" alt="Professional Magento Installation" style="border:1px solid #ccc;" />
|
47 |
+
</a>
|
48 |
<a href="http://www.apptrian.com/products-and-services/magento/quick-search-for-magento" target="_blank" style="margin-right: 15px; display: inline-block;">
|
49 |
<img src="http://www.apptrian.com/media/apptrian-promotional/quick-search-for-magento.jpg" alt="Quick Search for Magento" style="border:1px solid #ccc;" />
|
50 |
</a>
|
51 |
+
<a href="http://www.apptrian.com/products-and-services/magento/responsive-product-slider-for-magento" target="_blank" style="margin-right: 15px; display: inline-block;">
|
52 |
+
<img src="http://www.apptrian.com/media/apptrian-promotional/responsive-product-slider-for-magento.jpg" alt="Responsive Product Slider for Magento" style="border:1px solid #ccc;" />
|
53 |
+
</a>
|
54 |
<a href="http://www.apptrian.com/products-and-services/magento/schema-org-microdata-for-magento" target="_blank" style="margin-right: 15px; display: inline-block;">
|
55 |
<img src="http://www.apptrian.com/media/apptrian-promotional/schema-org-microdata-for-magento.jpg" alt="Schema.org Microdata for Magento" style="border:1px solid #ccc;" />
|
56 |
</a>
|
app/code/community/Apptrian/Minify/Block/Page/Html/Head.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Block_Page_Html_Head extends Mage_Page_Block_Html_Head
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Block_Page_Html_Head extends Mage_Page_Block_Html_Head
|
app/code/community/Apptrian/Minify/Helper/Data.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Helper_Data extends Mage_Core_Helper_Abstract
|
app/code/community/Apptrian/Minify/Model/Cron.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Model_Cron
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Model_Cron
|
app/code/community/Apptrian/Minify/Model/Observer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Model_Observer
|
3 |
* @category Apptrian
|
4 |
* @package Apptrian_Minify
|
5 |
* @author Apptrian
|
6 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
class Apptrian_Minify_Model_Observer
|
app/code/community/Apptrian/Minify/etc/config.xml
CHANGED
@@ -4,14 +4,14 @@
|
|
4 |
* @category Apptrian
|
5 |
* @package Apptrian_Minify
|
6 |
* @author Apptrian
|
7 |
-
* @copyright Copyright (c)
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
10 |
-->
|
11 |
<config>
|
12 |
<modules>
|
13 |
<Apptrian_Minify>
|
14 |
-
<version>1.1.
|
15 |
</Apptrian_Minify>
|
16 |
</modules>
|
17 |
<global>
|
@@ -44,16 +44,6 @@
|
|
44 |
<use>core_setup</use>
|
45 |
</connection>
|
46 |
</apptrian_minify_setup>
|
47 |
-
<apptrian_minify_write>
|
48 |
-
<connection>
|
49 |
-
<use>core_write</use>
|
50 |
-
</connection>
|
51 |
-
</apptrian_minify_write>
|
52 |
-
<apptrian_minify_read>
|
53 |
-
<connection>
|
54 |
-
<use>core_read</use>
|
55 |
-
</connection>
|
56 |
-
</apptrian_minify_read>
|
57 |
</resources>
|
58 |
</global>
|
59 |
<default>
|
4 |
* @category Apptrian
|
5 |
* @package Apptrian_Minify
|
6 |
* @author Apptrian
|
7 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
10 |
-->
|
11 |
<config>
|
12 |
<modules>
|
13 |
<Apptrian_Minify>
|
14 |
+
<version>1.1.2</version>
|
15 |
</Apptrian_Minify>
|
16 |
</modules>
|
17 |
<global>
|
44 |
<use>core_setup</use>
|
45 |
</connection>
|
46 |
</apptrian_minify_setup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
</resources>
|
48 |
</global>
|
49 |
<default>
|
app/code/community/Apptrian/Minify/etc/system.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* @category Apptrian
|
5 |
* @package Apptrian_Minify
|
6 |
* @author Apptrian
|
7 |
-
* @copyright Copyright (c)
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
10 |
-->
|
@@ -27,7 +27,7 @@
|
|
27 |
<groups>
|
28 |
<info>
|
29 |
<frontend_model>apptrian_minify/info</frontend_model>
|
30 |
-
<sort_order>
|
31 |
<show_in_default>1</show_in_default>
|
32 |
<show_in_website>1</show_in_website>
|
33 |
<show_in_store>1</show_in_store>
|
@@ -38,7 +38,7 @@
|
|
38 |
<label>Minify HTML CSS JS</label>
|
39 |
<tab>apptrian_extensions</tab>
|
40 |
<frontend_type>text</frontend_type>
|
41 |
-
<sort_order>
|
42 |
<show_in_default>1</show_in_default>
|
43 |
<show_in_website>1</show_in_website>
|
44 |
<show_in_store>1</show_in_store>
|
@@ -46,7 +46,7 @@
|
|
46 |
<about translate="label">
|
47 |
<label>About</label>
|
48 |
<frontend_type>text</frontend_type>
|
49 |
-
<sort_order>
|
50 |
<show_in_default>1</show_in_default>
|
51 |
<show_in_website>1</show_in_website>
|
52 |
<show_in_store>1</show_in_store>
|
@@ -63,7 +63,7 @@
|
|
63 |
<general translate="label">
|
64 |
<label>General</label>
|
65 |
<frontend_type>text</frontend_type>
|
66 |
-
<sort_order>
|
67 |
<show_in_default>1</show_in_default>
|
68 |
<show_in_website>1</show_in_website>
|
69 |
<show_in_store>1</show_in_store>
|
@@ -108,7 +108,7 @@
|
|
108 |
<show_in_default>1</show_in_default>
|
109 |
<show_in_website>1</show_in_website>
|
110 |
<show_in_store>1</show_in_store>
|
111 |
-
<comment><![CDATA[Enables or disables Cache Compatibility Mode.<br />WARNING! You should enable this if you use third party Varnish cache extensions.]]></comment>
|
112 |
<depends>
|
113 |
<minify_html>1</minify_html>
|
114 |
</depends>
|
4 |
* @category Apptrian
|
5 |
* @package Apptrian_Minify
|
6 |
* @author Apptrian
|
7 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
10 |
-->
|
27 |
<groups>
|
28 |
<info>
|
29 |
<frontend_model>apptrian_minify/info</frontend_model>
|
30 |
+
<sort_order>1</sort_order>
|
31 |
<show_in_default>1</show_in_default>
|
32 |
<show_in_website>1</show_in_website>
|
33 |
<show_in_store>1</show_in_store>
|
38 |
<label>Minify HTML CSS JS</label>
|
39 |
<tab>apptrian_extensions</tab>
|
40 |
<frontend_type>text</frontend_type>
|
41 |
+
<sort_order>1</sort_order>
|
42 |
<show_in_default>1</show_in_default>
|
43 |
<show_in_website>1</show_in_website>
|
44 |
<show_in_store>1</show_in_store>
|
46 |
<about translate="label">
|
47 |
<label>About</label>
|
48 |
<frontend_type>text</frontend_type>
|
49 |
+
<sort_order>1</sort_order>
|
50 |
<show_in_default>1</show_in_default>
|
51 |
<show_in_website>1</show_in_website>
|
52 |
<show_in_store>1</show_in_store>
|
63 |
<general translate="label">
|
64 |
<label>General</label>
|
65 |
<frontend_type>text</frontend_type>
|
66 |
+
<sort_order>2</sort_order>
|
67 |
<show_in_default>1</show_in_default>
|
68 |
<show_in_website>1</show_in_website>
|
69 |
<show_in_store>1</show_in_store>
|
108 |
<show_in_default>1</show_in_default>
|
109 |
<show_in_website>1</show_in_website>
|
110 |
<show_in_store>1</show_in_store>
|
111 |
+
<comment><![CDATA[Enables or disables Cache Compatibility Mode.<br />WARNING! You should enable this if you use third party FPC or Varnish cache extensions.]]></comment>
|
112 |
<depends>
|
113 |
<minify_html>1</minify_html>
|
114 |
</depends>
|
app/etc/modules/Apptrian_Minify.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* @category Apptrian
|
5 |
* @package Apptrian_Minify
|
6 |
* @author Apptrian
|
7 |
-
* @copyright Copyright (c)
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
10 |
-->
|
4 |
* @category Apptrian
|
5 |
* @package Apptrian_Minify
|
6 |
* @author Apptrian
|
7 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
8 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
*/
|
10 |
-->
|
app/locale/en_US/Apptrian_Minify.csv
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
"Enables or disables Maximum HTML Minification.<br />WARNING! Slower and unsafe. See tooltip for more information.","Enables or disables Maximum HTML Minification.<br />WARNING! Slower and unsafe. See tooltip for more information."
|
11 |
"If you enable this option all multiple spaces will be eliminated and replaced with one space. All new line characters will be substituted with one space character. Your entire code will be on one line. This is not recommended, you should keep this option disabled.","If you enable this option all multiple spaces will be eliminated and replaced with one space. All new line characters will be substituted with one space character. Your entire code will be on one line. This is not recommended, you should keep this option disabled."
|
12 |
"Enable Cache Compatibility Mode","Enable Cache Compatibility Mode"
|
13 |
-
"Enables or disables Cache Compatibility Mode.<br />WARNING! You should enable this if you use third party Varnish cache extensions.","Enables or disables Cache Compatibility Mode.<br />WARNING! You should enable this if you use third party Varnish cache extensions."
|
14 |
"CSS Settings","CSS Settings"
|
15 |
"Minify CSS","Minify CSS"
|
16 |
"Enables or disables CSS minification.<br />WARNING! Before you enable this option you must have valid CSS code on all of the pages on your site. In order for minification to work you must enable Admin>System>Configuration>Developer>CSS Settings>Merge CSS Files.","Enables or disables CSS minification.<br />WARNING! Before you enable this option you must have valid CSS code on all of the pages on your site. In order for minification to work you must enable Admin>System>Configuration>Developer>CSS Settings>Merge CSS Files."
|
10 |
"Enables or disables Maximum HTML Minification.<br />WARNING! Slower and unsafe. See tooltip for more information.","Enables or disables Maximum HTML Minification.<br />WARNING! Slower and unsafe. See tooltip for more information."
|
11 |
"If you enable this option all multiple spaces will be eliminated and replaced with one space. All new line characters will be substituted with one space character. Your entire code will be on one line. This is not recommended, you should keep this option disabled.","If you enable this option all multiple spaces will be eliminated and replaced with one space. All new line characters will be substituted with one space character. Your entire code will be on one line. This is not recommended, you should keep this option disabled."
|
12 |
"Enable Cache Compatibility Mode","Enable Cache Compatibility Mode"
|
13 |
+
"Enables or disables Cache Compatibility Mode.<br />WARNING! You should enable this if you use third party FPC or Varnish cache extensions.","Enables or disables Cache Compatibility Mode.<br />WARNING! You should enable this if you use third party FPC or Varnish cache extensions."
|
14 |
"CSS Settings","CSS Settings"
|
15 |
"Minify CSS","Minify CSS"
|
16 |
"Enables or disables CSS minification.<br />WARNING! Before you enable this option you must have valid CSS code on all of the pages on your site. In order for minification to work you must enable Admin>System>Configuration>Developer>CSS Settings>Merge CSS Files.","Enables or disables CSS minification.<br />WARNING! Before you enable this option you must have valid CSS code on all of the pages on your site. In order for minification to work you must enable Admin>System>Configuration>Developer>CSS Settings>Merge CSS Files."
|
lib/Minify/HTMLComp.php
CHANGED
@@ -18,12 +18,12 @@
|
|
18 |
*/
|
19 |
|
20 |
/**
|
21 |
-
* Modified version of a class for compatibility with Varnish cache extensions for Magento.
|
22 |
*
|
23 |
* @category Apptrian
|
24 |
* @package Apptrian_Minify
|
25 |
* @author Apptrian
|
26 |
-
* @copyright Copyright (c)
|
27 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
28 |
*/
|
29 |
class Minify_HTMLComp {
|
@@ -172,7 +172,7 @@ class Minify_HTMLComp {
|
|
172 |
|
173 |
protected function _commentCB($m)
|
174 |
{
|
175 |
-
return (0 === strpos($m[1], '[') || false !== strpos($m[1], '<![') || false !== stripos($m[1], 'esi <'))
|
176 |
? $m[0]
|
177 |
: '';
|
178 |
}
|
18 |
*/
|
19 |
|
20 |
/**
|
21 |
+
* Modified version of a class for compatibility with Varnish and FPC cache extensions for Magento.
|
22 |
*
|
23 |
* @category Apptrian
|
24 |
* @package Apptrian_Minify
|
25 |
* @author Apptrian
|
26 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
27 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
28 |
*/
|
29 |
class Minify_HTMLComp {
|
172 |
|
173 |
protected function _commentCB($m)
|
174 |
{
|
175 |
+
return (0 === strpos($m[1], '[') || false !== strpos($m[1], '<![') || false !== stripos($m[1], 'esi <') || false !== stripos($m[1], ' fpc'))
|
176 |
? $m[0]
|
177 |
: '';
|
178 |
}
|
lib/Minify/HTMLMax.php
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
* @category Apptrian
|
24 |
* @package Apptrian_Minify
|
25 |
* @author Apptrian
|
26 |
-
* @copyright Copyright (c)
|
27 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
28 |
*/
|
29 |
class Minify_HTMLMax {
|
23 |
* @category Apptrian
|
24 |
* @package Apptrian_Minify
|
25 |
* @author Apptrian
|
26 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
27 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
28 |
*/
|
29 |
class Minify_HTMLMax {
|
lib/Minify/HTMLMaxComp.php
CHANGED
@@ -18,12 +18,12 @@
|
|
18 |
*/
|
19 |
|
20 |
/**
|
21 |
-
* Modified version of a class for max minification and compatibility with Varnish cache extensions for Magento.
|
22 |
*
|
23 |
* @category Apptrian
|
24 |
* @package Apptrian_Minify
|
25 |
* @author Apptrian
|
26 |
-
* @copyright Copyright (c)
|
27 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
28 |
*/
|
29 |
class Minify_HTMLMaxComp {
|
@@ -175,7 +175,7 @@ class Minify_HTMLMaxComp {
|
|
175 |
|
176 |
protected function _commentCB($m)
|
177 |
{
|
178 |
-
return (0 === strpos($m[1], '[') || false !== strpos($m[1], '<![') || false !== stripos($m[1], 'esi <'))
|
179 |
? $m[0]
|
180 |
: '';
|
181 |
}
|
18 |
*/
|
19 |
|
20 |
/**
|
21 |
+
* Modified version of a class for max minification and compatibility with Varnish and FPC cache extensions for Magento.
|
22 |
*
|
23 |
* @category Apptrian
|
24 |
* @package Apptrian_Minify
|
25 |
* @author Apptrian
|
26 |
+
* @copyright Copyright (c) 2015 Apptrian (http://www.apptrian.com)
|
27 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
28 |
*/
|
29 |
class Minify_HTMLMaxComp {
|
175 |
|
176 |
protected function _commentCB($m)
|
177 |
{
|
178 |
+
return (0 === strpos($m[1], '[') || false !== strpos($m[1], '<![') || false !== stripos($m[1], 'esi <') || false !== stripos($m[1], ' fpc'))
|
179 |
? $m[0]
|
180 |
: '';
|
181 |
}
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Apptrian_Minify_HTML_CSS_JS</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Minify HTML CSS JS including inline CSS/JS and speed up you site. Works with default Magento CSS/JS merger.</summary>
|
10 |
-
<description>Apptrian Minify HTML CSS JS is a very small and efficient extension. It will minify HTML including inline CSS and JS code. Minification of CSS and JS files is compatible with default Magento CSS and JS file merger. There are no complex setups nor query strings on minified CSS and JS files. Extension is very easy to install and use. Compatible with Varnish cache extensions.</description>
|
11 |
-
<notes>+ Compatibility with
|
12 |
<authors><author><name>Apptrian</name><user>apptrian</user><email>apptrian@yahoo.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Apptrian"><dir name="Minify"><dir name="Block"><file name="About.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Apptrian_Minify_HTML_CSS_JS</name>
|
4 |
+
<version>1.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Minify HTML CSS JS including inline CSS/JS and speed up you site. Works with default Magento CSS/JS merger.</summary>
|
10 |
+
<description>Apptrian Minify HTML CSS JS is a very small and efficient extension. It will minify HTML including inline CSS and JS code. Minification of CSS and JS files is compatible with default Magento CSS and JS file merger. There are no complex setups nor query strings on minified CSS and JS files. Extension is very easy to install and use. Compatible with FPC and Varnish cache extensions.</description>
|
11 |
+
<notes>+ Compatibility with FPC (Full Page Cache) extensions</notes>
|
12 |
<authors><author><name>Apptrian</name><user>apptrian</user><email>apptrian@yahoo.com</email></author></authors>
|
13 |
+
<date>2015-03-04</date>
|
14 |
+
<time>13:28:21</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Apptrian"><dir name="Minify"><dir name="Block"><file name="About.php" hash="bdef9d6e0a2aef88c31bf4737ed0c60b"/><file name="Info.php" hash="f8ed6467b67cdf4920b29b36ae67fbb7"/><dir name="Page"><dir name="Html"><file name="Head.php" hash="497da66d5fa44f55135ab1578a3be90a"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="de569d80426c7fd01326fa2ba0409c35"/></dir><dir name="Model"><file name="Cron.php" hash="deb94ca0e0d4fc84e7f3b8ec93270e1e"/><file name="Observer.php" hash="628e9692083bebf250b19348d7a2c1d8"/></dir><dir name="etc"><file name="config.xml" hash="d9b3cbb46cfdbbaa482a664403c56abd"/><file name="system.xml" hash="16113c42b5fdac526284fed93e6a1e9c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Apptrian_Minify.xml" hash="93ef03671067cf44a0b02f0100c8d2d0"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Apptrian_Minify.csv" hash="5c927e6f701178e2b0b15b1d9a6caa20"/></dir></target><target name="magelib"><dir name="HTTP"><file name="ConditionalGet.php" hash="84d5f4e0b97e37228310a31a4bdc1240"/><file name="Encoder.php" hash="d697f04651d6363d1dd5dd8c2ce94cbd"/></dir><dir name="Minify"><file name="Build.php" hash="99800ab664e1fb0ff46a7133ab13bb1b"/><dir name="CSS"><file name="Compressor.php" hash="6f1d5d8c3f7ac47cabaca9d6ee923206"/><file name="UriRewriter.php" hash="d6c800c1b9b0603c3386f84074bc41a0"/></dir><file name="CSS.php" hash="c585f82e0a6f8af12da2d3337aa7e901"/><file name="CSSmin.php" hash="7e0549e63f49b99aac0f6688bfcf99ef"/><dir name="Cache"><file name="APC.php" hash="f83c096f1ea3eb712bf020371b7d3755"/><file name="File.php" hash="5550b7ad5d3cc20710a0835fdf20e3ec"/><file name="Memcache.php" hash="a572e300270f5cdb535de67eb1d9ce3b"/><file name="WinCache.php" hash="037003b972c8f648880b43b2c912afb7"/><file name="XCache.php" hash="a3239040e672955a8a520eef6e251d68"/><file name="ZendPlatform.php" hash="a20755bc554cfef6733ac64574c4f90e"/></dir><file name="ClosureCompiler.php" hash="0d04a74dae339bd8d2d0465503590819"/><file name="CommentPreserver.php" hash="f9fbae74aea3125d25f375942846d9c0"/><dir name="Controller"><file name="Base.php" hash="756cd27141da15f6bc0a9d34960e0338"/><file name="Files.php" hash="a0bc419aa48d256e19a64596dee53991"/><file name="Groups.php" hash="bf35ccd3d384c40033b978a402eaf917"/><file name="MinApp.php" hash="0910bc4af5280098b8411a8a23aa3e91"/><file name="Page.php" hash="c54a4b19474f9d0e9beb8ccb4e3678b3"/><file name="Version1.php" hash="0e4bce53a0b66c79aa6d15e52cf8ec50"/></dir><file name="DebugDetector.php" hash="d1bee7f6ab4dcf7be5d36dbcd1b81354"/><dir name="HTML"><file name="Helper.php" hash="af89e2e30f70dd935dd86d31649159e6"/></dir><file name="HTML.php" hash="d48eabaae177099a264b5a97379b0abf"/><file name="HTMLComp.php" hash="a2929a26f75e6877fd5f58e6fdc5f2d0"/><file name="HTMLMax.php" hash="63b191db9ce4b878809c33e5cc74323e"/><file name="HTMLMaxComp.php" hash="c6c76d9106d38c3a3fcd7c4ae4ff571a"/><file name="ImportProcessor.php" hash="075c561afa4825021fa44c3cac68ab94"/><dir name="JS"><file name="ClosureCompiler.php" hash="0d6d0017c3b9decdf0e1f647c0b53f17"/></dir><file name="Lines.php" hash="526499d43d682432dac9483da4509179"/><file name="Loader.php" hash="5e84b0e739587d8df742f47953f135d5"/><file name="Logger.php" hash="ee493543ebb47aa06f976f23a0f3d86a"/><file name="Packer.php" hash="e91f63a82c4fbd660c2341163e87dd4b"/><file name="Source.php" hash="f7055f963f00e5ae9f5b0005d5e4a5ec"/><dir name="YUI"><file name="CssCompressor.java" hash="cb15a586f2dcc4fead535bc982e3f91e"/><file name="CssCompressor.php" hash="12d5b4e38488c68bc84cc0efba6eb338"/></dir><file name="YUICompressor.php" hash="3ada081677d0cf118bba1f4b533b97cf"/></dir><dir name="."><file name="CSSmin.php" hash="b88ddd36d0ff681aa8a221467c0c71c1"/><file name="DooDigestAuth.php" hash="9d66abc8cfa37b5f593fc09c734f0269"/><file name="FirePHP.php" hash="f619b5a77fee4b21e4397e98d858fbf4"/><file name="JavaScriptPacker.php" hash="84900da372a375d3b2f117c5abe740a9"/><file name="JSMin.php" hash="63ada69cc753fe4136c67e1d3daabca3"/><file name="JSMinPlus.php" hash="13d47b54dd73ef825e5d86e6cc633e32"/><file name="Minify.php" hash="df50518e69c132b1354eb8ba73a8ed7c"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|