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
<?php | |
$webhookContent = ""; | |
$webhook = fopen('php://input' , 'rb'); | |
while (!feof($webhook)) { | |
$webhookContent .= fread($webhook, 4096); | |
} | |
fclose($webhook); |
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
ul.sizelist li { | |
display: inline-block; | |
border: 1px solid #ddd; | |
padding: 1px 4px; | |
} | |
ul.sizelist { | |
display: block; | |
text-align: center; | |
} |
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
<ul class="sizelist"> | |
{% for option in product.options %} | |
{% if option == 'Size' %} | |
{% assign index = forloop.index0 %} | |
{% assign colorlist = '' %} | |
{% assign color = '' %} | |
{% for variant in product.variants %} | |
{% capture color %} | |
{{ variant.options[index] }} | |
{% endcapture %} |
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> | |
jQuery(document).ready(function(){ | |
jQuery('.bottom-cta').fancybox(); | |
}) | |
</script> |
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> | |
jQuery(document).ready(function(){ | |
jQuery('.top-cta').fancybox(); | |
}) | |
</script> |
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
function img_process( $src , $size ) { | |
$pathinfo = pathinfo($src); | |
$pathname = $pathinfo['dirname']; | |
$filename = $pathinfo['basename']; | |
if($src){ | |
if($size == 'xs'){ | |
echo $pathname.'/4_'.$filename; | |
} elseif ($size == 'sm') { | |
echo $pathname.'/3_'.$filename; | |
} elseif ($size == 'md') { |
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
<a href="#" class="btn" id="price_match">Price Match</a> | |
<div class="pop_wrap" style="display:none;"> | |
<div class="pop_hold"> | |
<div class="pop_hip"> | |
<div class="pop_inner"> | |
<div class="close-this"></div> | |
<div class="form-wrap"> |
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
if( function_exists('register_field_group') ): | |
register_field_group(array ( | |
'key' => 'group_5510816f2274e', | |
'title' => 'Portfolio Options', | |
'fields' => array ( | |
array ( | |
'key' => 'field_5510818e3a75c', | |
'label' => 'Sub Title', |
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
It was a joomla module. I am just putting the important parts of this script. You will have to customize it for your wordpress site. | |
First declare some variables. | |
echo '<script language="javascript"> | |
var fan_page_url = "'.$params->get( 'fkbook_url' ).'"; | |
var opacity = '.$params->get( 'fkbook_opacity' ).'; | |
var time = '.$params->get( 'fkbook_time' ).'; | |
var width = '.$params->get( 'fkbook_width' ).'; |
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
<?php $shop_page_url = get_permalink( woocommerce_get_page_id( 'shop' ) ); echo $shop_page_url; ?> |