├── screenshot.png ├── assets ├── img │ ├── logo.png │ ├── breadcrumb.jpg │ ├── footer-bg.jpg │ └── footer-logo.png ├── fonts │ ├── Flaticon.eot │ ├── Flaticon.ttf │ ├── Flaticon.woff │ ├── themify.eot │ ├── themify.ttf │ ├── themify.woff │ ├── Flaticon.woff2 │ ├── FontAwesome.otf │ ├── fa-brands-400.eot │ ├── fa-brands-400.ttf │ ├── fa-brands-400.woff │ ├── fa-regular-400.eot │ ├── fa-regular-400.ttf │ ├── fa-solid-900.eot │ ├── fa-solid-900.ttf │ ├── fa-solid-900.woff │ ├── fa-solid-900.woff2 │ ├── fa-brands-400.woff2 │ ├── fa-regular-400.woff │ ├── fa-regular-400.woff2 │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ └── flaticon.css ├── css │ ├── ararat-admin.css │ ├── flaticon.css │ ├── owl.carousel.min.css │ ├── nice-select.css │ ├── elementor-default-element-style.css │ ├── slicknav.css │ └── magnific-popup.css └── js │ ├── plugins.js │ ├── jquery.counterup.min.js │ ├── ararat-admin.js │ ├── custom.js │ ├── post-likes.js │ ├── jquery.scrollUp.min.js │ ├── jquery.instagramFeed.min.js │ ├── ararat-elementor-notice.js │ ├── nice-select.min.js │ ├── scrollIt.js │ ├── jquery.ajaxchimp.min.js │ ├── imagesloaded.pkgd.min.js │ ├── main.js │ ├── waypoints.min.js │ ├── wow.min.js │ └── jquery.slicknav.min.js ├── .gitmodules ├── template-builder.php ├── templates ├── pagination.php ├── footer-bottom.php ├── footer-widgets.php ├── content-page.php ├── biography.php ├── footer-reservation.php ├── content-audio.php ├── content-video.php ├── content-none.php ├── 404.php ├── header-bottom.php ├── content.php ├── footer-top.php ├── content-single.php └── header-top.php ├── sidebar-page.php ├── 404.php ├── sidebar.php ├── footer.php ├── searchform.php ├── header.php ├── inc ├── shortcode.php ├── class-epsilon-dashboard-autoloader.php ├── ararat-widgets-reg.php ├── wp_bootstrap_pagination.php ├── libraries │ └── class-epsilon-init-notify-system.php ├── hooks │ └── hooks.php ├── classes │ └── Class-Enqueue.php ├── customizer │ ├── customizer.php │ ├── fields │ │ └── sections.php │ └── js │ │ └── customizer.js ├── support-functions.php ├── class-epsilon-init-dashboard.php ├── ararat-breadcrumbs.php ├── wp-html-helper.php └── wp_bootstrap_navwalker.php ├── style.css ├── single.php ├── page.php ├── index.php ├── search.php ├── readme.txt ├── archive.php ├── single-course.php ├── comments.php └── functions.php /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/screenshot.png -------------------------------------------------------------------------------- /assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/img/logo.png -------------------------------------------------------------------------------- /assets/fonts/Flaticon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/Flaticon.eot -------------------------------------------------------------------------------- /assets/fonts/Flaticon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/Flaticon.ttf -------------------------------------------------------------------------------- /assets/fonts/Flaticon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/Flaticon.woff -------------------------------------------------------------------------------- /assets/fonts/themify.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/themify.eot -------------------------------------------------------------------------------- /assets/fonts/themify.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/themify.ttf -------------------------------------------------------------------------------- /assets/fonts/themify.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/themify.woff -------------------------------------------------------------------------------- /assets/img/breadcrumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/img/breadcrumb.jpg -------------------------------------------------------------------------------- /assets/img/footer-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/img/footer-bg.jpg -------------------------------------------------------------------------------- /assets/img/footer-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/img/footer-logo.png -------------------------------------------------------------------------------- /assets/fonts/Flaticon.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/Flaticon.woff2 -------------------------------------------------------------------------------- /assets/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /assets/fonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-brands-400.eot -------------------------------------------------------------------------------- /assets/fonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /assets/fonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-brands-400.woff -------------------------------------------------------------------------------- /assets/fonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-regular-400.eot -------------------------------------------------------------------------------- /assets/fonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /assets/fonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-solid-900.eot -------------------------------------------------------------------------------- /assets/fonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /assets/fonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-solid-900.woff -------------------------------------------------------------------------------- /assets/fonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /assets/fonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /assets/fonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-regular-400.woff -------------------------------------------------------------------------------- /assets/fonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/ararat-theme/master/assets/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "inc/libraries/epsilon-theme-dashboard"] 2 | path = inc/libraries/epsilon-theme-dashboard 3 | url = https://github.com/MachoThemes/epsilon-theme-dashboard 4 | [submodule "inc/libraries/epsilon-framework"] 5 | path = inc/libraries/epsilon-framework 6 | url = https://github.com/MachoThemes/epsilon-framework 7 | -------------------------------------------------------------------------------- /template-builder.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/pagination.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/footer-bottom.php: -------------------------------------------------------------------------------- 1 | ', '', date( 'Y' ) ); 5 | $copyRight = !empty( ararat_opt( 'ararat_footer_copyright_text' ) ) ? ararat_opt( 'ararat_footer_copyright_text' ) : $copyText; 6 | ?> 7 | -------------------------------------------------------------------------------- /sidebar-page.php: -------------------------------------------------------------------------------- 1 | '; 18 | dynamic_sidebar( 'ararat-page-sidebar' ); 19 | echo ''; 20 | } 21 | 22 | 23 | ?> -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sidebar.php: -------------------------------------------------------------------------------- 1 |
'; 18 | dynamic_sidebar( 'ararat-post-sidebar' ); 19 | echo '
'; 20 | } 21 | 22 | 23 | ?> -------------------------------------------------------------------------------- /templates/footer-widgets.php: -------------------------------------------------------------------------------- 1 | 31 | 32 | -------------------------------------------------------------------------------- /templates/content-page.php: -------------------------------------------------------------------------------- 1 | 17 |
18 |
> 19 | 33 |
34 |
-------------------------------------------------------------------------------- /assets/css/ararat-admin.css: -------------------------------------------------------------------------------- 1 | .epsilon-dashboard-tab .row .col { 2 | background-color: #fff; 3 | min-width: 29% !important; 4 | margin-left: 6px; 5 | margin-right: 6px; 6 | padding: 12px; 7 | } 8 | .epsilon-dashboard-tab .standout { 9 | padding: 40px !important; 10 | } 11 | #epsilon-demo.epsilon-dashboard-tab .row .epsilon-demo-box.col, 12 | #epsilon-demos .row .epsilon-demo-box.col { 13 | background-color: transparent; 14 | min-width: 159px !important; 15 | width: 155px !important; 16 | } 17 | .epsilon-dashboard-container--tabs nav a.active { 18 | border-bottom-color: #0073aa; 19 | background-color: #222; 20 | color: #fff !important; 21 | } 22 | .epsilon-dashboard-container--tabs nav a { 23 | background-color: #fff; 24 | } 25 | .dashicons-admin-tools:before{ 26 | content: "\f102"; 27 | } -------------------------------------------------------------------------------- /searchform.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
17 |
18 |
19 | 20 |
21 | 22 |
23 |
24 |
25 | 26 |
-------------------------------------------------------------------------------- /assets/js/plugins.js: -------------------------------------------------------------------------------- 1 | // Avoid `console` errors in browsers that lack a console. 2 | (function() { 3 | var method; 4 | var noop = function () {}; 5 | var methods = [ 6 | 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 7 | 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 8 | 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 9 | 'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn' 10 | ]; 11 | var length = methods.length; 12 | var console = (window.console = window.console || {}); 13 | 14 | while (length--) { 15 | method = methods[length]; 16 | 17 | // Only stub undefined methods. 18 | if (!console[method]) { 19 | console[method] = noop; 20 | } 21 | } 22 | }()); 23 | 24 | // Place any jQuery/helper plugins in here. 25 | -------------------------------------------------------------------------------- /templates/biography.php: -------------------------------------------------------------------------------- 1 | 18 |
19 |
20 | 25 |
26 |

27 |

28 |
29 |
30 |
-------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | 2 | > 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | > 14 | 15 | 16 | 17 | 2 |
3 | [date* checkin-date min:2019-11-01 max:2099-12-30 id:datepicker class:form-control placeholder "Checkin Date"] 4 |
5 |
6 | [date* checkout-date min:2019-11-01 max:2099-12-30 id:datepicker2 class:form-control placeholder "Checkout Date"] 7 |
8 |
9 | [select* menu-adult id:default-select class:form-select class:wide "Adult - 1" "Adult - 2" "Adult - 3" "Adult - 4"] 10 |
11 |
12 | [select* menu-children id:default-select class:form-select class:wide "Child - 1" "Child - 2" "Child - 3" "Child - 4"] 13 |
14 |
15 | [select* menu-children id:default-select class:form-select class:wide "Laxaries Rooms" "Deluxe Room" "Signature Room" "Couple Room"] 16 |
17 |
18 | [submit class:boxed-btn3 "Check Availability"] 19 |
20 | -------------------------------------------------------------------------------- /assets/js/jquery.counterup.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jquery.counterup.js 1.0 3 | * 4 | * Copyright 2013, Benjamin Intal http://gambit.ph @bfintal 5 | * Released under the GPL v2 License 6 | * 7 | * Date: Nov 26, 2013 8 | */(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery); -------------------------------------------------------------------------------- /assets/js/ararat-admin.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | /*========================================= 3 | Epsilon Framework Sidebar Responsive Tools 4 | =============================================*/ 5 | $( document ).ready(function() { 6 | var desktop = $( '.preview-desktop' ), 7 | tablet = $( '.preview-tablet' ), 8 | mobile = $( '.preview-mobile' ); 9 | 10 | desktop.on( 'click', function(){ 11 | desktop.addClass('active'); 12 | tablet.removeClass('active'); 13 | mobile.removeClass('active'); 14 | } ); 15 | 16 | tablet.on( 'click', function(){ 17 | desktop.removeClass('active'); 18 | tablet.addClass('active'); 19 | mobile.removeClass('active'); 20 | } ); 21 | 22 | mobile.on( 'click', function(){ 23 | desktop.removeClass('active'); 24 | tablet.removeClass('active'); 25 | mobile.addClass('active'); 26 | } ); 27 | 28 | }); 29 | 30 | 31 | })(jQuery); -------------------------------------------------------------------------------- /assets/fonts/flaticon.css: -------------------------------------------------------------------------------- 1 | /* 2 | Flaticon icon font: Flaticon 3 | Creation date: 27/07/2019 04:58 4 | */ 5 | 6 | @font-face { 7 | font-family: "Flaticon"; 8 | src: url("./Flaticon.eot"); 9 | src: url("./Flaticon.eot?#iefix") format("embedded-opentype"), 10 | url("./Flaticon.woff2") format("woff2"), 11 | url("./Flaticon.woff") format("woff"), 12 | url("./Flaticon.ttf") format("truetype"), 13 | url("./Flaticon.svg#Flaticon") format("svg"); 14 | font-weight: normal; 15 | font-style: normal; 16 | } 17 | 18 | @media screen and (-webkit-min-device-pixel-ratio:0) { 19 | @font-face { 20 | font-family: "Flaticon"; 21 | src: url("./Flaticon.svg#Flaticon") format("svg"); 22 | } 23 | } 24 | 25 | [class^="flaticon-"]:before, [class*=" flaticon-"]:before, 26 | [class^="flaticon-"]:after, [class*=" flaticon-"]:after { 27 | font-family: Flaticon; 28 | font-size: 20px; 29 | font-style: normal; 30 | margin-left: 20px; 31 | } 32 | 33 | .flaticon-left-arrow:before { content: "\f100"; } 34 | .flaticon-right-arrow:before { content: "\f101"; } 35 | .flaticon-play-button:before { content: "\f102"; } -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Ararat 3 | Theme URI: https://colorlib.com/wp/themes/ararat/ 4 | Author: Colorlib 5 | Author URI: http://colorlib.com/ 6 | Description: Ararat is a modern masonry blog WordPress Theme. Its stylish design and beautiful typography makes it an ideal template for your blog site. It features styles for the following post formats: standard, video, audio, and gallery. It is fully responsive and retina ready so It will always look great and crisp on any devices and screen sizes. It\'s built with clean and organized code which makes it very easy to customize. 7 | Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready 8 | Version: 1.0 9 | Requires at least: 5.2 10 | Tested up to: 5.5.1 11 | Requires PHP: 7.0 12 | License: GNU General Public License v2 or later 13 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 14 | Text Domain: ararat 15 | This theme, like WordPress, is licensed under the GPL. 16 | Use it to make something cool, have fun, and share what you've learned with others. 17 | */ -------------------------------------------------------------------------------- /templates/footer-reservation.php: -------------------------------------------------------------------------------- 1 | 19 | -------------------------------------------------------------------------------- /assets/css/flaticon.css: -------------------------------------------------------------------------------- 1 | /* 2 | Flaticon icon font: Flaticon 3 | Creation date: 27/07/2019 08:27 4 | */ 5 | 6 | @font-face { 7 | font-family: "Flaticon"; 8 | src: url("../fonts/Flaticon.eot"); 9 | src: url("../fonts/Flaticon.eot?#iefix") format("embedded-opentype"), 10 | url("../fonts/Flaticon.woff2") format("woff2"), 11 | url("../fonts/Flaticon.woff") format("woff"), 12 | url("../fonts/Flaticon.ttf") format("truetype"), 13 | url("../fonts/Flaticon.svg#Flaticon") format("svg"); 14 | font-weight: normal; 15 | font-style: normal; 16 | } 17 | 18 | @media screen and (-webkit-min-device-pixel-ratio:0) { 19 | @font-face { 20 | font-family: "Flaticon"; 21 | src: url("../fonts/Flaticon.svg#Flaticon") format("svg"); 22 | } 23 | } 24 | 25 | [class^="flaticon-"]:before, [class*=" flaticon-"]:before, 26 | [class^="flaticon-"]:after, [class*=" flaticon-"]:after { 27 | font-family: Flaticon; 28 | font-style: normal; 29 | } 30 | 31 | .flaticon-left-arrow:before { content: "\f100"; } 32 | .flaticon-right-arrow:before { content: "\f101"; } 33 | .flaticon-play-button:before { content: "\f102"; } 34 | .flaticon-quote:before { content: "\f103"; } 35 | .flaticon-clock:before { content: "\f104"; } 36 | .flaticon-world:before { content: "\f105"; } 37 | .flaticon-mail:before { content: "\f106"; } -------------------------------------------------------------------------------- /templates/content-audio.php: -------------------------------------------------------------------------------- 1 | 17 | 18 |
> 19 |
20 | 62 |
63 |
-------------------------------------------------------------------------------- /templates/content-video.php: -------------------------------------------------------------------------------- 1 | 17 | 18 |
> 19 |
20 | 62 |
63 |
-------------------------------------------------------------------------------- /assets/js/custom.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | "use strict"; 3 | 4 | $('.single_gallery_part, .img-pop-up').magnificPopup({ 5 | type: 'image', 6 | gallery:{ 7 | enabled:true 8 | } 9 | }); 10 | 11 | var review = $('.client_review_iner'); 12 | if (review.length) { 13 | review.owlCarousel({ 14 | items: 3, 15 | loop: true, 16 | dots: true, 17 | autoplay: true, 18 | autoplayHoverPause: true, 19 | autoplayTimeout: 5000, 20 | nav: false, 21 | margin: 30, 22 | responsiveClass:true, 23 | responsive:{ 24 | 0:{ 25 | items:1, 26 | }, 27 | 576:{ 28 | items:2, 29 | }, 30 | 991:{ 31 | items:3, 32 | } 33 | } 34 | }); 35 | } 36 | //------- Mailchimp js --------// 37 | function mailChimp() { 38 | $('#mc_embed_signup').find('form').ajaxChimp(); 39 | } 40 | mailChimp(); 41 | 42 | // $(document).ready(function() { 43 | // $('select').niceSelect(); 44 | // }); 45 | // // menu fixed js code 46 | $(window).scroll(function () { 47 | var window_top = $(window).scrollTop() + 1; 48 | if (window_top > 50) { 49 | $('.main_menu').addClass('menu_fixed animated fadeInDown'); 50 | } else { 51 | $('.main_menu').removeClass('menu_fixed animated fadeInDown'); 52 | } 53 | }); 54 | 55 | // $('.counter').counterUp({ 56 | // time: 2000 57 | // }); 58 | 59 | }(jQuery)); -------------------------------------------------------------------------------- /templates/content-none.php: -------------------------------------------------------------------------------- 1 | 14 |
15 |

16 | 17 | 18 | 19 |

Get started here.', 'ararat' ), esc_url( admin_url( 'post-new.php' ) ) ); ?>

20 | 21 | 22 | 23 |

24 | 38 | 39 | 40 | 41 |

42 | 43 | 44 | 45 |
46 | -------------------------------------------------------------------------------- /templates/404.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 |
19 |
20 |
21 |
22 | '.esc_html( $errorText ).''; 29 | 30 | // Wrong text block 31 | $wrongText = wp_kses_post( __( 'Either something went wrong or the page dosen’t exist anymore.', 'ararat' ) ); 32 | 33 | if( ararat_opt('ararat_fof_titletwo') ){ 34 | $wrongText = ararat_opt('ararat_fof_titletwo'); 35 | } 36 | 37 | $anchor = ararat_anchor_tag( 38 | array( 39 | 'url' => esc_url( site_url( '/' ) ), 40 | 'text' => esc_html__( 'Go To Home page', 'ararat' ), 41 | 'class' => 'button-contactForm btn_1 boxed-btn' 42 | ) 43 | ); 44 | 45 | echo ararat_paragraph_tag( 46 | array( 47 | 'text' => esc_html( $wrongText ) 48 | ) 49 | ); 50 | 51 | echo wp_kses_post( $anchor ); 52 | ?> 53 |
54 |
55 |
56 |
57 |
-------------------------------------------------------------------------------- /templates/header-bottom.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
> 18 |
19 |
20 | 51 |
52 |
53 |
-------------------------------------------------------------------------------- /assets/js/post-likes.js: -------------------------------------------------------------------------------- 1 | (function( $ ) { 2 | 'use strict'; 3 | $(document).on('click', '.sl-button', function() { 4 | var button = $(this); 5 | var post_id = button.attr('data-post-id'); 6 | var ararat = button.attr('data-nonce'); 7 | var iscomment = button.attr('data-iscomment'); 8 | var allbuttons; 9 | if ( iscomment === '1' ) { /* Comments can have same id */ 10 | allbuttons = $('.sl-comment-button-'+post_id); 11 | } else { 12 | allbuttons = $('.sl-button-'+post_id); 13 | } 14 | var loader = allbuttons.next('#sl-loader'); 15 | if (post_id !== '') { 16 | $.ajax({ 17 | type: 'POST', 18 | url: simpleLikes.ajaxurl, 19 | data : { 20 | action : 'ararat_process_simple_like', 21 | post_id : post_id, 22 | nonce : ararat, 23 | is_comment : iscomment, 24 | }, 25 | beforeSend:function(){ 26 | loader.html(' 
Loading...
'); 27 | }, 28 | success: function(response){ 29 | var icon = response.icon; 30 | var customIcon = button.prev(); 31 | var count = response.count; 32 | allbuttons.html(count); 33 | if(response.status === 'unliked') { 34 | var like_text = simpleLikes.like; 35 | allbuttons.prop('title', like_text); 36 | allbuttons.removeClass('liked'); 37 | if( customIcon.hasClass( 'fa-heart' )){ 38 | customIcon.removeClass('fa-heart'); 39 | } 40 | customIcon.addClass('fa-heart-o'); 41 | } else { 42 | var unlike_text = simpleLikes.unlike; 43 | allbuttons.prop('title', unlike_text); 44 | allbuttons.addClass('liked'); 45 | if( customIcon.hasClass( 'fa-heart-o' )){ 46 | customIcon.removeClass('fa-heart-o'); 47 | } 48 | customIcon.addClass('fa-heart'); 49 | } 50 | loader.empty(); 51 | } 52 | }); 53 | 54 | } 55 | return false; 56 | }); 57 | })( jQuery ); 58 | -------------------------------------------------------------------------------- /inc/class-epsilon-dashboard-autoloader.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/js/jquery.scrollUp.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * scrollup v2.4.1 3 | * Url: http://markgoodyear.com/labs/scrollup/ 4 | * Copyright (c) Mark Goodyear — @markgdyr — http://markgoodyear.com 5 | * License: MIT 6 | */ 7 | !function(l,o,e){"use strict";l.fn.scrollUp=function(o){l.data(e.body,"scrollUp")||(l.data(e.body,"scrollUp",!0),l.fn.scrollUp.init(o))},l.fn.scrollUp.init=function(r){var s,t,c,i,n,a,d,p=l.fn.scrollUp.settings=l.extend({},l.fn.scrollUp.defaults,r),f=!1;switch(d=p.scrollTrigger?l(p.scrollTrigger):l("",{id:p.scrollName,href:"#top"}),p.scrollTitle&&d.attr("title",p.scrollTitle),d.appendTo("body"),p.scrollImg||p.scrollTrigger||d.html(p.scrollText),d.css({display:"none",position:"fixed",zIndex:p.zIndex}),p.activeOverlay&&l("
",{id:p.scrollName+"-active"}).css({position:"absolute",top:p.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+p.activeOverlay,zIndex:p.zIndex}).appendTo("body"),p.animation){case"fade":s="fadeIn",t="fadeOut",c=p.animationSpeed;break;case"slide":s="slideDown",t="slideUp",c=p.animationSpeed;break;default:s="show",t="hide",c=0}i="top"===p.scrollFrom?p.scrollDistance:l(e).height()-l(o).height()-p.scrollDistance,n=l(o).scroll(function(){l(o).scrollTop()>i?f||(d[s](c),f=!0):f&&(d[t](c),f=!1)}),p.scrollTarget?"number"==typeof p.scrollTarget?a=p.scrollTarget:"string"==typeof p.scrollTarget&&(a=Math.floor(l(p.scrollTarget).offset().top)):a=0,d.click(function(o){o.preventDefault(),l("html, body").animate({scrollTop:a},p.scrollSpeed,p.easingType)})},l.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},l.fn.scrollUp.destroy=function(r){l.removeData(e.body,"scrollUp"),l("#"+l.fn.scrollUp.settings.scrollName).remove(),l("#"+l.fn.scrollUp.settings.scrollName+"-active").remove(),l.fn.jquery.split(".")[1]>=7?l(o).off("scroll",r):l(o).unbind("scroll",r)},l.scrollUp=l.fn.scrollUp}(jQuery,window,document); -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/content.php: -------------------------------------------------------------------------------- 1 | 17 | 18 |
> 19 | 96 |
-------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Ararat === 2 | Contributors: colorlib 3 | Tags: custom-header, custom-menu, featured-image-header, featured-images, full-width-template, translation-ready 4 | Requires at least: 5.2 5 | Tested up to: 5.5.1 6 | 7 | == Description == 8 | Ararat is a clean, simple, responsive and customizable WordPress theme that looks awesome on any device. For a quick launch of a page to showcases your works, your talents and your services, apredefined theme is a wise decision to make. Ararat has it all in store for you to easily and effortlessly engineer an appealing page to attract new clients and seal new business deals. 9 | 10 | 11 | = License = 12 | Ararat WordPress theme, Copyright (C) 2018 Colorlib.com 13 | Ararat WordPress theme is licensed under the GPL2. 14 | 15 | Unless otherwise specified, all the theme files, scripts and images are licensed under GNU General Public License. 16 | The exceptions to this license are as follows: 17 | 18 | Images: 19 | - theme screenshot: custom work created by Colorlib.com and released under GPLv2 20 | 21 | * Bootstrap v4.1.1 (http://getbootstrap.com) 22 | Copyright 2011-2018 Twitter, Inc. 23 | Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 24 | 25 | * Animate CSS (https://daneden.github.io/animate.css/) 26 | Licensed under MIT (https://github.com/daneden/animate.css/blob/master/LICENSE) 27 | 28 | * Font Awesome 29 | License: SIL OFL 1.1 30 | URL: http://scripts.sil.org/OFL 31 | 32 | * Google Fonts: 33 | License: SIL OFL 1.1 34 | URL: http://scripts.sil.org/OFL 35 | 36 | * PopperJS (https://github.com/FezVrasta/popper.js) 37 | Copyright © 2016-2018 Federico Zivolo 38 | License: MIT 39 | URL: https://github.com/FezVrasta/popper.js/blob/master/LICENSE.md 40 | 41 | *ScrollUpJS (http://markgoodyear.com/labs/scrollup/) 42 | Copyright (c) Mark Goodyear — @markgdyr — http://markgoodyear.com 43 | License: MIT 44 | URL: http://markgoodyear.com/labs/scrollup/ 45 | 46 | *wowJS (https://github.com/graingert/wow) 47 | URL: https://wowjs.uk 48 | Copyright (c) 2016 - 2018 Thomas Grainger 49 | License: MIT 50 | -------------------------------------------------------------------------------- /templates/footer-top.php: -------------------------------------------------------------------------------- 1 | 18 | 19 |
-------------------------------------------------------------------------------- /inc/ararat-widgets-reg.php: -------------------------------------------------------------------------------- 1 | esc_html__( 'Sidebar', 'ararat' ), 20 | 'id' => 'ararat-post-sidebar', 21 | 'before_widget' => '
', 22 | 'after_widget' => '
', 23 | 'before_title' => '

', 24 | 'after_title' => '

', 25 | ) ); 26 | 27 | // footer widgets register 28 | register_sidebar( array( 29 | 'name' => esc_html__( 'Footer One', 'ararat' ), 30 | 'id' => 'footer-1', 31 | 'before_widget' => '
', 33 | 'before_title' => '', 35 | ) ); 36 | register_sidebar( array( 37 | 'name' => esc_html__( 'Footer Two', 'ararat' ), 38 | 'id' => 'footer-2', 39 | 'before_widget' => '
', 41 | 'before_title' => '', 43 | ) ); 44 | register_sidebar( array( 45 | 'name' => esc_html__( 'Footer Three', 'ararat' ), 46 | 'id' => 'footer-3', 47 | 'before_widget' => '
', 49 | 'before_title' => '', 51 | ) ); 52 | 53 | } 54 | add_action( 'widgets_init', 'ararat_widgets_init' ); 55 | -------------------------------------------------------------------------------- /assets/js/jquery.instagramFeed.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jquery.instagramFeed 3 | * 4 | * @version 1.0 5 | * 6 | * @author Javier Sanahuja Liebana 7 | * 8 | * https://github.com/BanNsS1/jquery.instagramFeed 9 | * 10 | */ 11 | (function(e){var l={username:"",container:"",display_profile:!0,display_biography:!0,display_gallery:!0,get_raw_json:!1,callback:null,styling:!0,items:8,items_per_row:4,margin:.5};e.instagramFeed=function(b){b=e.fn.extend({},l,b);""==b.username&&""==b.tag?console.log("Instagram Feed: Error, no username or tag found."):b.get_raw_json||""!=b.container?b.get_raw_json&&null==b.callback?console.log("Instagram Feed: Error, no callback defined to get the raw json"):e.get("https://www.instagram.com/"+b.username, 12 | function(a){a=a.split("window._sharedData = ");a=a[1].split("\x3c/script>");a=a[0];a=a.substr(0,a.length-1);a=JSON.parse(a);a=a.entry_data.ProfilePage[0].graphql.user;if(b.get_raw_json)b.callback(JSON.stringify({id:a.id,username:a.username,full_name:a.full_name,is_private:a.is_private,is_verified:a.is_verified,biography:a.biography,followed_by:a.edge_followed_by.count,following:a.edge_follow.count,images:a.edge_owner_to_timeline_media.edges}));else{var d="",f="",g="",h="",k="";b.styling&&(d=" style='text-align:center;'", 13 | f=" style='border-radius:10em;width:15%;max-width:125px;min-width:50px;'",g=" style='font-size:1.2em;'",h=" style='font-size:1em;'",k=" style='margin:"+b.margin+"% "+b.margin+"%;width:"+(100-2*b.margin*b.items_per_row)/b.items_per_row+"%;float:left;'");var c="";b.display_profile&&(c=c+("
")+("\t"+b.username+" profile pic"),c+="\t

@"+a.full_name+" (@"+b.username+")

");b.display_biography&&(c+="\t

"+a.biography+"

");b.display_profile&&(c+="
");if(b.display_gallery)if(a.is_private)c+="

This profile is private

";else{a=a.edge_owner_to_timeline_media.edges;max=a.length>b.items?b.items:a.length;c+=""}e(b.container).html(c)}}):console.log("Instagram Feed: Error, no container found.")}})(jQuery); -------------------------------------------------------------------------------- /assets/js/ararat-elementor-notice.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notice for Elementor 3 | * 4 | * @package Ararat 5 | */ 6 | 7 | /* global araratElementorNotice */ 8 | 9 | jQuery( document ).ready( 10 | function () { 11 | 12 | var style = ''; 13 | 14 | var dialog = style + '
' + 15 | '
' + 16 | '
Ararat supports default styling for Elementor widgets
' + 17 | '
Do you want to disable Elementors\' default styles and use the theme defaults?
' + 18 | '
' + 19 | 'No' + 20 | 'Yes' + 21 | '
' + 22 | '
' + 23 | '
'; 24 | 25 | jQuery( 'body' ).prepend( dialog ); 26 | jQuery( '.ararat-elementor-notice-buttons > a' ).on( 27 | 'click', function() { 28 | 29 | var reply = jQuery( this ).data( 'reply' ); 30 | 31 | jQuery.ajax( 32 | { 33 | url: araratElementorNotice.ajaxurl, 34 | data: { 35 | reply: reply, 36 | nonce: araratElementorNotice.nonce, 37 | action: 'elementor_desiable_default_style' 38 | }, 39 | type: 'post', 40 | success: function () { 41 | 42 | if ( reply === 'yes' ) { 43 | parent.location.reload(); 44 | } else { 45 | jQuery( '.ararat-disable-elementor-styling' ).fadeOut( 500, function() { jQuery( this ).remove(); } ); 46 | } 47 | } 48 | } 49 | ); 50 | } 51 | ); 52 | } 53 | ); 54 | -------------------------------------------------------------------------------- /inc/wp_bootstrap_pagination.php: -------------------------------------------------------------------------------- 1 | 4, 20 | 'custom_query' => FALSE, 21 | 'previous_string' => esc_html__( '«', 'ararat' ), 22 | 'next_string' => esc_html__( '»', 'ararat' ), 23 | 'before_output' => '
' 25 | ); 26 | 27 | $args = wp_parse_args( 28 | $args, 29 | apply_filters( 'ararat_pagination_defaults', $defaults ) 30 | ); 31 | 32 | $args['range'] = (int) $args['range'] - 1; 33 | if ( !$args['custom_query'] ) 34 | $args['custom_query'] = isset( $GLOBALS['wp_query'] ) ? $GLOBALS['wp_query'] : ''; 35 | $count = (int) $args['custom_query']->max_num_pages; 36 | $page = intval( get_query_var( 'paged' ) ); 37 | $ceil = ceil( $args['range'] / 2 ); 38 | 39 | if ( $count <= 1 ) 40 | return FALSE; 41 | 42 | if ( !$page ) 43 | $page = 1; 44 | 45 | if ( $count > $args['range'] ) { 46 | if ( $page <= $args['range'] ) { 47 | $min = 1; 48 | $max = $args['range'] + 1; 49 | } elseif ( $page >= ($count - $ceil) ) { 50 | $min = $count - $args['range']; 51 | $max = $count; 52 | } elseif ( $page >= $args['range'] && $page < ($count - $ceil) ) { 53 | $min = $page - $ceil; 54 | $max = $page + $ceil; 55 | } 56 | } else { 57 | $min = 1; 58 | $max = $count; 59 | } 60 | 61 | $echo = ''; 62 | 63 | 64 | if ( !empty($min) && !empty($max) ) { 65 | for( $i = $min; $i <= $max; $i++ ) { 66 | if ( $page == $i ) { 67 | $echo .= '
  • ' . str_pad( (int)$i, 1, '0', STR_PAD_LEFT ) . '.
  • '; 68 | } else { 69 | $echo .= sprintf( '
  • %2d.
  • ', esc_attr( get_pagenum_link($i) ), $i ); 70 | } 71 | } 72 | } 73 | 74 | 75 | if ( isset($echo) ) 76 | echo wp_kses_post( $args['before_output'] . $echo . $args['after_output'] ); 77 | } 78 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/content-single.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
    > 17 |
    18 | 106 |
    107 | 115 |
    -------------------------------------------------------------------------------- /assets/js/nice-select.min.js: -------------------------------------------------------------------------------- 1 | /* jQuery Nice Select - v1.0 2 | https://github.com/hernansartorio/jquery-nice-select 3 | Made by Hernán Sartorio */ 4 | !function(e){e.fn.niceSelect=function(t){function s(t){t.after(e("
    ").addClass("nice-select").addClass(t.attr("class")||"").addClass(t.attr("disabled")?"disabled":"").attr("tabindex",t.attr("disabled")?null:"0").html(''));var s=t.next(),n=t.find("option"),i=t.find("option:selected");s.find(".current").html(i.data("display")||i.text()),n.each(function(t){var n=e(this),i=n.data("display");s.find("ul").append(e("
  • ").attr("data-value",n.val()).attr("data-display",i||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))})}if("string"==typeof t)return"update"==t?this.each(function(){var t=e(this),n=e(this).next(".nice-select"),i=n.hasClass("open");n.length&&(n.remove(),s(t),i&&t.next().trigger("click"))}):"destroy"==t?(this.each(function(){var t=e(this),s=e(this).next(".nice-select");s.length&&(s.remove(),t.css("display",""))}),0==e(".nice-select").length&&e(document).off(".nice_select")):console.log('Method "'+t+'" does not exist.'),this;this.hide(),this.each(function(){var t=e(this);t.next().hasClass("nice-select")||s(t)}),e(document).off(".nice_select"),e(document).on("click.nice_select",".nice-select",function(t){var s=e(this);e(".nice-select").not(s).removeClass("open"),s.toggleClass("open"),s.hasClass("open")?(s.find(".option"),s.find(".focus").removeClass("focus"),s.find(".selected").addClass("focus")):s.focus()}),e(document).on("click.nice_select",function(t){0===e(t.target).closest(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(t){var s=e(this),n=s.closest(".nice-select");n.find(".selected").removeClass("selected"),s.addClass("selected");var i=s.data("display")||s.text();n.find(".current").text(i),n.prev("select").val(s.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(t){var s=e(this),n=e(s.find(".focus")||s.find(".list .option.selected"));if(32==t.keyCode||13==t.keyCode)return s.hasClass("open")?n.trigger("click"):s.trigger("click"),!1;if(40==t.keyCode){if(s.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();i.length>0&&(s.find(".focus").removeClass("focus"),i.addClass("focus"))}else s.trigger("click");return!1}if(38==t.keyCode){if(s.hasClass("open")){var l=n.prevAll(".option:not(.disabled)").first();l.length>0&&(s.find(".focus").removeClass("focus"),l.addClass("focus"))}else s.trigger("click");return!1}if(27==t.keyCode)s.hasClass("open")&&s.trigger("click");else if(9==t.keyCode&&s.hasClass("open"))return!1});var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&e("html").addClass("no-csspointerevents"),this}}(jQuery); -------------------------------------------------------------------------------- /assets/css/owl.carousel.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Owl Carousel v2.2.1 3 | * Copyright 2013-2017 David Deutsch 4 | * Licensed under () 5 | */ 6 | .owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;cursor:hand;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%} -------------------------------------------------------------------------------- /inc/libraries/class-epsilon-init-notify-system.php: -------------------------------------------------------------------------------- 1 | Epsilon_Notify_System::check_plugin_is_installed( $slug ), 44 | 'active' => Epsilon_Notify_System::check_plugin_is_active( $slug ), 45 | ); 46 | 47 | if ( empty( $get ) ) { 48 | $arr = array_filter( $arr ); 49 | 50 | return 2 === count( $arr ); 51 | } 52 | } 53 | 54 | // Translators: %s is the plugin name. 55 | $arr['title'] = sprintf( __( 'Install: %s', 'ararat' ), $plugin_name ); 56 | // Translators: %s is the plugin name. 57 | $arr['description'] = sprintf( __( 'Please install %s in order to create the demo content.', 'ararat' ), $plugin_name ); 58 | 59 | if ( $arr['installed'] ) { 60 | // Translators: %s is the plugin name 61 | $arr['title'] = sprintf( __( 'Activate: %s', 'ararat' ), $plugin_name ); 62 | // Translators: %s is the plugin name 63 | $arr['description'] = sprintf( __( 'Please activate %s in order to create the demo content.', 'ararat' ), $plugin_name ); 64 | } 65 | 66 | return $arr[ $get ]; 67 | } 68 | 69 | /** 70 | * @return array 71 | */ 72 | public static function verify_cf7() { 73 | $arr = array( 74 | 'installed' => false, 75 | 'active' => false, 76 | ); 77 | 78 | if ( file_exists( ABSPATH . 'wp-content/plugins/contact-form-7' ) ) { 79 | $arr['installed'] = true; 80 | $arr['active'] = true; 81 | } 82 | 83 | return $arr; 84 | } 85 | 86 | public static function verify_ocdi() { 87 | $arr = array( 88 | 'installed' => false, 89 | 'active' => false, 90 | ); 91 | 92 | if ( file_exists( ABSPATH . 'wp-content/plugins/one-click-demo-import' ) ) { 93 | $arr['installed'] = true; 94 | $arr['active'] = true; 95 | } 96 | 97 | return $arr; 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /templates/header-top.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 |
    7 |
    8 | 56 |
    57 |
    58 | -------------------------------------------------------------------------------- /inc/hooks/hooks.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /single-course.php: -------------------------------------------------------------------------------- 1 | 21 | 22 |
    23 |
    24 |
    25 |
    26 |
    27 |
    28 |

    29 | 30 |
    31 |
    32 |

    33 |

    34 |
    35 |
    36 |
    37 |
    38 |
    39 |
    40 |

    41 | 42 |
    43 |
    44 |

    45 | 46 |
    47 |
    48 |

    49 | 50 |
    51 |
    52 |

    53 | 54 |
    55 | 56 |
    57 |
    58 |
    59 |
    60 |
    61 | 62 | 23 | 24 | 25 |
    26 |

    27 | 'div', 31 | 'short_ping' => true, 32 | 'avatar_size' => 70, 33 | 'type' => 'all', 34 | 'callback' => 'ararat_comment_callback', 35 | ) 36 | ); 37 | the_comments_pagination(); ?> 38 |
    39 | 40 | 41 | 42 | 44 |

    45 | 48 | 49 |
    50 | 51 |

    52 | 53 | 54 | '
    ', 60 | 'email' => '
    ', 61 | 'url' => '
    ' 62 | ); 63 | $comments_args = array( 64 | 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 65 | 'class_form' => 'form-contact comment_form', 66 | 'id_form' => 'commentForm', 67 | 'submit_button' => '
    ', 68 | 'id_submit' => 'submit-btn', 69 | 'title_reply' => '', 70 | 'comment_notes_before' => '', 71 | 'comment_field' => '
    ', 72 | 'comment_notes_after' => '', 73 | ); 74 | comment_form($comments_args); 75 | ?> 76 |
    -------------------------------------------------------------------------------- /inc/classes/Class-Enqueue.php: -------------------------------------------------------------------------------- 1 | scripts; 27 | 28 | // variable type check 29 | if( is_array( $scripts ) && count( $scripts ) > 0 ){ 30 | 31 | // Style Enqueue 32 | if( is_array( $scripts['style'] ) && count( $scripts['style'] ) > 0 ){ 33 | 34 | foreach( $scripts['style'] as $style ){ 35 | 36 | // Check handler 37 | $handler = ''; 38 | if( !empty( $style['handler'] ) ){ 39 | $handler = $style['handler']; 40 | } 41 | 42 | // Check file 43 | $file = ''; 44 | if( !empty( $style['file'] ) ){ 45 | $file = $style['file']; 46 | } 47 | // Check dependency 48 | $dependency = ''; 49 | if( !empty( $style['dependency'] ) ){ 50 | $dependency = $style['dependency']; 51 | } 52 | // Check version 53 | $version = ''; 54 | if( !empty( $style['version'] ) ){ 55 | $version = $style['version']; 56 | } 57 | 58 | // wp_enqueue_style 59 | wp_enqueue_style( esc_html( $handler ), esc_url( $file ), $dependency, esc_html( $version ) ); 60 | 61 | } 62 | 63 | } // End Style Enqueue 64 | 65 | // Scripts Enqueue 66 | if( is_array( $scripts['scripts'] ) && count( $scripts['scripts'] ) > 0 ){ 67 | 68 | foreach( $scripts['scripts'] as $script ){ 69 | 70 | // Check handler 71 | $handler = ''; 72 | if( !empty( $script['handler'] ) ){ 73 | $handler = $script['handler']; 74 | } 75 | 76 | // Check file 77 | $file = ''; 78 | if( !empty( $script['file'] ) ){ 79 | $file = $script['file']; 80 | } 81 | // Check dependency 82 | $dependency = array('jquery'); 83 | if( !empty( $script['dependency'] ) ){ 84 | $dependency = $script['dependency']; 85 | } 86 | // Check version 87 | $version = ''; 88 | if( !empty( $script['version'] ) ){ 89 | $version = $script['version']; 90 | } 91 | // Check in_footer 92 | $in_footer = ''; 93 | if( !empty( $script['in_footer'] ) ){ 94 | $in_footer = $script['in_footer']; 95 | } 96 | 97 | // wp enqueue script 98 | if( !empty( $script['register'] ) ){ 99 | wp_register_script( esc_html( $handler ), esc_url( $file ), $dependency, esc_html( $version ), esc_html( $in_footer ) ); 100 | }else{ 101 | wp_enqueue_script( esc_html( $handler ), esc_url( $file ), $dependency, esc_html( $version ), esc_html( $in_footer ) ); 102 | } 103 | 104 | // Condational Script 105 | if( !empty( $script['condation'] ) ){ 106 | wp_script_add_data( esc_html( $handler ), 'conditional', esc_html( $script['condation'] ) ); 107 | } 108 | 109 | } 110 | 111 | // Comment replay 112 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 113 | wp_enqueue_script( 'comment-reply' ); 114 | } 115 | 116 | } // End Scripts Enqueue 117 | 118 | 119 | } // End variable type check 120 | 121 | } 122 | 123 | } 124 | 125 | 126 | 127 | 128 | ?> -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | add_setting( 'footer_logo', 23 | array( 24 | 'type' => 'theme_mod', 25 | 'capability' => 'edit_theme_options', 26 | 'sanitize_callback' => 'absint' 27 | ) 28 | ); // Add setting for image uploader 29 | 30 | // Add control for image uploader (actual uploader) 31 | $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'WP_Customize_Cropped_Image_Control', array( 32 | 'label' => __( 'Footer Logo', 'ararat' ), 33 | 'priority' => 1, 34 | 'section' => 'ararat_footer_section', 35 | 'settings' => 'footer_logo', 36 | ) ) 37 | ); 38 | 39 | // Include files 40 | include( ARARAT_DIR_PATH_INC. 'customizer/fields/sections.php' ); 41 | include( ARARAT_DIR_PATH_INC. 'customizer/fields/fields.php' ); 42 | 43 | // Change panel to theme option 44 | $wp_customize->get_section( 'title_tagline' )->panel = 'ararat_theme_options_panel'; 45 | // change priorities 46 | $wp_customize->get_section( 'title_tagline' )->priority = 0; 47 | $wp_customize->remove_section( 'colors' ); 48 | 49 | // Copyright text selective refresh 50 | $wp_customize->selective_refresh->add_partial( 'ararat-copyright-text-settings', 51 | array( 'selector' => '.copyright-text' ) ); 52 | 53 | 54 | } 55 | 56 | 57 | // Customizer js enqueue 58 | 59 | public function ararat_customizer_js(){ 60 | 61 | wp_enqueue_script( 'ararat-customizer', ARARAT_DIR_URI.'inc/customizer/js/customizer.js', array('customize-controls'), '1.0', true ); 62 | 63 | wp_localize_script( 'ararat-customizer', 'customizerdata', array( 64 | 'site_url' => site_url('/'), 65 | 'blog_page' => get_post_type_archive_link( 'post' ), 66 | 67 | ) ); 68 | 69 | } 70 | 71 | // Get page name by page template 72 | public static function ararat_get_page_name( $template ){ 73 | 74 | $pages = get_pages(array( 75 | 'meta_key' => '_wp_page_template', 76 | 'meta_value' => esc_html( $template ) 77 | )); 78 | 79 | return $pages; 80 | } 81 | 82 | // Image sanitization callback. 83 | 84 | public static function ararat_sanitize_image( $image, $setting ) { 85 | 86 | /* 87 | * Array of valid image file types. 88 | * 89 | * The array includes image mime types that are included in wp_get_mime_types() 90 | */ 91 | $mimes = array( 92 | 'jpg|jpeg|jpe' => 'image/jpeg', 93 | 'gif' => 'image/gif', 94 | 'png' => 'image/png', 95 | 'bmp' => 'image/bmp', 96 | 'tif|tiff' => 'image/tiff', 97 | 'ico' => 'image/x-icon' 98 | ); 99 | 100 | // Return an array with file extension and mime_type. 101 | $file = wp_check_filetype( $image, $mimes ); 102 | 103 | // If $image has a valid mime_type, return it; otherwise, return the default. 104 | return ( $file['ext'] ? $image : $setting->default ); 105 | } 106 | 107 | } 108 | ?> -------------------------------------------------------------------------------- /inc/customizer/fields/sections.php: -------------------------------------------------------------------------------- 1 | 'ararat_theme_options_panel', 22 | 'args' => array( 23 | 'priority' => 0, 24 | 'capability' => 'edit_theme_options', 25 | 'theme_supports' => '', 26 | 'title' => esc_html__( 'Theme Options', 'ararat' ), 27 | ), 28 | ) 29 | ); 30 | 31 | 32 | /*********************************** 33 | * Register customizer sections 34 | ***********************************/ 35 | 36 | 37 | $sections = array( 38 | 39 | /** 40 | * General Section 41 | */ 42 | array( 43 | 'id' => 'ararat_general_section', 44 | 'args' => array( 45 | 'title' => esc_html__( 'General', 'ararat' ), 46 | 'panel' => 'ararat_theme_options_panel', 47 | 'priority' => 1, 48 | ), 49 | ), 50 | 51 | /** 52 | * Social Profiles Section 53 | */ 54 | array( 55 | 'id' => 'ararat_social_section', 56 | 'args' => array( 57 | 'title' => esc_html__( 'Social Profiles', 'ararat' ), 58 | 'panel' => 'ararat_theme_options_panel', 59 | 'priority' => 2, 60 | ), 61 | ), 62 | 63 | /** 64 | * Header Section 65 | */ 66 | array( 67 | 'id' => 'ararat_header_section', 68 | 'args' => array( 69 | 'title' => esc_html__( 'Header', 'ararat' ), 70 | 'panel' => 'ararat_theme_options_panel', 71 | 'priority' => 3, 72 | ), 73 | ), 74 | 75 | /** 76 | * Blog Section 77 | */ 78 | array( 79 | 'id' => 'ararat_blog_section', 80 | 'args' => array( 81 | 'title' => esc_html__( 'Blog', 'ararat' ), 82 | 'panel' => 'ararat_theme_options_panel', 83 | 'priority' => 4, 84 | ), 85 | ), 86 | 87 | /** 88 | * Reservation Section 89 | */ 90 | array( 91 | 'id' => 'ararat_reservation_section', 92 | 'args' => array( 93 | 'title' => esc_html__( 'Reservation or Query Settings', 'ararat' ), 94 | 'panel' => 'ararat_theme_options_panel', 95 | 'priority' => 5, 96 | ), 97 | ), 98 | 99 | /** 100 | * Instagram Section 101 | */ 102 | array( 103 | 'id' => 'ararat_instagram_section', 104 | 'args' => array( 105 | 'title' => esc_html__( 'Instagram Settings', 'ararat' ), 106 | 'panel' => 'ararat_theme_options_panel', 107 | 'priority' => 6, 108 | ), 109 | ), 110 | 111 | 112 | /** 113 | * 404 Page Section 114 | */ 115 | array( 116 | 'id' => 'ararat_fof_section', 117 | 'args' => array( 118 | 'title' => esc_html__( '404 Page', 'ararat' ), 119 | 'panel' => 'ararat_theme_options_panel', 120 | 'priority' => 7, 121 | ), 122 | ), 123 | 124 | /** 125 | * Footer Section 126 | */ 127 | array( 128 | 'id' => 'ararat_footer_section', 129 | 'args' => array( 130 | 'title' => esc_html__( 'Footer Page', 'ararat' ), 131 | 'panel' => 'ararat_theme_options_panel', 132 | 'priority' => 8, 133 | ), 134 | ), 135 | 136 | 137 | 138 | ); 139 | 140 | 141 | /*********************************** 142 | * Add customizer elements 143 | ***********************************/ 144 | $collection = array( 145 | 'panel' => $panels, 146 | 'section' => $sections, 147 | ); 148 | 149 | Epsilon_Customizer::add_multiple( $collection ); 150 | 151 | ?> -------------------------------------------------------------------------------- /assets/js/scrollIt.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ScrollIt 3 | * ScrollIt.js(scroll•it•dot•js) makes it easy to make long, vertically scrolling pages. 4 | * 5 | * Latest version: https://github.com/cmpolis/scrollIt.js 6 | * 7 | * License 8 | */ 9 | (function($) { 10 | 'use strict'; 11 | 12 | var pluginName = 'ScrollIt', 13 | pluginVersion = '1.0.3'; 14 | 15 | /* 16 | * OPTIONS 17 | */ 18 | var defaults = { 19 | upKey: 38, 20 | downKey: 40, 21 | easing: 'linear', 22 | scrollTime: 600, 23 | activeClass: 'active', 24 | onPageChange: null, 25 | topOffset : 0 26 | }; 27 | 28 | $.scrollIt = function(options) { 29 | 30 | /* 31 | * DECLARATIONS 32 | */ 33 | var settings = $.extend(defaults, options), 34 | active = 0, 35 | lastIndex = $('[data-scroll-index]:last').attr('data-scroll-index'); 36 | 37 | /* 38 | * METHODS 39 | */ 40 | 41 | /** 42 | * navigate 43 | * 44 | * sets up navigation animation 45 | */ 46 | var navigate = function(ndx) { 47 | if(ndx < 0 || ndx > lastIndex) return; 48 | 49 | var targetTop = $('[data-scroll-index=' + ndx + ']').offset().top + settings.topOffset + 1; 50 | $('html,body').animate({ 51 | scrollTop: targetTop, 52 | easing: settings.easing 53 | }, settings.scrollTime); 54 | }; 55 | 56 | /** 57 | * doScroll 58 | * 59 | * runs navigation() when criteria are met 60 | */ 61 | var doScroll = function (e) { 62 | var target = $(e.target).closest("[data-scroll-nav]").attr('data-scroll-nav') || 63 | $(e.target).closest("[data-scroll-goto]").attr('data-scroll-goto'); 64 | navigate(parseInt(target)); 65 | }; 66 | 67 | /** 68 | * keyNavigation 69 | * 70 | * sets up keyboard navigation behavior 71 | */ 72 | var keyNavigation = function (e) { 73 | var key = e.which; 74 | if($('html,body').is(':animated') && (key == settings.upKey || key == settings.downKey)) { 75 | return false; 76 | } 77 | if(key == settings.upKey && active > 0) { 78 | navigate(parseInt(active) - 1); 79 | return false; 80 | } else if(key == settings.downKey && active < lastIndex) { 81 | navigate(parseInt(active) + 1); 82 | return false; 83 | } 84 | return true; 85 | }; 86 | 87 | /** 88 | * updateActive 89 | * 90 | * sets the currently active item 91 | */ 92 | var updateActive = function(ndx) { 93 | if(settings.onPageChange && ndx && (active != ndx)) settings.onPageChange(ndx); 94 | 95 | active = ndx; 96 | $('[data-scroll-nav]').removeClass(settings.activeClass); 97 | $('[data-scroll-nav=' + ndx + ']').addClass(settings.activeClass); 98 | }; 99 | 100 | /** 101 | * watchActive 102 | * 103 | * watches currently active item and updates accordingly 104 | */ 105 | var watchActive = function() { 106 | var winTop = $(window).scrollTop(); 107 | 108 | var visible = $('[data-scroll-index]').filter(function(ndx, div) { 109 | return winTop >= $(div).offset().top + settings.topOffset && 110 | winTop < $(div).offset().top + (settings.topOffset) + $(div).outerHeight() 111 | }); 112 | var newActive = visible.first().attr('data-scroll-index'); 113 | updateActive(newActive); 114 | }; 115 | 116 | /* 117 | * runs methods 118 | */ 119 | $(window).on('scroll',watchActive).scroll(); 120 | 121 | $(window).on('keydown', keyNavigation); 122 | 123 | $('body').on('click','[data-scroll-nav], [data-scroll-goto]', function(e){ 124 | e.preventDefault(); 125 | doScroll(e); 126 | }); 127 | 128 | }; 129 | }(jQuery)); 130 | -------------------------------------------------------------------------------- /assets/css/nice-select.css: -------------------------------------------------------------------------------- 1 | .nice-select { 2 | -webkit-tap-highlight-color: transparent; 3 | background-color: #fff; 4 | border-radius: 5px; 5 | border: solid 1px #e8e8e8; 6 | box-sizing: border-box; 7 | clear: both; 8 | cursor: pointer; 9 | display: block; 10 | float: left; 11 | font-family: inherit; 12 | font-size: 14px; 13 | font-weight: normal; 14 | height: 42px; 15 | line-height: 40px; 16 | outline: none; 17 | padding-left: 18px; 18 | padding-right: 30px; 19 | position: relative; 20 | text-align: left !important; 21 | -webkit-transition: all 0.2s ease-in-out; 22 | transition: all 0.2s ease-in-out; 23 | -webkit-user-select: none; 24 | -moz-user-select: none; 25 | -ms-user-select: none; 26 | user-select: none; 27 | white-space: nowrap; 28 | width: auto; } 29 | .nice-select:hover { 30 | border-color: #dbdbdb; } 31 | .nice-select:active, .nice-select.open, .nice-select:focus { 32 | border-color: #999; } 33 | 34 | 35 | .nice-select.disabled { 36 | border-color: #ededed; 37 | color: #999; 38 | pointer-events: none; } 39 | .nice-select.disabled:after { 40 | border-color: #cccccc; } 41 | .nice-select.wide { 42 | width: 100%; } 43 | .nice-select.wide .list { 44 | left: 0 !important; 45 | right: 0 !important; } 46 | .nice-select.right { 47 | float: right; } 48 | .nice-select.right .list { 49 | left: auto; 50 | right: 0; } 51 | .nice-select.small { 52 | font-size: 12px; 53 | height: 36px; 54 | line-height: 34px; } 55 | .nice-select.small:after { 56 | height: 4px; 57 | width: 4px; } 58 | .nice-select.small .option { 59 | line-height: 34px; 60 | min-height: 34px; } 61 | .nice-select .list { 62 | background-color: #fff; 63 | border-radius: 5px; 64 | box-shadow: 0 0 0 1px rgba(68, 68, 68, 0.11); 65 | box-sizing: border-box; 66 | margin-top: 4px; 67 | opacity: 0; 68 | overflow: hidden; 69 | padding: 0; 70 | pointer-events: none; 71 | position: absolute; 72 | top: 100%; 73 | left: 0; 74 | -webkit-transform-origin: 50% 0; 75 | -ms-transform-origin: 50% 0; 76 | transform-origin: 50% 0; 77 | -webkit-transform: scale(0.75) translateY(-21px); 78 | -ms-transform: scale(0.75) translateY(-21px); 79 | transform: scale(0.75) translateY(-21px); 80 | -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out; 81 | transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out; 82 | z-index: 9; } 83 | .nice-select .list:hover .option:not(:hover) { 84 | background-color: transparent !important; } 85 | .nice-select .option { 86 | cursor: pointer; 87 | font-weight: 400; 88 | line-height: 40px; 89 | list-style: none; 90 | min-height: 40px; 91 | outline: none; 92 | padding-left: 18px; 93 | padding-right: 29px; 94 | text-align: left; 95 | -webkit-transition: all 0.2s; 96 | transition: all 0.2s; } 97 | .nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus { 98 | background-color: #f6f6f6; } 99 | .nice-select .option.selected { 100 | font-weight: bold; } 101 | .nice-select .option.disabled { 102 | background-color: transparent; 103 | color: #999; 104 | cursor: default; } 105 | 106 | .no-csspointerevents .nice-select .list { 107 | display: none; } 108 | 109 | .no-csspointerevents .nice-select.open .list { 110 | display: block; } 111 | 112 | 113 | 114 | 115 | 116 | /* ,,,,,,,,,,,,,,,, */ 117 | 118 | 119 | .nice-select:after { 120 | content: "\e64b"; 121 | display: block; 122 | height: 5px; 123 | margin-top: -5px; 124 | pointer-events: none; 125 | position: absolute; 126 | right: 30px; 127 | top: 8px; 128 | transition: all 0.15s ease-in-out; 129 | width: 5px; 130 | font-family: 'themify'; 131 | color: #ddd; } 132 | 133 | .nice-select.open:after { 134 | } 135 | .nice-select.open .list { 136 | opacity: 1; 137 | pointer-events: auto; 138 | -webkit-transform: scale(1) translateY(0); 139 | -ms-transform: scale(1) translateY(0); 140 | transform: scale(1) translateY(0); } -------------------------------------------------------------------------------- /assets/css/elementor-default-element-style.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Common css 3 | */ 4 | 5 | .elementor-icon, 6 | .elementor-widget-counter .elementor-counter-number-wrapper, 7 | .elementor-widget-icon-list .elementor-icon-list-icon i { 8 | color: #4a7aec; 9 | } 10 | .elementor-widget-tabs .elementor-tab-title, 11 | .elementor-widget-accordion .elementor-accordion .elementor-tab-title { 12 | color: #222; 13 | } 14 | .elementor-accordion .elementor-tab-content, 15 | .elementor-accordion .elementor-accordion-item { 16 | border-color: #eee; 17 | } 18 | .elementor-widget-tabs .elementor-tab-content, 19 | .elementor-widget-tabs .elementor-tab-title:after, 20 | .elementor-widget-tabs .elementor-tab-title:before, 21 | .elementor-widget-tabs .elementor-tab-content { 22 | border-color: #eee; 23 | } 24 | .elementor-widget-tabs .elementor-tab-desktop-title.elementor-active{ 25 | border: 0px; 26 | background-color: #404551; 27 | } 28 | .elementor-widget .elementor-icon-list-item { 29 | margin-bottom: 8px; 30 | } 31 | .elementor-6 .elementor-element.elementor-element-a2d9792 .elementor-tab-content { 32 | color: #abadbe; 33 | font-size: 15px; 34 | } 35 | /** 36 | * Progress Css 37 | */ 38 | .elementor-widget-progress .elementor-title { 39 | color: #abadbe; 40 | margin-bottom: 8px; 41 | display: inline-block; 42 | font-weight: 500; 43 | font-size: 15px; 44 | } 45 | .elementor-progress-text { 46 | font-size: 0px; 47 | } 48 | .elementor-progress-wrapper { 49 | background-color: #eee; 50 | color: #222; 51 | -webkit-border-radius: 0px; 52 | height: 5px; 53 | line-height: 5px; 54 | border-radius: 0px; 55 | } 56 | .elementor-progress-bar { 57 | background-color: #4a7aec; 58 | position: relative; 59 | border-radius: 0px; 60 | height: 5px; 61 | } 62 | .elementor-progress-percentage { 63 | padding-right: 0px; 64 | position: absolute; 65 | right: 0; 66 | color: #4a7aec; 67 | top: -20px; 68 | font-size: 15px; 69 | font-weight: 500; 70 | } 71 | /** 72 | * Button Css 73 | */ 74 | .elementor-button.elementor-size-xs, 75 | .elementor-button.elementor-size-lg, 76 | .elementor-button.elementor-size-xl, 77 | .elementor-button.elementor-size-md, 78 | .elementor-button.elementor-size-sm { 79 | border-radius: 50px; 80 | background: #4a7aec; 81 | border: 1px solid #4a7aec; 82 | color: #fff; 83 | font-weight: 600; 84 | -webkit-transition: all 0.3s ease 0s; 85 | -moz-transition: all 0.3s ease 0s; 86 | -o-transition: all 0.3s ease 0s; 87 | transition: all 0.3s ease 0s; 88 | } 89 | .elementor-button.elementor-size-xs:hover, 90 | .elementor-button.elementor-size-lg:hover, 91 | .elementor-button.elementor-size-xl:hover, 92 | .elementor-button.elementor-size-md:hover, 93 | .elementor-button.elementor-size-sm:hover { 94 | background-color: #1a3c8d; 95 | color: #fff; 96 | } 97 | /** 98 | * Icon box and image box css 99 | * 100 | */ 101 | .elementor-image-box-title, 102 | .elementor-icon-box-title { 103 | font-size: 18px; 104 | margin-bottom: 10px; 105 | } 106 | /** 107 | * Testimonial css 108 | * 109 | */ 110 | .elementor-testimonial-wrapper .elementor-testimonial-content { 111 | font-size: 14px; 112 | } 113 | .elementor-testimonial-wrapper .elementor-testimonial-name { 114 | font-weight: 500; 115 | color: #222; 116 | } 117 | /** 118 | * Toggle css 119 | * 120 | */ 121 | .elementor-toggle .elementor-tab-title, 122 | .elementor-toggle .elementor-tab-content { 123 | border-color: #eee; 124 | 125 | } 126 | .elementor-toggle .elementor-tab-title { 127 | color: #222; 128 | } 129 | .elementor-toggle .elementor-tab-title { 130 | background-color: #4a7aec; 131 | color: #fff; 132 | font-size: 15px; 133 | font-weight: 400; 134 | } 135 | .elementor-toggle .elementor-tab-content { 136 | color: #abadbe; 137 | font-size: 15px; 138 | } 139 | /** 140 | * Image gallery 141 | * 142 | */ 143 | 144 | .gallery .gallery-item img { 145 | border: 0px !important; 146 | } 147 | .gallery .gallery-item { 148 | margin-top: 0px !important; 149 | } 150 | /** 151 | * Counter 152 | * 153 | */ 154 | .elementor-counter .elementor-counter-title { 155 | font-size: 15px; 156 | font-weight: 500; 157 | color: #292d4f; 158 | line-height: 1.9; 159 | } 160 | 161 | /** 162 | * Accordion 163 | * 164 | */ 165 | .elementor-widget-tabs .elementor-tab-title, 166 | .elementor-widget-accordion .elementor-accordion .elementor-tab-title { 167 | background-color: #4a7aec; 168 | color: #fff; 169 | font-size: 15px; 170 | font-weight: 400; 171 | } 172 | .elementor-accordion .elementor-tab-title .elementor-accordion-icon.elementor-accordion-icon-left { 173 | font-size: 10px; 174 | margin-top: 1px; 175 | } 176 | .elementor-accordion .elementor-accordion-item { 177 | margin-bottom: 15px; 178 | color: #abadbe; 179 | font-size: 15px; 180 | } 181 | /** 182 | * Icon 183 | */ 184 | .elementor-view-stacked .elementor-icon { 185 | background-color: #4a7aec; 186 | } 187 | .elementor-view-framed .elementor-icon { 188 | color: #4a7aec; 189 | border: 3px solid #4a7aec; 190 | } 191 | .elementor-icon:hover { 192 | color: #1a3c8d; 193 | } -------------------------------------------------------------------------------- /assets/js/jquery.ajaxchimp.min.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | 'use strict'; 3 | 4 | $.ajaxChimp = { 5 | responses: { 6 | 'We have sent you a confirmation email' : 0, 7 | 'Please enter a valid email' : 1, 8 | 'An email address must contain a single @' : 2, 9 | 'The domain portion of the email address is invalid (the portion after the @: )' : 3, 10 | 'The username portion of the email address is invalid (the portion before the @: )' : 4, 11 | 'This email address looks fake or invalid. Please enter a real email address' : 5 12 | }, 13 | translations: { 14 | 'en': null 15 | }, 16 | init: function (selector, options) { 17 | $(selector).ajaxChimp(options); 18 | } 19 | }; 20 | 21 | $.fn.ajaxChimp = function (options) { 22 | $(this).each(function(i, elem) { 23 | var form = $(elem); 24 | var email = form.find('input[type=email]'); 25 | var label = form.find('.info'); 26 | 27 | var settings = $.extend({ 28 | 'url': form.attr('action'), 29 | 'language': 'en' 30 | }, options); 31 | 32 | var url = settings.url.replace('/post?', '/post-json?').concat('&c=?'); 33 | 34 | form.attr('novalidate', 'true'); 35 | email.attr('name', 'EMAIL'); 36 | 37 | form.submit(function () { 38 | var msg; 39 | function successCallback(resp) { 40 | if (resp.result === 'success') { 41 | msg = 'We have sent you a confirmation email'; 42 | label.removeClass('error').addClass('valid'); 43 | email.removeClass('error').addClass('valid'); 44 | } else { 45 | email.removeClass('valid').addClass('error'); 46 | label.removeClass('valid').addClass('error'); 47 | var index = -1; 48 | try { 49 | var parts = resp.msg.split(' - ', 2); 50 | if (parts[1] === undefined) { 51 | msg = resp.msg; 52 | } else { 53 | var i = parseInt(parts[0], 10); 54 | if (i.toString() === parts[0]) { 55 | index = parts[0]; 56 | msg = parts[1]; 57 | } else { 58 | index = -1; 59 | msg = resp.msg; 60 | } 61 | } 62 | } 63 | catch (e) { 64 | index = -1; 65 | msg = resp.msg; 66 | } 67 | } 68 | 69 | // Translate and display message 70 | if ( 71 | settings.language !== 'en' 72 | && $.ajaxChimp.responses[msg] !== undefined 73 | && $.ajaxChimp.translations 74 | && $.ajaxChimp.translations[settings.language] 75 | && $.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]] 76 | ) { 77 | msg = $.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]; 78 | } 79 | label.html(msg); 80 | 81 | label.show(2000); 82 | if (settings.callback) { 83 | settings.callback(resp); 84 | } 85 | } 86 | 87 | var data = {}; 88 | var dataArray = form.serializeArray(); 89 | $.each(dataArray, function (index, item) { 90 | data[item.name] = item.value; 91 | }); 92 | 93 | $.ajax({ 94 | url: url, 95 | data: data, 96 | success: successCallback, 97 | dataType: 'jsonp', 98 | error: function (resp, text) { 99 | console.log('mailchimp ajax submit error: ' + text); 100 | } 101 | }); 102 | 103 | // Translate and display submit message 104 | var submitMsg = 'Submitting...'; 105 | if( 106 | settings.language !== 'en' 107 | && $.ajaxChimp.translations 108 | && $.ajaxChimp.translations[settings.language] 109 | && $.ajaxChimp.translations[settings.language]['submit'] 110 | ) { 111 | submitMsg = $.ajaxChimp.translations[settings.language]['submit']; 112 | } 113 | label.html(submitMsg).show(2000); 114 | 115 | return false; 116 | }); 117 | }); 118 | return this; 119 | }; 120 | })(jQuery); -------------------------------------------------------------------------------- /assets/js/imagesloaded.pkgd.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * imagesLoaded PACKAGED v4.1.4 3 | * JavaScript is all like "You images are done yet or what?" 4 | * MIT License 5 | */ 6 | 7 | !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o'; 25 | 26 | foreach ( $cats as $cat ) { 27 | $categories .= '
  • ' . esc_html( $cat->name ) . '
  • '; 28 | } 29 | 30 | $categories .= ''; 31 | $categories .= '
    '; 32 | } 33 | 34 | return $categories; 35 | 36 | } 37 | 38 | // Blog categories 39 | function ararat_featured_post_cat(){ 40 | 41 | $categories = get_the_category(); 42 | 43 | if( is_array( $categories ) && count( $categories ) > 0 ){ 44 | $getCat = []; 45 | foreach ( $categories as $value ) { 46 | 47 | if( $value->slug != 'featured' && ! is_front_page() ){ 48 | $getCat[] = ' '.esc_html( $value->name ).''; 49 | }else{ 50 | $getCat[] = ''.esc_html( $value->name ); 51 | } 52 | } 53 | 54 | return implode( ', ', $getCat ); 55 | } 56 | 57 | } 58 | 59 | 60 | // Post Tags 61 | function ararat_post_tags() { 62 | 63 | $tags = get_the_tags(); 64 | 65 | $getTags = ''; 66 | 67 | if ( $tags ) { 68 | 69 | foreach ( $tags as $tag ) { 70 | $getTags .= '' . esc_html( $tag->name ) . ''; 71 | } 72 | 73 | } 74 | 75 | return $getTags; 76 | 77 | } 78 | 79 | 80 | // social media 81 | if ( ! function_exists( 'ararat_social' ) ) { 82 | function ararat_social( $args = array() ) { 83 | 84 | $default = array( 85 | 'wrapper_start' => '', 86 | 'wrapper_end' => '', 87 | 'class' => 'topbar-social', 88 | ); 89 | 90 | $args = wp_parse_args( $args, $default ); 91 | 92 | 93 | $url = ararat_opt( 'ararat_social_url' ); 94 | if ( is_array( $url ) && count( $url ) > 0 ): 95 | 96 | echo wp_kses_post( $args['wrapper_start'] ); 97 | 98 | echo '
    '; 99 | 100 | // Facebook 101 | if ( ! empty( $url['facebook_url'] ) ) { 102 | echo ''; 103 | } 104 | // Twitter 105 | if ( ! empty( $url['twitter_url'] ) ) { 106 | echo ''; 107 | } 108 | // Google 109 | if ( ! empty( $url['google_url'] ) ) { 110 | echo ''; 111 | } 112 | // Instagram 113 | if ( ! empty( $url['instagram_url'] ) ) { 114 | echo ''; 115 | } 116 | // Pinterest 117 | if ( ! empty( $url['pinterest_url'] ) ) { 118 | echo ''; 119 | } 120 | // Snapchat 121 | if ( ! empty( $url['snapchat_url'] ) ) { 122 | echo ''; 123 | } 124 | // Youtube 125 | if ( ! empty( $url['youtube_url'] ) ) { 126 | echo ''; 127 | } 128 | 129 | 130 | echo '
    '; 131 | echo wp_kses_post( $args['wrapper_end'] ); 132 | 133 | endif; 134 | } 135 | } 136 | // header cart count 137 | function ararat_cart_count( $class = '' ) { 138 | 139 | ?> 140 |
    141 | <?php esc_attr_e( 'ICON', 'ararat' ); ?> 142 | cart->cart_contents_count ); ?> 143 |
    144 | 145 |
    146 |
    147 |
    [textarea* your-message id:message class:form-control class:w-100 rows:9 cols:30 placeholder "Message"]
    [text* your-name id:name class:form-control placeholder "Enter your name"]
    [email* your-email id:email class:form-control placeholder "Enter your email"]
    [text your-subject id:subject class:form-control placeholder "Subject"]
    [submit class:button class:button-contactForm class:btn_1 class:boxed-btn "Send Message"]
    '; 158 | 159 | return $template; 160 | 161 | } else { 162 | return $template; 163 | } 164 | } 165 | add_filter( 'wpcf7_default_template', 'ararat_contact7_form_content', 10, 2 ); -------------------------------------------------------------------------------- /inc/customizer/js/customizer.js: -------------------------------------------------------------------------------- 1 | (function( $ , api){ 2 | 3 | // Customizer fof page redirect 4 | api.section( 'ararat_fof_section' , function( section ){ 5 | 6 | section.expanded.bind( function( isExpanded ){ 7 | 8 | if( isExpanded ){ 9 | api.previewer.previewUrl.set( api.settings.url.home+'/maybe404page' ); 10 | }else{ 11 | api.previewer.previewUrl.set( api.settings.url.home ); 12 | } 13 | 14 | } ) 15 | 16 | } ); 17 | 18 | // Customizer blog page redirect 19 | api.section( 'ararat_blog_options_section' , function( section ){ 20 | 21 | section.expanded.bind( function( isExpanded ){ 22 | 23 | if( isExpanded ){ 24 | api.previewer.previewUrl.set( moahCustomizerdata.blog_page ); 25 | }else{ 26 | api.previewer.previewUrl.set( api.settings.url.home ); 27 | } 28 | 29 | 30 | 31 | } ) 32 | 33 | } ); 34 | 35 | // General section 36 | api.section( 'ararat_general_options_section' , function( section ){ 37 | 38 | section.expanded.bind( function( isExpanded ){ 39 | 40 | 41 | // Preloader option show/hide 42 | 43 | var $preloader = $('#ararat-preloader-toggle-settings'), 44 | $preloaderbg = $( '#customize-control-ararat_preloaderbgcolor' ), 45 | $preloaderbordercolor = $( '#customize-control-ararat_loaderbordcolor' ), 46 | $preloaderactivebordercolor = $( '#customize-control-ararat_loaderbordactivecolor' ); 47 | 48 | 49 | // Default 50 | 51 | if( $preloader.is( ':checked' ) ){ 52 | $preloaderbg.show('slow'); 53 | $preloaderbordercolor.show('slow'); 54 | $preloaderactivebordercolor.show('slow'); 55 | }else{ 56 | $preloaderbg.hide('slow'); 57 | $preloaderbordercolor.hide('slow'); 58 | $preloaderactivebordercolor.hide('slow'); 59 | } 60 | 61 | 62 | // on click 63 | $preloader.on( 'click', function(){ 64 | 65 | var $this = $( this ); 66 | 67 | if( $this.is(':checked') ){ 68 | $preloaderbg.show('slow'); 69 | $preloaderbordercolor.show('slow'); 70 | $preloaderactivebordercolor.show('slow'); 71 | }else{ 72 | $preloaderbg.hide('slow'); 73 | $preloaderbordercolor.hide('slow'); 74 | $preloaderactivebordercolor.hide('slow'); 75 | } 76 | 77 | 78 | } ); 79 | 80 | } ); 81 | 82 | 83 | } ); 84 | 85 | // Footer section 86 | api.section( 'ararat_footer_options_section' , function( section ){ 87 | 88 | section.expanded.bind( function( isExpanded ){ 89 | 90 | 91 | // Footer Widget option show/hide 92 | var $widget_toggle = $('#ararat-widget-toggle-settings'), 93 | $widgetbg = $( '#customize-control-ararat_footer_bgColor_settings' ), 94 | $widgettext = $('#customize-control-ararat_footer_wtcolor_settings'), 95 | $widgettitle = $('#customize-control-ararat_footer_widgettitlecolor_settings'), 96 | $widgetanchor = $('#customize-control-ararat_footer_wanchorcolor_settings'), 97 | $widgetanchorhover = $('#customize-control-ararat_footer_wanchorhovcolor_settings'); 98 | 99 | 100 | // Default 101 | 102 | if( $widget_toggle.is( ':checked' ) ){ 103 | $widgetbg.show('slow'); 104 | $widgettext.show('slow'); 105 | $widgettitle.show('slow'); 106 | $widgetanchor.show('slow'); 107 | $widgetanchorhover.show('slow'); 108 | }else{ 109 | $widgetbg.hide('slow'); 110 | $widgettext.hide('slow'); 111 | $widgettitle.hide('slow'); 112 | $widgetanchor.hide('slow'); 113 | $widgetanchorhover.hide('slow'); 114 | } 115 | 116 | // on click 117 | $widget_toggle.on( 'click', function(){ 118 | 119 | var $this = $( this ); 120 | 121 | if( $this.is(':checked') ){ 122 | 123 | $widgetbg.show('slow'); 124 | $widgettext.show('slow'); 125 | $widgettitle.show('slow'); 126 | $widgetanchor.show('slow'); 127 | $widgetanchorhover.show('slow'); 128 | }else{ 129 | 130 | $widgetbg.hide('slow'); 131 | $widgettext.hide('slow'); 132 | $widgettitle.hide('slow'); 133 | $widgetanchor.hide('slow'); 134 | $widgetanchorhover.hide('slow'); 135 | } 136 | 137 | 138 | } ); 139 | 140 | /** 141 | * Footer bottom social media option show/hide 142 | * 143 | */ 144 | 145 | var $social_toggle = $('#ararat-footersocial-toggle-settings'), 146 | $socialcolor = $( '#customize-control-ararat_footer_socialiconcolor_settings' ), 147 | $socialhovercolor = $('#customize-control-ararat_footer_socialiconhovercolor_settings'); 148 | 149 | 150 | // Default 151 | 152 | if( $social_toggle.is( ':checked' ) ){ 153 | $socialcolor.show('slow'); 154 | $socialhovercolor.show('slow'); 155 | }else{ 156 | $socialcolor.hide('slow'); 157 | $socialhovercolor.hide('slow'); 158 | } 159 | 160 | // on click 161 | $social_toggle.on( 'click', function(){ 162 | 163 | var $this = $( this ); 164 | 165 | if( $this.is(':checked') ){ 166 | $socialcolor.show('slow'); 167 | $socialhovercolor.show('slow'); 168 | }else{ 169 | $socialcolor.hide('slow'); 170 | $socialhovercolor.hide('slow'); 171 | } 172 | 173 | 174 | } ); 175 | 176 | 177 | } ); 178 | 179 | } ); 180 | 181 | 182 | })( jQuery, wp.customize ); -------------------------------------------------------------------------------- /inc/class-epsilon-init-dashboard.php: -------------------------------------------------------------------------------- 1 | theme = $theme; 33 | 34 | $theme = wp_get_theme(); 35 | $arr = array( 36 | 'theme-name' => $theme->get( 'Name' ), 37 | 'theme-slug' => $theme->get( 'TextDomain' ), 38 | 'theme-version' => $theme->get( 'Version' ), 39 | ); 40 | 41 | $this->theme = wp_parse_args( $this->theme, $arr ); 42 | /** 43 | * If PHP Version is older than 5.3, we switch back to default theme 44 | */ 45 | add_action( 'admin_init', array( $this, 'php_version_check' ) ); 46 | 47 | /** 48 | * Add a notice for the MachoThemes feedback 49 | */ 50 | add_action( 'admin_init', array( $this, 'add_feedback_notice' ) ); 51 | 52 | /** 53 | * Init epsilon dashboard 54 | */ 55 | add_filter( 'epsilon-dashboard-setup', array( $this, 'epsilon_dashboard' ) ); 56 | 57 | add_filter( 'epsilon-onboarding-setup', array( $this, 'epsilon_onboarding' ) ); 58 | 59 | /** 60 | * Grab all class methods and initiate automatically 61 | */ 62 | $methods = get_class_methods( 'Epsilon_init_Dashboard' ); 63 | foreach ( $methods as $method ) { 64 | 65 | 66 | if ( false !== strpos( $method, 'init_' ) ) { 67 | $this->$method(); 68 | } 69 | } 70 | } 71 | 72 | /** 73 | * Ararat instance 74 | * 75 | * @param array $theme 76 | * 77 | * @return Ararat 78 | */ 79 | public static function get_instance( $theme = array() ) { 80 | static $inst; 81 | if ( ! $inst ) { 82 | $inst = new Epsilon_init_Dashboard( $theme ); 83 | } 84 | 85 | return $inst; 86 | } 87 | 88 | /** 89 | * Check PHP Version and switch theme 90 | */ 91 | public function php_version_check() { 92 | if ( version_compare( PHP_VERSION, '5.3.0' ) >= 0 ) { 93 | return true; 94 | } 95 | 96 | switch_theme( WP_DEFAULT_THEME ); 97 | 98 | return false; 99 | } 100 | 101 | /** 102 | * Adds a feedback notice if conditions are met 103 | */ 104 | public function add_feedback_notice() { 105 | if ( get_user_meta( get_current_user_id(), 'notification_feedback', true ) ) { 106 | return; 107 | } 108 | 109 | $page_on_front = 'page' == get_option( 'show_on_front' ) ? true : false; 110 | $id = absint( get_option( 'page_on_front', 0 ) ); 111 | 112 | if ( $page_on_front && 0 !== $id ) { 113 | $revisions = wp_get_post_revisions( $id ); 114 | 115 | if ( count( $revisions ) > 3 ) { 116 | /** 117 | * Revision keys are ID's, and it's not incremental 118 | */ 119 | $first = end( $revisions ); 120 | 121 | $revision_time = new DateTime( $first->post_modified ); 122 | $today = new DateTime( 'today' ); 123 | $interval = $today->diff( $revision_time )->format( '%d' ); 124 | 125 | if ( 2 <= absint( $interval ) ) { 126 | $this->_notify_feedback(); 127 | } 128 | } 129 | } 130 | } 131 | 132 | /** 133 | * Notify of feedback 134 | */ 135 | private function _notify_feedback() { 136 | if ( ! class_exists( 'Epsilon_Notifications' ) ) { 137 | return; 138 | } 139 | $html = '

    '; 140 | $html .= 141 | vsprintf( 142 | // Translators: 1 is Theme Name, 2 is opening Anchor, 3 is closing. 143 | __( 'We\'ve been working hard on making %1$s the best one out there. We\'re interested in hearing your thoughts about %1$s and what we could do to make it even better. %2$sSend your feedback our way%3$s.', 'ararat' ), 144 | array( 145 | 'Ararat', 146 | '', 147 | '', 148 | ) 149 | ); 150 | 151 | $notifications = Epsilon_Notifications::get_instance(); 152 | $notifications->add_notice( 153 | array( 154 | 'id' => 'ararat_notification_feedback', 155 | 'type' => 'notice epsilon-big', 156 | 'message' => $html, 157 | ) 158 | ); 159 | } 160 | 161 | /** 162 | * Initiate the epsilon framework 163 | */ 164 | public function init_epsilon() { 165 | //new Epsilon_Framework(); 166 | } 167 | 168 | /** 169 | * 170 | */ 171 | public function init_nav_menus() { 172 | new Epsilon_Section_Navigation_Menu( 'ararat_frontpage_sections_' ); 173 | } 174 | 175 | /** 176 | * Initiate the welcome screen 177 | */ 178 | public function init_dashboard() { 179 | Epsilon_Dashboard::get_instance( 180 | array( 181 | 'theme' => array( 182 | 'download-id' => '212499' 183 | ), 184 | 'tracking' => $this->theme['theme-slug'] . '_tracking_enable', 185 | ) 186 | ); 187 | 188 | $dashboard = Epsilon_Dashboard_Setup::get_instance(); 189 | $dashboard->add_admin_notice(); 190 | 191 | $upsells = get_option( $this->theme['theme-slug'] . '_theme_upsells', false ); 192 | if ( $upsells ) { 193 | add_filter( 'epsilon_upsell_control_display', '__return_false' ); 194 | } 195 | } 196 | 197 | /** 198 | * Separate setup from init 199 | * 200 | * @param array $setup 201 | * 202 | * @return array 203 | */ 204 | public function epsilon_dashboard( $setup = array() ) { 205 | $dashboard = new Epsilon_Dashboard_Setup(); 206 | 207 | $setup['actions'] = $dashboard->get_actions(); 208 | $setup['tabs'] = $dashboard->get_tabs( $setup ); 209 | $setup['plugins'] = $dashboard->get_plugins(); 210 | $setup['privacy'] = $dashboard->get_privacy_options(); 211 | 212 | $setup['edd'] = $dashboard->get_edd( $setup ); 213 | 214 | $tab = get_user_meta( get_current_user_id(), 'epsilon_active_tab', true ); 215 | 216 | $setup['activeTab'] = ! empty( $tab ) ? absint( $tab ) : 0; 217 | 218 | return $setup; 219 | } 220 | 221 | /** 222 | * Add steps to onboarding 223 | * 224 | * @param array $setup 225 | * 226 | * @return array 227 | */ 228 | public function epsilon_onboarding( $setup = array() ) { 229 | $dashboard = new Epsilon_Dashboard_Setup(); 230 | 231 | $setup['steps'] = $dashboard->get_steps(); 232 | $setup['plugins'] = $dashboard->get_plugins( true ); 233 | $setup['privacy'] = $dashboard->get_privacy_options(); 234 | 235 | return $setup; 236 | } 237 | 238 | 239 | } 240 | -------------------------------------------------------------------------------- /assets/css/slicknav.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SlickNav Responsive Mobile Menu v1.0.10 3 | * (c) 2016 Josh Cope 4 | * licensed under MIT 5 | */ 6 | .slicknav_btn { 7 | position: relative; 8 | display: block; 9 | vertical-align: middle; 10 | float: right; 11 | padding: 0.438em 0.625em 0.438em 0.625em; 12 | line-height: 1.125em; 13 | cursor: pointer; } 14 | .slicknav_btn .slicknav_icon-bar + .slicknav_icon-bar { 15 | margin-top: 0.188em; } 16 | 17 | .slicknav_menu { 18 | *zoom: 1; } 19 | .slicknav_menu .slicknav_menutxt { 20 | display: block; 21 | line-height: 1.188em; 22 | float: left; } 23 | .slicknav_menu .slicknav_icon { 24 | float: left; 25 | width: 1.125em; 26 | height: 0.875em; 27 | margin: 0.188em 0 0 0.438em; } 28 | .slicknav_menu .slicknav_icon:before { 29 | background: transparent; 30 | width: 1.125em; 31 | height: 0.875em; 32 | display: block; 33 | content: ""; 34 | position: absolute; } 35 | .slicknav_menu .slicknav_no-text { 36 | margin: 0; } 37 | .slicknav_menu .slicknav_icon-bar { 38 | display: block; 39 | width: 1.125em; 40 | height: 0.125em;} 41 | .slicknav_menu:before { 42 | content: " "; 43 | display: table; } 44 | .slicknav_menu:after { 45 | content: " "; 46 | display: table; 47 | clear: both; } 48 | 49 | .slicknav_nav { 50 | clear: both; } 51 | .slicknav_nav ul { 52 | display: block; } 53 | .slicknav_nav li { 54 | display: block; } 55 | .slicknav_nav .slicknav_arrow { 56 | font-size: 0.8em; 57 | margin: 0 0 0 0.4em; } 58 | .slicknav_nav .slicknav_item { 59 | cursor: pointer; } 60 | .slicknav_nav .slicknav_item a { 61 | display: inline; } 62 | .slicknav_nav .slicknav_row { 63 | display: block; } 64 | .slicknav_nav a { 65 | display: block; } 66 | .slicknav_nav .slicknav_parent-link a { 67 | display: inline; } 68 | 69 | .slicknav_brand { 70 | float: left; } 71 | 72 | .slicknav_menu { 73 | font-size: 16px; 74 | box-sizing: border-box; 75 | background: #4c4c4c; 76 | padding: 5px; } 77 | .slicknav_menu * { 78 | box-sizing: border-box; } 79 | .slicknav_menu .slicknav_menutxt { 80 | color: #fff; 81 | font-weight: bold; } 82 | .slicknav_menu .slicknav_icon-bar { 83 | background-color: #fff; } 84 | 85 | .slicknav_btn { 86 | margin: 5px 5px 6px; 87 | text-decoration: none; 88 | background-color: none; 89 | } 90 | 91 | .slicknav_nav { 92 | color: #fff; 93 | margin: 0; 94 | padding: 0; 95 | font-size: 0.875em; 96 | list-style: none; 97 | overflow: hidden; } 98 | .slicknav_nav ul { 99 | list-style: none; 100 | overflow: hidden; 101 | padding: 0; 102 | margin: 0 0 0 20px; } 103 | .slicknav_nav .slicknav_row { 104 | padding: 5px 10px; 105 | margin: 2px 5px; } 106 | .slicknav_nav .slicknav_row:hover { 107 | -webkit-border-radius: 6px; 108 | -moz-border-radius: 6px; 109 | border-radius: 6px; 110 | background: #ccc; 111 | color: #fff; } 112 | .slicknav_nav a { 113 | padding: 5px 10px; 114 | margin: 2px 5px; 115 | text-decoration: none; 116 | color: #fff; } 117 | .slicknav_nav a:hover { 118 | -webkit-border-radius: 0px; 119 | -moz-border-radius: 0px; 120 | border-radius: 0px; 121 | background: #ccc; 122 | color: #222; } 123 | .slicknav_nav .slicknav_txtnode { 124 | margin-left: 15px; } 125 | .slicknav_nav .slicknav_item a { 126 | padding: 0; 127 | margin: 0; } 128 | .slicknav_nav .slicknav_parent-link a { 129 | padding: 0; 130 | margin: 0; } 131 | 132 | .slicknav_brand { 133 | color: #fff; 134 | font-size: 18px; 135 | line-height: 30px; 136 | padding: 7px 12px; 137 | height: 44px; } 138 | 139 | 140 | 141 | /*===== mobile menu slicknav =====*/ 142 | 143 | .mobile_menu { 144 | position: absolute; 145 | right: 10px; 146 | width: 96%; 147 | z-index: 99; 148 | } 149 | .slicknav_menu .slicknav_menutxt { 150 | display: none; 151 | } 152 | .slicknav_menu { 153 | background: transparent; 154 | margin-top: 10px; 155 | } 156 | .slicknav_menu .slicknav_icon-bar { 157 | background-color: #ffffff; 158 | height: 3px; 159 | margin: 5px 0; 160 | -webkit-transition: all 0.3s ease 0s; 161 | -o-transition: all 0.3s ease 0s; 162 | transition: all 0.3s ease 0s; 163 | width: 30px; 164 | position: relative; 165 | } 166 | .slicknav_btn { 167 | background-color: transparent; 168 | cursor: pointer; 169 | margin-bottom: 10px; 170 | margin-top: -35px; 171 | position: relative; 172 | z-index: 99; 173 | } 174 | /* .slicknav_menu .slicknav_open .slicknav_icon-bar:nth-child(2) { 175 | opacity: 0; 176 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; 177 | } 178 | .slicknav_menu .slicknav_open .slicknav_icon-bar:nth-child(1) { 179 | -webkit-transform: rotate(45deg) translate(1px, 7px); 180 | -ms-transform: rotate(45deg) translate(1px, 7px); 181 | transform: rotate(45deg) translate(1px, 7px); 182 | } 183 | .slicknav_menu .slicknav_open .slicknav_icon-bar:nth-child(3) { 184 | -webkit-transform: rotate(-45deg) translateY(-6px); 185 | -ms-transform: rotate(-45deg) translateY(-6px); 186 | transform: rotate(-45deg) translateY(-6px); 187 | position: relative; 188 | top: -1px; 189 | } */ 190 | .slicknav_menu { 191 | margin: 0; 192 | padding: 0; 193 | } 194 | .slicknav_icon-bar { 195 | background: #212121 !important; 196 | } 197 | .slicknav_nav { 198 | background: #fff; 199 | float: right; 200 | margin-top:0; 201 | padding: 0; 202 | width: 100%; 203 | border-bottom: 1px solid #eee; 204 | } 205 | 206 | .slicknav_nav a:hover { 207 | background: #F79960 none repeat scroll 0 0; 208 | border-radius: 0; 209 | color: #ffffff; 210 | } 211 | 212 | .slicknav_nav a { 213 | font-size: 14px; 214 | font-weight: 400; 215 | color: #000; 216 | text-transform: capitalize; 217 | } 218 | 219 | .slicknav_nav .slicknav_arrow { 220 | float: right; 221 | } 222 | 223 | .slicknav_nav .slicknav_row:hover, 224 | .slicknav_nav .slicknav_row:hover .slicknav_arrow { 225 | border-radius: 0; 226 | background-color: #F79960; 227 | background-color: transparent; 228 | color: #000; 229 | } 230 | 231 | .slicknav_btn { 232 | background-color: transparent; 233 | cursor: pointer; 234 | margin-bottom: 10px; 235 | position: relative; 236 | z-index: 99; 237 | border: none; 238 | border-radius: 3px; 239 | top: 5px; 240 | padding: 5px; 241 | right: 5px; 242 | margin-top: -5px; 243 | } 244 | .slicknav_menu .slicknav_icon { 245 | margin-right: 6px; 246 | margin-top: 3px; 247 | position: relative; 248 | right: 5px; 249 | top: -5px; 250 | padding-bottom: 3px; 251 | } -------------------------------------------------------------------------------- /inc/ararat-breadcrumbs.php: -------------------------------------------------------------------------------- 1 | '', 26 | 'breadcrumbs_classes' => esc_html( 'breadcrumb' ), 27 | 'home_title' => esc_html__( 'Home', 'ararat' ) 28 | ); 29 | $args = apply_filters( 'ararat_breadcrumbs_args', wp_parse_args( $args, $defaults ) ); 30 | 31 | $args_el = array(); 32 | 33 | if( $args['breadcrumbs_id'] ){ 34 | 35 | $args_el[] = 'id="'.esc_attr( $args['breadcrumbs_id'] ).'"'; 36 | } 37 | 38 | if( $args['breadcrumbs_classes'] ){ 39 | 40 | $args_el[] = 'class="'.esc_attr( $args['breadcrumbs_classes'] ).'"'; 41 | 42 | } 43 | 44 | /* 45 | * Begin Markup 46 | */ 47 | 48 | // Open the breadcrumbs 49 | $html = '

    '; 116 | $html = apply_filters( 'ararat_breadcrumbs_filter', $html ); 117 | 118 | echo wp_kses_post( $html ); 119 | 120 | 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /assets/js/main.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | "use strict"; 3 | // TOP Menu Sticky 4 | $(window).on('scroll', function () { 5 | var scroll = $(window).scrollTop(); 6 | if (scroll < 400) { 7 | $("#sticky-header").removeClass("sticky"); 8 | $('#back-top').fadeIn(500); 9 | } else { 10 | $("#sticky-header").addClass("sticky"); 11 | $('#back-top').fadeIn(500); 12 | } 13 | }); 14 | 15 | 16 | $(document).ready(function(){ 17 | 18 | // mobile_menu 19 | var menu = $('ul#navigation'); 20 | if(menu.length){ 21 | menu.slicknav({ 22 | prependTo: ".mobile_menu", 23 | closedSymbol: '+', 24 | openedSymbol:'-' 25 | }); 26 | }; 27 | // blog-menu 28 | // $('ul#blog-menu').slicknav({ 29 | // prependTo: ".blog_menu" 30 | // }); 31 | 32 | // review-active 33 | $('.slider_active').owlCarousel({ 34 | loop:true, 35 | margin:0, 36 | items:1, 37 | autoplay:true, 38 | navText:['',''], 39 | nav:false, 40 | dots:false, 41 | autoplayHoverPause: true, 42 | autoplaySpeed: 800, 43 | responsive:{ 44 | 0:{ 45 | items:1, 46 | dots:false 47 | }, 48 | 767:{ 49 | items:1, 50 | dots:false 51 | }, 52 | 992:{ 53 | items:1 54 | } 55 | } 56 | }); 57 | // review-active 58 | $('.testmonial_active').owlCarousel({ 59 | loop:true, 60 | margin:0, 61 | items:1, 62 | autoplay:true, 63 | navText:['',''], 64 | nav:true, 65 | dots:false, 66 | autoplayHoverPause: true, 67 | autoplaySpeed: 800, 68 | responsive:{ 69 | 0:{ 70 | items:1, 71 | dots:false, 72 | nav:false, 73 | }, 74 | 767:{ 75 | items:1, 76 | dots:false, 77 | nav:false, 78 | }, 79 | 992:{ 80 | items:1, 81 | nav:false 82 | }, 83 | 1200:{ 84 | items:1, 85 | nav:false 86 | }, 87 | 1500:{ 88 | items:1 89 | } 90 | } 91 | }); 92 | 93 | // for filter 94 | // init Isotope 95 | var $grid = $('.grid').isotope({ 96 | itemSelector: '.grid-item', 97 | percentPosition: true, 98 | masonry: { 99 | // use outer width of grid-sizer for columnWidth 100 | columnWidth: 1 101 | } 102 | }); 103 | 104 | // filter items on button click 105 | $('.portfolio-menu').on('click', 'button', function () { 106 | var filterValue = $(this).attr('data-filter'); 107 | $grid.isotope({ filter: filterValue }); 108 | }); 109 | 110 | //for menu active class 111 | $('.portfolio-menu button').on('click', function (event) { 112 | $(this).siblings('.active').removeClass('active'); 113 | $(this).addClass('active'); 114 | event.preventDefault(); 115 | }); 116 | 117 | // wow js 118 | new WOW().init(); 119 | 120 | // counter 121 | $('.counter').counterUp({ 122 | delay: 10, 123 | time: 10000 124 | }); 125 | 126 | /* magnificPopup img view */ 127 | $('.popup-image').magnificPopup({ 128 | type: 'image', 129 | gallery: { 130 | enabled: true 131 | } 132 | }); 133 | 134 | /* magnificPopup img view */ 135 | $('.img-pop-up').magnificPopup({ 136 | type: 'image', 137 | gallery: { 138 | enabled: true 139 | } 140 | }); 141 | 142 | /* magnificPopup video view */ 143 | $('.popup-video').magnificPopup({ 144 | type: 'iframe' 145 | }); 146 | 147 | 148 | // scrollIt for smoth scroll 149 | $.scrollIt({ 150 | upKey: 38, // key code to navigate to the next section 151 | downKey: 40, // key code to navigate to the previous section 152 | easing: 'linear', // the easing function for animation 153 | scrollTime: 600, // how long (in ms) the animation takes 154 | activeClass: 'active', // class given to the active nav element 155 | onPageChange: null, // function(pageIndex) that is called when page is changed 156 | topOffset: 0 // offste (in px) for fixed top navigation 157 | }); 158 | 159 | // scrollup bottom to top 160 | $.scrollUp({ 161 | scrollName: 'scrollUp', // Element ID 162 | topDistance: '4500', // Distance from top before showing element (px) 163 | topSpeed: 300, // Speed back to top (ms) 164 | animation: 'fade', // Fade, slide, none 165 | animationInSpeed: 200, // Animation in speed (ms) 166 | animationOutSpeed: 200, // Animation out speed (ms) 167 | scrollText: '', // Text for element 168 | activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF' 169 | }); 170 | 171 | 172 | // blog-page 173 | 174 | //brand-active 175 | $('.brand-active').owlCarousel({ 176 | loop:true, 177 | margin:30, 178 | items:1, 179 | autoplay:true, 180 | nav:false, 181 | dots:false, 182 | autoplayHoverPause: true, 183 | autoplaySpeed: 800, 184 | responsive:{ 185 | 0:{ 186 | items:1, 187 | nav:false 188 | 189 | }, 190 | 767:{ 191 | items:4 192 | }, 193 | 992:{ 194 | items:7 195 | } 196 | } 197 | }); 198 | 199 | // blog-dtails-page 200 | 201 | //project-active 202 | $('.project-active').owlCarousel({ 203 | loop:true, 204 | margin:30, 205 | items:1, 206 | // autoplay:true, 207 | navText:['',''], 208 | nav:true, 209 | dots:false, 210 | // autoplayHoverPause: true, 211 | // autoplaySpeed: 800, 212 | responsive:{ 213 | 0:{ 214 | items:1, 215 | nav:false 216 | 217 | }, 218 | 767:{ 219 | items:1, 220 | nav:false 221 | }, 222 | 992:{ 223 | items:2, 224 | nav:false 225 | }, 226 | 1200:{ 227 | items:1, 228 | }, 229 | 1501:{ 230 | items:2, 231 | } 232 | } 233 | }); 234 | 235 | if (document.getElementById('default-select')) { 236 | $('select').niceSelect(); 237 | } 238 | 239 | //about-pro-active 240 | $('.details_active').owlCarousel({ 241 | loop:true, 242 | margin:0, 243 | items:1, 244 | // autoplay:true, 245 | navText:['',''], 246 | nav:true, 247 | dots:false, 248 | // autoplayHoverPause: true, 249 | // autoplaySpeed: 800, 250 | responsive:{ 251 | 0:{ 252 | items:1, 253 | nav:false 254 | 255 | }, 256 | 767:{ 257 | items:1, 258 | nav:false 259 | }, 260 | 992:{ 261 | items:1, 262 | nav:false 263 | }, 264 | 1200:{ 265 | items:1, 266 | } 267 | } 268 | }); 269 | 270 | }); 271 | //------- Mailchimp js --------// 272 | function mailChimp() { 273 | $('#mc_embed_signup').find('form').ajaxChimp(); 274 | } 275 | mailChimp(); 276 | 277 | 278 | 279 | // Search Toggle 280 | $("#search_input_box").hide(); 281 | $("#search").on("click", function () { 282 | $("#search_input_box").slideToggle(); 283 | $("#search_input").focus(); 284 | }); 285 | $("#close_search").on("click", function () { 286 | $('#search_input_box').slideUp(500); 287 | }); 288 | // Search Toggle 289 | $("#search_input_box").hide(); 290 | $("#search_1").on("click", function () { 291 | $("#search_input_box").slideToggle(); 292 | $("#search_input").focus(); 293 | }); 294 | 295 | })(jQuery); -------------------------------------------------------------------------------- /assets/js/waypoints.min.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.6.2 2 | /* 3 | jQuery Waypoints - v2.0.3 4 | Copyright (c) 2011-2013 Caleb Troughton 5 | Dual licensed under the MIT license and GPL license. 6 | https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt 7 | */ 8 | (function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); -------------------------------------------------------------------------------- /assets/js/wow.min.js: -------------------------------------------------------------------------------- 1 | /*! WOW - v1.1.3 - 2016-05-06 2 | * Copyright (c) 2016 Matthieu Aussaguel;*/(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); -------------------------------------------------------------------------------- /assets/js/jquery.slicknav.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * SlickNav Responsive Mobile Menu v1.0.10 3 | * (c) 2016 Josh Cope 4 | * licensed under MIT 5 | */ 6 | !function(e,t,n){function a(t,n){this.element=t,this.settings=e.extend({},i,n),this.settings.duplicate||n.hasOwnProperty("removeIds")||(this.settings.removeIds=!1),this._defaults=i,this._name=s,this.init()}var i={label:"MENU",duplicate:!0,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"►",openedSymbol:"▼",prependTo:"body",appendTo:"",parentTag:"a",closeOnClick:!1,allowParentLinks:!1,nestedParentLinks:!0,showChildren:!1,removeIds:!0,removeClasses:!1,removeStyles:!1,brand:"",animations:"jquery",init:function(){},beforeOpen:function(){},beforeClose:function(){},afterOpen:function(){},afterClose:function(){}},s="slicknav",o="slicknav",l={DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,RIGHT:39,SPACE:32,TAB:9,UP:38};a.prototype.init=function(){var n,a,i=this,s=e(this.element),r=this.settings;if(r.duplicate?i.mobileNav=s.clone():i.mobileNav=s,r.removeIds&&(i.mobileNav.removeAttr("id"),i.mobileNav.find("*").each(function(t,n){e(n).removeAttr("id")})),r.removeClasses&&(i.mobileNav.removeAttr("class"),i.mobileNav.find("*").each(function(t,n){e(n).removeAttr("class")})),r.removeStyles&&(i.mobileNav.removeAttr("style"),i.mobileNav.find("*").each(function(t,n){e(n).removeAttr("style")})),n=o+"_icon",""===r.label&&(n+=" "+o+"_no-text"),"a"==r.parentTag&&(r.parentTag='a href="#"'),i.mobileNav.attr("class",o+"_nav"),a=e('
    '),""!==r.brand){var c=e('
    '+r.brand+"
    ");e(a).append(c)}i.btn=e(["<"+r.parentTag+' aria-haspopup="true" role="button" tabindex="0" class="'+o+"_btn "+o+'_collapsed">',''+r.label+"",'','','','',"",""].join("")),e(a).append(i.btn),""!==r.appendTo?e(r.appendTo).append(a):e(r.prependTo).prepend(a),a.append(i.mobileNav);var p=i.mobileNav.find("li");e(p).each(function(){var t=e(this),n={};if(n.children=t.children("ul").attr("role","menu"),t.data("menu",n),n.children.length>0){var a=t.contents(),s=!1,l=[];e(a).each(function(){return e(this).is("ul")?!1:(l.push(this),void(e(this).is("a")&&(s=!0)))});var c=e("<"+r.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+o+'_item"/>');if(r.allowParentLinks&&!r.nestedParentLinks&&s)e(l).wrapAll('').parent();else{var p=e(l).wrapAll(c).parent();p.addClass(o+"_row")}r.showChildren?t.addClass(o+"_open"):t.addClass(o+"_collapsed"),t.addClass(o+"_parent");var d=e(''+(r.showChildren?r.openedSymbol:r.closedSymbol)+"");r.allowParentLinks&&!r.nestedParentLinks&&s&&(d=d.wrap(c).parent()),e(l).last().after(d)}else 0===t.children().length&&t.addClass(o+"_txtnode");t.children("a").attr("role","menuitem").click(function(t){r.closeOnClick&&!e(t.target).parent().closest("li").hasClass(o+"_parent")&&e(i.btn).click()}),r.closeOnClick&&r.allowParentLinks&&(t.children("a").children("a").click(function(t){e(i.btn).click()}),t.find("."+o+"_parent-link a:not(."+o+"_item)").click(function(t){e(i.btn).click()}))}),e(p).each(function(){var t=e(this).data("menu");r.showChildren||i._visibilityToggle(t.children,null,!1,null,!0)}),i._visibilityToggle(i.mobileNav,null,!1,"init",!0),i.mobileNav.attr("role","menu"),e(t).mousedown(function(){i._outlines(!1)}),e(t).keyup(function(){i._outlines(!0)}),e(i.btn).click(function(e){e.preventDefault(),i._menuToggle()}),i.mobileNav.on("click","."+o+"_item",function(t){t.preventDefault(),i._itemClick(e(this))}),e(i.btn).keydown(function(t){var n=t||event;switch(n.keyCode){case l.ENTER:case l.SPACE:case l.DOWN:t.preventDefault(),n.keyCode===l.DOWN&&e(i.btn).hasClass(o+"_open")||i._menuToggle(),e(i.btn).next().find('[role="menuitem"]').first().focus()}}),i.mobileNav.on("keydown","."+o+"_item",function(t){var n=t||event;switch(n.keyCode){case l.ENTER:t.preventDefault(),i._itemClick(e(t.target));break;case l.RIGHT:t.preventDefault(),e(t.target).parent().hasClass(o+"_collapsed")&&i._itemClick(e(t.target)),e(t.target).next().find('[role="menuitem"]').first().focus()}}),i.mobileNav.on("keydown",'[role="menuitem"]',function(t){var n=t||event;switch(n.keyCode){case l.DOWN:t.preventDefault();var a=e(t.target).parent().parent().children().children('[role="menuitem"]:visible'),s=a.index(t.target),r=s+1;a.length<=r&&(r=0);var c=a.eq(r);c.focus();break;case l.UP:t.preventDefault();var a=e(t.target).parent().parent().children().children('[role="menuitem"]:visible'),s=a.index(t.target),c=a.eq(s-1);c.focus();break;case l.LEFT:if(t.preventDefault(),e(t.target).parent().parent().parent().hasClass(o+"_open")){var p=e(t.target).parent().parent().prev();p.focus(),i._itemClick(p)}else e(t.target).parent().parent().hasClass(o+"_nav")&&(i._menuToggle(),e(i.btn).focus());break;case l.ESCAPE:t.preventDefault(),i._menuToggle(),e(i.btn).focus()}}),r.allowParentLinks&&r.nestedParentLinks&&e("."+o+"_item a").click(function(e){e.stopImmediatePropagation()})},a.prototype._menuToggle=function(e){var t=this,n=t.btn,a=t.mobileNav;n.hasClass(o+"_collapsed")?(n.removeClass(o+"_collapsed"),n.addClass(o+"_open")):(n.removeClass(o+"_open"),n.addClass(o+"_collapsed")),n.addClass(o+"_animating"),t._visibilityToggle(a,n.parent(),!0,n)},a.prototype._itemClick=function(e){var t=this,n=t.settings,a=e.data("menu");a||(a={},a.arrow=e.children("."+o+"_arrow"),a.ul=e.next("ul"),a.parent=e.parent(),a.parent.hasClass(o+"_parent-link")&&(a.parent=e.parent().parent(),a.ul=e.parent().next("ul")),e.data("menu",a)),a.parent.hasClass(o+"_collapsed")?(a.arrow.html(n.openedSymbol),a.parent.removeClass(o+"_collapsed"),a.parent.addClass(o+"_open"),a.parent.addClass(o+"_animating"),t._visibilityToggle(a.ul,a.parent,!0,e)):(a.arrow.html(n.closedSymbol),a.parent.addClass(o+"_collapsed"),a.parent.removeClass(o+"_open"),a.parent.addClass(o+"_animating"),t._visibilityToggle(a.ul,a.parent,!0,e))},a.prototype._visibilityToggle=function(t,n,a,i,s){function l(t,n){e(t).removeClass(o+"_animating"),e(n).removeClass(o+"_animating"),s||p.afterOpen(t)}function r(n,a){t.attr("aria-hidden","true"),d.attr("tabindex","-1"),c._setVisAttr(t,!0),t.hide(),e(n).removeClass(o+"_animating"),e(a).removeClass(o+"_animating"),s?"init"==n&&p.init():p.afterClose(n)}var c=this,p=c.settings,d=c._getActionItems(t),u=0;a&&(u=p.duration),t.hasClass(o+"_hidden")?(t.removeClass(o+"_hidden"),s||p.beforeOpen(i),"jquery"===p.animations?t.stop(!0,!0).slideDown(u,p.easingOpen,function(){l(i,n)}):"velocity"===p.animations&&t.velocity("finish").velocity("slideDown",{duration:u,easing:p.easingOpen,complete:function(){l(i,n)}}),t.attr("aria-hidden","false"),d.attr("tabindex","0"),c._setVisAttr(t,!1)):(t.addClass(o+"_hidden"),s||p.beforeClose(i),"jquery"===p.animations?t.stop(!0,!0).slideUp(u,this.settings.easingClose,function(){r(i,n)}):"velocity"===p.animations&&t.velocity("finish").velocity("slideUp",{duration:u,easing:p.easingClose,complete:function(){r(i,n)}}))},a.prototype._setVisAttr=function(t,n){var a=this,i=t.children("li").children("ul").not("."+o+"_hidden");n?i.each(function(){var t=e(this);t.attr("aria-hidden","true");var i=a._getActionItems(t);i.attr("tabindex","-1"),a._setVisAttr(t,n)}):i.each(function(){var t=e(this);t.attr("aria-hidden","false");var i=a._getActionItems(t);i.attr("tabindex","0"),a._setVisAttr(t,n)})},a.prototype._getActionItems=function(e){var t=e.data("menu");if(!t){t={};var n=e.children("li"),a=n.find("a");t.links=a.add(n.find("."+o+"_item")),e.data("menu",t)}return t.links},a.prototype._outlines=function(t){t?e("."+o+"_item, ."+o+"_btn").css("outline",""):e("."+o+"_item, ."+o+"_btn").css("outline","none")},a.prototype.toggle=function(){var e=this;e._menuToggle()},a.prototype.open=function(){var e=this;e.btn.hasClass(o+"_collapsed")&&e._menuToggle()},a.prototype.close=function(){var e=this;e.btn.hasClass(o+"_open")&&e._menuToggle()},e.fn[s]=function(t){var n=arguments;if(void 0===t||"object"==typeof t)return this.each(function(){e.data(this,"plugin_"+s)||e.data(this,"plugin_"+s,new a(this,t))});if("string"==typeof t&&"_"!==t[0]&&"init"!==t){var i;return this.each(function(){var o=e.data(this,"plugin_"+s);o instanceof a&&"function"==typeof o[t]&&(i=o[t].apply(o,Array.prototype.slice.call(n,1)))}),void 0!==i?i:this}}}(jQuery,document,window); -------------------------------------------------------------------------------- /assets/css/magnific-popup.css: -------------------------------------------------------------------------------- 1 | /* Magnific Popup CSS */ 2 | .mfp-bg { 3 | top: 0; 4 | left: 0; 5 | width: 100%; 6 | height: 100%; 7 | z-index: 1042; 8 | overflow: hidden; 9 | position: fixed; 10 | background: #0b0b0b; 11 | opacity: 0.8; } 12 | 13 | .mfp-wrap { 14 | top: 0; 15 | left: 0; 16 | width: 100%; 17 | height: 100%; 18 | z-index: 1043; 19 | position: fixed; 20 | outline: none !important; 21 | -webkit-backface-visibility: hidden; } 22 | 23 | .mfp-container { 24 | text-align: center; 25 | position: absolute; 26 | width: 100%; 27 | height: 100%; 28 | left: 0; 29 | top: 0; 30 | padding: 0 8px; 31 | box-sizing: border-box; } 32 | 33 | .mfp-container:before { 34 | content: ''; 35 | display: inline-block; 36 | height: 100%; 37 | vertical-align: middle; } 38 | 39 | .mfp-align-top .mfp-container:before { 40 | display: none; } 41 | 42 | .mfp-content { 43 | position: relative; 44 | display: inline-block; 45 | vertical-align: middle; 46 | margin: 0 auto; 47 | text-align: left; 48 | z-index: 1045; } 49 | 50 | .mfp-inline-holder .mfp-content, 51 | .mfp-ajax-holder .mfp-content { 52 | width: 100%; 53 | cursor: auto; } 54 | 55 | .mfp-ajax-cur { 56 | cursor: progress; } 57 | 58 | .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close { 59 | cursor: -moz-zoom-out; 60 | cursor: -webkit-zoom-out; 61 | cursor: zoom-out; } 62 | 63 | .mfp-zoom { 64 | cursor: pointer; 65 | cursor: -webkit-zoom-in; 66 | cursor: -moz-zoom-in; 67 | cursor: zoom-in; } 68 | 69 | .mfp-auto-cursor .mfp-content { 70 | cursor: auto; } 71 | 72 | .mfp-close, 73 | .mfp-arrow, 74 | .mfp-preloader, 75 | .mfp-counter { 76 | -webkit-user-select: none; 77 | -moz-user-select: none; 78 | user-select: none; } 79 | 80 | .mfp-loading.mfp-figure { 81 | display: none; } 82 | 83 | .mfp-hide { 84 | display: none !important; } 85 | 86 | .mfp-preloader { 87 | color: #CCC; 88 | position: absolute; 89 | top: 50%; 90 | width: auto; 91 | text-align: center; 92 | margin-top: -0.8em; 93 | left: 8px; 94 | right: 8px; 95 | z-index: 1044; } 96 | .mfp-preloader a { 97 | color: #CCC; } 98 | .mfp-preloader a:hover { 99 | color: #FFF; } 100 | 101 | .mfp-s-ready .mfp-preloader { 102 | display: none; } 103 | 104 | .mfp-s-error .mfp-content { 105 | display: none; } 106 | 107 | button.mfp-close, 108 | button.mfp-arrow { 109 | overflow: visible; 110 | cursor: pointer; 111 | background: transparent; 112 | border: 0; 113 | -webkit-appearance: none; 114 | display: block; 115 | outline: none; 116 | padding: 0; 117 | z-index: 1046; 118 | box-shadow: none; 119 | touch-action: manipulation; } 120 | 121 | button::-moz-focus-inner { 122 | padding: 0; 123 | border: 0; } 124 | 125 | .mfp-close { 126 | width: 44px; 127 | height: 44px; 128 | line-height: 44px; 129 | position: absolute; 130 | right: 0; 131 | top: 0; 132 | text-decoration: none; 133 | text-align: center; 134 | opacity: 0.65; 135 | padding: 0 0 18px 10px; 136 | color: #FFF; 137 | font-style: normal; 138 | font-size: 28px; 139 | font-family: Arial, Baskerville, monospace; } 140 | .mfp-close:hover, 141 | .mfp-close:focus { 142 | opacity: 1; } 143 | .mfp-close:active { 144 | top: 1px; } 145 | 146 | .mfp-close-btn-in .mfp-close { 147 | color: #333; } 148 | 149 | .mfp-image-holder .mfp-close, 150 | .mfp-iframe-holder .mfp-close { 151 | color: #FFF; 152 | right: -6px; 153 | text-align: right; 154 | padding-right: 6px; 155 | width: 100%; } 156 | 157 | .mfp-counter { 158 | position: absolute; 159 | top: 0; 160 | right: 0; 161 | color: #CCC; 162 | font-size: 12px; 163 | line-height: 18px; 164 | white-space: nowrap; } 165 | 166 | .mfp-arrow { 167 | position: absolute; 168 | opacity: 0.65; 169 | margin: 0; 170 | top: 50%; 171 | margin-top: -55px; 172 | padding: 0; 173 | width: 90px; 174 | height: 110px; 175 | -webkit-tap-highlight-color: transparent; } 176 | .mfp-arrow:active { 177 | margin-top: -54px; } 178 | .mfp-arrow:hover, 179 | .mfp-arrow:focus { 180 | opacity: 1; } 181 | .mfp-arrow:before, 182 | .mfp-arrow:after { 183 | content: ''; 184 | display: block; 185 | width: 0; 186 | height: 0; 187 | position: absolute; 188 | left: 0; 189 | top: 0; 190 | margin-top: 35px; 191 | margin-left: 35px; 192 | border: medium inset transparent; } 193 | .mfp-arrow:after { 194 | border-top-width: 13px; 195 | border-bottom-width: 13px; 196 | top: 8px; } 197 | .mfp-arrow:before { 198 | border-top-width: 21px; 199 | border-bottom-width: 21px; 200 | opacity: 0.7; } 201 | 202 | .mfp-arrow-left { 203 | left: 0; } 204 | .mfp-arrow-left:after { 205 | border-right: 17px solid #FFF; 206 | margin-left: 31px; } 207 | .mfp-arrow-left:before { 208 | margin-left: 25px; 209 | border-right: 27px solid #3F3F3F; } 210 | 211 | .mfp-arrow-right { 212 | right: 0; } 213 | .mfp-arrow-right:after { 214 | border-left: 17px solid #FFF; 215 | margin-left: 39px; } 216 | .mfp-arrow-right:before { 217 | border-left: 27px solid #3F3F3F; } 218 | 219 | .mfp-iframe-holder { 220 | padding-top: 40px; 221 | padding-bottom: 40px; } 222 | .mfp-iframe-holder .mfp-content { 223 | line-height: 0; 224 | width: 100%; 225 | max-width: 900px; } 226 | .mfp-iframe-holder .mfp-close { 227 | top: -40px; } 228 | 229 | .mfp-iframe-scaler { 230 | width: 100%; 231 | height: 0; 232 | overflow: hidden; 233 | padding-top: 56.25%; } 234 | .mfp-iframe-scaler iframe { 235 | position: absolute; 236 | display: block; 237 | top: 0; 238 | left: 0; 239 | width: 100%; 240 | height: 100%; 241 | box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); 242 | background: #000; } 243 | 244 | /* Main image in popup */ 245 | img.mfp-img { 246 | width: auto; 247 | max-width: 100%; 248 | height: auto; 249 | display: block; 250 | line-height: 0; 251 | box-sizing: border-box; 252 | padding: 40px 0 40px; 253 | margin: 0 auto; } 254 | 255 | /* The shadow behind the image */ 256 | .mfp-figure { 257 | line-height: 0; } 258 | .mfp-figure:after { 259 | content: ''; 260 | position: absolute; 261 | left: 0; 262 | top: 40px; 263 | bottom: 40px; 264 | display: block; 265 | right: 0; 266 | width: auto; 267 | height: auto; 268 | z-index: -1; 269 | box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); 270 | background: #444; } 271 | .mfp-figure small { 272 | color: #BDBDBD; 273 | display: block; 274 | font-size: 12px; 275 | line-height: 14px; } 276 | .mfp-figure figure { 277 | margin: 0; } 278 | 279 | .mfp-bottom-bar { 280 | margin-top: -36px; 281 | position: absolute; 282 | top: 100%; 283 | left: 0; 284 | width: 100%; 285 | cursor: auto; } 286 | 287 | .mfp-title { 288 | text-align: left; 289 | line-height: 18px; 290 | color: #F3F3F3; 291 | word-wrap: break-word; 292 | padding-right: 36px; } 293 | 294 | .mfp-image-holder .mfp-content { 295 | max-width: 100%; } 296 | 297 | .mfp-gallery .mfp-image-holder .mfp-figure { 298 | cursor: pointer; } 299 | 300 | @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) { 301 | /** 302 | * Remove all paddings around the image on small screen 303 | */ 304 | .mfp-img-mobile .mfp-image-holder { 305 | padding-left: 0; 306 | padding-right: 0; } 307 | .mfp-img-mobile img.mfp-img { 308 | padding: 0; } 309 | .mfp-img-mobile .mfp-figure:after { 310 | top: 0; 311 | bottom: 0; } 312 | .mfp-img-mobile .mfp-figure small { 313 | display: inline; 314 | margin-left: 5px; } 315 | .mfp-img-mobile .mfp-bottom-bar { 316 | background: rgba(0, 0, 0, 0.6); 317 | bottom: 0; 318 | margin: 0; 319 | top: auto; 320 | padding: 3px 5px; 321 | position: fixed; 322 | box-sizing: border-box; } 323 | .mfp-img-mobile .mfp-bottom-bar:empty { 324 | padding: 0; } 325 | .mfp-img-mobile .mfp-counter { 326 | right: 5px; 327 | top: 3px; } 328 | .mfp-img-mobile .mfp-close { 329 | top: 0; 330 | right: 0; 331 | width: 35px; 332 | height: 35px; 333 | line-height: 35px; 334 | background: rgba(0, 0, 0, 0.6); 335 | position: fixed; 336 | text-align: center; 337 | padding: 0; } } 338 | 339 | @media all and (max-width: 900px) { 340 | .mfp-arrow { 341 | -webkit-transform: scale(0.75); 342 | transform: scale(0.75); } 343 | .mfp-arrow-left { 344 | -webkit-transform-origin: 0; 345 | transform-origin: 0; } 346 | .mfp-arrow-right { 347 | -webkit-transform-origin: 100%; 348 | transform-origin: 100%; } 349 | .mfp-container { 350 | padding-left: 6px; 351 | padding-right: 6px; } } 352 | -------------------------------------------------------------------------------- /inc/wp-html-helper.php: -------------------------------------------------------------------------------- 1 | '', 46 | 'alt' => '', 47 | 'class' => '', 48 | 'id' => '', 49 | 'width' => '', 50 | 'height' => '', 51 | 'srcset' => '', 52 | ); 53 | 54 | $args = wp_parse_args( $args, $default ); 55 | 56 | // Image URL 57 | $url = $args['url']; 58 | 59 | // image tag alter 60 | if ( ! empty( $args['alt'] ) ) { 61 | $alt = $args['alt']; 62 | } else { 63 | $alt = ararat_img_default_alt( $url ); 64 | } 65 | 66 | /** 67 | * Optional Attr 68 | */ 69 | 70 | $attr = ''; 71 | // Image class 72 | if ( ! empty( $args['class'] ) ) { 73 | $attr .= ' class="' . esc_attr( $args['class'] ) . '"'; 74 | } 75 | // Image id 76 | if ( ! empty( $args['id'] ) ) { 77 | $attr .= ' id="' . esc_attr( $args['id'] ) . '"'; 78 | } 79 | // Image width 80 | if ( ! empty( $args['width'] ) ) { 81 | $attr .= ' width="' . esc_attr( $args['width'] ) . '"'; 82 | } 83 | // Image height 84 | if ( ! empty( $args['height'] ) ) { 85 | $attr .= ' height="' . esc_attr( $args['height'] ) . '"'; 86 | } 87 | // Image srcset 88 | if ( ! empty( $args['srcset'] ) ) { 89 | $attr .= ' srcset="' . esc_attr( $args['srcset'] ) . '"'; 90 | } 91 | 92 | 93 | return '' . esc_attr( $alt ) . ''; 94 | } 95 | } 96 | 97 | // Anchor Tag 98 | if ( ! function_exists( 'ararat_anchor_tag' ) ) { 99 | function ararat_anchor_tag( array $args ) { 100 | 101 | $default = array( 102 | 'url' => '', 103 | 'text' => 'Click Here', 104 | 'target' => '', 105 | 'title' => '', 106 | 'class' => '', 107 | 'id' => '', 108 | 'wrap_before' => '', 109 | 'wrap_after' => '', 110 | ); 111 | 112 | $args = wp_parse_args( $args, $default ); 113 | 114 | // Anchor url 115 | $url = $args['url']; 116 | 117 | // Anchor Text 118 | $text = $args['text']; 119 | 120 | 121 | /** 122 | * Optional Attr 123 | */ 124 | 125 | $attr = ''; 126 | // class 127 | if ( ! empty( $args['class'] ) ) { 128 | $attr .= ' class="' . esc_attr( $args['class'] ) . '"'; 129 | } 130 | // id 131 | if ( ! empty( $args['id'] ) ) { 132 | $attr .= ' id="' . esc_attr( $args['id'] ) . '"'; 133 | } 134 | // target 135 | if ( ! empty( $args['target'] ) ) { 136 | $attr .= ' target="' . esc_attr( $args['target'] ) . '"'; 137 | } 138 | // Title 139 | if ( ! empty( $args['title'] ) ) { 140 | $attr .= ' title="' . esc_attr( $args['title'] ) . '"'; 141 | } 142 | 143 | $data = ''; 144 | 145 | // Wrapper Start 146 | if ( ! empty( $args['wrap_before'] ) ) { 147 | $data .= $args['wrap_before']; 148 | } 149 | $data .= '' . $text . ''; 150 | 151 | // Wrapper End 152 | if ( ! empty( $args['wrap_after'] ) ) { 153 | $data .= $args['wrap_after']; 154 | } 155 | 156 | return wp_kses_post( $data ); 157 | 158 | } 159 | } 160 | 161 | // Heading Tag 162 | if ( ! function_exists( 'ararat_heading_tag' ) ) { 163 | function ararat_heading_tag( array $args ) { 164 | 165 | $default = array( 166 | 'tag' => 'h1', 167 | 'text' => 'Write Something', 168 | 'class' => '', 169 | 'id' => '', 170 | 'wrap_before' => '', 171 | 'wrap_after' => '', 172 | ); 173 | 174 | $args = wp_parse_args( $args, $default ); 175 | 176 | // Tag 177 | $tag = $args['tag']; 178 | 179 | /** 180 | * Optional Attr 181 | */ 182 | 183 | $attr = ''; 184 | // class 185 | if ( ! empty( $args['class'] ) ) { 186 | $attr .= ' class="' . esc_attr( $args['class'] ) . '"'; 187 | } 188 | // id 189 | if ( ! empty( $args['id'] ) ) { 190 | $attr .= ' id="' . esc_attr( $args['id'] ) . '"'; 191 | } 192 | 193 | $data = ''; 194 | 195 | // Wrapper Start 196 | if ( ! empty( $args['wrap_before'] ) ) { 197 | $data .= $args['wrap_before']; 198 | } 199 | $data .= '<' . esc_attr( $tag ) . $attr . '>' . $args['text'] . ''; 200 | 201 | // Wrapper End 202 | if ( ! empty( $args['wrap_after'] ) ) { 203 | $data .= $args['wrap_after']; 204 | } 205 | 206 | return wp_kses_post( $data ); 207 | 208 | } 209 | } 210 | 211 | // Paragraph Tag 212 | if ( ! function_exists( 'ararat_paragraph_tag' ) ) { 213 | function ararat_paragraph_tag( array $args ) { 214 | 215 | $default = array( 216 | 'text' => 'Write Something', 217 | 'class' => '', 218 | 'id' => '', 219 | 'wrap_before' => '', 220 | 'wrap_after' => '', 221 | ); 222 | 223 | $args = wp_parse_args( $args, $default ); 224 | 225 | 226 | /** 227 | * Optional Attr 228 | */ 229 | 230 | $attr = ''; 231 | // class 232 | if ( ! empty( $args['class'] ) ) { 233 | $attr .= ' class="' . esc_attr( $args['class'] ) . '"'; 234 | } 235 | // id 236 | if ( ! empty( $args['id'] ) ) { 237 | $attr .= ' id="' . esc_attr( $args['id'] ) . '"'; 238 | } 239 | 240 | $pdata = ''; 241 | 242 | // Wrapper Start 243 | if ( ! empty( $args['wrap_before'] ) ) { 244 | $pdata .= $args['wrap_before']; 245 | } 246 | $pdata .= '' . $args['text'] . '

    '; 247 | // Wrapper End 248 | if ( ! empty( $args['wrap_after'] ) ) { 249 | $pdata .= $args['wrap_after']; 250 | } 251 | 252 | return wp_kses_post( $pdata ); 253 | 254 | } 255 | } 256 | 257 | // Other Tag 258 | if ( ! function_exists( 'ararat_other_tag' ) ) { 259 | function ararat_other_tag( array $args ) { 260 | 261 | $default = array( 262 | 'tag' => 'span', 263 | 'text' => 'Write Something', 264 | 'class' => '', 265 | 'id' => '', 266 | 'wrap_before' => '', 267 | 'wrap_after' => '', 268 | ); 269 | 270 | $args = wp_parse_args( $args, $default ); 271 | 272 | // Tag 273 | $tag = $args['tag']; 274 | 275 | /** 276 | * Optional Attr 277 | */ 278 | 279 | $attr = ''; 280 | // class 281 | if ( ! empty( $args['class'] ) ) { 282 | $attr .= ' class="' . esc_attr( $args['class'] ) . '"'; 283 | } 284 | // id 285 | if ( ! empty( $args['id'] ) ) { 286 | $attr .= ' id="' . esc_attr( $args['id'] ) . '"'; 287 | } 288 | 289 | $tagdata = ''; 290 | 291 | // Button Wrapper Start 292 | if ( ! empty( $args['wrap_before'] ) ) { 293 | $tagdata .= $args['wrap_before']; 294 | } 295 | $tagdata .= '<' . esc_attr( $tag ) . $attr . '>' . $args['text'] . '';; 296 | // Button Wrapper End 297 | if ( ! empty( $args['wrap_after'] ) ) { 298 | $tagdata .= $args['wrap_after']; 299 | } 300 | 301 | return wp_kses_post( $tagdata ); 302 | 303 | } 304 | } 305 | 306 | // Button Element 307 | if ( ! function_exists( 'ararat_button_element ' ) ) { 308 | function ararat_button_element( array $args ) { 309 | 310 | $default = array( 311 | 'text' => 'Button', 312 | 'type' => '', 313 | 'class' => '', 314 | 'id' => '', 315 | 'wrap_before' => '', 316 | 'wrap_after' => '', 317 | ); 318 | 319 | $args = wp_parse_args( $args, $default ); 320 | 321 | /** 322 | * Optional Attr 323 | */ 324 | 325 | $attr = ''; 326 | // class 327 | if ( ! empty( $args['class'] ) ) { 328 | $attr .= ' class="' . esc_attr( $args['class'] ) . '"'; 329 | } 330 | // id 331 | if ( ! empty( $args['id'] ) ) { 332 | $attr .= ' id="' . esc_attr( $args['id'] ) . '"'; 333 | } 334 | // type 335 | if ( ! empty( $args['type'] ) ) { 336 | $attr .= ' type="' . esc_attr( $args['type'] ) . '"'; 337 | } 338 | 339 | $btn = ''; 340 | 341 | // Button Wrapper Start 342 | if ( ! empty( $args['wrap_before'] ) ) { 343 | $btn .= $args['wrap_before']; 344 | } 345 | $btn .= ''; 346 | // Button Wrapper End 347 | if ( ! empty( $args['wrap_after'] ) ) { 348 | $btn .= $args['wrap_after']; 349 | } 350 | 351 | return wp_kses_post( $btn ); 352 | 353 | } 354 | } 355 | -------------------------------------------------------------------------------- /inc/wp_bootstrap_navwalker.php: -------------------------------------------------------------------------------- 1 | \n"; 24 | } 25 | 26 | /** 27 | * @see Walker::start_el() 28 | * @since 3.0.0 29 | * 30 | * @param string $output Passed by reference. Used to append additional content. 31 | * @param object $item Menu item data object. 32 | * @param int $depth Depth of menu item. Used for padding. 33 | * @param int $current_page Menu item ID. 34 | * @param object $args 35 | */ 36 | public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 37 | $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; 38 | 39 | 40 | 41 | /** 42 | * Dividers, Headers or Disabled 43 | * ============================= 44 | * Determine whether the item is a Divider, Header, Disabled or regular 45 | * menu item. To prevent errors we use the strcasecmp() function to so a 46 | * comparison that is not case sensitive. The strcasecmp() function returns 47 | * a 0 if the strings are equal. 48 | */ 49 | if ( strcasecmp( $item->attr_title, 'divider' ) == 0 && $depth === 1 ) { 50 | $output .= $indent . ''; 205 | $fb_output .= ''; 206 | 207 | if ( $container ) 208 | $fb_output .= ''; 209 | 210 | echo wp_kses_post( $fb_output ); 211 | } 212 | } 213 | } 214 | 215 | // Social nav Walker 216 | class ararat_social_navwalker extends Walker_Nav_Menu { 217 | // Tell Walker where to inherit it's parent and id values 218 | var $db_fields = array( 219 | 'parent' => 'menu_item_parent', 220 | 'id' => 'db_id' 221 | ); 222 | 223 | /** 224 | * 225 | * 226 | * Note: Menu objects include url and title properties, so we will use those. 227 | */ 228 | function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 229 | 230 | 231 | $class = $item->classes; 232 | 233 | $setClass = ''; 234 | 235 | if( !empty( $class['0'] ) ){ 236 | $setClass = $class['0']; 237 | } 238 | 239 | $output .= sprintf( "\n
  • \n", 240 | $item->url, 241 | $setClass 242 | ); 243 | 244 | } 245 | 246 | } 247 | --------------------------------------------------------------------------------