View disable-css-animation
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
.animated{ | |
/*CSS transitions*/ | |
-o-transition-property: none !important; | |
-moz-transition-property: none !important; | |
-ms-transition-property: none !important; | |
-webkit-transition-property: none !important; | |
transition-property: none !important; | |
/*CSS transforms*/ | |
-o-transform: none !important; | |
-moz-transform: none !important; |
View Cross Browser Select Box
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
select { | |
padding: 10px; | |
border: 1px solid #e7e7e7; | |
border-radius: 0; | |
background: #fff url("../images/select-arrow.png") no-repeat 96% center; | |
/* for chrome & safari */ | |
-webkit-appearance:none; | |
/* for firefox */ |
View only-safari-browser
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 ( navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1 ){ | |
// Yep, it's Safari =) | |
$('body').addClass('safari'); | |
} |
View load-translation-from-child.php
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 ( !function_exists( 'inspiry_load_translation_from_child' ) ) { | |
/** | |
* Load translation files from child theme | |
*/ | |
function inspiry_load_translation_from_child() { | |
load_child_theme_textdomain ( 'framework', get_stylesheet_directory () . '/languages' ); | |
} | |
add_action ( 'after_setup_theme', 'inspiry_load_translation_from_child' ); | |
} |
View initialize-defaults.php
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 ( ! function_exists( 'inspiry_initialize_defaults' ) ) : | |
/** | |
* Helper function to initialize default values for settings as customizer api do not do so. | |
* | |
* @param WP_Customize_Manager $wp_customize | |
* @param $inspiry_settings_ids | |
*/ | |
function inspiry_initialize_defaults( WP_Customize_Manager $wp_customize, $inspiry_settings_ids ) { | |
if ( is_array( $inspiry_settings_ids ) && ! empty( $inspiry_settings_ids ) ) { |
View single-post-settings.php
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 ( ! function_exists( 'inspiry_single_post_customizer' ) ) : | |
function inspiry_single_post_customizer( WP_Customize_Manager $wp_customize ) { | |
/** | |
* Single Post Section | |
*/ | |
$wp_customize->add_section( 'inspiry_single_post_options', array ( | |
'title' => __( 'Single Post', 'inspiry' ), | |
'priority' => 123, |
View single-post-defaults.php
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 ( ! function_exists( 'inspiry_single_post_defaults' ) ) : | |
/** | |
* Set default values for single post settings | |
* | |
* @param WP_Customize_Manager $wp_customize | |
*/ | |
function inspiry_single_post_defaults( WP_Customize_Manager $wp_customize ) { | |
$single_post_settings_ids = array( | |
'inspiry_post_layout', |
View initialize-defaults-option.php
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 ( ! function_exists( 'inspiry_initialize_defaults' ) ) : | |
/** | |
* Helper function to initialize default values for settings as customizer api do not do so by default. | |
* | |
* @param WP_Customize_Manager $wp_customize | |
* @param $inspiry_settings_ids | |
*/ | |
function inspiry_initialize_defaults( WP_Customize_Manager $wp_customize, $inspiry_settings_ids ) { | |
if ( is_array( $inspiry_settings_ids ) && ! empty( $inspiry_settings_ids ) ) { |
View get-term-depth.php
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 ( ! function_exists( 'inspiry_get_term_depth' ) ) : | |
/** | |
* Returns an integer value that tells the term depth in it's hierarchy | |
* | |
* @param $term_id | |
* @param $term_taxonomy | |
* @return int | |
*/ | |
function inspiry_get_term_depth( $term_id, $term_taxonomy ) { |
OlderNewer