Beispiel #1
0
function archdesign_scripts()
{
    // load main stylesheet.
    wp_enqueue_style('arc-style', ARC_THEME_URL . 'assets/css/style.min.css');
    wp_enqueue_style('owl-style', 'https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.0.0-beta.3/assets/owl.carousel.min.css');
    wp_register_style('owl-theme', 'https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.0.0-beta.3/assets/owl.theme.default.min.css');
    // clear head
    remove_action('wp_head', 'wp_generator');
    remove_action('wp_head', 'wlwmanifest_link');
    remove_action('wp_head', 'rsd_link');
    remove_action('wp_head', 'wp_shortlink_wp_head');
    remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10);
    add_filter('the_generator', '__return_false');
    remove_action('wp_head', 'print_emoji_detection_script', 7);
    remove_action('wp_print_styles', 'print_emoji_styles');
    remove_action('wp_head', 'feed_links_extra', 3);
    remove_action('set_comment_cookies', 'wp_set_comment_cookies');
    // load scripts
    wp_deregister_script('jquery');
    wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', array(), false, true);
    wp_enqueue_script('owl-carousel', ARC_THEME_URL . 'assets/js/owl.carousel/owl.carousel.min.js', array('jquery'), false, true);
    wp_enqueue_script('base', ARC_THEME_URL . '/assets/js/base.js', array('jquery'), '1.0', true);
    wp_localize_script('base', 'ARCHproject', array('arch_nonce' => wp_create_nonce('arch_nonce'), 'ajax_url' => admin_url('admin-ajax.php')));
    wp_register_script('slimscroll', 'https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.7.6/vendors/jquery.slimscroll.min.js', array('jquery'), false, true);
    wp_register_script('fullPage', 'https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.7.6/jquery.fullPage.min.js', array('jquery', 'slimscroll'), false, true);
    //    wp_enqueue_script ('modernizr', ARC_THEME_URL . 'assets/js/FullscreenOverlay/js/modernizr.custom.js', array(), false, true);
    //    wp_enqueue_script ('classie', ARC_THEME_URL . 'assets/js/FullscreenOverlay/js/classie.js', array(), false, true);
    wp_register_script('mob', ARC_THEME_URL . '/assets/js/mob.js', array(), '1.0', true);
    wp_register_script('desc', ARC_THEME_URL . '/assets/js/desc.js', array(), '1.0', true);
    wp_register_script('single', ARC_THEME_URL . '/assets/js/single.js', array('jquery'), '1.0', true);
    wp_register_script('animation', ARC_THEME_URL . '/assets/js/animation.js', array(), '1.0', true);
    wp_register_script('tweenMax', 'https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js', array(), false, true);
    wp_register_script('scrollMagic', 'https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js', array(), false, true);
    wp_register_script('animationGSAP', 'https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/animation.gsap.js', array(), false, true);
    if (is_home() || is_front_page()) {
        if (wp_mobile_detect()) {
            wp_enqueue_style('owl-theme');
            wp_enqueue_script('mob');
        } else {
            wp_enqueue_script('slimscroll');
            wp_enqueue_script('fullPage');
            wp_enqueue_script('desc');
            wp_enqueue_script('tweenMax');
            wp_enqueue_script('scrollMagic');
            wp_enqueue_script('animationGSAP');
            wp_enqueue_script('animation');
        }
    }
    if (is_single()) {
        wp_enqueue_script('single');
    }
}
Beispiel #2
0
					<p>Уют даже в миниатюрных деталях. Дизайн мебели, деталей интерьера, освещения, посуды.</p>


					<a class="form-btn js-overly-trigger" href="#" data-overlay="#pull-form" data-ftitle="Предметный дизайн">
						Подробнее
					</a>
				</div>
			</div>
		</div>
	</section>
</div>

<div class="section box-4 switcher" data-section-name="Как мы работаем">
	<div class="box-bg animate"></div>
	<?php 
if (wp_mobile_detect()) {
    get_template_part('mobile-templates/box-4_ru');
} else {
    ?>
		<section class="content">
			<div class="row">
				<div class="col left">
					<h1>Как мы работаем</h1>
					<div class="row">
						<div class="col">
							<div data-switch="preproject" class="content-tile switch-trigger">
								<span>1</span>
								<p>Предпроектная часть</p>
							</div>
						</div>
						<div class="col">
Beispiel #3
0
            ?>
                    </div>
                </div>
            <?php 
        }
    }
} else {
    // no layouts found
}
?>
</div>

<footer class="entry-footer">

    <?php 
if ($is_ajax && wp_mobile_detect()) {
    ?>
        <div class="close-btn">
            <div class="js-overly-trigger close-elements trigger" data-overlay="#push-page"></div>
        </div>
    <?php 
}
?>

	<div class="project-nav clearfix entry-wrapper">
        <?php 
if ($prev_link) {
    ?>
            <a href="<?php 
    echo esc_url($prev_link);
    ?>