add_filter( 'vamtam_purchase_code_import_override', function() { return true; } );
/**
* Theme functions. Initializes the Vamtam Framework.
*
* @package vamtam/salute
*/
define( 'VAMTAM_ENVATO_THEME_ID', '7322125' );
require_once get_template_directory() . '/vamtam/classes/framework.php';
new VamtamFramework( array(
'name' => 'salute',
'slug' => 'salute',
) );
// only for one page home demos
function vamtam_onepage_menu_hrefs( $atts, $item, $args ) {
if ( 'custom' === $item->type && 0 === strpos( $atts['href'], '/#' ) ) {
$atts['href'] = $GLOBALS['vamtam_inner_path'] . $atts['href'];
}
return $atts;
}
if ( ( $path = parse_url( get_home_url(), PHP_URL_PATH ) ) !== null ) {
$GLOBALS['vamtam_inner_path'] = untrailingslashit( $path );
add_filter( 'nav_menu_link_attributes', 'vamtam_onepage_menu_hrefs', 10, 3 );
}
remove_action( 'admin_head', 'jordy_meow_flattr', 1 );
require_once VAMTAM_DIR . 'customizer/setup.php';
require_once VAMTAM_DIR . 'customizer/preview.php';
// this filter fixes some invalid HTML generated by the third-party plugins
add_filter( 'vamtam_escaped_shortcodes', 'vamtam_shortcode_compat_fix' );
function vamtam_shortcode_compat_fix( $codes ) {
$codes[] = 'gallery';
$codes[] = 'fl_builder_insert_layout';
$codes[] = 'wpforms';
return $codes;
}
// Envato Hosted compatibility
add_filter( 'option_' . VamtamFramework::get_purchase_code_option_key(), 'vamtam_envato_hosted_license_key' );
function vamtam_envato_hosted_license_key( $value ) {
if ( defined( 'SUBSCRIPTION_CODE' ) ) {
return SUBSCRIPTION_CODE;
}
return $value;
}
if ( class_exists( 'Vamtam_Importers_E' ) && is_callable( array( 'Vamtam_Importers_E', 'set_menu_locations' ) ) ) {
Vamtam_Importers_E::set_menu_locations();
}
// font weights for google fonts used in CSS
function vamtam_customizer_font_weights( $weights, $font ) {
if ( 'Open Sans' === $font ) {
$weights[] = '600';
}
return $weights;
}
add_filter( 'vamtam_customizer_font_weights', 'vamtam_customizer_font_weights', 10, 2 );
// build: 88fe350f4263a9a10c52a1103165f619889fabb4
Fatal error: Uncaught Error: Class "VamtamFramework" not found in /home2/sugesvj9/public_html/wp-content/themes/salute/templates/header/sub-header.php:8
Stack trace:
#0 /home2/sugesvj9/public_html/wp-includes/template.php(816): require()
#1 /home2/sugesvj9/public_html/wp-includes/template.php(749): load_template('/home2/sugesvj9...', false, Array)
#2 /home2/sugesvj9/public_html/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)
#3 /home2/sugesvj9/public_html/wp-content/themes/salute/header.php(38): get_template_part('templates/heade...')
#4 /home2/sugesvj9/public_html/wp-includes/template.php(814): require_once('/home2/sugesvj9...')
#5 /home2/sugesvj9/public_html/wp-includes/template.php(749): load_template('/home2/sugesvj9...', true, Array)
#6 /home2/sugesvj9/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/classes/theme-support.php(86): locate_template(Array, true)
#7 /home2/sugesvj9/public_html/wp-includes/class-wp-hook.php(343): ElementorPro\Modules\ThemeBuilder\Classes\Theme_Support->get_header('')
#8 /home2/sugesvj9/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#9 /home2/sugesvj9/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#10 /home2/sugesvj9/public_html/wp-includes/general-template.php(38): do_action('get_header', NULL, Array)
#11 /home2/sugesvj9/public_html/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header()
#12 /home2/sugesvj9/public_html/wp-includes/template-loader.php(132): include('/home2/sugesvj9...')
#13 /home2/sugesvj9/public_html/wp-blog-header.php(19): require_once('/home2/sugesvj9...')
#14 /home2/sugesvj9/public_html/index.php(17): require('/home2/sugesvj9...')
#15 {main}
thrown in /home2/sugesvj9/public_html/wp-content/themes/salute/templates/header/sub-header.php on line 8