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
/* | |
* Copyright 2014 Uwe Trottmann | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/* | |
Make the Facebook Like box responsive (fluid width) | |
https://developers.facebook.com/docs/reference/plugins/like-box/ | |
*/ | |
/* This element holds injected scripts inside iframes that in some cases may stretch layouts. So, we're just hiding it. */ | |
#fb-root { | |
display: none; | |
} |
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
/* long version */ | |
a[href^="http://"]:not([href*="mysite.com"]), | |
a[href^="https://"]:not([href*="mysite.com"]), | |
a[href^="//"]:not([href*="mysite.com"]), { | |
} | |
/* shorter version! */ | |
a[href*="//"]:not([href*="mysite.com"]) { | |
/* external link styles, use :before or :after if you want! */ | |
} |
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
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, |
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 post_thumbnail_html ($html, $post_id, $post_thumbnail_id, $size, $attr) { | |
global $ce_config, $post; | |
// if($size !== '') return $html; | |
if( $post && $post->post_type !== 'ad' ) return $html; | |
$list_view = isset($_COOKIE['ce_list_view']) ? $_COOKIE['ce_list_view'] : $ce_config['default_grid']; | |
if(is_single()) { | |
$list_view = 'grid'; |
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
add_action('init', 'ae_woocommerce_before_checkout_form'); | |
function ae_woocommerce_before_checkout_form(){ | |
add_filter( 'woocommerce_checkout_fields', 'ae_woocommerce_checkout_fields' ); | |
} | |
function ae_woocommerce_checkout_fields($checkout_fields){ | |
$checkout_fields['order']["new_comment"] = array( | |
'type' => 'textarea', | |
'class' => array('notes'), |
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 | |
global $post, $ae_post_factory; | |
$place_obj = $ae_post_factory->get('place'); | |
$place = $place_obj->current_post; | |
?> | |
<div class="section-detail-wrapper padding-top-bottom-20 print-only"> | |
<div class="description-place-wrapper print-only"> | |
<!--// place gallery --> | |
<div class="content-description"> | |
<div class="info-address-place-wrapper"> |
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 | |
if ( !class_exists( 'AEM_Autoload' ) ) { | |
/** | |
* Auto load core class and module class | |
* | |
* Class WFA_Autoload | |
* @author nguyenvanduocit | |
*/ |
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
http://codesymphony.co/writing-wordpress-plugin-unit-tests |