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
anonymous |
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 | |
/** | |
* Get value from $_GET or defined $haystack. | |
* | |
* @since 1.0.0 | |
* | |
* @param string $needle Name of the searched key. | |
* @param string $haystack Optional. Associative array. If false, $_GET is set to be the $haystack. | |
* @param mixed $default Optional. Value returned if the searched key isn't found. |
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 | |
// Do not include the opening php tag if it is already included in your file. | |
add_filter( 'beans_post_more_link_attributes', 'beans_child_post_more_link_attributes' ); | |
function beans_child_post_more_link_attributes( $attributes ) { | |
$attributes['href'] = esc_url( get_permalink() ); | |
return $attributes; |
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 | |
// Do not include the opening php tag if it is already included in your file. | |
add_action( 'beans_uikit_enqueue_scripts', 'beans_child_enqueue_uikit_components' ); | |
function beans_child_enqueue_uikit_components() { | |
// Components advised for the slider to work smoothly depending on your needs. | |
// Uncomment slideshow-fx if fancy animations are used. | |
beans_uikit_enqueue_components( array( 'animation', 'flex' ) ); |
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 | |
// Do not include the opening php tag if it is already included in your file. | |
add_action( 'wp', 'beans_child_setup_document' ); | |
function beans_child_setup_document() { | |
// Only apply to non-singular layouts. | |
if ( !is_singular() ) { |
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 ($) { | |
"use strict"; | |
function afterTransition( element, callback ) { | |
var transitions = [0]; | |
// Check if the transition has a duration. | |
element.each( function() { |
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 ($) { | |
"use strict"; | |
function isSceenVisible( element ) { | |
var $el = $( element ); | |
// Stop here if the element isn't visible. | |
if ( !$el.is( ':visible' ) || '0' == $el.css( 'opacity' ) ) |
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 | |
// Do not include the opening php tag if it is already included in your file. | |
add_action( 'beans_uikit_enqueue_scripts', 'beans_child_uikit_themes', 4 ); | |
function beans_child_uikit_themes() { | |
// Remove default style for performance purposes. | |
beans_uikit_dequeue_theme( 'default' ); |
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 | |
// Do not include the opening php tag if it is already included in your file. | |
// Display posts in a responsive grid. | |
add_action( 'wp', 'beans_child_posts_grid' ); | |
function beans_child_posts_grid() { | |
// Stop here if we are on a singular view. | |
if ( is_singular() ) |
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 | |
// Do not include the opening php tag if it is already included in your file. | |
add_action( 'beans_uikit_enqueue_scripts', 'beans_child_uikit_enqueue_scripts' ); | |
function beans_child_uikit_enqueue_scripts() { | |
beans_uikit_enqueue_components( array( 'sticky' ), 'add-ons' ); | |
} |
NewerOlder