
    
  
		wp_enqueue_script('textareaAutosize', get_template_directory_uri() . '/includes/textareaAutosize/dist/autosize.min.js', array('jquery'), $the_theme_ver, true);
		wp_enqueue_script('mauer-stills-general-js', get_template_directory_uri() . '/js/general.js', array('jquery'), $the_theme_ver, true);
		if (is_singular() && get_option('thread_comments')) {wp_enqueue_script('comment-reply');}
		wp_enqueue_script('flexibilityJS', get_template_directory_uri() . '/includes/flexibilityJS/flexibility.js', array('jquery'), $the_theme_ver, true);

		//HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries
		wp_enqueue_script('html5shiv', get_template_directory_uri() . '/includes/html5Shiv/html5shiv.min.js', array('jquery'), $the_theme_ver, false);
		wp_script_add_data('html5shiv', 'conditional', 'lt IE 9');
		wp_enqueue_script('respond', get_template_directory_uri() . '/includes/respondJS/respond.min.js', array('jquery'), $the_theme_ver, false);
		wp_script_add_data('respond', 'conditional', 'lt IE 9');

	}

endif;

add_action('wp_enqueue_scripts', 'mauer_stills_enqueue_scripts_and_styles');





if (!function_exists('mauer_stills_should_load_bundled_font')) :

	function mauer_stills_should_load_bundled_font() {
		$should_load = true;
		if (function_exists('get_field')) {
			if (get_field('custom_typography', 'option')) {
				$custom_fonts = mauer_stills_get_custom_fonts_details();
				$should_load = false;
				for ($j=1; $j <= count($custom_fonts) ; $j++) {
					if ($custom_fonts[$j]['source'] == 'bundled') {
						$should_load = true;
						break;
					}
				}
			}
		}
		return $should_load;
	}

endif;





if (!function_exists('mauer_stills_enqueue_admin_scripts_and_styles')) :
	function mauer_stills_enqueue_admin_scripts_and_styles() {
		$the_theme = wp_get_theme(); $the_theme_ver = $the_theme->get('Version');
		wp_enqueue_style('mauer-stills-admin-styles', get_template_directory_uri() . '/css/admin-styles.css', array(), $the_theme_ver);
		wp_enqueue_script('mauer-stills-admin-scripts', get_template_directory_uri() . '/js/adminScripts.js', array('jquery'), $the_theme_ver, true);
		$mauer_stills_admin_scripts_translation = array(
			'message1' => esc_html__('The font scheme will now be preloaded into the fields. It will be applied to the website, when you click the Update button.', 'mauer-stills'),
			'message2' => esc_html__('The color scheme will now be preloaded into the fields. It will be applied to the website, when you click the Update button.', 'mauer-stills'),
			'message3' => esc_html__('of 220–270 recommended', 'mauer-stills'),
			'themeUrl' => get_template_directory_uri(),
		);
		wp_localize_script('mauer-stills-admin-scripts', 'mauerStillsAdminScriptsTranslationObject', $mauer_stills_admin_scripts_translation);

		wp_enqueue_style('mauer-stills-admin-google-fonts', mauer_stills_google_fonts_url(), array(), $the_theme_ver);
		wp_enqueue_style('mauer-stills-admin-hk-grotesk', get_template_directory_uri() . '/fonts/HKGrotesk/stylesheet.css', array(), $the_theme_ver);
	}
endif;

add_action('admin_enqueue_scripts', 'mauer_stills_enqueue_admin_scripts_and_styles');





if (!function_exists('mauer_stills_update_acf_settings')) :
	function mauer_stills_update_acf_settings() {
		acf_update_setting('show_admin', false); // Hide ACF field group menu item.
		acf_update_setting('show_updates', false); // Hide update nag and and eliminate TGMPA update conflict.
	}
endif;
add_action('acf/init', 'mauer_stills_update_acf_settings');





if (!function_exists('mauer_stills_acf_control_special_field_1_appearance')) :
	function mauer_stills_acf_control_special_field_1_appearance($field) {
		if (function_exists('get_field') && get_field('portfolio_layout', 'option') != 'flow_2cols') { $field['wrapper']['class'] = 'hidden';}
		return $field;
	}
