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
<?php | |
<div class="generator"> | |
<span class="generator-output"> | |
<?php | |
$sep=","; // separator | |
$project=file("https://example.com/csv/array.csv"); | |
$project_row=rand(0,count($project)-1); | |
$project_data=explode($sep,$project[$project_row]); | |
$project_num = count ($project_data); |
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 | |
RewriteCond %{HTTP_HOST} ^(www.)?twigandolivephotography.com$ | |
RewriteCond %{REQUEST_URI} !^/site/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /site/$1 | |
RewriteCond %{HTTP_HOST} ^(www.)?twigandolivephotography.com$ | |
RewriteRule ^(/)?$ site/index.html [L] |
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
# Trying to rewrite: | |
# https://www.plm.automation.siemens.com/en/about_us/success/case_study.cfm?Component=232169&ComponentTemplate=1481 | |
# to | |
# https://www.plm.automation.siemens.com/global/en/our-story/customers/wkidea/16678/ | |
# | |
RewriteCond %{QUERY_STRING} (^|&)Component=232169($|&) | |
RewriteCond %{QUERY_STRING} (^|&)ComponentTemplate=1481($|&) | |
RewriteRule ^en/about_us/success/case_study\.cfm$ /global/en/our-story/customers/wkidea/16678/? [L,R=301] |
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
/* This would be added to the element, which in this case is .example-banner */ | |
.example-banner { | |
background: #50c1c1; /* Old browsers, defaults to solid blue */ | |
background: -moz-linear-gradient(left, #50c1c1 0%, #109cc5 100%); /* FireFox v3.6-15 */ | |
background: -webkit-linear-gradient(left, #50c1c1 0%,#109cc5 100%); /* Chrome v0-25, Safari v5.1-6 */ | |
background: linear-gradient(to right, #50c1c1 0%,#109cc5 100%); /* W3C, IE v10+, FireFox v16+, Chrome v26+, Opera v12+, Safari v7+ */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#50c1c1', endColorstr='#109cc5',GradientType=1 ); /* IE v6-9 */ | |
} |
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
<form id="CreateCommon" name="CreateCommon" action="DigitalExchangeCreateUserCommon" method="post"> |
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
<?php // Don't include this line | |
add_theme_support( 'woocommerce', array( | |
'thumbnail_image_width' => 150, | |
'single_image_width' => 322, | |
) ); |
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
<?php | |
add_action('admin_head', 'custom_admin_css'); | |
function custom_admin_css() { | |
echo '<style> | |
#the-list tr.status-wc-cancelled { | |
background-color: #FCACAC; | |
} | |
#the-list tr.status-wc-completed { |
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
<?php // DO NOT COPY THIS LINE - START COPYING AT LINE 3 AND BELOW | |
/** | |
* Change Variable Product price range to only display minimum price | |
*/ | |
function variable_price_display_change( $price, $product ) { | |
$min_price_regular = $product->get_variation_regular_price( 'min', true ); | |
$min_price_sale = $product->get_variation_sale_price( 'min', true ); | |
$max_price = $product->get_variation_price( 'max', true ); |
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
<?php //Do not insert this line | |
/** | |
* Change Variable Product price range to "From:" | |
*/ | |
function variable_price_display_change( $price, $product ) { | |
$prefix = sprintf('%s: ', __('From')); | |
$min_price_regular = $product->get_variation_regular_price( 'min', true ); |
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
<?php | |
/** | |
* Redirects Thank You page after checkout in WooCommerce | |
*/ | |
add_action( 'template_redirect', 'wc_redirect_post_checkout' ); | |
function wc_redirect_post_checkout() { | |
global $wp; |
NewerOlder