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('book'==get_post_type()) { | |
} |
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($){ | |
var frame; | |
$(function(){ | |
$('#cloner-csv-button').click(function () { | |
// var $el =$(this); | |
if(frame) { | |
frame.open(); | |
return; |
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 is_tree($pid) { | |
global $post; | |
if(is_page()&&($post->post_parent==$pid||is_page($pid))) { | |
return true; | |
} else { | |
return false; | |
} | |
}; |
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
// Custom ACF options pages | |
function my_acf_options_page_settings( $settings ) | |
{ | |
$settings['title'] = 'Site Options'; | |
$settings['pages'] = array('Home', 'Highlighted'); | |
return $settings; | |
} | |
add_filter('acf/options_page/settings', 'my_acf_options_page_settings'); |
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
.entry ul { | |
list-style-type: square; | |
} | |
.entry li { | |
padding:6px 0; | |
color: #01518f; | |
} | |
.entry ol { | |
counter-reset:li; | |
margin-left:0; |
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
.entry table{border-collapse:collapse;margin:40px 0;font-family:'Linden Hill';font-size:18px;} | |
.entry th{font-size: 24px; font-weight: normal;padding-bottom: 10px;text-align:left;padding-left:20px;} | |
.entry td{padding:10px 30px;} | |
.entry td:last-child{border-right:none;} | |
.entry tbody { | |
border-top: 1px solid #DFDFDF; | |
border-bottom: 1px solid #DFDFDF; | |
} | |
.entry tbody tr:nth-child(odd) .row-one{background-color:#AEBBCE; color:#fff;} | |
.entry tbody tr:nth-child(odd) .row-two{background-color:#fff;color:#381d7a;} |
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
/* Column Classes | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.one-third, |
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 | |
// Trim a string by words instead of characters | |
$pos=strpos($content, ' ', 200); | |
substr($content,0,$pos ); |
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
.container { | |
&:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} | |
.centered { | |
vertical-align: middle; | |
} |
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 | |
function add_taxonomy_term_as_body_classes( $classes ) { | |
global $post; | |
$terms = wp_get_post_terms($post->ID, '[taxonomy]', array("fields" => "all")); | |
foreach ($terms as $class ) { | |
$classes[] = $class->slug; | |
} | |
return $classes; | |
} |