endif;

add_filter('acf/load_field/name=smaller_featured_image', 'mauer_stills_acf_control_special_field_1_appearance');





if (!function_exists('mauer_stills_acf_control_special_field_2_appearance')) :
	function mauer_stills_acf_control_special_field_2_appearance($field) {
		if (function_exists('get_field') && get_field('portfolio_layout', 'option') == 'flow_2cols') {$field['wrapper']['class'] = 'hidden';}
		return $field;
	}
endif;

add_filter('acf/load_field/name=additional_fields_special_message', 'mauer_stills_acf_control_special_field_2_appearance');





if (!function_exists('mauer_stills_acf_add_options_page')) :

	function mauer_stills_acf_add_options_page() {
		if(function_exists('acf_add_options_page')) {

			acf_add_options_page(array(
				'menu_title'	=> esc_html__('Theme Options', 'mauer-stills'),
				'menu_slug' 	=> 'mauer-theme-options',
				'redirect'		=> true
			));

			acf_add_options_sub_page(array(
				'menu_title'	=> esc_html__('General', 'mauer-stills'),
				'parent_slug'	=> 'mauer-theme-options',
			));

			acf_add_options_sub_page(array(
				'menu_title'	=> esc_html__('Colors', 'mauer-stills'),
				'parent_slug'	=> 'mauer-theme-options',
			));

			acf_add_options_sub_page(array(
				'menu_title'	=> esc_html__('Fonts', 'mauer-stills'),
				'parent_slug'	=> 'mauer-theme-options',
			));

		}
	}

endif;

add_action('init', 'mauer_stills_acf_add_options_page');





if (!function_exists('mauer_stills_add_image_sizes')) :

	function mauer_stills_add_image_sizes() {
		// Most image sizes are upscaled - for better sharpness, typically by around 30%.
		// When changing these sizes, mind that the 'Load More' button max-width CSS rule is based on how wide an image can get.
		add_image_size('mauer_stills_thumb_1', 780);				// PSWP half-wide thumb
		add_image_size('mauer_stills_thumb_2', 892, 920);		// 2-col masonry portfolio thumbs
		add_image_size('mauer_stills_thumb_3', 624);				// blog post thumb in list and in masonry, page (alternative) cover
		add_image_size('mauer_stills_thumb_4', 586, 586);		// 3-col portfolio thumbs, related projects thumbs
		add_image_size('mauer_stills_thumb_5', 420);				// 4-col masonry portfolio thumbs, related blog posts thumbs
		add_image_size('mauer_stills_thumb_6', 1440, 1440);	// PSWP full-width thumb, post and page covers, Facebook OG Images.
		add_image_size('mauer_stills_thumb_7', 2100, 2100);	// PSWP full-size images

	}

endif;





// Alters the 'big image size' threshold that has appeared in WP 5.3
//dd_filter('big_image_size_threshold', '6000', 9999);





if (!function_exists('mauer_stills_wp_link_pages_parameters')) :

	function mauer_stills_wp_link_pages_parameters() {
		$r = array(
			'before'           => '<div class="mauer-wp-linked-pages-holder"><p>' . esc_html__('Pages:', 'mauer-stills'),
			'after'            => '</p></div>',
			'link_before'      => '',
			'link_after'       => '',
			'next_or_number'   => 'number',
			'separator'        => '&nbsp; ',
			'nextpagelink'     => esc_html__('Next page', 'mauer-stills'),
			'previouspagelink' => esc_html__('Previous page', 'mauer-stills'),
			'pagelink'         => '%',
			'echo'             => 1
		);
		return $r;
	}

endif;

<?xml version="1.0" encoding="UTF-8"?>
<!--generator='jetpack-16.3'-->
<!--Jetpack_Sitemap_Buffer_News_XMLWriter-->
<?xml-stylesheet type="text/xsl" href="//www.martinon.photography/news-sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
 <url>
  <loc>https://www.martinon.photography/</loc>
 </url>
</urlset>
