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
    
  
  
    
  | //scroll arrow hides on scroll | |
| function hideOnScroll() { | |
| var scroll_el = document.getElementById('scroll'); | |
| if ( document.getElementById('app').scrollTop > 20 ) { | |
| scroll_el.style.display = "none"; | |
| } else { | |
| scroll_el.style.display = "block"; | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | ul, ol { | |
| margin: 0 0 32px 0; /* same as for P */ | |
| padding: 0 0 0 1.2em; | |
| } | |
| ul { | |
| list-style: none; | |
| } | |
| ol { | 
  
    
      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 | |
| /* | |
| Plugin Name: Enable/Disable plugins when doing local dev | |
| Plugin URL: https://gist.github.com/pbiron/52bb63042cf220256ece89bc07fb57b0 | |
| Description: If the WP_LOCAL_DEV constant is true, enables/disables plugins that you specify | |
| Version: 0.1 | |
| License: GPL version 2 or any later version | |
| Author: Paul V. Biron/Sparrow Hawk Computing | |
| Author URI: https://sparrowhawkcomputing.com | |
| */ | 
  
    
      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 | |
| $thumbnail_id = get_post_thumbnail_id(); | |
| $thumbnail_url = get_the_post_thumbnail_url( get_the_ID(), $thumb_size ); | |
| $html .= '<div '.qode_get_inline_style($overlay_styles).' class="portfolio_shader"></div>'; | |
| $html .= '<div class="image_holder">'; | |
| $html .= '<span class="image">'; | |
| if ((preg_match('/MSIE\s(?P<v>\d+)/i', @$_SERVER['HTTP_USER_AGENT'], $A) && $A['v'] <= 11) || preg_match('/Trident/i', @$_SERVER['HTTP_USER_AGENT'], $B)) { | |
| $html .= '<svg xmlns="http://www.w3.org/2000/svg" id="svgroot-' . $thumbnail_id . '" viewBox="0 0 476 401" width="476" height="401" style="background-image:url(' . $thumbnail_url . ')"> | 
  
    
      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
    
  
  
    
  | @ini_set( 'upload_max_filesize' , '1024M' ); | |
| @ini_set( 'post_max_size', '1024M'); | |
| @ini_set( 'memory_limit', '256M' ); | |
| @ini_set( 'max_execution_time', '300' ); | |
| @ini_set( 'max_input_time', '300' ); | 
  
    
      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_value upload_max_filesize 1024M | |
| php_value post_max_size 1024M | |
| php_value memory_limit 256M | |
| php_value max_execution_time 300 | |
| php_value max_input_time 300 | 
  
    
      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 | |
| add_filter( 'mce_css', 'lm_fresh_editor_style' ); | |
| /** | |
| * Adds a parameter of the last modified time to all editor stylesheets. | |
| * | |
| * @wp-hook mce_css | |
| * @param string $css Comma separated stylesheet URIs. | |
| * @return string $css Comma separated stylesheet URIs with version timestamp. | |
| */ | 
  
    
      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 | |
| add_filter('post_gallery', 'lm_bootstrap_gallery', 10, 3); | |
| // add valid bootstrap classes | |
| function lm_bootstrap_gallery($output = '' , $attr, $instance ) { | |
| $post = get_post(); | |
| $atts = shortcode_atts( | |
| array( | |
| 'order' => 'ASC', | |
| 'orderby' => 'menu_order ID', | 
  
    
      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 | |
| /** | |
| * Registers an editor stylesheet for the theme. | |
| */ | |
| function lm_theme_add_editor_styles() { | |
| add_editor_style( get_stylesheet_directory_uri().'/editor-style.css?ver='.filemtime(get_stylesheet_directory().'/editor-style.css')); //by default editor-style.css | |
| } | |
| add_action( 'admin_init', 'lm_theme_add_editor_styles' ); | |