Beispiel #1
0
function my_contact_enqueue_scripts()
{
    wp_deregister_script('contact-form-7');
    wp_deregister_style('contact-form-7');
    if (is_page('contact' || 'home')) {
        if (function_exists('wpcf7_enqueue_scripts')) {
            wpcf7_enqueue_scripts();
        }
        if (function_exists('wpcf7_enqueue_styles')) {
            wpcf7_enqueue_styles();
        }
    }
}
Beispiel #2
0
/**
 * Enqueue scripts and styles.
 */
function brianzotoole2_0_scripts()
{
    wp_enqueue_style('main', get_stylesheet_uri(), array(), '2.0');
    //wp_enqueue_script( 'js', get_template_directory_uri() . '/js/instantclick.js', array(), '3.1.0', true );
    //show contact form 7 plugin scripts, only on contact & donate pages...
    if (is_page('home')) {
        wpcf7_enqueue_scripts();
        wpcf7_enqueue_styles();
    }
    //if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    //	wp_enqueue_script( 'comment-reply' );
    //}
}
Beispiel #3
0
/**
 * Enqueue scripts and styles.
 */
function vf_scripts()
{
    wp_enqueue_style('sass', get_stylesheet_uri(), null, null);
    //show contact form 7 plugin scripts, only on certain pages...
    if (is_page('contact') || is_page('donate')) {
        wpcf7_enqueue_scripts();
        wpcf7_enqueue_styles();
    }
    //wp_enqueue_script('jquery');
    wp_enqueue_script('site-scripts', get_template_directory_uri() . '/js/site.min.js', array(), '2.0.0', true);
    //wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
    //wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/vf.scripts.js', array(), false, true );
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        //wp_enqueue_script( 'comment-reply' );
    }
}
Beispiel #4
0
function hitched_styles()
{
    global $wp_the_query;
    $css_dir = get_stylesheet_directory_uri() . '/css/src';
    $root = dirname(WP_CONTENT_DIR);
    $styles = [];
    foreach (glob(get_stylesheet_directory() . "/css/src/*", GLOB_ONLYDIR) as $dir) {
        $dirname = basename($dir);
        foreach (glob("{$dir}/*.css") as $file) {
            $handle = Site::prefix(basename($file, '.css'));
            if ($handle === Site::prefix('main')) {
                continue;
            }
            $styles[$dirname][] = $handle;
            $parts = explode('/src/', $file);
            wp_register_style($handle, "{$css_dir}/" . end($parts), [], false);
        }
    }
    wp_register_style(Site::prefix('lightbox'), $css_dir . '/../dist/vendor/lightbox.css', [], false);
    wp_register_style(Site::prefix('pages'), $css_dir . '/pages/main.css', [], false);
    wpcf7_enqueue_styles();
    if (is_page('sample-sale')) {
        wp_enqueue_style(Site::prefix('lightbox'));
    }
    wp_enqueue_style(Site::prefix('forms'));
    wp_enqueue_style(Site::prefix('main'), $css_dir . '/base/main.css', array_merge($styles['base'], $styles['layout']), false);
    $queue = [];
    if (is_front_page()) {
        $queue = array_merge($queue, ['slideshow', 'grid', 'home']);
    } elseif (is_page()) {
        $queue[] = 'pages';
        wp_enqueue_style(Site::prefix($wp_the_query->query_vars['pagename']));
        if ($wp_the_query->query_vars['pagename'] === 'maids') {
            wp_enqueue_style(Site::prefix('bridal'));
        }
    }
    foreach ($queue as $style) {
        wp_enqueue_style(Site::prefix($style));
    }
    wp_enqueue_style(Site::prefix('768'), $css_dir . '/responsive/768vw.css', [], false, '(min-width: 768px)');
    wp_enqueue_style(Site::prefix('980'), $css_dir . '/responsive/980vw.css', [], false, '(min-width: 980px)');
}
function wpcf7_do_enqueue_scripts()
{
    if (wpcf7_load_js()) {
        wpcf7_enqueue_scripts();
    }
    if (wpcf7_load_css()) {
        wpcf7_enqueue_styles();
    }
}
Beispiel #6
0
/**
 * Enqueue scripts and styles.
 */
