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 script is inline for avoid extra request. | |
var fonts = new Array(); | |
fonts.push('css/font/pfsquaresanspromedium.css'); | |
fonts.push('css/font/pfhighwaysanspro-thin.css'); | |
fonts.push('css/font/ubuntu-m.css'); | |
fonts.push('css/font/pfhighwaysanspro-regular-light-italic.css'); | |
fonts.push('css/font/pfsquaresanspro-italic-regular.css'); | |
var head = document.getElementsByTagName('head')[0]; | |
var link = document.getElementsByTagName('link')[0]; | |
for(var i in fonts) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<handlers> | |
<remove name="PHP" /> | |
<add name="PHP cgi" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\kwdata\php5.3\php-cgi.exe" resourceType="Unspecified" /> | |
</handlers> | |
<httpErrors errorMode="Detailed" /> | |
<asp scriptErrorSentToBrowser="true"/> | |
<validation validateIntegratedModeConfiguration="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
function e_mail_valid(email) { | |
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; | |
return reg.test(email); | |
} |
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
(function($) { | |
$(function(){ | |
$("a").on('click',function(e){ | |
var url = $(this).attr("href"); | |
if (e.currentTarget.host != window.location.host) { | |
if(typeof _gaq != 'undefined') { | |
//var track_label = e.currentTarget.host.replace(':80','') + url; | |
var track_label = url; | |
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 | |
$query_parameters = "post_type=portfolio&posts_per_page=-1&orderby=$portfolio_order&order=DESC&portfolio_category=$post_name"; | |
$portfolio = new WP_Query($query_parameters); | |
while ( $portfolio->have_posts() ) : $portfolio->the_post(); | |
//loop content | |
endwhile; |
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 | |
//requires swiftmailer -> http://swiftmailer.org/ | |
include dirname(__FILE__) . '/vendor/swiftmailer/swift_required.php'; | |
/* values : begin */ | |
$sender_e_mail = 'sender@example.com'; | |
$sender_password = 'password'; | |
$sender_name = 'Example Sender'; | |
$subject = 'My Example Subject'; |
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 rgicgier_pagination($query = null) { | |
if ( !$query ) { | |
global $wp_query; | |
$query = $wp_query; | |
} | |
$big = 999999999; // need an unlikely integer | |
$pagination = paginate_links( array( |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<handlers> | |
<remove name="PHP" /> | |
<add name="PHP cgi" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\kwdata\php5.3\php-cgi.exe" resourceType="Unspecified" /> | |
</handlers> | |
<httpErrors errorMode="Detailed" /> | |
<asp scriptErrorSentToBrowser="true"/> | |
<validation validateIntegratedModeConfiguration="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
<?php | |
wp_reset_query(); | |
//http://wordpress.org/support/topic/search-one-category-only | |
global $wp_query; | |
$category_sub_1 = get_category_by_path('main-category/sub-category-1'); | |
$category_sub_2 = get_category_by_path('main-category/sub-category-2'); | |
if(is_search()): | |
$cat = array( |
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
# BEGIN WordPress | |
RewriteEngine on | |
RewriteBase / | |
#enforce www | |
#http://stackoverflow.com/a/4958847/181295 | |
RewriteCond %{HTTP_HOST} !^$ | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{HTTPS}s ^on(s)| | |
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
OlderNewer