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
@media (prefers-reduced-motion: reduce) { | |
* { | |
animation: none !important; | |
transition: none !important; | |
} | |
} |
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
pipelines: | |
branches: | |
master: | |
- step: | |
script: | |
- git push [email protected]:production/YOUR_INSTALL_NAME.git master | |
- echo "Completed" | |
staging: | |
- step: | |
script: |
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 kem_theme_admin_notice(){ | |
global $pagenow; | |
if ( $pagenow == 'themes.php' ) { | |
echo '<div class="notice notice-warning"> | |
<p><strong>Before updating the "Spacing" theme, please note the following files have been modified:</strong></p> | |
<ul> | |
<li>-footer.php</li> | |
<li>-header.php (modified by the Wordpress SEO plugin)</li> | |
</ul> | |
</div>'; |
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
<a href="<?php echo get_permalink($instance['button_page']); ?>" class="btn btn-default">See More <i class="fa fa-angle-right"></i></a> |
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
//Set the random gallery we just selected to the $images variable. | |
$images = get_field('gallery_images', $other_page); | |
//Begin our ACF loop | |
if( $images ): | |
//We want to only show 6 images, so lets begin a count | |
$photocount = 0; ?> | |
<ul class="galleries"> |
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
$other_page = $galleries[array_rand($galleries)]; |
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
//Create a new WP_query to get all the posts from the 'gallery' custom post type | |
$args = array( 'post_type' => 'gallery', 'posts_per_page' => -1 ); | |
$posts_query = new WP_Query($args); | |
// Setup the variable to hold the array for ALL IDs of all galleries | |
$galleries = array(); | |
// Using our new WP_query, loop through galleries, and add each ID to the $galleries array | |
while ($posts_query->have_posts()) { |