This file contains hidden or 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
module Sanitizer | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def sanitize(*args, target) | |
args.each do |column| | |
delegate column, "#{column}=", to: target | |
class_eval <<-RUBY | |
def #{column}=(value) |
This file contains hidden or 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
module Sanitizer | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def sanitize(*args, opts) | |
target = opts[:on] | |
condition = opts[:if] || true | |
args.each do |column| |
This file contains hidden or 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
<div id="_trustvox_widget"> |
This file contains hidden or 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
{ | |
"order_id": 12, | |
"delivery_date", "2013-11-05T18:39:57-03:00", | |
"client": { | |
"first_name": "Tiago", | |
"last_name": "Lima", | |
"email": "[email protected]" | |
}, | |
"items": [ | |
{ |
This file contains hidden or 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
<div class="yotpo reviews" | |
data-appkey="YdS7ZZiyi4bE8yfb2ikDpOfpFvpEGj6jnpAOc6KA" | |
data-domain="Domain of the shop" | |
data-product-id="SKU/Product_ID" | |
data-product-models="Products model information" | |
data-name="Product Title" | |
data-url="The url to the page where the product is url escaped" | |
data-image-url="The product image url. Url escaped" | |
data-description="product description" | |
data-bread-crumbs="Product categories"></div> |
This file contains hidden or 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
<script type="text/javascript"> | |
var _trustvox = _trustvox || []; | |
_trustvox.push(['_storeId', '1']); | |
<?php if($_product = Mage::registry('current_product')): ?> | |
_trustvox.push(['_productId', "<?php echo $_product->getId() ?>"]); | |
_trustvox.push(['_productName',"<?php echo $_product->getName() ?>"]); | |
_trustvox.push(['_productPhotos', ["<?php echo $_product->getImageUrl() ?>"]]); | |
<?php endif; ?> | |
This file contains hidden or 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
<script type="text/javascript"> | |
jQuery(document).ready(function () { | |
window._trustvox = []; | |
_trustvox.push(['_storeId', '1']); | |
_trustvox.push(['_productId', "<IDProduto>"]); | |
_trustvox.push(['_productName', "<NomeProd>"]); | |
_trustvox.push(['_productPhotos', [""+ jQuery("meta[itemprop=image]").attr("content") + ""]]); | |
(function() { | |
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true; |
This file contains hidden or 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
http://www.linkedin.com/cws/share?url=http%3A%2F%2Fsite.trustvox.com.br%2Fopinioes-de-clientes-como-isso-pode-aumentar-e-muito-sua-taxa-de-conversao%2F&original_referer=http%3A%2F%2Fsite.trustvox.com.br%2Fopinioes-de-clientes-como-isso-pode-aumentar-e-muito-sua-taxa-de-conversao%2F&token=&isFramed=false&lang=en_US&_ts=1391717937295.8987 | |
http://www.linkedin.com/cws/share?url=http%3A%2F%2Fsite.trustvox.com.br%2Fpor-que-sua-loja-virtual-precisa-de-reviews-e-opinioes-de-clientes%2F&original_referer=http%3A%2F%2Fsite.trustvox.com.br%2Fpor-que-sua-loja-virtual-precisa-de-reviews-e-opinioes-de-clientes%2F&token=&isFramed=false&lang=en_US&_ts=1391717971871.9553 | |
http://www.linkedin.com/cws/share?url=http%3A%2F%2Fsite.trustvox.com.br%2Fpor-que-a-inseguranca-do-consumidor-e-a-maior-inimiga-do-e-commerce%2F&original_referer=http%3A%2F%2Fsite.trustvox.com.br%2Fpor-que-a-inseguranca-do-consumidor-e-a-maior-inimiga-do-e-commerce%2F&token=&isFramed=false&lang=en_US&_ts=1391717980593.7605 | |
http://www.linkedin.com/cws/sha |
This file contains hidden or 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
<script type="text/javascript"> | |
var _trustvox = _trustvox || []; | |
_trustvox.push(['_storeId', '1']); | |
_trustvox.push(['_productId', "{{ product.id }}"]); | |
_trustvox.push(['_productName',"{{ product.name }}"]); | |
_trustvox.push(['_productPhotos', ["{{ product.featured_image | product_image_url('original') }}"]]); | |
(function() { | |
var tv = document.createElement('script'); tv.type = 'text/javascript'; tv.async = true; |