Skip to content

Instantly share code, notes, and snippets.

View ryanlabelle's full-sized avatar

Ryan Labelle ryanlabelle

View GitHub Profile
$GLOBALS['themo_extra_adult_text'] = true;
$GLOBALS['themo_extra_child_text'] = true;
$GLOBALS['themo_extra_pet_text'] = true;
$GLOBALS['themo_extra_cleaning_text'] = true;
function themo_mphb_translate_service_callback( $service ) {
// Maybe modify $example in some way.
if(isset($service) && $service->getTitle() == 'Extra Adult' && $GLOBALS['themo_extra_adult_text'] ) {
echo '<li class="themo_rate_notice">Rate set per night based on double occupancy (2 guests). Check-in any additional adults here. 5 guests total is the maximum. </li>';
@ryanlabelle
ryanlabelle / vendor_footer.js
Created February 23, 2019 07:15
vendor_footer.js without Retina.js
li.menu-item-language img
{border:1px solid #e7e7e7;
}
@media screen and (min-width: 750px) {
li.menu-item-language,
li.menu-item-language a
{margin:6px 0 0 0 !important; padding:0 2px 18px 0 !important;
}
li.menu-item-language-current a
/* Add Image Stretch Option Control to the Image Gallery Widget */
add_action( 'elementor/element/before_section_end', function( $element, $section_id, $args ) {
/** @var \Elementor\Element_Base $element */
if ( 'image-gallery' === $element->get_name() && 'section_gallery' === $section_id ) {
$element->add_control(
'image_stretch',
[
'label' => __( 'Image Stretch', 'elementor' ),
'type' => \Elementor\Controls_Manager::SELECT,
/*
Theme Name: Moorewilson Child Theme
Theme URI: http://moorewilson.ca
Description: Child theme for Moore Wilson
Author: Honeycomb
Author URI: http://honeycombweb.com
Template: moorewilson
Version: 1.0
*/
@ryanlabelle
ryanlabelle / shortcodes.php
Created March 3, 2015 18:27
Temp fix for booked plugin (line 47)
$atts = shortcode_atts(
array(
'size' => 'large',
'calendar' => false,
'year' => false,
'month' => false,
'switcher' => false,
'post_id' => false
), $atts );
@ryanlabelle
ryanlabelle / .htaccess
Created January 16, 2015 23:42
.htaccess file example for WordPress install. Helps setup compression and caching. Tested on Debian "wheezy" running Apache
# Turn off eTags
Header unset ETag
FileETag None
# BEGIN COMPRESSION
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl|woff)$
mod_gzip_item_include handler ^cgi-script$