function sensible_scripts()
{
    wp_enqueue_style('sass', get_stylesheet_uri(), array(), '2');
    //wp_enqueue_style( 'slider', get_template_directory_uri() . '/css/flexslider.css' );
    //wp_enqueue_style( 'jPushMenu', get_template_directory_uri() . '/css/jPushMenu.css' );
    //show contact form 7 plugin scripts, only on contact & donate pages...
    if (is_page('contact') || is_page('donate')) {
        wpcf7_enqueue_scripts();
        wpcf7_enqueue_styles();
    }
    //if ( get_theme_mod('sensible_animate') != 1 ) {
    //wp_enqueue_script( 'wowjs', get_template_directory_uri() . '/js/wow.js', array('jquery'), true );
    //wp_enqueue_style( 'animations', get_stylesheet_directory_uri() . '/css/animate.css', array() );
    //wp_enqueue_script( 'wow-init', get_template_directory_uri() .  '/js/wow-init.js', array( 'jquery' ), true );
    //}
    //if ( is_admin() ) {
    //wp_enqueue_style( 'control', get_template_directory_uri() . '/js/sensible_control.js', array(), false, true );
    //}
    //wp_enqueue_script('jquery');
    wp_enqueue_script('site-scripts', get_template_directory_uri() . '/assets/js/min/site-ck.js', array(), '2', true);
    //wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true );
    //wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
    //wp_enqueue_script( 'parallax', get_template_directory_uri() . '/js/parallax.js', array('jquery'), false, false );
    //TO DO: flex slider if...
    //wp_enqueue_script( 'slider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array(), '1.0', true );
    //wp_enqueue_script( 'pushmenu', get_template_directory_uri() . '/js/jPushMenu.js', array('jquery'), false, true );
    //wp_enqueue_script( 'sensible-placeholder', get_template_directory_uri() . '/js/jquery.placeholder.js', array('jquery'), false, true);
    //wp_enqueue_script( 'sensible-placeholdertext', get_template_directory_uri() . '/js/placeholdertext.js', array('jquery'), false, true);
    //wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/sensible.scripts.js', array(), false, true );
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        //wp_enqueue_script( 'comment-reply' );
    }
}
Beispiel #7
0
function cf7_scripts_laden()
{
    global $post;
    $p = $post->post_name;
    if (function_exists('wpcf7_enqueue_scripts') && ($p == "contact-met-lvk" || $p == "webshop-vermelding")) {
        wpcf7_enqueue_scripts();
        wpcf7_enqueue_styles();
        print '<meta name="wpcf7" content="' . $p . '" />';
    }
}
/*
Template Name: Homepage
*/
?>

<?php 
get_header();
?>

<?php 
if (function_exists('wpcf7_enqueue_scripts')) {
    wpcf7_enqueue_scripts();
}
if (function_exists('wpcf7_enqueue_styles')) {
    wpcf7_enqueue_styles();
}
?>

<?php 
while (have_posts()) {
    the_post();
    ?>


<div class='main'>
	<section class='dan-hero' data-image-src='<?php 
    bloginfo('template_url');
    ?>
/images/dan.png' data-parallax='scroll'>
		<div class='container'>
Beispiel #9
0
function clea_atout_c_add_on_contact_form_7()
{
    // disable load js and load css for wpcf7
    add_filter('wpcf7_load_js', '__return_false');
    add_filter('wpcf7_load_css', '__return_false');
    // enable cf7 js and css on specific pages
    // wpcf7_enqueue_scripts() and wpcf7_enqueue_styles() must be called before wp_head()
    // only on the contact form page
    if (is_page('contactez-nous')) {
        if (function_exists('wpcf7_enqueue_scripts')) {
            wpcf7_enqueue_scripts();
        }
        if (function_exists('wpcf7_enqueue_styles')) {
            wpcf7_enqueue_styles();
        }
        if (function_exists('wpcf7_support_html5_fallback')) {
            add_filter('wpcf7_support_html5_fallback', '__return_true');
        }
    }
}
Beispiel #10
0
function pspark_conditional_scripts()
{
    if (is_page('contact')) {
        if (function_exists('wpcf7_enqueue_scripts')) {
            wpcf7_enqueue_scripts();
        }
        if (function_exists('wpcf7_enqueue_styles')) {
            wpcf7_enqueue_styles();
        }
    }
}
Beispiel #11
0
/**
 * Enqueue scripts and styles.
 */
function mjpaa_scripts() {
	wp_enqueue_style( 'sass', get_stylesheet_uri(), array(), '1.0.0');
	

	//show contact form 7 plugin scripts, only on contact page...
	
	if (is_page('contact') ) {
     	 wpcf7_enqueue_scripts();
	 	 wpcf7_enqueue_styles();
    }
    
    //if is UM page (used id 7, in case name changes), show...
    if (is_page(7) ) {
     	 wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '', true );
    }
   
	
	//wp_enqueue_script('jquery');
	wp_enqueue_script( 'site-scripts', get_template_directory_uri() . '/js/site.min.js', array(), '1.0.0', true );
	
	//wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );

	//wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/mjpaa.scripts.js', array(), false, true );

	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
		//wp_enqueue_script( 'comment-reply' );
	}
}
Beispiel #12
0
/**
 * Enqueue scripts and styles.
 */
