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
Find Block in Contents | |
SELECT * FROM `cms_block` WHERE `content` LIKE '%{{block%'; | |
SELECT * FROM `cms_page` WHERE `content` LIKE '%{{block%'; | |
SELECT * FROM `core_email_template` WHERE `template_text` LIKE '%{{block%'; | |
thanks @http://www.webguys.de/magento/supee-6788-und-block-direktiven-neues-berechtigungskonzept/ | |
Find Config Varibales in Contents | |
SELECT * FROM `cms_block` WHERE `content` LIKE '%{{config%'; |
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
$data = array_map('str_getcsv', | |
['"header1","header2","header3","header4"', | |
'"data1","data2","data3","data4"', | |
'"dataA","dataB","dataC","dataD"'] ); | |
//just get the first line of the csv1's values | |
$csv1 = array_shift($data); | |
//csv2 | |
$data2 = array_map('str_getcsv', ['"header4","header3","header2","header1"']); |
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
/** | |
* Polyfill for the vw, vh, vm units | |
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/ | |
* @author Lea Verou | |
*/ | |
(function() { | |
if(!window.StyleFix) { | |
return; |
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
RewriteEngine on | |
RewriteLogLevel 2 | |
RewriteLog /var/www/sites/camino_surf/logs/rewrite.log | |
RewriteCond %{HTTP_HOST} !www.caminosurf.com$ [NC] | |
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).caminosurf.com [NC] | |
# first try to find it in branch dir based on subdomain | |
# ...and if found stop and be happy: | |
RewriteCond /var/www/sites/camino_surf/public/%{REQUEST_FILENAME} -f |
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
<html> | |
<head> | |
<title>Comments count code example</title> | |
</head> | |
<body> | |
<!-- For this link, we will try to fetch comments count by URL: http://example.com/article.html --> | |
<a href="http://example.com/article.html#disqus_thread">First article</a> | |
<!-- For this link, we will try to fetch comments count by identifier: article2identifier --> |