Monday-Friday:<\/p> 8AM - 6PM<\/span><\/li>\r\n Saturday-Sunday:<\/p> 8AM - 12PM<\/span><\/li>\r\n <\/ul>\r\n <\/div>","filter":true,"visual":true}},"footer-2":{"nav_menu-1":{"title":"Causes","nav_menu":"29"}},"footer-3":{"amor_instagram_photo-2":{"title":"Our Gallery","insta_user":"hasanfardousrubel","insta_items":"8"}},"footer-4":{"amor_newsletter-2":{"title":"Newsletter","actionurl":"https:\/\/spondonit.us12.list-manage.com\/subscribe\/post?u=1462626880ade1ac87bd9c93a&id=92a4423d01","desc":"Heaven fruitful doesn't over lesser in days. Appear creeping seasons deve behold bearing days open"}}}
--------------------------------------------------------------------------------
/404.php:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | '.esc_html( $errorText ).'';
30 |
31 |
32 | // Wrong text block
33 |
34 | $wrongText = wp_kses_post( __( 'Either something went wrong or the page dosen’t exist anymore.', 'amor' ) );
35 |
36 | if( amor_opt('amor_fof_titletwo') ){
37 | $wrongText = amor_opt('amor_fof_titletwo');
38 | }
39 |
40 | $anchor = amor_anchor_tag(
41 | array(
42 | 'url' => esc_url( site_url( '/' ) ),
43 | 'text' => esc_html__( 'Go To Home page', 'amor' ),
44 | 'class' => 'button button-contactForm btn_3'
45 | )
46 | );
47 |
48 | echo amor_paragraph_tag(
49 | array(
50 | 'text' => esc_html( $wrongText )
51 | )
52 | );
53 |
54 | echo wp_kses_post( $anchor );
55 | ?>
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/templates/content.php:
--------------------------------------------------------------------------------
1 |
11 |
12 | >
13 | '. esc_html__( 'Sticky', 'amor' ) .' ';
16 | }
17 | if( has_post_thumbnail() ){ ?>
18 |
19 | 'card-img rounded-0' ) );
21 |
22 | echo '
'. get_the_time( 'd' ) .' '. get_the_time('M') .'
';
23 |
24 | ?>
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
40 |
44 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/assets/js/loopcounter.js:
--------------------------------------------------------------------------------
1 | jQuery(document).ready(function($){
2 | window.loopcounter = function( idWarp ) {
3 | if(typeof idWarp!= 'undefined'){
4 | var date = $('.'+idWarp).data('date');
5 |
6 |
7 |
8 | var start = new Date( date ),
9 | end = new Date(),
10 | diff = new Date( start - end ),
11 | time = diff/1000/60/60/24;
12 |
13 | var day = parseInt(time);
14 | var hour = parseInt( 24 - (diff/1000/60/60)%24 );
15 | var min = parseInt( 60 - (diff/1000/60)%60 );
16 | var sec = parseInt( 60 - (diff/1000)%60 );
17 |
18 | counterDate(idWarp,day,hour,min,sec);
19 |
20 | var interval = setInterval(function () {
21 | if( sec==0 && min!=0 ){
22 | min--;
23 | sec = 60;
24 | }
25 | if(min == 0 && sec == 0 && hour!=0 ){
26 | hour--;
27 | min = 59;
28 | sec = 60;
29 | }
30 | if(min == 0 && sec == 0 && hour == 0 && day!=0 ){
31 | day--;
32 | hour = 23;
33 | min = 59;
34 | sec = 60;
35 | }
36 | if(min == 0 && sec == 0 && hour == 0 && day==0 ){
37 | clearInterval(interval);
38 | }else{
39 | sec--;
40 | }
41 | counterDate(idWarp,day,hour,min,sec);
42 | }, 1000 );
43 |
44 | function counterDate(id,day,hour,min,sec){
45 | if (time < 0) { day = hour = min = sec = 0; }
46 | $( '.'+id+' .counter-days').html( counterDoubleDigit(day) );
47 | $( '.'+id+' .counter-hours').html( counterDoubleDigit(hour) );
48 | $( '.'+id+' .counter-minutes').html( counterDoubleDigit(min) );
49 | $( '.'+id+' .counter-seconds').html( counterDoubleDigit(sec) );
50 | }
51 | function counterDoubleDigit( arg ){
52 | if( arg.toString().length <= 1 ){
53 | arg = ('0' + arg).slice(-2);
54 | }
55 | return arg;
56 | }
57 | }
58 | }
59 | //loopcounter( 'counter-id' );
60 | });
--------------------------------------------------------------------------------
/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 amor = 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 : 'amor_process_simple_like',
21 | post_id : post_id,
22 | nonce : amor,
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 | 'portfolio_single_metaboxs',
7 | 'title' => esc_html__( 'Portfolio Single Metabox', 'amor' ),
8 | 'post_types'=> array( 'portfolio' ),
9 | 'context' => 'side',
10 | 'priority' => 'high',
11 | 'autosave' => 'false',
12 | 'fields' => array(
13 | array(
14 | 'id' => $amor_prefix . 'project_start_time',
15 | 'name' => esc_html__( 'Project Start Time', 'amor' ),
16 | 'type' => 'time',
17 | 'js_options' => array(
18 | 'stepMinute' => 10,
19 | 'controlType' => 'select'
20 | ),
21 | ),
22 | array(
23 | 'id' => $amor_prefix . 'project_start_date',
24 | 'type' => 'date',
25 | 'name' => esc_html__( 'Project Start Date', 'amor' ),
26 | 'js_options' => array(
27 | 'dateFormat' => 'DD, M dd, yy ',
28 | 'showButtonPanel' => false,
29 | ),
30 | ),
31 | array(
32 | 'id' => $amor_prefix . 'project_end_time',
33 | 'name' => esc_html__( 'Project End Time', 'amor' ),
34 | 'type' => 'time',
35 | 'js_options' => array(
36 | 'stepMinute' => 10,
37 | 'controlType' => 'select'
38 | ),
39 | ),
40 | array(
41 | 'id' => $amor_prefix . 'project_end_date',
42 | 'type' => 'date',
43 | 'name' => esc_html__( 'Project End Date', 'amor' ),
44 | 'js_options' => array(
45 | 'dateFormat' => 'DD, M dd, yy ',
46 | 'showButtonPanel' => false,
47 | ),
48 | ),
49 | array(
50 | 'id' => $amor_prefix . 'project_location',
51 | 'type' => 'text',
52 | 'name' => esc_html__( 'Project Location', 'amor' ),
53 | 'placeholder' => esc_html__( 'Project Location', 'amor' ),
54 | ),
55 | ),
56 | );
57 |
58 |
59 | return $meta_boxes;
60 | }
61 | add_filter( 'rwmb_meta_boxes', 'amor_portfolio_metabox' );
--------------------------------------------------------------------------------
/assets/css/slick.css:
--------------------------------------------------------------------------------
1 | /* Slider */
2 | .slick-slider
3 | {
4 | position: relative;
5 |
6 | display: block;
7 |
8 | -moz-box-sizing: border-box;
9 | box-sizing: border-box;
10 |
11 | -webkit-user-select: none;
12 | -moz-user-select: none;
13 | -ms-user-select: none;
14 | user-select: none;
15 |
16 | -webkit-touch-callout: none;
17 | -khtml-user-select: none;
18 | -ms-touch-action: pan-y;
19 | touch-action: pan-y;
20 | -webkit-tap-highlight-color: transparent;
21 | }
22 |
23 | .slick-list
24 | {
25 | position: relative;
26 |
27 | display: block;
28 | overflow: hidden;
29 |
30 | margin: 0;
31 | padding: 0;
32 | }
33 | .slick-list:focus
34 | {
35 | outline: none;
36 | }
37 | .slick-list.dragging
38 | {
39 | cursor: pointer;
40 | cursor: hand;
41 | }
42 |
43 | .slick-slider .slick-track,
44 | .slick-slider .slick-list
45 | {
46 | -webkit-transform: translate3d(0, 0, 0);
47 | -moz-transform: translate3d(0, 0, 0);
48 | -ms-transform: translate3d(0, 0, 0);
49 | -o-transform: translate3d(0, 0, 0);
50 | transform: translate3d(0, 0, 0);
51 | }
52 |
53 | .slick-track
54 | {
55 | position: relative;
56 | top: 0;
57 | left: 0;
58 |
59 | display: block;
60 | }
61 | .slick-track:before,
62 | .slick-track:after
63 | {
64 | display: table;
65 |
66 | content: '';
67 | }
68 | .slick-track:after
69 | {
70 | clear: both;
71 | }
72 | .slick-loading .slick-track
73 | {
74 | visibility: hidden;
75 | }
76 |
77 | .slick-slide
78 | {
79 | display: none;
80 | float: left;
81 |
82 | height: 100%;
83 | min-height: 1px;
84 | }
85 | [dir='rtl'] .slick-slide
86 | {
87 | float: right;
88 | }
89 | .slick-slide img
90 | {
91 | display: block;
92 | }
93 | .slick-slide.slick-loading img
94 | {
95 | display: none;
96 | }
97 | .slick-slide.dragging img
98 | {
99 | pointer-events: none;
100 | }
101 | .slick-initialized .slick-slide
102 | {
103 | display: block;
104 | }
105 | .slick-loading .slick-slide
106 | {
107 | visibility: hidden;
108 | }
109 | .slick-vertical .slick-slide
110 | {
111 | display: block;
112 |
113 | height: auto;
114 |
115 | border: 1px solid transparent;
116 | }
--------------------------------------------------------------------------------
/inc/widgets/amor-widgets-reg.php:
--------------------------------------------------------------------------------
1 | esc_html__('Sidebar widgets', 'amor'),
21 | 'description' => esc_html__('Place widgets in sidebar widgets area.', 'amor'),
22 | 'id' => 'sidebar_widgets',
23 | 'before_widget' => '',
25 | 'before_title' => ''
27 | ));
28 |
29 | // footer widgets register
30 | register_sidebar(
31 | array(
32 | 'name' => esc_html__( 'Footer One', 'amor' ),
33 | 'id' => 'footer-1',
34 | 'before_widget' => '',
36 | )
37 | );
38 | register_sidebar(
39 | array(
40 | 'name' => esc_html__( 'Footer Two', 'amor' ),
41 | 'id' => 'footer-2',
42 | 'before_widget' => '
',
44 | 'before_title' => '',
45 | 'after_title' => ' ',
46 | )
47 | );
48 | register_sidebar(
49 | array(
50 | 'name' => esc_html__( 'Footer Three', 'amor' ),
51 | 'id' => 'footer-3',
52 | 'before_widget' => '
',
54 | 'before_title' => '',
55 | 'after_title' => ' ',
56 | )
57 | );
58 | register_sidebar(
59 | array(
60 | 'name' => esc_html__( 'Footer Four', 'amor' ),
61 | 'id' => 'footer-4',
62 | 'before_widget' => '
',
64 | 'before_title' => '',
65 | 'after_title' => ' ',
66 | )
67 | );
68 |
69 |
70 | }
71 | add_action( 'widgets_init', 'amor_widgets_init' );
72 |
--------------------------------------------------------------------------------
/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
"),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+="";for(d=0;d
",c+="\t ",c+="";c+=" "}e(b.container).html(c)}}):console.log("Instagram Feed: Error, no container found.")}})(jQuery);
--------------------------------------------------------------------------------
/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', 'amor' ), $plugin_name );
56 | // Translators: %s is the plugin name.
57 | $arr['description'] = sprintf( __( 'Please install %s in order to create the demo content.', 'amor' ), $plugin_name );
58 |
59 | if ( $arr['installed'] ) {
60 | // Translators: %s is the plugin name
61 | $arr['title'] = sprintf( __( 'Activate: %s', 'amor' ), $plugin_name );
62 | // Translators: %s is the plugin name
63 | $arr['description'] = sprintf( __( 'Please activate %s in order to create the demo content.', 'amor' ), $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'] = defined( 'WPCF7_VERSION' );
81 | }
82 |
83 | return $arr;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/assets/js/jquery.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);
--------------------------------------------------------------------------------
/inc/demo/demo-import.php:
--------------------------------------------------------------------------------
1 | ';
18 |
19 | return array(
20 | array(
21 | 'import_file_name' => 'Amor Demo',
22 | 'local_import_file' => AMOR_DIR_PATH_INC .'demo/amor-demo.xml',
23 | 'local_import_widget_file' => AMOR_DIR_PATH_INC .'demo/amor-widgets.wie',
24 | 'import_customizer_file_url' => AMOR_DIR_INC . 'demo/amor-customizer.dat',
25 | 'import_notice' => $demoImg,
26 | ),
27 | );
28 | }
29 | add_filter( 'pt-ocdi/import_files', 'amor_import_files' );
30 |
31 | // demo import setup
32 | function amor_after_import_setup() {
33 | // Assign menus to their locations.
34 | $main_menu = get_term_by( 'name', 'Main Menu', 'nav_menu' );
35 | $causes_menu = get_term_by( 'name', 'Causes', 'nav_menu' );
36 |
37 | set_theme_mod( 'nav_menu_locations', array(
38 | 'primary-menu' => $main_menu->term_id,
39 | 'causes-menu' => $causes_menu->term_id
40 | )
41 | );
42 |
43 | // Assign front page and posts page (blog page).
44 | $front_page_id = get_page_by_title( 'Homepage' );
45 | $blog_page_id = get_page_by_title( 'Blog' );
46 |
47 | update_option( 'show_on_front', 'page' );
48 | update_option( 'page_on_front', $front_page_id->ID );
49 | update_option( 'page_for_posts', $blog_page_id->ID );
50 | update_option( 'amor_demodata_import', 'yes' );
51 |
52 | }
53 | add_action( 'pt-ocdi/after_import', 'amor_after_import_setup' );
54 |
55 | //disable the branding notice after successful demo import
56 | add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );
57 |
58 | //change the location, title and other parameters of the plugin page
59 | function amor_import_plugin_page_setup( $default_settings ) {
60 | $default_settings['parent_slug'] = 'themes.php';
61 | $default_settings['page_title'] = esc_html__( 'One Click Demo Import' , 'amor' );
62 | $default_settings['menu_title'] = esc_html__( 'Import Demo Data' , 'amor' );
63 | $default_settings['capability'] = 'import';
64 | $default_settings['menu_slug'] = 'amor-demo-import';
65 |
66 | return $default_settings;
67 | }
68 | add_filter( 'pt-ocdi/plugin_page_setup', 'amor_import_plugin_page_setup' );
69 |
70 | // Enqueue scripts
71 | function amor_demo_import_custom_scripts(){
72 |
73 |
74 | if( isset( $_GET['page'] ) && $_GET['page'] == 'amor-demo-import' ){
75 | // style
76 | wp_enqueue_style( 'amor-demo-import', AMOR_DIR_INC . 'demo/css/demo-import.css', array(), '1.0', false );
77 | }
78 |
79 |
80 | }
81 | add_action( 'admin_enqueue_scripts', 'amor_demo_import_custom_scripts' );
82 |
83 |
84 |
85 | ?>
--------------------------------------------------------------------------------
/inc/demo/amor-customizer.dat:
--------------------------------------------------------------------------------
1 | a:4:{s:8:"template";s:4:"amor";s:4:"mods";a:26:{i:0;b:0;s:18:"nav_menu_locations";a:2:{s:12:"primary-menu";i:30;s:11:"causes-menu";i:29;}s:18:"custom_css_post_id";i:-1;s:11:"custom_logo";i:412;s:15:"amor_header_btn";b:1;s:16:"header_btn_label";s:10:"learn more";s:25:"amor_footer_widget_toggle";b:1;s:11:"footer_logo";i:410;s:14:"amor_blog_meta";b:1;s:13:"amor_like_btn";b:1;s:15:"amor_blog_share";b:1;s:26:"amor_social_profile_toggle";b:1;s:18:"amor_header_social";a:4:{i:0;a:4:{s:17:"social_link_title";s:8:"Facebook";s:10:"social_url";s:1:"#";s:11:"social_icon";s:14:"fa fa-facebook";s:5:"index";i:0;}i:1;a:4:{s:17:"social_link_title";s:7:"Twitter";s:10:"social_url";s:1:"#";s:11:"social_icon";s:13:"fa fa-twitter";s:5:"index";i:1;}i:2;a:4:{s:17:"social_link_title";s:9:"Instagram";s:10:"social_url";s:1:"#";s:11:"social_icon";s:15:"fa fa-instagram";s:5:"index";i:2;}i:3;a:4:{s:17:"social_link_title";s:7:"Behance";s:10:"social_url";s:1:"#";s:11:"social_icon";s:13:"fa fa-behance";s:5:"index";i:3;}}s:26:"amor_booking_btn_txt_color";s:20:"rgba(224, 29, 29, 1)";s:25:"amor_booking_btn_bg_color";s:7:"#8d00ff";s:20:"amor_header_bg_color";s:7:"#8d00ff";s:22:"amor_header_menu_color";s:7:"#ffffff";s:28:"amor_header_menu_hover_color";s:7:"#ffffff";s:27:"amor_header_drop_menu_color";s:7:"#000000";s:33:"amor_header_drop_menu_hover_color";s:7:"#8d00ff";s:20:"amor_footer_bg_color";s:7:"#faf4ff";s:29:"amor_footer_widget_text_color";s:7:"#555555";s:30:"amor_footer_widget_title_color";s:7:"#000000";s:31:"amor_footer_widget_anchor_color";s:7:"#555555";s:37:"amor_footer_widget_anchor_hover_color";s:7:"#8d00ff";s:16:"amor_theme_color";s:7:"#8d00ff";}s:7:"options";a:22:{s:22:"woocommerce_demo_store";s:2:"no";s:29:"woocommerce_demo_store_notice";s:79:"This is a demo store for testing purposes — no orders shall be fulfilled.";s:29:"woocommerce_shop_page_display";s:0:"";s:36:"woocommerce_category_archive_display";s:0:"";s:35:"woocommerce_default_catalog_orderby";s:10:"menu_order";s:27:"woocommerce_catalog_columns";i:4;s:24:"woocommerce_catalog_rows";i:4;s:30:"woocommerce_single_image_width";s:3:"600";s:33:"woocommerce_thumbnail_image_width";s:3:"300";s:30:"woocommerce_thumbnail_cropping";s:3:"1:1";s:43:"woocommerce_thumbnail_cropping_custom_width";s:1:"4";s:44:"woocommerce_thumbnail_cropping_custom_height";s:1:"3";s:34:"woocommerce_checkout_company_field";s:8:"optional";s:36:"woocommerce_checkout_address_2_field";s:8:"optional";s:32:"woocommerce_checkout_phone_field";s:8:"required";s:46:"woocommerce_checkout_highlight_required_fields";s:3:"yes";s:55:"woocommerce_checkout_terms_and_conditions_checkbox_text";s:44:"I have read and agree to the website [terms]";s:40:"woocommerce_checkout_privacy_policy_text";s:161:"Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our [privacy_policy].";s:26:"wp_page_for_privacy_policy";s:1:"0";s:25:"woocommerce_terms_page_id";s:0:"";s:9:"site_icon";s:3:"413";s:23:"nav_menus_created_posts";a:0:{}}s:6:"wp_css";s:0:"";}
--------------------------------------------------------------------------------
/inc/customizer/fields/sections.php:
--------------------------------------------------------------------------------
1 | 'amor_theme_options_panel',
22 | 'args' => array(
23 | 'priority' => 0,
24 | 'capability' => 'edit_theme_options',
25 | 'theme_supports' => '',
26 | 'title' => esc_html__( 'Theme Options', 'amor' ),
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' => 'amor_general_section',
44 | 'args' => array(
45 | 'title' => esc_html__( 'General', 'amor' ),
46 | 'panel' => 'amor_theme_options_panel',
47 | 'priority' => 1,
48 | ),
49 | ),
50 |
51 | /**
52 | * Header Section
53 | */
54 | array(
55 | 'id' => 'amor_header_section',
56 | 'args' => array(
57 | 'title' => esc_html__( 'Header', 'amor' ),
58 | 'panel' => 'amor_theme_options_panel',
59 | 'priority' => 2,
60 | ),
61 | ),
62 |
63 | /**
64 | * Blog Section
65 | */
66 | array(
67 | 'id' => 'amor_blog_section',
68 | 'args' => array(
69 | 'title' => esc_html__( 'Blog', 'amor' ),
70 | 'panel' => 'amor_theme_options_panel',
71 | 'priority' => 3,
72 | ),
73 | ),
74 |
75 |
76 |
77 | /**
78 | * 404 Page Section
79 | */
80 | array(
81 | 'id' => 'amor_fof_section',
82 | 'args' => array(
83 | 'title' => esc_html__( '404 Page', 'amor' ),
84 | 'panel' => 'amor_theme_options_panel',
85 | 'priority' => 6,
86 | ),
87 | ),
88 |
89 | /**
90 | * Footer Section
91 | */
92 | array(
93 | 'id' => 'amor_footer_section',
94 | 'args' => array(
95 | 'title' => esc_html__( 'Footer Page', 'amor' ),
96 | 'panel' => 'amor_theme_options_panel',
97 | 'priority' => 7,
98 | ),
99 | ),
100 |
101 |
102 |
103 | );
104 |
105 |
106 | /***********************************
107 | * Add customizer elements
108 | ***********************************/
109 | $collection = array(
110 | 'panel' => $panels,
111 | 'section' => $sections,
112 | );
113 |
114 | Epsilon_Customizer::add_multiple( $collection );
115 |
116 | ?>
--------------------------------------------------------------------------------
/header.php:
--------------------------------------------------------------------------------
1 |
2 | >
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | >
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
21 |
24 |
25 |
26 |
27 | 'primary-menu',
31 | 'theme_location' => 'primary-menu',
32 | 'menu_id' => 'menu-main-menu',
33 | 'container_class'=> 'collapse navbar-collapse main-menu-item justify-content-end',
34 | 'container_id' => 'navbarSupportedContent',
35 | 'menu_class' => 'navbar-nav align-items-center',
36 | 'walker' => new amor_bootstrap_navwalker,
37 | 'depth' => 3
38 | ));
39 | }
40 |
41 |
42 | if( amor_opt( 'amor_header_btn' ) == 1 ){
43 | $btn_lbl = !empty( amor_opt( 'header_btn_label' ) ) ? amor_opt( 'header_btn_label' ) : '';
44 | $btn_url = !empty( amor_opt( 'booking_btn_url' ) ) ? amor_opt( 'booking_btn_url' ) : '';
45 | ?>
46 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | 0) {
15 | $('.img-pop-up').magnificPopup({
16 | type: 'image',
17 | gallery: {
18 | enabled: true
19 | }
20 | });
21 | }
22 |
23 | // Loop counter
24 | $(document).ready(function(){
25 | loopcounter('counter-class1');
26 | loopcounter('counter-class2');
27 | loopcounter('counter-class3');
28 | loopcounter('counter-class4');
29 | });
30 |
31 |
32 | $(document).ready(function() {
33 | $('select').niceSelect();
34 | });
35 | // menu fixed js code
36 | $(window).scroll(function () {
37 | var window_top = $(window).scrollTop() + 1;
38 | if (window_top > 50) {
39 | $('.main_menu').addClass('menu_fixed animated fadeInDown');
40 | } else {
41 | $('.main_menu').removeClass('menu_fixed animated fadeInDown');
42 | }
43 | });
44 |
45 | $(document).ready(function() {
46 | $('select').niceSelect();
47 | });
48 |
49 | var review = $('.client_review_part');
50 | if (review.length) {
51 | review.owlCarousel({
52 | items: 1,
53 | loop: true,
54 | dots: true,
55 | autoplay: true,
56 | autoplayHoverPause: true,
57 | autoplayTimeout: 5000,
58 | nav: false,
59 | smartSpeed: 2000,
60 | });
61 | }
62 | var client = $('.client_logo');
63 | if (client.length) {
64 | client.owlCarousel({
65 | items: 6,
66 | loop: true,
67 | dots: false,
68 | autoplay: true,
69 | autoplayHoverPause: true,
70 | autoplayTimeout: 5000,
71 | nav: false,
72 | smartSpeed: 2000,
73 | margin: 20,
74 | responsive: {
75 | 0: {
76 | items: 3
77 | },
78 | 577: {
79 | items:3,
80 | },
81 | 991: {
82 | items:5,
83 | },
84 | 1200: {
85 | items: 6,
86 | }
87 | },
88 | });
89 | }
90 | //counter up
91 | $('.count').counterUp({
92 | delay: 10,
93 | time: 2000
94 | });
95 |
96 |
97 | //------- Mailchimp js --------//
98 | function mailChimp() {
99 | $('#mc_embed_signup').find('form').ajaxChimp();
100 | }
101 | mailChimp();
102 |
103 |
104 | /*-------------------------------------
105 | Instagram Photos
106 | -------------------------------------*/
107 | function cp_instagram_photos() {
108 | $('.cp-instagram-photos').each(function(){
109 | $.instagramFeed({
110 | 'username': $(this).data('username'),
111 | 'container': $(this),
112 | 'display_profile': false,
113 | 'display_biography': false,
114 | 'items': $(this).data('items'),
115 | 'margin': 0
116 | });
117 | console.log( $(this) );
118 | });
119 |
120 | }
121 | cp_instagram_photos();
122 |
123 | }(jQuery));
--------------------------------------------------------------------------------
/assets/js/jquery.smooth-scroll.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery Smooth Scroll - v1.5.5 - 2015-02-19
3 | * https://github.com/kswedberg/jquery-smooth-scroll
4 | * Copyright (c) 2015 Karl Swedberg
5 | * Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT)
6 | */
7 | (function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?t(require("jquery")):t(jQuery)})(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var l="1.5.5",o={},n={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var l=[],o=!1,n=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!==document&&this!==window){var e=t(this);e[n]()>0?l.push(this):(e[n](1),o=e[n]()>0,o&&l.push(this),e[n](0))}}),l.length||this.each(function(){"BODY"===this.nodeName&&(l=[this])}),"first"===e.el&&l.length>1&&(l=[l[0]]),l};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(l,o){if(l=l||{},"options"===l)return o?this.each(function(){var e=t(this),l=t.extend(e.data("ssOpts")||{},o);t(this).data("ssOpts",l)}):this.first().data("ssOpts");var n=t.extend({},t.fn.smoothScroll.defaults,l),s=t.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(l){var o=this,r=t(this),i=t.extend({},n,r.data("ssOpts")||{}),c=n.exclude,a=i.excludeWithin,f=0,h=0,u=!0,d={},p=location.hostname===o.hostname||!o.hostname,m=i.scrollTarget||t.smoothScroll.filterPath(o.pathname)===s,S=e(o.hash);if(i.scrollTarget||p&&m&&S){for(;u&&c.length>f;)r.is(e(c[f++]))&&(u=!1);for(;u&&a.length>h;)r.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(i.preventDefault&&l.preventDefault(),t.extend(d,i,{scrollTarget:i.scrollTarget||S,link:o}),t.smoothScroll(d))}),this}}),t.smoothScroll=function(e,l){if("options"===e&&"object"==typeof l)return t.extend(o,l);var n,s,r,i,c,a=0,f="offset",h="scrollTop",u={},d={};"number"==typeof e?(n=t.extend({link:null},t.fn.smoothScroll.defaults,o),r=e):(n=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},o),n.scrollElement&&(f="position","static"===n.scrollElement.css("position")&&n.scrollElement.css("position","relative"))),h="left"===n.direction?"scrollLeft":h,n.scrollElement?(s=n.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(a=s[h]())):s=t("html, body").firstScrollable(n.direction),n.beforeScroll.call(s,n),r="number"==typeof e?e:l||t(n.scrollTarget)[f]()&&t(n.scrollTarget)[f]()[n.direction]||0,u[h]=r+a+n.offset,i=n.speed,"auto"===i&&(c=u[h]-s.scrollTop(),0>c&&(c*=-1),i=c/n.autoCoefficient),d={duration:i,easing:n.easing,complete:function(){n.afterScroll.call(n.link,n)}},n.step&&(d.step=n.step),s.length?s.stop().animate(u,d):n.afterScroll.call(n.link,n)},t.smoothScroll.version=l,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=n});
--------------------------------------------------------------------------------
/assets/js/timer.js:
--------------------------------------------------------------------------------
1 | (function ($) {
2 | "use strict";
3 |
4 | // time tricker js
5 |
6 | $(document).ready(function() {
7 | const second = 1000,
8 | minute = second * 60,
9 | hour = minute * 60,
10 | day = hour * 24;
11 |
12 | let countDown = new Date('Sep 30, 2020 00:00:00').getTime(),
13 | x = setInterval(function() {
14 |
15 | let now = new Date().getTime(),
16 | distance = countDown - now;
17 |
18 | document.getElementById('days').innerText = Math.floor(distance / (day)),
19 | document.getElementById('hours').innerText = Math.floor((distance % (day)) / (hour)),
20 | document.getElementById('minutes').innerText = Math.floor((distance % (hour)) / (minute));
21 | },)
22 |
23 | });
24 | $(document).ready(function() {
25 | const second = 1000,
26 | minute = second * 60,
27 | hour = minute * 60,
28 | day = hour * 24;
29 |
30 | let countDown = new Date('Sep 10, 2020 00:00:00').getTime(),
31 | x = setInterval(function() {
32 |
33 | let now = new Date().getTime(),
34 | distance = countDown - now;
35 |
36 | document.getElementById('days1').innerText = Math.floor(distance / (day)),
37 | document.getElementById('hours1').innerText = Math.floor((distance % (day)) / (hour)),
38 | document.getElementById('minutes1').innerText = Math.floor((distance % (hour)) / (minute));
39 | },)
40 |
41 | });
42 | $(document).ready(function() {
43 | const second = 1000,
44 | minute = second * 60,
45 | hour = minute * 60,
46 | day = hour * 24;
47 |
48 | let countDown = new Date('Sep 20, 2020 00:00:00').getTime(),
49 | x = setInterval(function() {
50 |
51 | let now = new Date().getTime(),
52 | distance = countDown - now;
53 |
54 | document.getElementById('days2').innerText = Math.floor(distance / (day)),
55 | document.getElementById('hours2').innerText = Math.floor((distance % (day)) / (hour)),
56 | document.getElementById('minutes2').innerText = Math.floor((distance % (hour)) / (minute));
57 | },)
58 |
59 | });
60 | $(document).ready(function() {
61 | const second = 1000,
62 | minute = second * 60,
63 | hour = minute * 60,
64 | day = hour * 24;
65 |
66 | let countDown = new Date('Sep 15, 2020 00:00:00').getTime(),
67 | x = setInterval(function() {
68 |
69 | let now = new Date().getTime(),
70 | distance = countDown - now;
71 |
72 | document.getElementById('days3').innerText = Math.floor(distance / (day)),
73 | document.getElementById('hours3').innerText = Math.floor((distance % (day)) / (hour)),
74 | document.getElementById('minutes3').innerText = Math.floor((distance % (hour)) / (minute));
75 | },)
76 |
77 | });
78 |
79 |
80 | }(jQuery));
--------------------------------------------------------------------------------
/inc/wp_bootstrap_pagination.php:
--------------------------------------------------------------------------------
1 | 4,
20 | 'custom_query' => FALSE,
21 | 'before_output' => '',
22 | 'after_output' => ' '
23 | );
24 |
25 | $args = wp_parse_args(
26 | $args,
27 | apply_filters( 'amor_pagination_defaults', $defaults )
28 | );
29 |
30 | $args['range'] = (int) $args['range'] - 1;
31 | if ( !$args['custom_query'] )
32 | $args['custom_query'] = isset( $GLOBALS['wp_query'] ) ? $GLOBALS['wp_query'] : '';
33 | $count = (int) $args['custom_query']->max_num_pages;
34 | $page = intval( get_query_var( 'paged' ) );
35 | $ceil = ceil( $args['range'] / 2 );
36 |
37 | if ( $count <= 1 )
38 | return FALSE;
39 |
40 | if ( !$page )
41 | $page = 1;
42 |
43 | if ( $count > $args['range'] ) {
44 | if ( $page <= $args['range'] ) {
45 | $min = 1;
46 | $max = $args['range'] + 1;
47 | } elseif ( $page >= ($count - $ceil) ) {
48 | $min = $count - $args['range'];
49 | $max = $count;
50 | } elseif ( $page >= $args['range'] && $page < ($count - $ceil) ) {
51 | $min = $page - $ceil;
52 | $max = $page + $ceil;
53 | }
54 | } else {
55 | $min = 1;
56 | $max = $count;
57 | }
58 |
59 | $echo = '';
60 |
61 |
62 | $previous = intval($page) - 1;
63 | $previous = esc_attr( get_pagenum_link($previous) );
64 |
65 | if ( $previous && (1 != $page) )
66 | $echo .= '' . esc_html__( 'Previous', 'amor' ) . ' ';
67 |
68 | if ( !empty($min) && !empty($max) ) {
69 | for( $i = $min; $i <= $max; $i++ ) {
70 | if ( $page == $i ) {
71 | $echo .= '' . str_pad( (int)$i, 2, '0', STR_PAD_LEFT ) . ' ';
72 | } else {
73 | $echo .= sprintf( '%002d ', esc_attr( get_pagenum_link($i) ), $i );
74 | }
75 | }
76 | }
77 |
78 | $next = intval($page) + 1;
79 | $next = esc_attr( get_pagenum_link($next) );
80 | if ($next && ($count != $page) )
81 | $echo .= '' . esc_html__( 'Next', 'amor') . ' ';
82 |
83 |
84 |
85 | if ( isset($echo) )
86 | echo wp_kses_post( $args['before_output'] . $echo . $args['after_output'] );
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/templates/menu-bar.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/css/owl.carousel.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Owl Carousel v2.3.4
3 | * Copyright 2013-2018 David Deutsch
4 | * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
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;touch-action:manipulation;-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;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.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{-ms-touch-action:pan-y;touch-action:pan-y;-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 .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.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/elementor-widgets/assets/js/map-custom.js:
--------------------------------------------------------------------------------
1 | (function ($) {
2 | // USE STRICT
3 | "use strict";
4 |
5 | // Start Google map
6 |
7 | // When the window has finished loading create our google map below
8 |
9 |
10 | if(document.getElementById("map")){
11 |
12 | var $dataSelector = $( '[data-map]' ),
13 | $getData = $dataSelector.data( 'map' );
14 |
15 | google.maps.event.addDomListener(window, 'load', init);
16 |
17 | function init() {
18 | // Basic options for a simple Google Map
19 | // For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions
20 | var mapOptions = {
21 | // How zoomed in you want the map to start at (always required)
22 | zoom: 11,
23 |
24 | // The latitude and longitude to center the map (always required)
25 | center: new google.maps.LatLng( $getData.lat, $getData.lng ), // New York
26 |
27 | // How you would like to style the map.
28 | // This is where you would paste any style found on Snazzy Maps.
29 | styles: [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#e9e9e9"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}]
30 | };
31 |
32 | // Get the HTML DOM element that will contain your map
33 | // We are using a div with id="map" seen below in the
34 | var mapElement = document.getElementById('map');
35 |
36 | // Create the Google Map using our element and options defined above
37 | var map = new google.maps.Map(mapElement, mapOptions);
38 |
39 | // Let's also add a marker while we're at it
40 | var marker = new google.maps.Marker({
41 | position: new google.maps.LatLng( $getData.lat, $getData.lng ),
42 | map: map,
43 | title: $getData.address
44 | });
45 | }
46 | }
47 |
48 | })(jQuery);
--------------------------------------------------------------------------------
/comments.php:
--------------------------------------------------------------------------------
1 |
23 |
24 |
25 |
39 |
40 |
41 |
42 |
44 |
45 |
48 |
49 | '.esc_html__('Post Comment', 'amor').'
',
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 | ?>
--------------------------------------------------------------------------------
/inc/widgets/amor-instagram.php:
--------------------------------------------------------------------------------
1 | esc_html__('Amor Instagram Photo Widget','amor'),
10 | ));
11 | }
12 |
13 | // Output======================
14 | public function widget($args, $instance){
15 |
16 | $title = apply_filters( 'widget_title', $instance['title'] );
17 | $insta_user = apply_filters( 'widget_insta_user', $instance['insta_user'] );
18 | $insta_items = apply_filters( 'widget_insta_items', $instance['insta_items'] );
19 |
20 |
21 | echo wp_kses_post( $args['before_widget'] );
22 | if ( ! empty( $title ) )
23 | echo wp_kses_post( $args['before_title'] . $title . $args['after_title'] ); ?>
24 |
25 |
29 |
30 |
31 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | esc_html__( 'Add recent post with thumbnail', 'amor' ), )
28 | );
29 |
30 | }
31 |
32 | // This is where the action happens
33 | public function widget( $args, $instance ) {
34 | $title = apply_filters( 'widget_title', $instance['title'] );
35 | $post_number = apply_filters( 'widget_post_number', $instance['post_number'] );
36 |
37 | // before and after widget arguments are defined by themes
38 | echo $args['before_widget'];
39 | if ( ! empty( $title ) )
40 | echo $args['before_title'] . $title . $args['after_title'];
41 |
42 | //
43 | $arrya = array(
44 | 'post_type' => 'post',
45 | 'posts_per_page' => esc_html( $post_number ),
46 | );
47 |
48 | $loop = new WP_Query( $arrya );
49 |
50 | if( $loop->have_posts() ){
51 |
52 |
53 | while( $loop->have_posts() ){
54 | $loop->the_post();
55 |
56 | if( has_post_thumbnail() ):
57 | ?>
58 |
59 | 'img-fluid' ) ); ?>
61 |
67 |
68 |
69 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | ', '', date( 'Y' ) );
14 | $copyRight = !empty( amor_opt( 'amor_footer_copyright_text' ) ) ? amor_opt( 'amor_footer_copyright_text' ) : $copyText;
15 | $footer_logo = get_theme_mod( 'footer_logo' );
16 | $footer_logo_src = wp_get_attachment_image_src( $footer_logo, 'amor_logo_126x34' );
17 | $footer_class = amor_opt( 'amor_footer_widget_toggle' ) == 1 ? 'footer-area' : 'no_widget';
18 |
19 | ?>
20 |
21 |
22 |
23 |