function mcu_scripts()
{
    wp_enqueue_style('mcu-style', get_stylesheet_uri());
    /**
     * Enqueue scripts and styles for loan apps & calcualtors.
     */
    if (is_page(array(22, 155, 482, 536, 182, 165, 147)) || in_category('forms')) {
        //recaptcha on user forms
        if (is_page(array(22, 155, 482, 536, 1186, 1235))) {
            wp_register_script('nocaptcha', 'https://www.google.com/recaptcha/api.js', false, '1.0', true);
            wp_enqueue_script('nocaptcha');
        }
        remove_filter('the_content', 'wpautop');
        wp_enqueue_style('form-styles', get_template_directory_uri() . '/forms.css');
        wp_register_script('popup-js', get_template_directory_uri() . '/js/popup.js', false, '1.0', true);
        wp_enqueue_script('popup-js');
        wp_register_script('validate-js', get_template_directory_uri() . '/js/jquery.validate.min.js', false, '1.0', true);
        wp_enqueue_script('validate-js');
    }
    if (is_page(147)) {
        remove_filter('the_content', 'wpautop');
        wp_enqueue_style('form-styles', get_template_directory_uri() . '/forms.css');
        if (function_exists('wpcf7_enqueue_scripts')) {
            wpcf7_enqueue_scripts();
        }
        if (function_exists('wpcf7_enqueue_styles')) {
            wpcf7_enqueue_styles();
        }
    }
    if (is_page(122)) {
        wp_register_script('rvr-js', get_template_directory_uri() . '/js/rvrcalc.js', false, '1.0', true);
        wp_enqueue_style('rvr-styles', get_template_directory_uri() . '/forms.css');
        wp_enqueue_script('rvr-js');
    }
    /**
     * END
     */
    wp_deregister_script('jquery');
    wp_register_script('jquery', '/wp-includes/js/jquery/jquery-3.1.0.min.js', FALSE, '3.1.0', TRUE);
    wp_enqueue_script('jquery');
    wp_deregister_script('jquery-migrate');
    wp_register_script('jquery-migrate', '/wp-includes/js/jquery/jquery-migrate.min.js', FALSE, '1.4.1', TRUE);
    wp_enqueue_script('jquery-migrate');
    wp_register_script('mcu-bgpos-js', get_template_directory_uri() . '/js/bgpos.js', false, '1.0', true);
    wp_enqueue_script('mcu-bgpos-js');
    wp_register_script('mcu-global-js', get_template_directory_uri() . '/js/global.js', false, '1.0', true);
    wp_enqueue_script('mcu-global-js');
    wp_register_script('mcu-carousel-js', get_template_directory_uri() . '/js/jquery.carouFredSel-6.2.1-packed.js', 'mcu-jq-js', '1.0', true);
    wp_enqueue_script('mcu-carousel-js');
    wp_enqueue_script('mcu-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true);
    //Trozolo CMS
    //wp_register_script('mcu-jq-js', get_template_directory_uri() . '/js/jquery-2.1.3.min.js', false, '1.0', true );
    //wp_enqueue_script('mcu-jq-js');
    //Trozolo CMS
    //wp_register_script('mcu-main-js', get_template_directory_uri() . '/js/main.js', false, '1.0', true );
    //wp_enqueue_script('mcu-main-js');
    //Trozolo CMS
    //wp_register_script('mcu-jqui-js', get_template_directory_uri() . '/js/jquery-ui-1.10.3.custom.js', 'mcu-jq-js', '1.0', true );
    //wp_enqueue_script('mcu-jqui-js');
    wp_enqueue_script('mcu-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}