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
<div> | |
<input id="resources-input" placeholder="Search for products"> | |
</div> | |
<div id="type-refinement"> | |
</div> | |
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
UPDATE wp_posts SET `post_content` = REPLACE (`post_content`, 'src="http://www.your-site.com', 'src="https://www.your-site.com'); |
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
@mixin font-face($family, $filename, $font-weight: normal, $font-style: normal) { | |
@font-face { | |
font-family: "#{$family}"; | |
src: url("/wp-content/themes/starkers/fonts/bookmania/#{$filename}.eot?#iefix") format("embedded-opentype"), url("/wp-content/themes/officialwatches/fonts/starkers/#{$filename}.woff") format("woff"), url("/wp-content/themes/starkers/fonts/#{$filename}.ttf") format("truetype"); | |
font-weight: $font-weight; | |
font-style: $font-style; | |
} | |
} | |
@include font-face("bookmania", "bookmania-light", $font-weight: 100); |
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 | |
function checkRemoteFile($url) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$url); | |
curl_setopt($ch, CURLOPT_NOBODY, 1); | |
curl_setopt($ch, CURLOPT_FAILONERROR, 1); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
if(curl_exec($ch)!==FALSE) | |
{ |
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
if($('#partner-form').length > 0) { | |
validator = $('#partner-form').validate({ | |
errorPlacement: function(error, element) { | |
error.insertBefore(element.prev("label")); | |
}, | |
rules: { | |
first_name: { | |
required: 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 $user = get_user_by( 'email', '[email protected]' ); | |
echo 'User is ' . $user->first_name . ' ' . $user->ID; ?> |
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
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>" type="text/css" media="screen, projection" /> |
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="sales-form" method='POST'> | |
<div class="c-mainform_group"> | |
<div class="c-mainform_col"> | |
<div> | |
<label for="name">Full name<sup>*</sup></label> | |
<input type="text" name="name" id="name" /> | |
</div> | |
<div> | |
<label for="email">Email address<sup>*</sup></label> | |
<input type="email" name="email" id="email" /> |
NewerOlder