little fixes
This commit is contained in:
parent
90a7391c26
commit
7157c669e5
@ -45,7 +45,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer-coop">
|
||||
<span><i class="fa fa-copyright" aria-hidden="true"></i>2020 ArmantyQuests</span>
|
||||
<span><i class="fa fa-copyright" aria-hidden="true"></i>2021 ArmantyQuests</span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
</form>
|
||||
|
||||
<div class="copyright">
|
||||
<span>© Copyright. Все права защищены</span>
|
||||
<span>2021 ArmantyQuests</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -13,6 +13,6 @@
|
||||
'img' => get_template_directory_uri() . '/assets/img',
|
||||
];
|
||||
|
||||
$version = '1.0.5';
|
||||
$version = '1.0.6';
|
||||
}
|
||||
?>
|
||||
@ -4,50 +4,51 @@
|
||||
function armanty_get_scripts(){
|
||||
$js = $GLOBALS['paths']['js'];
|
||||
$libs = $GLOBALS['paths']['libs'];
|
||||
$version = $GLOBALS['version'];
|
||||
|
||||
wp_deregister_script( 'jquery' );
|
||||
wp_register_script( 'jquery', $libs . '/jquery-3.4.1/jquery-3.4.1.min.js');
|
||||
wp_enqueue_script('jquery');
|
||||
|
||||
wp_enqueue_script( 'jqmask', $libs . '/jQuery-Mask-Plugin-master/dist/jquery.mask.min.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'jqmask', $libs . '/jQuery-Mask-Plugin-master/dist/jquery.mask.min.js', ['jquery'], $version, true);
|
||||
|
||||
wp_enqueue_script( 'bootstrap', $libs . '/bootstrap-4.4.1-dist/js/bootstrap.bundle.min.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'bootstrap', $libs . '/bootstrap-4.4.1-dist/js/bootstrap.bundle.min.js', ['jquery'], $version, true);
|
||||
|
||||
if (!is_page_template('templates/graduation.php')) {
|
||||
wp_enqueue_script( 'poper', $libs . '/bootstrap-4.4.1-dist/js/popper.min.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'owlcarousel', $libs . '/OwlCarousel2-2.3.4/dist/owl.carousel.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'moment', $libs . '/bootstrap_datetimepicker/js/moment-with-locales.min.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'bootstrap', $libs . '/bootstrap_datetimepicker/js/bootstrap.min.js', ['jquery', 'moment'], null, true);
|
||||
wp_enqueue_script( 'dtpicker', $libs . '/bootstrap_datetimepicker/js/bootstrap-datetimepicker.min.js', ['jquery', 'moment'], null, true);
|
||||
wp_enqueue_script( 'poper', $libs . '/bootstrap-4.4.1-dist/js/popper.min.js', ['jquery'], $version, true);
|
||||
wp_enqueue_script( 'owlcarousel', $libs . '/OwlCarousel2-2.3.4/dist/owl.carousel.js', ['jquery'], $version, true);
|
||||
wp_enqueue_script( 'moment', $libs . '/bootstrap_datetimepicker/js/moment-with-locales.min.js', ['jquery'], $version, true);
|
||||
wp_enqueue_script( 'bootstrap', $libs . '/bootstrap_datetimepicker/js/bootstrap.min.js', ['jquery', 'moment'], $version, true);
|
||||
wp_enqueue_script( 'dtpicker', $libs . '/bootstrap_datetimepicker/js/bootstrap-datetimepicker.min.js', ['jquery', 'moment'], $version, true);
|
||||
wp_enqueue_script( 'select', $libs . '/bootstrap-select/bootstrap-select.min.js');
|
||||
wp_enqueue_script( 'script', $js . '/script.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'slider', $libs . '/jQuery-Waterwheel-Carousel/js/jquery.waterwheelCarousel.min.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'swiper', $libs . '/jQueryTouchSwipe/jquery.touchSwipe.min.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'slick', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'script', $js . '/script.js', ['jquery'], $version, true);
|
||||
wp_enqueue_script( 'slider', $libs . '/jQuery-Waterwheel-Carousel/js/jquery.waterwheelCarousel.min.js', ['jquery'], $version, true);
|
||||
wp_enqueue_script( 'swiper', $libs . '/jQueryTouchSwipe/jquery.touchSwipe.min.js', ['jquery'], $version, true);
|
||||
wp_enqueue_script( 'slick', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js', ['jquery'], $version, true);
|
||||
|
||||
|
||||
if(is_front_page() || is_page ('24') || is_page('35') || is_page('56')){
|
||||
wp_enqueue_script( 'main', $js . '/components/main.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'main', $js . '/components/main.js', ['jquery'], $version, true);
|
||||
}
|
||||
if(is_page ('8')){
|
||||
wp_enqueue_script( 'quests', $js . '/components/quests.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'quests', $js . '/components/quests.js', ['jquery'], $version, true);
|
||||
}
|
||||
if(is_page ('24')){
|
||||
wp_enqueue_script( 'quests', $js . '/components/holiday.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'quests', $js . '/components/holiday.js', ['jquery'], $version, true);
|
||||
}
|
||||
if(is_page ('35')){
|
||||
wp_enqueue_script( 'certificates', $js . '/components/certificates.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'certificates', $js . '/components/certificates.js', ['jquery'], $version, true);
|
||||
}
|
||||
if(is_page ('56')){
|
||||
wp_enqueue_script( 'sales', $js . '/components/sales.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'sales', $js . '/components/sales.js', ['jquery'], $version, true);
|
||||
}
|
||||
if(is_page ('59')){
|
||||
wp_enqueue_script( 'form', $js . '/components/form.js', ['jquery'], null, true);
|
||||
wp_enqueue_script( 'form', $js . '/components/form.js', ['jquery'], $version, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (is_page_template('templates/graduation.php')) {
|
||||
wp_enqueue_script( 'graduation', $js . '/components/graduation.js');
|
||||
wp_enqueue_script( 'graduation', $js . '/components/graduation.js', ['jquery'], $version, true);
|
||||
}
|
||||
};
|
||||
?>
|
||||
Loading…
x
Reference in New Issue
Block a user