';
wp_list_pages( array( 'depth' => 3, 'sort_column' => 'post_name', 'title_li' => '' ) );
echo '';
}
}
if ( !function_exists( 'azuma_footer_menu_fallback' ) ) {
function azuma_footer_menu_fallback() {
if ( function_exists( 'the_privacy_policy_link' ) ) {
echo '
';
the_privacy_policy_link( '', '' );
echo '
';
}
}
}
if ( !function_exists( 'azuma_custom_excerpt_length' ) ) {
function azuma_custom_excerpt_length( $length ) {
if ( is_admin() ) {
return $length;
} else {
return 20;
}
}
}
add_filter( 'excerpt_length', 'azuma_custom_excerpt_length', 999 );
if ( !function_exists( 'azuma_excerpt_more' ) ) {
function azuma_excerpt_more( $more ) {
return '…';
}
}
add_filter( 'excerpt_more', 'azuma_excerpt_more' );
if ( !function_exists( 'azuma_archive_title_prefix' ) ) {
function azuma_archive_title_prefix( $title ) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
} elseif ( is_author() ) {
$title = '' . get_avatar( get_the_author_meta( 'ID' ), '80' ) . esc_html( get_the_author() ) . '' ;
} elseif ( is_tax( 'download_category' ) ) {
$title = single_cat_title( '', false );
} elseif ( is_tax( 'download_tag' ) ) {
$title = single_tag_title( '', false );
} elseif ( is_post_type_archive() ) {
$title = post_type_archive_title( '', false );
}
return $title;
}
}
add_filter( 'get_the_archive_title', 'azuma_archive_title_prefix' );
if ( !function_exists( 'azuma_header_menu' ) ) {
function azuma_header_menu() {
?>
'primary',
'menu_id' => 'primary-menu',
'fallback_cb' => 'azuma_primary_menu_fallback',
)
); ?>
' . esc_html( wp_get_current_user()->display_name ) . '';
woocommerce_account_navigation();
} else {
wc_get_template( 'myaccount/form-login.php' );
} ?>
did_permalink ) {
$azuma_current_page_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
} else {
$azuma_current_page_url = home_url( add_query_arg( array(), $wp->request ) );
}
if ( is_404( $azuma_current_page_url ) ) {
$azuma_current_page_url = home_url( '/' );
}
return esc_url( $azuma_current_page_url );
}
}
if ( !function_exists( 'azuma_header_search' ) ) {
function azuma_header_search() {
if ( !get_theme_mod( 'header_search_off' ) ) {
?>
yith_wcwl_count_all_products()
) );
}
}
}
add_action( 'wp_ajax_yith_wcwl_update_wishlist_count', 'azuma_update_wishlist_count' );
add_action( 'wp_ajax_nopriv_yith_wcwl_update_wishlist_count', 'azuma_update_wishlist_count' );
/**
* Shopping cart in header. Priority is WooCommerce, then EDD
*/
if ( !function_exists( 'azuma_header_cart' ) ) {
function azuma_header_cart() {
if ( class_exists( 'WooCommerce' ) ) {
$cart_items = WC()->cart->get_cart_contents_count();
if ( $cart_items > 0 ) {
$cart_class = ' items';
} else {
$cart_class = '';
} ?>
cart->get_cart_contents_count();
if ( $cart_items > 0 ) {
$cart_class = ' items';
} else {
$cart_class = '';
}
ob_start();
?>
';
the_post_thumbnail( 'woocommerce_thumbnail' );
woocommerce_template_single_title();
woocommerce_template_single_price();
if ( in_array( 'product-type-variable', get_post_class() ) ) {
echo '' . esc_html__( 'options', 'azuma' ) . '
';
}
woocommerce_template_single_add_to_cart();
echo '';
}
}
}
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
add_action( 'woocommerce_before_main_content', 'azuma_theme_wrapper_start', 10);
add_action( 'woocommerce_after_main_content', 'azuma_theme_wrapper_end', 10);
add_action( 'woocommerce_before_shop_loop', 'azuma_shop_filter_section', 15);
add_action( 'woocommerce_before_shop_loop_item', 'azuma_before_shop_loop_item', 0);
add_action( 'woocommerce_before_subcategory', 'azuma_before_shop_loop_item', 0);
add_action( 'woocommerce_shop_loop_item_title', 'azuma_before_shop_loop_item_title', 0);
add_action( 'woocommerce_after_shop_loop_item_title', 'azuma_after_shop_loop_item_title', 100);
add_action( 'woocommerce_shop_loop_subcategory_title', 'azuma_before_shop_loop_cat_title', 0);
add_action( 'woocommerce_shop_loop_subcategory_title', 'azuma_after_shop_loop_item_title', 100);
add_action( 'woocommerce_after_shop_loop_item', 'azuma_before_shop_loop_addtocart', 6);
add_action( 'woocommerce_after_shop_loop_item', 'azuma_after_shop_loop_addtocart', 100);
add_action( 'woocommerce_after_subcategory', 'azuma_after_subcategory', 100);
if ( !function_exists( 'azuma_before_shop_loop_item' ) ) {
function azuma_before_shop_loop_item() {
echo '';
}
}
if ( !function_exists( 'azuma_before_shop_loop_item_title' ) ) {
function azuma_before_shop_loop_item_title() {
$product_excerpt = get_the_excerpt();
if ( $product_excerpt ) {
echo '
' . $product_excerpt . '
';
}
echo '
';
}
}
if ( !function_exists( 'azuma_before_shop_loop_cat_title' ) ) {
function azuma_before_shop_loop_cat_title() {
echo '
';
}
}
if ( !function_exists( 'azuma_after_shop_loop_item_title' ) ) {
function azuma_after_shop_loop_item_title() {
echo '
';
}
}
if ( !function_exists( 'azuma_before_shop_loop_addtocart' ) ) {
function azuma_before_shop_loop_addtocart() {
echo '
';
}
}
if ( !function_exists( 'azuma_after_shop_loop_addtocart' ) ) {
function azuma_after_shop_loop_addtocart() {
echo '
';
}
}
if ( !function_exists( 'azuma_after_subcategory' ) ) {
function azuma_after_subcategory() {
echo '
';
}
}
if ( !function_exists( 'azuma_shop_filter_section' ) ) {
function azuma_shop_filter_section() {
if ( !is_product() ) {
get_sidebar( 'shop-filters' );
}
}
}
if ( !function_exists( 'azuma_theme_wrapper_start' ) ) {
function azuma_theme_wrapper_start() {
if ( !is_active_sidebar( 'azuma-sidebar-shop' ) || is_product() ) {
$page_full_width = ' full-width';
} else {
$page_full_width = '';
}
echo '
';
}
}
if ( !function_exists( 'azuma_theme_wrapper_end' ) ) {
function azuma_theme_wrapper_end() {
echo '
';
if ( !is_product() ) {
get_sidebar( 'shop' );
}
}
}
if ( !function_exists( 'azuma_change_prev_next' ) ) {
function azuma_change_prev_next( $args ) {
$args['prev_text'] = '';
$args['next_text'] = '';
return $args;
}
}
add_filter( 'woocommerce_pagination_args', 'azuma_change_prev_next' );
if ( !function_exists( 'azuma_woocommerce_placeholder_img_src' ) ) {
function azuma_woocommerce_placeholder_img_src() {
return get_template_directory_uri().'/images/woocommerce-placeholder.png';
}
}
if ( !get_option( 'woocommerce_placeholder_image', 0 ) ) {
add_filter('woocommerce_placeholder_img_src', 'azuma_woocommerce_placeholder_img_src');
}
if ( !function_exists( 'azuma_upsell_products_args' ) ) {
function azuma_upsell_products_args( $args ) {
$col_per_page = esc_attr( get_option( 'woocommerce_catalog_columns', 4 ) );
$args['posts_per_page'] = $col_per_page;
$args['columns'] = $col_per_page;
return $args;
}
}
add_filter( 'woocommerce_upsell_display_args', 'azuma_upsell_products_args' );
if ( !function_exists( 'azuma_related_products_args' ) ) {
function azuma_related_products_args( $args ) {
$col_per_page = esc_attr( get_option( 'woocommerce_catalog_columns', 4 ) );
$args['posts_per_page'] = $col_per_page;
$args['columns'] = $col_per_page;
return $args;
}
}
add_filter( 'woocommerce_output_related_products_args', 'azuma_related_products_args' );
if ( !function_exists( 'azuma_woocommerce_gallery_thumbnail_size' ) ) {
function azuma_woocommerce_gallery_thumbnail_size( $size ) {
return 'woocommerce_thumbnail';
}
}
add_filter( 'woocommerce_gallery_thumbnail_size', 'azuma_woocommerce_gallery_thumbnail_size' );
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
add_action( 'woocommerce_before_shop_loop_item_title', 'azuma_before_loop_sale_flash', 7);
add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 8 );
add_action( 'woocommerce_before_shop_loop_item_title', 'azuma_after_loop_sale_flash', 9);
add_action( 'woocommerce_before_single_product_summary', 'azuma_before_loop_sale_flash', 9);
add_action( 'woocommerce_before_single_product_summary', 'azuma_after_loop_sale_flash', 11);
if ( !function_exists('azuma_before_loop_sale_flash') ) {
function azuma_before_loop_sale_flash() {
global $product;
if ( $product->is_on_sale() ) {
echo '';
}
}
}
if ( !function_exists('azuma_after_loop_sale_flash') ) {
function azuma_after_loop_sale_flash() {
global $product;
if ( $product->is_on_sale() ) {
if ( ! $product->is_type( 'variable' ) && $product->get_regular_price() && $product->get_sale_price() ) {
$discount_price = $product->get_regular_price() - $product->get_sale_price();
if ( $discount_price > 0 ) {
$max_percentage = ( $discount_price / $product->get_regular_price() ) * 100;
} else {
$max_percentage = 0;
}
} else {
$max_percentage = 0;
foreach ( $product->get_children() as $child_id ) {
$variation = wc_get_product( $child_id );
$price = $variation->get_regular_price();
$sale = $variation->get_sale_price();
$percentage = '';
if ( $price != 0 && ! empty( $sale ) ) {
$percentage = ( $price - $sale ) / $price * 100;
}
if ( $percentage > $max_percentage ) {
$max_percentage = $percentage;
}
}
}
echo '
-' . esc_attr( round($max_percentage) ) . '%';
echo '
';
}
}
}
/**
* Available homepage WooCommerce sections
*/
if ( !function_exists( 'azuma_woo_home_tabs' ) ) {
function azuma_woo_home_tabs() {
$tabs = array();
$tabs['services'] = array(
'id' => 'services',
'label' => esc_html__( 'Featured Services', 'azuma' ),
'callback' => 'azuma_services',
'shortcode'=> 'services',
);
$tabs['pagecontent'] = array(
'id' => 'pagecontent',
'label' => esc_html__( 'Page Content', 'azuma' ),
'callback' => 'azuma_pagecontent',
'shortcode'=> 'page_content',
);
$tabs['extrapagecontent'] = array(
'id' => 'extrapagecontent',
'label' => esc_html__( 'Extra Page Content', 'azuma' ),
'callback' => 'azuma_extrapagecontent',
'shortcode'=> 'extra_page_content',
);
if ( class_exists( 'WooCommerce' ) ) {
$tabs['categories'] = array(
'id' => 'categories',
'label' => esc_html__( 'Product Categories', 'azuma' ),
'callback' => 'azuma_categories',
'shortcode' => 'product_categories',
);
$tabs['recent'] = array(
'id' => 'recent',
'label' => esc_html__( 'New products', 'azuma' ),
'callback' => 'azuma_recent',
'shortcode' => 'recent_products',
);
$tabs['featured'] = array(
'id' => 'featured',
'label' => esc_html__( 'Featured products', 'azuma' ),
'callback' => 'azuma_featured',
'shortcode' => 'featured_products',
);
$tabs['sale'] = array(
'id' => 'sale',
'label' => esc_html__( 'On-sale products', 'azuma' ),
'callback' => 'azuma_sale',
'shortcode' => 'sale_products',
);
$tabs['best'] = array(
'id' => 'best',
'label' => esc_html__( 'Top sellers', 'azuma' ),
'callback' => 'azuma_best',
'shortcode' => 'best_selling_products',
);
$tabs['rated'] = array(
'id' => 'rated',
'label' => esc_html__( 'Top rated products', 'azuma' ),
'callback' => 'azuma_rated',
'shortcode' => 'top_rated_products',
);
}
return apply_filters( 'azuma_woo_home_tabs', $tabs );
}
}
/**
* Output the homepage sections without WooCommerce
*/
if ( !function_exists('azuma_home_nonwoo_section') ) {
function azuma_home_nonwoo_section() {
$woo_home_tabs = get_theme_mod( 'woo_home' );
if ( !empty( $woo_home_tabs['tabs'] ) ) {
echo '';
$woo_home = get_theme_mod( 'woo_home', true );
$woo_tabs = azuma_woo_home_tabs();
?>
';
if ( $woo_tabs[$tab_id]['shortcode'] == 'services' ) {
azuma_homepage_features();
} elseif ( $woo_tabs[$tab_id]['shortcode'] == 'page_content' ) {
azuma_homepage_content();
} elseif ( $woo_tabs[$tab_id]['shortcode'] == 'extra_page_content' ) {
azuma_extra_page_content();
}
echo '
';
}
}
}
echo '';
}
}
}
/**
* Output the homepage sections with WooCommerce
*/
if ( !function_exists('azuma_home_woo_section') ) {
function azuma_home_woo_section() {
$woo_home_tabs = get_theme_mod( 'woo_home' );
if ( !empty( $woo_home_tabs['tabs'] ) ) {
echo '';
$woo_home = get_theme_mod( 'woo_home', true );
$woo_tabs = azuma_woo_home_tabs();
$woo_column_option = esc_attr( get_option( 'woocommerce_catalog_columns', 4 ) );
?>
';
if ( $woo_tabs[$tab_id]['shortcode'] == 'services' ) {
azuma_homepage_features();
} elseif ( $woo_tabs[$tab_id]['shortcode'] == 'page_content' ) {
azuma_homepage_content();
} elseif ( $woo_tabs[$tab_id]['shortcode'] == 'extra_page_content' ) {
azuma_extra_page_content();
} elseif ( $woo_tabs[$tab_id]['shortcode'] == 'product_categories' ) {
echo '
' . $woo_tabs[$tab_id]['label'] . '
';
echo do_shortcode('[product_categories number="0" parent="0" columns="' . $woo_column_option . '"]');
} else {
echo '' . $woo_tabs[$tab_id]['label'] . '
';
echo do_shortcode('[' . $tab_shortcode . ' limit="' . $woo_column_option . '" columns="' . $woo_column_option . '"]');
}
echo '';
}
}
echo '';
}
}
}
if ( !function_exists('azuma_extra_page_content') ) {
function azuma_extra_page_content() {
$extra_page_id = get_theme_mod( 'homepage_extra_page' );
if ( $extra_page_id ) { ?>
'3',
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => false
);
$recent_posts = wp_get_recent_posts( $azuma_recent_args );
$featured_post_number = 1;
foreach( $recent_posts as $recent ){
$featured_page_icon = get_theme_mod( 'featured_page_icon'.$featured_post_number, azuma_featured_icon_defaults($featured_post_number) );
?>
'Arial, Helvetica, sans-serif',
'Impact, Charcoal, sans-serif' => 'Impact, Charcoal, sans-serif',
'"Lucida Sans Unicode", "Lucida Grande", sans-serif' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif',
'Tahoma, Geneva, sans-serif' => 'Tahoma, Geneva, sans-serif',
'"Trebuchet MS", Helvetica, sans-serif' => '"Trebuchet MS", Helvetica, sans-serif',
'Verdana, Geneva, sans-serif' => 'Verdana, Geneva, sans-serif',
'Georgia, serif' => 'Georgia, serif',
'"Palatino Linotype", "Book Antiqua", Palatino, serif' => '"Palatino Linotype", "Book Antiqua", Palatino, serif',
'"Times New Roman", Times, serif' => '"Times New Roman", Times, serif',
'' => '---------------',
'Alegreya Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i' => 'Alegreya Sans',
'Arimo:400,400i,700,700i' => 'Arimo',
'Arvo:400,400i,700,700i' => 'Arvo',
'Asap:400,400i,700,700i' => 'Asap',
'Bitter:400,400i,700' => 'Bitter',
'Bree Serif:400' => 'Bree Serif',
'Cabin:400,400i,500,500i,600,600i,700,700i' => 'Cabin',
'Catamaran:300,400,600,700,800' => 'Catamaran',
'Crimson Text:400,400i,600,600i,700,700i' => 'Crimson Text',
'Cuprum:400,400i,700,700i' => 'Cuprum', 'Dosis:200,300,400,500,600,700,800' => 'Dosis',
'Droid Sans:400,700' => 'Droid Sans',
'Droid Serif:400,400i,700,700i' => 'Droid Serif',
'Exo:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i' => 'Exo',
'Exo 2:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i' => 'Exo 2',
'Hind:300,400,500,600,700' => 'Hind',
'Josefin Sans:100,100i,300,300i,400,400i,600,600i,700,700i' => 'Josefin Sans',
'Lato:100,100i,300,300i,400,400i,700,700i,900,900i' => 'Lato',
'Libre Franklin:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i' => 'Libre Franklin',
'Maven Pro:400,500,700,900' => 'Maven Pro',
'Merriweather:300,300i,400,400i,700,700i,900,900i' => 'Merriweather',
'Merriweather Sans:300,300i,400,400i,700,700i,800,800i' => 'Merriweather Sans',
'Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i' => 'Montserrat',
'Muli:300,300i,400,400i' => 'Muli',
'Noto Sans:400,400i,700,700i' => 'Noto Sans',
'Noto Serif:400,400i,700,700i' => 'Noto Serif',
'Nunito:300,400,700' => 'Nunito',
'Open Sans:300,300i,400,400i,600,600i,700,700i,800,800i' => 'Open Sans',
'Orbitron:400,500,700,900' => 'Orbitron',
'Oswald:300,400,700' => 'Oswald',
'Oxygen:300,400,700' => 'Oxygen',
'Playfair Display:400,400i,700,700i,900,900i' => 'Playfair Display',
'Poppins:300,400,500,600,700' => 'Poppins',
'PT Sans:400,400i,700,700i' => 'PT Sans',
'PT Serif:400,400i,700,700i' => 'PT Serif',
'Rajdhani:300,400,500,600,700' => 'Rajdhani',
'Raleway:100,200,300,400,500,600,700,800,900' => 'Raleway',
'Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i' => 'Roboto',
'Roboto Slab:100,300,400,700' => 'Roboto Slab',
'Source Sans Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i' => 'Source Sans Pro',
'Titillium Web:200,200i,300,300i,400,400i,600,600i,700,700i,900' => 'Titillium Web',
'Ubuntu:300,300i,400,400i,500,500i,700,700i' => 'Ubuntu',
);
}
}
if ( !function_exists( 'azuma_edd_supports' ) ) {
function azuma_edd_supports( $supports ) {
$supports[] = 'comments';
return $supports;
}
}
add_filter('edd_download_supports', 'azuma_edd_supports');
/**
* Remove the purchase link at the bottom of the single download page.
*/
remove_action( 'edd_after_download_content', 'edd_append_purchase_link' );
/**
* Remove EDD reviews from directly after the content.
*/
if ( class_exists( 'EDD_Reviews' ) ) {
remove_filter( 'the_content', array( edd_reviews(), 'load_frontend' ) );
}
if ( !function_exists( 'azuma_edd_thumbnail' ) ) {
function azuma_edd_thumbnail( $download_id ) {
if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( $download_id ) ) : ?>
' . esc_html__( 'Free', 'azuma' ) . '';
$buy_button = '' . edd_get_purchase_link( array( 'download_id' => $download_id, 'price' => '0' ) ) . '
';
} elseif ( edd_has_variable_prices( $download_id ) ) {
$price = '' . esc_html__( 'From', 'azuma' ) . ' ' . edd_currency_filter( edd_format_amount( edd_get_lowest_price_option( $download_id ) ) ) . '';
$buy_button = '';
} else {
$price = edd_price( $download_id, false );
$buy_button = '' . edd_get_purchase_link( array( 'download_id' => $download_id, 'price' => '0' ) ) . '
';
}
if ( $attr == 'price' ) {
echo $price;
do_action( 'edd_download_after_price' );
} elseif ( $attr == 'buy-button' ) {
echo $buy_button;
} else {
echo $price;
do_action( 'edd_download_after_price' );
echo $buy_button;
}
}
}
if ( !function_exists( 'azuma_edd_single_purchase_form' ) ) {
function azuma_edd_single_purchase_form( $download_id ) {
if ( edd_is_free_download( $download_id ) ) {
$price = '' . esc_html__( 'Free', 'azuma' ) . '';
} elseif ( edd_has_variable_prices( $download_id ) ) {
$price = '' . esc_html__( 'From', 'azuma' ) . ' ' . edd_currency_filter( edd_format_amount( edd_get_lowest_price_option( $download_id ) ) ) . '';
} else {
$price = edd_price( $download_id, false );
}
echo $price;
if ( !get_post_meta( $download_id, '_edd_hide_purchase_link', true ) ) {
?>
$download_id, 'price' => '0' ) ); ?>
array(
'label' => esc_html__( 'Azuma Theme', 'azuma' ),
'hex' => '#ff7800'
)
);
$colors = array_merge( $azuma_colors, $colors );
return $colors;
}
}
add_filter( 'edd_button_colors', 'azuma_edd_button_colors' );
if ( !function_exists( 'azuma_edd_registered_settings' ) ) {
function azuma_edd_registered_settings( $edd_settings ) {
$azuma_section_query['autofocus[section]'] = 'edd_section';
$azuma_section_link = add_query_arg( $azuma_section_query, admin_url( 'customize.php' ) );
$azuma_edd_settings = array(
'azuma' => array(
'main' => array(
'azuma_help' => array(
'id' => 'azuma_help',
'name' => esc_html__( 'Azuma Theme', 'azuma' ),
'desc' => sprintf(
wp_kses(
/* translators: %s: link to the customizer */
__( 'More options can be found at Appearance > Customize', 'azuma' ),
array(
'a' => array(
'href' => array(),
),
)
),
$azuma_section_link
),
'type' => 'descriptive_text',
),
),
)
);
$edd_settings = array_merge( $edd_settings, $azuma_edd_settings );
return $edd_settings;
}
}
add_filter( 'edd_registered_settings', 'azuma_edd_registered_settings' );
if ( !function_exists( 'azuma_edd_settings_tab' ) ) {
function azuma_edd_settings_tab( $tabs ) {
$tabs['azuma'] = esc_html__( 'Azuma Theme', 'azuma' );
return $tabs;
}
}
add_filter( 'edd_settings_tabs', 'azuma_edd_settings_tab' );
if ( !function_exists( 'azuma_edd_settings_section' ) ) {
function azuma_edd_settings_section( $sections ) {
$azuma_section = array(
'azuma' => array(
'main' => ''
)
);
$sections = array_merge( $sections, $azuma_section );
return $sections;
}
}
add_filter( 'edd_settings_sections', 'azuma_edd_settings_section' );
/**
* Exclude images with 'no-lazy-load' CSS class from Jetpack lazy load
*/
if(!function_exists( 'azuma_exclude_class_from_lazy_load' )){
function azuma_exclude_class_from_lazy_load( $classes ) {
$classes[] = 'no-lazy-load';
return $classes;
}
}
add_filter( 'jetpack_lazy_images_blacklisted_classes', 'azuma_exclude_class_from_lazy_load', 999, 1 );