├── screenshot.png ├── assets ├── css │ ├── interior_admin.css │ ├── common.css │ ├── nice-select.css │ └── elementor-default-element-style.css ├── fonts │ ├── FontAwesome.otf │ ├── Linearicons-Free.eot │ ├── Linearicons-Free.ttf │ ├── Linearicons-Free.woff │ ├── Linearicons-Free.woff2 │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 └── js │ ├── interior_admin.js │ ├── interior-elementor-notice.js │ ├── jquery.nice-select.min.js │ ├── superfish.min.js │ ├── main-old.js │ └── main.js ├── inc ├── interior-companion │ ├── inc │ │ ├── interior-meta │ │ │ ├── assets │ │ │ │ ├── css │ │ │ │ │ └── interior-meta.css │ │ │ │ ├── img │ │ │ │ │ ├── thumb_01.png │ │ │ │ │ ├── thumb_02.png │ │ │ │ │ └── thumb_03.png │ │ │ │ └── js │ │ │ │ │ └── interior-meta.js │ │ │ └── interior-meta-config.php │ │ ├── demo-data │ │ │ ├── screen-image.png │ │ │ ├── css │ │ │ │ └── demo-import.css │ │ │ ├── interior-customizer.dat │ │ │ ├── interior-widgets-demo.json │ │ │ └── demo-import.php │ │ ├── elementor-widgets │ │ │ ├── assets │ │ │ │ ├── css │ │ │ │ │ ├── elementor-edit.css │ │ │ │ │ └── owl.carousel.css │ │ │ │ ├── img │ │ │ │ │ └── play-btn.png │ │ │ │ └── js │ │ │ │ │ ├── jquery.counterup.min.js │ │ │ │ │ ├── map-custom.js │ │ │ │ │ ├── interior-companion-main.js │ │ │ │ │ └── jquery.ajaxchimp.min.js │ │ │ └── widgets │ │ │ │ ├── clients.php │ │ │ │ └── section-heading.php │ │ ├── social-share.php │ │ ├── sidebar-widgets │ │ │ ├── instagram-widget.php │ │ │ ├── recent-post-thumb.php │ │ │ ├── newsletter-widget.php │ │ │ └── social-widget.php │ │ ├── functions.php │ │ └── instagram-api.php │ ├── interior-init.php │ ├── js │ │ └── post-likes.js │ └── interior-companion.php ├── class-epsilon-dashboard-autoloader.php ├── widgets-reg.php ├── libraries │ └── class-epsilon-init-notify-system.php ├── customizer │ ├── fields │ │ └── sections.php │ ├── js │ │ └── customizer.js │ └── customizer.php ├── hooks │ └── hooks.php ├── wp_bootstrap_pagination.php ├── classes │ └── Class-Enqueue.php ├── support-functions.php ├── class-epsilon-init-dashboard.php ├── category-meta.php └── breadcrumbs.php ├── .gitmodules ├── template-builder.php ├── sidebar.php ├── 404.php ├── footer.php ├── templates ├── footer-bottom.php ├── content-page.php ├── biography.php ├── footer-widgets.php ├── pagination.php ├── content-none.php ├── 404.php ├── content-audio.php ├── content-video.php ├── content.php ├── content-single.php ├── header-bottom.php └── header-nav.php ├── searchform.php ├── header.php ├── style.css ├── page.php ├── single.php ├── archive.php ├── index.php ├── search.php ├── readme.txt ├── functions.php └── comments.php /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/screenshot.png -------------------------------------------------------------------------------- /assets/css/interior_admin.css: -------------------------------------------------------------------------------- 1 | .dashicons-admin-tools:before{ 2 | content: "\f102"; 3 | } -------------------------------------------------------------------------------- /assets/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /assets/fonts/Linearicons-Free.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/Linearicons-Free.eot -------------------------------------------------------------------------------- /assets/fonts/Linearicons-Free.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/Linearicons-Free.ttf -------------------------------------------------------------------------------- /assets/fonts/Linearicons-Free.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/Linearicons-Free.woff -------------------------------------------------------------------------------- /assets/fonts/Linearicons-Free.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/Linearicons-Free.woff2 -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/assets/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /inc/interior-companion/inc/interior-meta/assets/css/interior-meta.css: -------------------------------------------------------------------------------- 1 | .interior-admin-selectbox { 2 | width: 100%; 3 | } 4 | -------------------------------------------------------------------------------- /inc/interior-companion/inc/demo-data/screen-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/inc/interior-companion/inc/demo-data/screen-image.png -------------------------------------------------------------------------------- /inc/interior-companion/inc/elementor-widgets/assets/css/elementor-edit.css: -------------------------------------------------------------------------------- 1 | .elementor-choices-label i { 2 | font-size: 18px !important; 3 | padding: 5px 0; 4 | } -------------------------------------------------------------------------------- /inc/interior-companion/inc/interior-meta/assets/img/thumb_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/inc/interior-companion/inc/interior-meta/assets/img/thumb_01.png -------------------------------------------------------------------------------- /inc/interior-companion/inc/interior-meta/assets/img/thumb_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/inc/interior-companion/inc/interior-meta/assets/img/thumb_02.png -------------------------------------------------------------------------------- /inc/interior-companion/inc/interior-meta/assets/img/thumb_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/inc/interior-companion/inc/interior-meta/assets/img/thumb_03.png -------------------------------------------------------------------------------- /inc/interior-companion/inc/elementor-widgets/assets/img/play-btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/interior/master/inc/interior-companion/inc/elementor-widgets/assets/img/play-btn.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "inc/libraries/epsilon-framework"] 2 | path = inc/libraries/epsilon-framework 3 | url = https://github.com/MachoThemes/epsilon-framework 4 | [submodule "inc/libraries/epsilon-theme-dashboard"] 5 | path = inc/libraries/epsilon-theme-dashboard 6 | url = https://github.com/MachoThemes/epsilon-theme-dashboard 7 | -------------------------------------------------------------------------------- /inc/interior-companion/inc/demo-data/css/demo-import.css: -------------------------------------------------------------------------------- 1 | .ocdi__demo-import-notice:not(:empty) { 2 | background-color: transparent !important; 3 | border-left: 0px !important; 4 | box-shadow: none !important; 5 | padding: 0px !important; 6 | } 7 | .ocdi__demo-import-notice img { 8 | border: 4px solid #dbe3ea; 9 | } 10 | 11 | .about-wrap .ocdi__demo-import-notice img { 12 | width: auto; 13 | } 14 | .about-wrap img { 15 | width: auto; 16 | } -------------------------------------------------------------------------------- /template-builder.php: -------------------------------------------------------------------------------- 1 |
'; 18 | dynamic_sidebar( 'interior-post-sidebar' ); 19 | echo '
'; 20 | } 21 | -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 32 | 33 | -------------------------------------------------------------------------------- /templates/footer-bottom.php: -------------------------------------------------------------------------------- 1 | ', '', date( 'Y' ) ); 5 | 6 | ?> 7 | 8 | -------------------------------------------------------------------------------- /templates/content-page.php: -------------------------------------------------------------------------------- 1 | 15 |
> 16 | 29 |
-------------------------------------------------------------------------------- /searchform.php: -------------------------------------------------------------------------------- 1 | 15 |
16 |
17 | 18 | 19 |
20 |
-------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | 2 | > 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | > 15 | 16 |
17 | 25 | 26 |
27 | 30 | 31 |

32 |
33 |
-------------------------------------------------------------------------------- /templates/footer-widgets.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
'; 11 | } 12 | 13 | // Footer widget 2 14 | if( is_active_sidebar( 'footer-2' ) ) { 15 | echo '
'; 18 | } 19 | 20 | // Footer widget 3 21 | if( is_active_sidebar( 'footer-3' ) ) { 22 | echo '
'; 25 | } 26 | 27 | ?> 28 |
29 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /** 2 | Theme Name: Interior 3 | Theme URI: http://colorlib.com/wp/interior/ 4 | Author: Colorlib 5 | Author URI: http://colorlib.com/wp/ 6 | Description: Interior is a modern event WordPress Theme. Its stylish design and beautiful 7 | typography makes it an ideal theme for event and any kind of site. It is fully responsive so It will always look great and crisp on any devices and screen sizes. It's built with clean 8 | and organized code which makes it very easy to customize. 9 | Version: 1.0 10 | License: GNU General Public License v2 or later 11 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 12 | Tags: custom-header, custom-menu, featured-image-header, featured-images, full-width-template, translation-ready 13 | Text Domain: interior 14 | 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 | */ 18 | 19 | -------------------------------------------------------------------------------- /inc/interior-companion/inc/demo-data/interior-customizer.dat: -------------------------------------------------------------------------------- 1 | a:4:{s:8:"template";s:8:"interior";s:4:"mods";a:11:{i:0;b:0;s:18:"nav_menu_locations";a:2:{s:12:"primary-menu";i:6;s:11:"social-menu";i:8;}s:18:"custom_css_post_id";i:-1;s:31:"interior-widget-toggle-settings";b:1;s:30:"interior-blog-sidebar-settings";s:80:"{"columnsCount":2,"columns":{"1":{"index":1,"span":8},"2":{"index":2,"span":4}}}";s:33:"interior-blog-social-share-toggle";s:1:"1";s:25:"interior-blog-like-toggle";s:1:"1";s:22:"interior-category-show";s:1:"1";s:12:"header_image";s:75:"http://spondan.com/interior/wp-content/uploads/2019/01/wall-416060_1280.jpg";s:17:"header_image_data";O:8:"stdClass":5:{s:13:"attachment_id";i:159;s:3:"url";s:75:"http://spondan.com/interior/wp-content/uploads/2019/01/wall-416060_1280.jpg";s:13:"thumbnail_url";s:75:"http://spondan.com/interior/wp-content/uploads/2019/01/wall-416060_1280.jpg";s:6:"height";i:720;s:5:"width";i:1280;}s:38:"interior-headeroverlay-toggle-settings";s:1:"1";}s:7:"options";a:2:{s:9:"site_icon";s:1:"0";s:23:"nav_menus_created_posts";a:0:{}}s:6:"wp_css";s:0:"";} -------------------------------------------------------------------------------- /inc/interior-companion/inc/demo-data/interior-widgets-demo.json: -------------------------------------------------------------------------------- 1 | {"interior-post-sidebar":{"search-2":{"title":""},"interior_author_widget-2":{"title":"Charlie Barber","textarea":"Boot camps have its supporters andit sdetractors. Some people do not understand why you should have to spend money on boot camp when you can get. Boot camps have itssuppor ters andits detractors.","fburl":"#","twiturl":"#","dribbbleurl":"#","behanceurl":"#","image":"http:\/\/spondan.com\/interior\/wp-content\/uploads\/2019\/01\/user-info.png"},"interior_newsletter_widget-3":{"title":"Newsletter","actionurl":"","desc":""},"interior_recent_widget-2":{"title":"Recent Post","post_number":"3"}},"footer-1":{"text-2":{"title":"About Us","text":"If you own an Iphone, you\u2019ve probably already worked out how much fun it is to use it to watch movies-it has that.","filter":true,"visual":true}},"footer-2":{"interior_newsletter_widget-2":{"title":"Newsletter","actionurl":"","desc":"Stay update with our latest"}},"footer-3":{"interior_social_widget-2":{"title":"Follow Us","textarea":"Let us be social","fburl":"#","twiturl":"#","dribbbleurl":"#","behanceurl":"#"}}} -------------------------------------------------------------------------------- /assets/js/interior_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); -------------------------------------------------------------------------------- /inc/interior-companion/inc/elementor-widgets/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); -------------------------------------------------------------------------------- /templates/pagination.php: -------------------------------------------------------------------------------- 1 | '.esc_html__( 'Newer Post', 'interior' ); 21 | $older = esc_html__( 'Older Post', 'interior' ).''; 22 | 23 | echo '
'; 41 | } 42 | -------------------------------------------------------------------------------- /inc/interior-companion/interior-init.php: -------------------------------------------------------------------------------- 1 | Loading...'); 27 | }, 28 | success: function(response){ 29 | var icon = response.icon; 30 | var count = response.count; 31 | allbuttons.html(icon+count); 32 | if(response.status === 'unliked') { 33 | var like_text = simpleLikes.like; 34 | allbuttons.prop('title', like_text); 35 | allbuttons.removeClass('liked'); 36 | } else { 37 | var unlike_text = simpleLikes.unlike; 38 | allbuttons.prop('title', unlike_text); 39 | allbuttons.addClass('liked'); 40 | } 41 | loader.empty(); 42 | } 43 | }); 44 | 45 | } 46 | return false; 47 | }); 48 | })( jQuery ); 49 | -------------------------------------------------------------------------------- /templates/content-none.php: -------------------------------------------------------------------------------- 1 | 15 |
16 |

17 | 18 | 19 | 20 |

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

21 | 22 | 23 | 24 |

25 | 39 | 40 | 41 | 42 |

43 | 44 | 45 | 46 |
47 | -------------------------------------------------------------------------------- /templates/404.php: -------------------------------------------------------------------------------- 1 | 15 | 16 |
17 |
18 |
19 |
20 |
21 |
22 | '.esc_html( interior_opt( 'interior_fof_text_one', $errorText ) ).''; 26 | 27 | // Wrong text block 28 | $wrongText = esc_html__( 'Either something went wrong or the page dosen\'t exist anymore.', 'interior' ); 29 | 30 | $wrongText = interior_opt( 'interior_fof_text_two', $wrongText ); 31 | 32 | $anchor = interior_anchor_tag( 33 | array( 34 | 'url' => esc_url( site_url( '/' ) ), 35 | 'text' => esc_html__( 'Back To Home page', 'interior' ), 36 | ) 37 | ); 38 | 39 | echo interior_paragraph_tag( 40 | array( 41 | 'text' => sprintf( '%s %s', esc_html( $wrongText ), wp_kses_post( $anchor ) ), 42 | ) 43 | ); 44 | 45 | ?> 46 |
47 |
48 | 52 |
53 |
54 |
55 |
56 |
57 | 58 |
59 |
60 |
-------------------------------------------------------------------------------- /inc/interior-companion/interior-companion.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 |
> 20 | 21 |
22 | 44 |
45 |
46 |
47 | 58 |
59 | 80 |
81 | 82 |
-------------------------------------------------------------------------------- /templates/content-video.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 |
> 20 | 21 |
22 | 44 |
45 |
46 |
47 | 58 |
59 | 80 |
81 | 82 |
-------------------------------------------------------------------------------- /inc/interior-companion/inc/social-share.php: -------------------------------------------------------------------------------- 1 | '; 35 | $content .= $tagLine; 36 | $content .= '
  • '; 37 | $content .= '
  • '; 38 | $content .= '
  • '; 39 | $content .= '
  • '; 40 | $content .= ''; 41 | 42 | return $content; 43 | 44 | } 45 | -------------------------------------------------------------------------------- /inc/class-epsilon-dashboard-autoloader.php: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 |
    > 23 | 24 |
    25 | 47 |
    48 |
    49 |
    50 | 61 |
    62 | 83 |
    84 | 85 |
    -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | esc_html__( 'Sidebar', 'interior' ), 20 | 'id' => 'interior-post-sidebar', 21 | 'before_widget' => '
    ', 22 | 'after_widget' => '
    ', 23 | 'before_title' => '

    ', 24 | 'after_title' => '

    ', 25 | ) 26 | ); 27 | 28 | // footer widgets register 29 | register_sidebar( 30 | array( 31 | 'name' => esc_html__( 'Footer One', 'interior' ), 32 | 'id' => 'footer-1', 33 | 'before_widget' => '', 35 | 'before_title' => '
    ', 36 | 'after_title' => '
    ', 37 | ) 38 | ); 39 | register_sidebar( 40 | array( 41 | 'name' => esc_html__( 'Footer Two', 'interior' ), 42 | 'id' => 'footer-2', 43 | 'before_widget' => '', 45 | 'before_title' => '
    ', 46 | 'after_title' => '
    ', 47 | ) 48 | ); 49 | register_sidebar( 50 | array( 51 | 'name' => esc_html__( 'Footer Three', 'interior' ), 52 | 'id' => 'footer-3', 53 | 'before_widget' => '', 55 | 'before_title' => '
    ', 56 | 'after_title' => '
    ', 57 | ) 58 | ); 59 | 60 | } 61 | add_action( 'widgets_init', 'interior_widgets_init' ); 62 | -------------------------------------------------------------------------------- /templates/content-single.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 |
    > 18 |
    19 | 30 | 31 |
    32 | 44 |
    45 | 46 |
    47 |
    48 |
    49 | 60 |
    61 |
    62 |
    '; 65 | /** 66 | * Blog single page content 67 | * Post social share 68 | * @Hook interior_blog_posts_content 69 | * 70 | * @Hooked interior_blog_posts_content_cb 71 | * 72 | * 73 | */ 74 | do_action( 'interior_blog_posts_content' ); 75 | 76 | 77 | echo '
    '; 78 | 79 | 80 | ?> 81 | 82 | -------------------------------------------------------------------------------- /assets/js/interior-elementor-notice.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notice for Elementor 3 | * 4 | * @package Interior 5 | */ 6 | 7 | /* global interiorElementorNotice */ 8 | 9 | jQuery( document ).ready( 10 | function () { 11 | 12 | var style = ''; 13 | 14 | var dialog = style + '
    ' + 15 | '
    ' + 16 | '
    Interior 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( '.interior-elementor-notice-buttons > a' ).on( 27 | 'click', function() { 28 | 29 | var reply = jQuery( this ).data( 'reply' ); 30 | 31 | jQuery.ajax( 32 | { 33 | url: interiorElementorNotice.ajaxurl, 34 | data: { 35 | reply: reply, 36 | nonce: interiorElementorNotice.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( '.interior-disable-elementor-styling' ).fadeOut( 500, function() { jQuery( this ).remove(); } ); 46 | } 47 | } 48 | } 49 | ); 50 | } 51 | ); 52 | } 53 | ); 54 | -------------------------------------------------------------------------------- /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', 'interior' ), $plugin_name ); 56 | // Translators: %s is the plugin name. 57 | $arr['description'] = sprintf( __( 'Please install %s in order to create the demo content.', 'interior' ), $plugin_name ); 58 | 59 | if ( $arr['installed'] ) { 60 | // Translators: %s is the plugin name 61 | $arr['title'] = sprintf( __( 'Activate: %s', 'interior' ), $plugin_name ); 62 | // Translators: %s is the plugin name 63 | $arr['description'] = sprintf( __( 'Please activate %s in order to create the demo content.', 'interior' ), $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); -------------------------------------------------------------------------------- /templates/header-bottom.php: -------------------------------------------------------------------------------- 1 | 13 | 40 | 41 | 44 |
    45 |
    46 |
    47 | absint( interior_opt( 'interior_cat_number', 3 ) ) ) ); 49 | 50 | if( ! empty( $cats ) ): 51 | foreach( $cats as $cat ): 52 | $imgId = get_term_meta ( absint( $cat ->term_id ), 'category-image-id', true ); 53 | ?> 54 | 77 | 81 |
    82 |
    83 |
    84 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Interior === 2 | Contributors: colorlib 3 | Tags: custom-header, custom-menu, featured-image-header, featured-images, full-width-template, translation-ready 4 | Requires at least: 4.0 5 | Tested up to: 4.4.2 6 | 7 | == Description == 8 | Interior 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. Interior 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 | Interior WordPress theme, Copyright (C) 2018 Colorlib.com 13 | Interior 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 | 20 | Licenses: CCO Public Domain 21 | 22 | https://pixabay.com/en/wall-furniture-design-apartment-416060/ 23 | https://pixabay.com/en/couch-furnitures-indoors-1835923/ 24 | https://pixabay.com/en/brick-wall-room-interior-design-1850095/ 25 | https://pixabay.com/en/living-room-couch-sofa-table-690174/ 26 | https://pixabay.com/en/chairs-conference-room-contemporary-2181994/ 27 | https://pixabay.com/en/bookshelf-library-literature-books-413705/ 28 | https://pixabay.com/en/chairs-conference-room-furniture-2181951/ 29 | https://pixabay.com/en/pillows-bed-bedding-bedroom-white-1031079/ 30 | https://pixabay.com/en/table-coffee-table-white-industial-791584/ 31 | https://pixabay.com/en/kitchen-real-estate-interior-design-1940177/ 32 | 33 | 34 | 35 | 36 | * Bootstrap v4.0.0 (http://getbootstrap.com) 37 | Copyright 2011-2018 Twitter, Inc. 38 | Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 39 | 40 | * Ionicons v2.0.0 ( http://ionicons.com/ ) 41 | Copyright (c) 2015-present 42 | Licensed under MIT ( https://github.com/ionic-team/ionicons/blob/master/LICENSE ) 43 | 44 | * Font Awesome 45 | License: SIL OFL 1.1 46 | URL: http://scripts.sil.org/OFL 47 | 48 | * Google Fonts: 49 | License: SIL OFL 1.1 50 | URL: http://scripts.sil.org/OFL 51 | 52 | * PopperJS ( https://github.com/FezVrasta/popper.js ) 53 | Copyright © 2016-2018 Federico Zivolo 54 | License: MIT 55 | URL: https://github.com/FezVrasta/popper.js/blob/master/LICENSE.md 56 | 57 | * Superfish jQuery Superfish Menu Plugin 58 | Copyright (c) 2016 Joel Birch 59 | License: MIT 60 | URL: http://www.opensource.org/licenses/mit-license.php 61 | 62 | 63 | * jQuery Nice Select - v1.0 64 | url: https://github.com/hernansartorio/jquery-nice-select 65 | License: MIT 66 | 67 | * Sticky js plugin 68 | License: MIT 69 | URL: https://github.com/garand/sticky/blob/master/LICENSE.md 70 | -------------------------------------------------------------------------------- /inc/customizer/fields/sections.php: -------------------------------------------------------------------------------- 1 | 'interior_options_panel', 25 | 'args' => array( 26 | 'priority' => 0, 27 | 'capability' => 'edit_theme_options', 28 | 'theme_supports' => '', 29 | 'title' => esc_html__( 'Theme Options', 'interior' ), 30 | ), 31 | ) 32 | ); 33 | 34 | 35 | /*********************************** 36 | * Register customizer sections 37 | ***********************************/ 38 | 39 | 40 | $sections = array( 41 | /** 42 | * General Section 43 | */ 44 | array( 45 | 'id' => 'interior_general_options_section', 46 | 'args' => array( 47 | 'title' => esc_html__( 'General', 'interior' ), 48 | 'panel' => 'interior_options_panel', 49 | 'priority' => 1, 50 | ), 51 | ), 52 | /** 53 | * Header Section 54 | */ 55 | array( 56 | 'id' => 'interior_headertop_options_section', 57 | 'args' => array( 58 | 'title' => esc_html__( 'Header Top', 'interior' ), 59 | 'panel' => 'interior_options_panel', 60 | 'priority' => 2, 61 | ), 62 | ), 63 | /** 64 | * Blog Section 65 | */ 66 | array( 67 | 'id' => 'interior_blog_options_section', 68 | 'args' => array( 69 | 'title' => esc_html__( 'Blog', 'interior' ), 70 | 'panel' => 'interior_options_panel', 71 | 'priority' => 3, 72 | ), 73 | ), 74 | 75 | /** 76 | * 404 Page Section 77 | */ 78 | array( 79 | 'id' => 'interior_fof_options_section', 80 | 'args' => array( 81 | 'title' => esc_html__( '404 Page', 'interior' ), 82 | 'panel' => 'interior_options_panel', 83 | 'priority' => 6, 84 | ), 85 | ), 86 | /** 87 | * Footer Section 88 | */ 89 | array( 90 | 'id' => 'interior_footer_options_section', 91 | 'args' => array( 92 | 'title' => esc_html__( 'Footer', 'interior' ), 93 | 'panel' => 'interior_options_panel', 94 | 'priority' => 7, 95 | ), 96 | ), 97 | 98 | ); 99 | 100 | 101 | /*********************************** 102 | * Add customizer elements 103 | ***********************************/ 104 | $collection = array( 105 | 'panel' => $panels, 106 | 'section' => $sections, 107 | ); 108 | 109 | Epsilon_Customizer::add_multiple( $collection ); 110 | -------------------------------------------------------------------------------- /templates/header-nav.php: -------------------------------------------------------------------------------- 1 | 77 | -------------------------------------------------------------------------------- /inc/hooks/hooks.php: -------------------------------------------------------------------------------- 1 | '; 18 | 19 | return array( 20 | array( 21 | 'import_file_name' => 'Interior Demo', 22 | 'local_import_file' => INTERIOR_COMPANION_DEMO_DIR_PATH .'interior-demo.xml', 23 | 'local_import_widget_file' => INTERIOR_COMPANION_DEMO_DIR_PATH .'interior-widgets-demo.json', 24 | 'import_customizer_file_url' => INTERIOR_COMPANION_DIR_URL . 'inc/demo-data/interior-customizer.dat', 25 | 'import_notice' => $demoImg, 26 | ), 27 | ); 28 | } 29 | add_filter( 'pt-ocdi/import_files', 'interior_import_files' ); 30 | 31 | // demo import setup 32 | function interior_after_import_setup() { 33 | // Assign menus to their locations. 34 | $main_menu = get_term_by( 'name', 'Primary Menu', 'nav_menu' ); 35 | $social_menu = get_term_by( 'name', 'Social Menu', 'nav_menu' ); 36 | 37 | set_theme_mod( 'nav_menu_locations', array( 38 | 'primary-menu' => $main_menu->term_id, 39 | 'social-menu' => $social_menu->term_id 40 | ) 41 | ); 42 | 43 | // Assign front page and posts page (blog page). 44 | $front_page_id = get_page_by_title( 'Home' ); 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( 'interior_demodata_import', 'yes' ); 51 | 52 | } 53 | add_action( 'pt-ocdi/after_import', 'interior_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 interior_import_plugin_page_setup( $default_settings ) { 60 | $default_settings['parent_slug'] = 'themes.php'; 61 | $default_settings['page_title'] = esc_html__( 'One Click Demo Import' , 'interior-companion' ); 62 | $default_settings['menu_title'] = esc_html__( 'Import Demo Data' , 'interior-companion' ); 63 | $default_settings['capability'] = 'import'; 64 | $default_settings['menu_slug'] = 'interior-demo-import'; 65 | 66 | return $default_settings; 67 | } 68 | add_filter( 'pt-ocdi/plugin_page_setup', 'interior_import_plugin_page_setup' ); 69 | 70 | // Enqueue scripts 71 | function interior_demo_import_custom_scripts(){ 72 | 73 | 74 | if( isset( $_GET['page'] ) && $_GET['page'] == 'interior-demo-import' ){ 75 | // style 76 | wp_enqueue_style( 'interior-demo-import', INTERIOR_COMPANION_DIR_URL . 'inc/demo-data/css/demo-import.css', array(), '1.0', false ); 77 | } 78 | 79 | 80 | } 81 | add_action( 'admin_enqueue_scripts', 'interior_demo_import_custom_scripts' ); 82 | 83 | 84 | 85 | ?> -------------------------------------------------------------------------------- /inc/wp_bootstrap_pagination.php: -------------------------------------------------------------------------------- 1 | 4, 20 | 'custom_query' => FALSE, 21 | 'previous_string' => esc_html__( '«', 'interior' ), 22 | 'next_string' => esc_html__( '»', 'interior' ), 23 | 'before_output' => '
    ' 25 | ); 26 | 27 | $args = wp_parse_args( 28 | $args, 29 | apply_filters( 'interior_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 | $previous = intval($page) - 1; 64 | $previous = esc_attr( get_pagenum_link($previous) ); 65 | 66 | 67 | if ( $previous && (1 != $page) ) 68 | $echo .= ''; 69 | 70 | if ( !empty($min) && !empty($max) ) { 71 | for( $i = $min; $i <= $max; $i++ ) { 72 | if ( $page == $i ) { 73 | $echo .= '' . str_pad( (int)$i, 2, '0', STR_PAD_LEFT ) . ''; 74 | } else { 75 | $echo .= sprintf( '%002d', esc_attr( get_pagenum_link($i) ), $i ); 76 | } 77 | } 78 | } 79 | 80 | $next = intval($page) + 1; 81 | $next = esc_attr( get_pagenum_link($next) ); 82 | if ($next && ($count != $page) ) 83 | $echo .= ''; 84 | 85 | 86 | if ( isset($echo) ) 87 | echo wp_kses_post( $args['before_output'] . $echo . $args['after_output'] ); 88 | } 89 | -------------------------------------------------------------------------------- /inc/customizer/js/customizer.js: -------------------------------------------------------------------------------- 1 | (function( $ , api) { 2 | 3 | // Customizer about page redirect 4 | api.section( 'interior_fof_options_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( 'interior_blog_options_section' , function( section ) { 20 | 21 | section.expanded.bind( function( isExpanded ) { 22 | 23 | if( isExpanded ) { 24 | api.previewer.previewUrl.set( interiorCustomizerdata.blog_page ); 25 | } else { 26 | api.previewer.previewUrl.set( api.settings.url.home ); 27 | } 28 | 29 | 30 | 31 | } ) 32 | 33 | } ); 34 | 35 | 36 | // Footer section 37 | api.section( 'interior_footer_options_section' , function( section ) { 38 | 39 | section.expanded.bind( function( isExpanded ) { 40 | 41 | 42 | // Footer Widget option show/hide 43 | var $widget_toggle = $('#interior-widget-toggle-settings'), 44 | $widgettitle = $('#customize-control-interior_footer_widgettitlecolor_settings'); 45 | 46 | // Default 47 | 48 | if( $widget_toggle.is( ':checked' ) ) { 49 | 50 | $widgettitle.show('slow'); 51 | 52 | } else { 53 | 54 | $widgettitle.hide('slow'); 55 | 56 | } 57 | 58 | // on click 59 | $widget_toggle.on( 'click', function() { 60 | 61 | var $this = $( this ); 62 | 63 | if( $this.is(':checked') ) { 64 | 65 | $widgettitle.show('slow'); 66 | 67 | } else { 68 | 69 | $widgettitle.hide('slow'); 70 | 71 | } 72 | 73 | 74 | } ); 75 | 76 | } ); 77 | 78 | } ); 79 | 80 | // colors section 81 | api.section( 'colors' , function( section ) { 82 | 83 | section.expanded.bind( function( isExpanded ) { 84 | 85 | 86 | // Page header overlay option show/hide 87 | var $overlay_toggle = $('#interior-headeroverlay-toggle-settings'), 88 | $overlaytitle = $('#customize-control-interior_headeroverlaycolor'); 89 | 90 | // Default 91 | 92 | if( $overlay_toggle.is( ':checked' ) ) { 93 | 94 | $overlaytitle.show('slow'); 95 | 96 | } else { 97 | 98 | $overlaytitle.hide('slow'); 99 | 100 | } 101 | 102 | // on click 103 | $overlay_toggle.on( 'click', function() { 104 | 105 | var $this = $( this ); 106 | 107 | if( $this.is(':checked') ) { 108 | 109 | $overlaytitle.show('slow'); 110 | 111 | } else { 112 | 113 | $overlaytitle.hide('slow'); 114 | 115 | } 116 | 117 | } ); 118 | 119 | } ); 120 | 121 | } ); 122 | 123 | 124 | })( jQuery, wp.customize ); -------------------------------------------------------------------------------- /inc/interior-companion/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); -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | esc_html__( 'Add footer instagram widget.', 'interior-companion' ), ) 28 | ); 29 | 30 | } 31 | 32 | // This is where the action happens 33 | public function widget( $args, $instance ) { 34 | 35 | $title = apply_filters( 'widget_title', $instance['title'] ); 36 | $itemnumber = apply_filters( 'widget_itemnumber', $instance['itemnumber'] ); 37 | 38 | 39 | // before and after widget arguments are defined by themes 40 | echo wp_kses_post( $args['before_widget'] ); 41 | if ( ! empty( $title ) ) 42 | echo wp_kses_post( $args['before_title'] . $title . $args['after_title'] ); 43 | 44 | $api = interior_instagram_instance(); 45 | 46 | $getitems = $api->get_items( $itemnumber, '40' ); 47 | 48 | 49 | 50 | 51 | $items = $getitems['items']; 52 | 53 | $username = $getitems['username']; 54 | 55 | 56 | if( is_array( $items ) && count( $items ) > 0 ): 57 | 58 | ?> 59 | 60 | 70 | 71 | 97 |

    98 | 99 | 100 |

    101 | 102 |

    103 | 104 | 105 | 106 |

    107 | 108 | 109 | 19 | 20 | 21 |
    22 |

    23 | 24 | 25 |
    26 | 'div', 29 | 'short_ping' => true, 30 | 'avatar_size' => 70, 31 | 'callback' => 'interior_comment_callback' 32 | ) ); 33 | ?> 34 |
    35 | 36 |
    37 | 38 | 39 | 43 |

    44 | 45 | 46 | '
    ', 54 | 'email' =>'
    ', 55 | 'url' =>'
    ', 56 | 'cookies_consent' =>'', 57 | ); 58 | 59 | 60 | $args=array( 61 | 'comment_field' => '
    ', 62 | 'id_form' =>'contactForm', 63 | 'class_form' =>'', 64 | 'title_reply' =>esc_html__( 'Leave a Reply', 'interior' ), 65 | 'title_reply_before' =>'
    ', 66 | 'title_reply_after' =>'
    ', 67 | 'label_submit' => esc_html__( 'Post Comment', 'interior' ), 68 | 'class_submit' => 'primary-btn mt-20', 69 | 'submit_button' => '', 70 | 'fields' =>$fields, 71 | 72 | ); 73 | 74 | echo '
    '; 75 | comment_form( $args ); 76 | echo '
    '; 77 | 78 | -------------------------------------------------------------------------------- /inc/interior-companion/inc/sidebar-widgets/recent-post-thumb.php: -------------------------------------------------------------------------------- 1 | esc_html__( 'Add recent post with thumbnail', 'interior-companion' ), ) 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 | echo '
    '; 52 | 53 | while( $loop->have_posts() ){ 54 | $loop->the_post(); 55 | 56 | if( has_post_thumbnail() ): 57 | ?> 58 |
    59 |
    60 | 'img-fluid' ) ); 62 | ?> 63 |
    64 |
    65 | 66 |
    67 |
    68 |

    69 | 70 |

    71 |
    72 |
    73 | 74 |
    '; 79 | } 80 | 81 | echo $args['after_widget']; 82 | } 83 | 84 | // Widget Backend 85 | public function form( $instance ) { 86 | 87 | if ( isset( $instance[ 'title' ] ) ) { 88 | $title = $instance[ 'title' ]; 89 | }else { 90 | $title = esc_html__( 'Recent Post', 'interior-companion' ); 91 | } 92 | // 93 | if ( isset( $instance[ 'post_number' ] ) ) { 94 | $post_number = $instance[ 'post_number' ]; 95 | }else { 96 | $post_number = esc_html__( 3 ); 97 | } 98 | 99 | // Widget admin form 100 | ?> 101 |

    102 | 103 | 104 |

    105 |

    106 | 107 | 108 |

    109 | get_section( 'title_tagline' )->panel = 'interior_options_panel'; 34 | // Change colors panel to theme option 35 | $wp_customize->get_section( 'colors' )->panel = 'interior_options_panel'; 36 | // change priorities 37 | $wp_customize->get_section( 'title_tagline' )->priority = 0; 38 | // change priorities 39 | $wp_customize->get_section( 'colors' )->priority = 3; 40 | 41 | // Change background control section 42 | $wp_customize->get_control( 'background_color' )->section = 'background_image'; 43 | // Change header image control section 44 | $wp_customize->get_control( 'header_image' )->section = 'colors'; 45 | // Rename customizer color section 46 | $wp_customize->get_section('colors')->title = esc_html__( 'Page Header', 'interior' ); 47 | // Rename customizer background image section 48 | $wp_customize->get_section('background_image')->title = esc_html__( 'Background', 'interior' ); 49 | 50 | // Copyright text selective refresh 51 | $wp_customize->selective_refresh->add_partial( 'interior-copyright-text-settings', 52 | array( 'selector' => '.copyright-text' ) ); 53 | // Post Like button selective refresh 54 | $wp_customize->selective_refresh->add_partial( 'interior-blog-like-toggle', 55 | array( 'selector' => '.sl-wrapper' ) ); 56 | // Post Share button selective refresh 57 | $wp_customize->selective_refresh->add_partial( 'interior-blog-social-share-toggle', 58 | array( 'selector' => '.social-wrap ul li:first-child' ) ); 59 | 60 | } 61 | 62 | 63 | // Customizer js enqueue 64 | 65 | public function interior_customizer_js() { 66 | 67 | wp_enqueue_script( 'interior-customizer', INTERIOR_DIR_URI.'inc/customizer/js/customizer.js', array('customize-controls'), '1.0', true ); 68 | 69 | wp_localize_script( 'interior-customizer', 'interiorCustomizerdata', array( 70 | 'site_url' => site_url('/'), 71 | 'blog_page' => get_post_type_archive_link( 'post' ), 72 | 73 | ) ); 74 | 75 | } 76 | 77 | // Image sanitization callback. 78 | 79 | public static function interior_sanitize_image( $image, $setting ) { 80 | 81 | /* 82 | * Array of valid image file types. 83 | * 84 | * The array includes image mime types that are included in wp_get_mime_types() 85 | */ 86 | $mimes = array( 87 | 'jpg|jpeg|jpe' => 'image/jpeg', 88 | 'gif' => 'image/gif', 89 | 'png' => 'image/png', 90 | 'bmp' => 'image/bmp', 91 | 'tif|tiff' => 'image/tiff', 92 | 'ico' => 'image/x-icon' 93 | ); 94 | 95 | // Return an array with file extension and mime_type. 96 | $file = wp_check_filetype( $image, $mimes ); 97 | 98 | // If $image has a valid mime_type, return it; otherwise, return the default. 99 | return ( $file['ext'] ? $image : $setting->default ); 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /assets/css/common.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Common background color 3 | */ 4 | 5 | .genric-btn.primary, 6 | .genric-btn.primary-border:hover, 7 | .default-switch input + label, 8 | .primary-switch input:checked + label:before, 9 | .top-head-btn, 10 | .primary-btn, 11 | .image-carusel-area .owl-dot.active, 12 | .testomial-area .owl-dot.active, 13 | .generic-banner, 14 | .blog-posts-area .single-blog-post .primary-btn:hover, 15 | .blog-pagination .page-item.active .page-link, 16 | .blog-pagination .page-link:hover, 17 | .search-widget form.search-form input[type=text], 18 | .search-widget form.search-form button, 19 | .single-sidebar-widget .popular-post-widget .popular-title, 20 | .single-sidebar-widget .category-title, 21 | .widget-wrap .newsletter-widget .newsletter-title, 22 | .widget-wrap .newsletter-widget .bbtns, 23 | .widget-wrap .tag-cloud-widget .tagcloud-title, 24 | .widget-wrap .tag-cloud-widget ul li:hover, 25 | .comments-area .btn-reply:hover, 26 | .pagination a.active-pagination, 27 | .pagination a:hover, 28 | .blog-detail-txt [type="submit"], 29 | .page-links a span:hover, 30 | .content--area .page-links a span:hover, 31 | .tagcloud a:hover, 32 | .tags-widget ul li:hover, 33 | .testimonial-area .owl-dot.active, 34 | .blog-area .owl-dot.active, 35 | .footer-widget .newsletter-widget .bbtns, 36 | .widget-wrap .newsletter-widget .bbtns, 37 | .global-banner { 38 | background-color: #c6b069; 39 | 40 | } 41 | 42 | .commentform-area .primary-btn:hover { 43 | background: transparent; 44 | } 45 | 46 | /** 47 | * Common text color 48 | */ 49 | 50 | b, 51 | sup, 52 | sub, 53 | u, 54 | del, 55 | .genric-btn.primary:hover, 56 | .genric-btn.primary-border, 57 | .ordered-list li, 58 | .ordered-list-alpha li, 59 | .ordered-list-roman li, 60 | .default-select .nice-select .list .option.selected, 61 | .default-select .nice-select .list .option:hover, 62 | .form-select .nice-select .list .option.selected, 63 | .form-select .nice-select .list .option:hover, 64 | .header-top .header-top-left a:hover i, 65 | .nav-menu ul li:hover > a, 66 | #mobile-nav ul .menu-has-children i.fa-chevron-up, 67 | #mobile-nav ul .menu-item-active, 68 | .primary-btn.white:hover, 69 | .primary-btn.white:hover span, 70 | .about-video-left h6, 71 | .feature-area .single-feature:hover h4, .feature-area .single-feature:hover .fa, 72 | .process-area .single-process:hover .fa, 73 | .single-testimonial:hover h4, 74 | .footer-area .single-footer-widget .footer-nav li a:hover, 75 | .footer-area .copyright-text a, 76 | .footer-area .copyright-text .footer-social a:hover, 77 | .contact-page-area .form-area .primary-btn:hover, 78 | .contact-page-area .single-contact-address .fa, 79 | .blog-posts-area .single-blog-post .meta-details .tags li a:hover, 80 | .blog-posts-area .single-blog-post .user-name a:hover, 81 | .blog-posts-area .single-blog-post .date a:hover, 82 | .blog-posts-area .single-blog-post .view a:hover, 83 | .blog-posts-area .single-blog-post .comments a:hover, 84 | .protfolio-widget .social-links li a:hover, 85 | .single-widget ul li:hover p, 86 | .single-blog-post .social-links li a:hover, 87 | .single-blog-post .tags li:first-child:after, 88 | .single-blog-post .tags li:hover a, 89 | .single-blog-post .tags li:hover a, 90 | .footer-social a:hover i, 91 | .continue-read-btn:hover, 92 | .single-footer-widget ul li a:hover, 93 | a:hover { 94 | color: #c6b069; 95 | } 96 | 97 | /** 98 | * Common border color 99 | */ 100 | 101 | .genric-btn.primary:hover, 102 | .genric-btn.primary-border, 103 | blockquote, 104 | .generic-blockquote, 105 | .unordered-list li:before, 106 | .single-input-primary:focus, 107 | #header #logo h1 a, #header #logo h1 a:hover, 108 | .primary-btn:hover, 109 | .contact-page-area .form-area .primary-btn:hover, 110 | .single-widget ul li:hover, 111 | .pagination a, 112 | .blog-post-list .single-blog-post.sticky, 113 | .blog-detail-txt [type="submit"], 114 | .page-links a span, 115 | .page-links span:not(:first-child), 116 | .content--area .page-links a span, 117 | .gallery-area .single-gallery .content .content-overlay, 118 | .gallery-area .single-gallery .content-title, 119 | .content--area .page-links span:not(:first-child) { 120 | border-color: #c6b069; 121 | } -------------------------------------------------------------------------------- /assets/js/superfish.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Superfish Menu Plugin - v1.7.9 3 | * Copyright (c) 2016 Joel Birch 4 | * 5 | * Dual licensed under the MIT and GPL licenses: 6 | * http://www.opensource.org/licenses/mit-license.php 7 | * http://www.gnu.org/licenses/gpl.html 8 | */ 9 | 10 | ;!function(a,b){"use strict";var c=function(){var c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},d=function(){var b=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return b&&a("html").css("cursor","pointer").on("click",a.noop),b}(),e=function(){var a=document.documentElement.style;return"behavior"in a&&"fill"in a&&/iemobile/i.test(navigator.userAgent)}(),f=function(){return!!b.PointerEvent}(),g=function(a,b,d){var e,f=c.menuClass;b.cssArrows&&(f+=" "+c.menuArrowClass),e=d?"addClass":"removeClass",a[e](f)},h=function(b,d){return b.find("li."+d.pathClass).slice(0,d.pathLevels).addClass(d.hoverClass+" "+c.bcClass).filter(function(){return a(this).children(d.popUpSelector).hide().show().length}).removeClass(d.pathClass)},i=function(a,b){var d=b?"addClass":"removeClass";a.children("a")[d](c.anchorClass)},j=function(a){var b=a.css("ms-touch-action"),c=a.css("touch-action");c=c||b,c="pan-y"===c?"auto":"pan-y",a.css({"ms-touch-action":c,"touch-action":c})},k=function(a){return a.closest("."+c.menuClass)},l=function(a){return k(a).data("sfOptions")},m=function(){var b=a(this),c=l(b);clearTimeout(c.sfTimer),b.siblings().superfish("hide").end().superfish("show")},n=function(b){b.retainPath=a.inArray(this[0],b.$path)>-1,this.superfish("hide"),this.parents("."+b.hoverClass).length||(b.onIdle.call(k(this)),b.$path.length&&a.proxy(m,b.$path)())},o=function(){var b=a(this),c=l(b);d?a.proxy(n,b,c)():(clearTimeout(c.sfTimer),c.sfTimer=setTimeout(a.proxy(n,b,c),c.delay))},p=function(b){var c=a(this),d=l(c),e=c.siblings(b.data.popUpSelector);return d.onHandleTouch.call(e)===!1?this:void(e.length>0&&e.is(":hidden")&&(c.one("click.superfish",!1),"MSPointerDown"===b.type||"pointerdown"===b.type?c.trigger("focus"):a.proxy(m,c.parent("li"))()))},q=function(b,c){var g="li:has("+c.popUpSelector+")";a.fn.hoverIntent&&!c.disableHI?b.hoverIntent(m,o,g):b.on("mouseenter.superfish",g,m).on("mouseleave.superfish",g,o);var h="MSPointerDown.superfish";f&&(h="pointerdown.superfish"),d||(h+=" touchend.superfish"),e&&(h+=" mousedown.superfish"),b.on("focusin.superfish","li",m).on("focusout.superfish","li",o).on(h,"a",c,p)};return{hide:function(b){if(this.length){var c=this,d=l(c);if(!d)return this;var e=d.retainPath===!0?d.$path:"",f=c.find("li."+d.hoverClass).add(this).not(e).removeClass(d.hoverClass).children(d.popUpSelector),g=d.speedOut;if(b&&(f.show(),g=0),d.retainPath=!1,d.onBeforeHide.call(f)===!1)return this;f.stop(!0,!0).animate(d.animationOut,g,function(){var b=a(this);d.onHide.call(b)})}return this},show:function(){var a=l(this);if(!a)return this;var b=this.addClass(a.hoverClass),c=b.children(a.popUpSelector);return a.onBeforeShow.call(c)===!1?this:(c.stop(!0,!0).animate(a.animation,a.speed,function(){a.onShow.call(c)}),this)},destroy:function(){return this.each(function(){var b,d=a(this),e=d.data("sfOptions");return e?(b=d.find(e.popUpSelector).parent("li"),clearTimeout(e.sfTimer),g(d,e),i(b),j(d),d.off(".superfish").off(".hoverIntent"),b.children(e.popUpSelector).attr("style",function(a,b){return b.replace(/display[^;]+;?/g,"")}),e.$path.removeClass(e.hoverClass+" "+c.bcClass).addClass(e.pathClass),d.find("."+e.hoverClass).removeClass(e.hoverClass),e.onDestroy.call(d),void d.removeData("sfOptions")):!1})},init:function(b){return this.each(function(){var d=a(this);if(d.data("sfOptions"))return!1;var e=a.extend({},a.fn.superfish.defaults,b),f=d.find(e.popUpSelector).parent("li");e.$path=h(d,e),d.data("sfOptions",e),g(d,e,!0),i(f,!0),j(d),q(d,e),f.not("."+c.bcClass).superfish("hide",!0),e.onInit.call(this)})}}}();a.fn.superfish=function(b,d){return c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?a.error("Method "+b+" does not exist on jQuery.fn.superfish"):c.init.apply(this,arguments)},a.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:a.noop,onBeforeShow:a.noop,onShow:a.noop,onBeforeHide:a.noop,onHide:a.noop,onIdle:a.noop,onDestroy:a.noop,onHandleTouch:a.noop}}(jQuery,window); -------------------------------------------------------------------------------- /inc/interior-companion/inc/interior-meta/interior-meta-config.php: -------------------------------------------------------------------------------- 1 | 34 |
    35 |

    36 | 37 |

    38 | ID ,'_interior_builderpage_header_show', true ); 40 | ?> 41 | 45 | 46 |
    47 |
    48 |

    49 | 50 |

    51 | ID ,'_interior_builderpage_headerimg', true ); 53 | ?> 54 | 58 | 59 |
    60 | post_type ) 76 | return $post_id; 77 | 78 | $meta_headershow = "show"; 79 | 80 | if( isset( $_POST["bpheadershow"] ) ) { 81 | $meta_headershow = $_POST["bpheadershow"]; 82 | } 83 | update_post_meta( absint( $post_id ), "_interior_builderpage_header_show", sanitize_text_field( $meta_headershow ) ); 84 | 85 | $meta_headerimg = ""; 86 | 87 | if( isset( $_POST["bpheaderimg"] ) ) { 88 | $meta_headerimg = $_POST["bpheaderimg"]; 89 | } 90 | update_post_meta( absint( $post_id ), "_interior_builderpage_headerimg", sanitize_text_field( $meta_headerimg ) ); 91 | 92 | } 93 | 94 | add_action( "save_post", "interior_save_builder_page_header_settings_meta", 10, 3 ); 95 | ?> -------------------------------------------------------------------------------- /assets/js/main-old.js: -------------------------------------------------------------------------------- 1 | 2 | (function( $ ){ 3 | "use strict"; 4 | 5 | var window_width = $(window).width(), 6 | window_height = window.innerHeight, 7 | header_height = $(".default-header").height(), 8 | header_height_static = $(".site-header.static").outerHeight(), 9 | fitscreen = window_height - header_height; 10 | 11 | 12 | $(".fullscreen").css("height", window_height) 13 | $(".fitscreen").css("height", fitscreen); 14 | 15 | var defaultSelect = $( '.default-select' ); 16 | 17 | if( defaultSelect.length ){ 18 | $('select').niceSelect(); 19 | }; 20 | 21 | // Initiate superfish on nav menu 22 | $('.nav-menu').superfish({ 23 | animation: { 24 | opacity: 'show' 25 | }, 26 | speed: 400 27 | }); 28 | 29 | 30 | // Mobile Navigation 31 | if ($('#nav-menu-container').length) { 32 | var $mobile_nav = $('#nav-menu-container').clone().prop({ 33 | id: 'mobile-nav' 34 | }); 35 | $mobile_nav.find('> ul').attr({ 36 | 'class': '', 37 | 'id': '' 38 | }); 39 | $('body').append($mobile_nav); 40 | $('body').prepend(''); 41 | $('body').append('
    '); 42 | $('#mobile-nav').find('.menu-has-children').prepend(''); 43 | 44 | $(document).on('click', '.menu-has-children i', function(e) { 45 | $(this).next().toggleClass('menu-item-active'); 46 | $(this).nextAll('ul').eq(0).slideToggle(); 47 | $(this).toggleClass("lnr-chevron-up lnr-chevron-down"); 48 | }); 49 | 50 | $(document).on('click', '#mobile-nav-toggle', function(e) { 51 | $('body').toggleClass('mobile-nav-active'); 52 | $('#mobile-nav-toggle i').toggleClass('lnr-cross lnr-menu'); 53 | $('#mobile-body-overly').toggle(); 54 | }); 55 | 56 | $(document).click(function(e) { 57 | var container = $("#mobile-nav, #mobile-nav-toggle"); 58 | if (!container.is(e.target) && container.has(e.target).length === 0) { 59 | if ($('body').hasClass('mobile-nav-active')) { 60 | $('body').removeClass('mobile-nav-active'); 61 | $('#mobile-nav-toggle i').toggleClass('lnr-cross lnr-menu'); 62 | $('#mobile-body-overly').fadeOut(); 63 | } 64 | } 65 | }); 66 | } else if ($("#mobile-nav, #mobile-nav-toggle").length) { 67 | $("#mobile-nav, #mobile-nav-toggle").hide(); 68 | } 69 | 70 | // Smooth scroll for the menu and links with .scrollto classes 71 | $('.nav-menu a, #mobile-nav a, .scrollto').on('click', function() { 72 | if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 73 | var target = $(this.hash); 74 | if (target.length) { 75 | var top_space = 0; 76 | 77 | if ($('#header').length) { 78 | top_space = $('#header').outerHeight(); 79 | 80 | if( ! $('#header').hasClass('header-fixed') ) { 81 | top_space = top_space; 82 | } 83 | } 84 | 85 | $('html, body').animate({ 86 | scrollTop: target.offset().top - top_space 87 | }, 1500, 'easeInOutExpo'); 88 | 89 | if ($(this).parents('.nav-menu').length) { 90 | $('.nav-menu .menu-active').removeClass('menu-active'); 91 | $(this).closest('li').addClass('menu-active'); 92 | } 93 | 94 | if ($('body').hasClass('mobile-nav-active')) { 95 | $('body').removeClass('mobile-nav-active'); 96 | $('#mobile-nav-toggle i').toggleClass('lnr-times lnr-bars'); 97 | $('#mobile-body-overly').fadeOut(); 98 | } 99 | return false; 100 | } 101 | } 102 | }); 103 | 104 | 105 | $(document).ready(function() { 106 | 107 | $('html, body').hide(); 108 | 109 | if (window.location.hash) { 110 | 111 | setTimeout(function() { 112 | 113 | $('html, body').scrollTop(0).show(); 114 | 115 | $('html, body').animate({ 116 | 117 | scrollTop: $(window.location.hash).offset().top-62 118 | 119 | }, 1000) 120 | 121 | }, 0); 122 | 123 | } 124 | 125 | else { 126 | 127 | $('html, body').show(); 128 | 129 | } 130 | 131 | }); 132 | 133 | 134 | // Header scroll class 135 | $(window).scroll(function() { 136 | if ($(this).scrollTop() > 100) { 137 | $('#header').addClass('header-scrolled'); 138 | } else { 139 | $('#header').removeClass('header-scrolled'); 140 | } 141 | }) 142 | 143 | })(jQuery); 144 | -------------------------------------------------------------------------------- /inc/interior-companion/inc/functions.php: -------------------------------------------------------------------------------- 1 | 26 |
    27 | 'post', 32 | 'posts_per_page' => esc_html( $postnumber ), 33 | ); 34 | 35 | $query = new WP_Query( $args ); 36 | 37 | if( $query->have_posts() ): 38 | while( $query->have_posts() ): 39 | $query->the_post(); 40 | ?> 41 | 42 |
    43 | '; 46 | the_post_thumbnail( 'full', array( 'class' => 'img-fluid' ) ); 47 | echo '
    '; 48 | } 49 | ?> 50 |

    51 |

    52 | 53 |
    54 | 60 |

    61 |
    62 |
    63 | 64 | 69 |
    70 | 77 |
    78 | 102 |
    103 | 114 |
    115 |
    116 | [text* am-name class:common-input class:mb-20 class:form-control placeholder "Enter your name"][email* am-email class:common-input class:mb-20 class:form-control placeholder "Enter email address"][text* am-subject class:common-input class:mb-20 class:form-control placeholder "Enter your subject"] 117 |
    118 |
    119 | [textarea* am-message class:common-textarea class:form-control placeholder "Messege"] 120 | 121 |
    122 |
    123 | '; 124 | 125 | return $template; 126 | 127 | } else { 128 | return $template; 129 | } 130 | } 131 | add_filter( 'wpcf7_default_template', 'interior_contact7_form_content', 10, 2 ); 132 | -------------------------------------------------------------------------------- /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 | .nice-select:after { 34 | border-bottom: 2px solid #999; 35 | border-right: 2px solid #999; 36 | content: ''; 37 | display: block; 38 | height: 5px; 39 | margin-top: -4px; 40 | pointer-events: none; 41 | position: absolute; 42 | right: 12px; 43 | top: 50%; 44 | -webkit-transform-origin: 66% 66%; 45 | -ms-transform-origin: 66% 66%; 46 | transform-origin: 66% 66%; 47 | -webkit-transform: rotate(45deg); 48 | -ms-transform: rotate(45deg); 49 | transform: rotate(45deg); 50 | -webkit-transition: all 0.15s ease-in-out; 51 | transition: all 0.15s ease-in-out; 52 | width: 5px; } 53 | .nice-select.open:after { 54 | -webkit-transform: rotate(-135deg); 55 | -ms-transform: rotate(-135deg); 56 | transform: rotate(-135deg); } 57 | .nice-select.open .list { 58 | opacity: 1; 59 | pointer-events: auto; 60 | -webkit-transform: scale(1) translateY(0); 61 | -ms-transform: scale(1) translateY(0); 62 | transform: scale(1) translateY(0); } 63 | .nice-select.disabled { 64 | border-color: #ededed; 65 | color: #999; 66 | pointer-events: none; } 67 | .nice-select.disabled:after { 68 | border-color: #cccccc; } 69 | .nice-select.wide { 70 | width: 100%; } 71 | .nice-select.wide .list { 72 | left: 0 !important; 73 | right: 0 !important; } 74 | .nice-select.right { 75 | float: right; } 76 | .nice-select.right .list { 77 | left: auto; 78 | right: 0; } 79 | .nice-select.small { 80 | font-size: 12px; 81 | height: 36px; 82 | line-height: 34px; } 83 | .nice-select.small:after { 84 | height: 4px; 85 | width: 4px; } 86 | .nice-select.small .option { 87 | line-height: 34px; 88 | min-height: 34px; } 89 | .nice-select .list { 90 | background-color: #fff; 91 | border-radius: 5px; 92 | box-shadow: 0 0 0 1px rgba(68, 68, 68, 0.11); 93 | box-sizing: border-box; 94 | margin-top: 4px; 95 | opacity: 0; 96 | overflow: hidden; 97 | padding: 0; 98 | pointer-events: none; 99 | position: absolute; 100 | top: 100%; 101 | left: 0; 102 | -webkit-transform-origin: 50% 0; 103 | -ms-transform-origin: 50% 0; 104 | transform-origin: 50% 0; 105 | -webkit-transform: scale(0.75) translateY(-21px); 106 | -ms-transform: scale(0.75) translateY(-21px); 107 | transform: scale(0.75) translateY(-21px); 108 | -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out; 109 | transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out; 110 | z-index: 9; } 111 | .nice-select .list:hover .option:not(:hover) { 112 | background-color: transparent !important; } 113 | .nice-select .option { 114 | cursor: pointer; 115 | font-weight: 400; 116 | line-height: 40px; 117 | list-style: none; 118 | min-height: 40px; 119 | outline: none; 120 | padding-left: 18px; 121 | padding-right: 29px; 122 | text-align: left; 123 | -webkit-transition: all 0.2s; 124 | transition: all 0.2s; } 125 | .nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus { 126 | background-color: #f6f6f6; } 127 | .nice-select .option.selected { 128 | font-weight: bold; } 129 | .nice-select .option.disabled { 130 | background-color: transparent; 131 | color: #999; 132 | cursor: default; } 133 | 134 | .no-csspointerevents .nice-select .list { 135 | display: none; } 136 | 137 | .no-csspointerevents .nice-select.open .list { 138 | display: block; } 139 | -------------------------------------------------------------------------------- /inc/interior-companion/inc/elementor-widgets/assets/js/interior-companion-main.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | 'use strict'; 3 | 4 | // Mailchimp ajax 5 | $('#mc_embed_signup').find('form').ajaxChimp(); 6 | 7 | 8 | $('.img-gal').magnificPopup({ 9 | type: 'image', 10 | gallery:{ 11 | enabled:true 12 | } 13 | }); 14 | 15 | $('.play-btn').magnificPopup({ 16 | type: 'iframe', 17 | mainClass: 'mfp-fade', 18 | removalDelay: 160, 19 | preloader: false, 20 | fixedContentPos: false 21 | }); 22 | 23 | //------- Accordion js --------// 24 | 25 | jQuery(document).ready(function($) { 26 | 27 | if (document.getElementById("accordion")) { 28 | 29 | var accordion_1 = new Accordion(document.getElementById("accordion"), { 30 | collapsible: false, 31 | slideDuration: 500 32 | }); 33 | } 34 | }); 35 | 36 | //------- Counter js --------// 37 | 38 | $('.counter').counterUp({ 39 | delay: 10, 40 | time: 1000 41 | }); 42 | 43 | // 44 | $('.active-blog-carusel').owlCarousel({ 45 | items: 3, 46 | loop: true, 47 | margin: 30, 48 | dots: true, 49 | autoplayHoverPause: true, 50 | smartSpeed:500, 51 | autoplay: true, 52 | responsive: { 53 | 0: { 54 | items: 1 55 | }, 56 | 480: { 57 | items: 1, 58 | }, 59 | 768: { 60 | items: 2, 61 | }, 62 | 961: { 63 | items: 3, 64 | } 65 | } 66 | }); 67 | // 68 | $('.active-brand-carusel').owlCarousel({ 69 | items: 5, 70 | loop: true, 71 | autoplayHoverPause: true, 72 | autoplay: true, 73 | responsive: { 74 | 0: { 75 | items: 1 76 | }, 77 | 768: { 78 | items: 3, 79 | }, 80 | 991: { 81 | items: 4, 82 | }, 83 | 1024: { 84 | items: 5, 85 | } 86 | } 87 | }); 88 | 89 | // 90 | $('.active-testimonial-carusel').owlCarousel({ 91 | items: 2, 92 | loop: true, 93 | margin: 30, 94 | autoplayHoverPause: true, 95 | smartSpeed:500, 96 | dots: true, 97 | autoplay: true, 98 | responsive: { 99 | 0: { 100 | items: 1 101 | }, 102 | 480: { 103 | items: 1, 104 | }, 105 | 992: { 106 | items: 2, 107 | } 108 | } 109 | }); 110 | 111 | 112 | //------- Timer Countdown js --------// 113 | 114 | if ( document.getElementById("count") ) { 115 | 116 | var countDownDate = new Date( $( '[data-date]' ).data('date') ).getTime(); 117 | 118 | // Update the count down every 1 second 119 | var x = setInterval(function() { 120 | 121 | // Get todays date and time 122 | var now = new Date().getTime(); 123 | 124 | // Find the distance between now an the count down date 125 | var distance = countDownDate - now; 126 | 127 | // Time calculations for days, hours, minutes and seconds 128 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 129 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 130 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 131 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); 132 | 133 | // Display the result in the element with id="count" 134 | document.getElementById("count").innerHTML = 135 | 136 | "
    " + days + "
    Days " + "
    " + "
    " + hours + "
    Hours " + "
    " + "
    " + minutes + "
    Minutes " + "
    " + "
    " + seconds + "
    Seconds
    "; 137 | 138 | // If the count down is finished, write some text 139 | if (distance < 0) { 140 | clearInterval(x); 141 | document.getElementById("count").innerHTML = "EXPIRED"; 142 | } 143 | }, 1000); 144 | 145 | } 146 | 147 | 148 | 149 | })(jQuery); -------------------------------------------------------------------------------- /assets/js/main.js: -------------------------------------------------------------------------------- 1 | 2 | ( function($) { 3 | "use strict"; 4 | 5 | var window_width = $(window).width(), 6 | window_height = window.innerHeight, 7 | header_height = $(".default-header").height(), 8 | header_height_static = $(".site-header.static").outerHeight(), 9 | fitscreen = window_height - header_height; 10 | 11 | 12 | $(".fullscreen").css("height", window_height) 13 | $(".fitscreen").css("height", fitscreen); 14 | 15 | if(document.getElementById("default-select")){ 16 | $('select').niceSelect(); 17 | }; 18 | if(document.getElementById("service-select")){ 19 | $('select').niceSelect(); 20 | }; 21 | 22 | 23 | // Initiate superfish on nav menu 24 | $('.nav-menu').superfish({ 25 | animation: { 26 | opacity: 'show' 27 | }, 28 | speed: 400 29 | }); 30 | 31 | // Mobile Navigation 32 | if ($('#nav-menu-container').length) { 33 | var $mobile_nav = $('#nav-menu-container').clone().prop({ 34 | id: 'mobile-nav' 35 | }); 36 | $mobile_nav.find('> ul').attr({ 37 | 'class': '', 38 | 'id': '' 39 | }); 40 | $('body').append($mobile_nav); 41 | $('body').prepend(''); 42 | $('body').append('
    '); 43 | $('#mobile-nav').find('.menu-has-children').prepend(''); 44 | 45 | $(document).on('click', '.menu-has-children i', function(e) { 46 | $(this).next().toggleClass('menu-item-active'); 47 | $(this).nextAll('ul').eq(0).slideToggle(); 48 | $(this).toggleClass("lnr-chevron-up lnr-chevron-down"); 49 | }); 50 | 51 | $(document).on('click', '#mobile-nav-toggle', function(e) { 52 | $('body').toggleClass('mobile-nav-active'); 53 | $('#mobile-nav-toggle i').toggleClass('lnr-cross lnr-menu'); 54 | $('#mobile-body-overly').toggle(); 55 | }); 56 | 57 | $(document).click(function(e) { 58 | var container = $("#mobile-nav, #mobile-nav-toggle"); 59 | if (!container.is(e.target) && container.has(e.target).length === 0) { 60 | if ($('body').hasClass('mobile-nav-active')) { 61 | $('body').removeClass('mobile-nav-active'); 62 | $('#mobile-nav-toggle i').toggleClass('lnr-cross lnr-menu'); 63 | $('#mobile-body-overly').fadeOut(); 64 | } 65 | } 66 | }); 67 | } else if ($("#mobile-nav, #mobile-nav-toggle").length) { 68 | $("#mobile-nav, #mobile-nav-toggle").hide(); 69 | } 70 | 71 | // Smooth scroll for the menu and links with .scrollto classes 72 | $('.nav-menu a, #mobile-nav a, .scrollto').on('click', function() { 73 | if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 74 | var target = $(this.hash); 75 | if (target.length) { 76 | var top_space = 0; 77 | 78 | if ($('#header').length) { 79 | top_space = $('#header').outerHeight(); 80 | 81 | if( ! $('#header').hasClass('header-fixed') ) { 82 | top_space = top_space; 83 | } 84 | } 85 | 86 | $('html, body').animate({ 87 | scrollTop: target.offset().top - top_space 88 | }, 1500, 'easeInOutExpo'); 89 | 90 | if ($(this).parents('.nav-menu').length) { 91 | $('.nav-menu .menu-active').removeClass('menu-active'); 92 | $(this).closest('li').addClass('menu-active'); 93 | } 94 | 95 | if ($('body').hasClass('mobile-nav-active')) { 96 | $('body').removeClass('mobile-nav-active'); 97 | $('#mobile-nav-toggle i').toggleClass('lnr-times lnr-bars'); 98 | $('#mobile-body-overly').fadeOut(); 99 | } 100 | return false; 101 | } 102 | } 103 | }); 104 | 105 | 106 | $(document).ready(function() { 107 | 108 | $('html, body').hide(); 109 | 110 | if (window.location.hash) { 111 | 112 | setTimeout(function() { 113 | 114 | $('html, body').scrollTop(0).show(); 115 | 116 | $('html, body').animate({ 117 | 118 | scrollTop: $(window.location.hash).offset().top-108 119 | 120 | }, 1000) 121 | 122 | }, 0); 123 | 124 | } 125 | 126 | else { 127 | 128 | $('html, body').show(); 129 | 130 | } 131 | 132 | }); 133 | 134 | 135 | // Header scroll class 136 | $(window).scroll(function() { 137 | if ($(this).scrollTop() > 100) { 138 | $('#header').addClass('header-scrolled'); 139 | } else { 140 | $('#header').removeClass('header-scrolled'); 141 | } 142 | }); 143 | 144 | 145 | 146 | })(jQuery); 147 | -------------------------------------------------------------------------------- /inc/support-functions.php: -------------------------------------------------------------------------------- 1 | '; 24 | 25 | foreach( $cats as $cat ) { 26 | $categories .= '
  • ' .esc_html( $cat->name ) . '
  • '; 27 | } 28 | 29 | $categories .= ''; 30 | } 31 | 32 | return $categories; 33 | 34 | } 35 | 36 | // Post Tags 37 | function interior_post_tags() { 38 | 39 | $tags = get_the_tags(); 40 | 41 | $getTags = ''; 42 | 43 | if( $tags ) { 44 | $getTags .= '
  • '; 45 | foreach( $tags as $tag ){ 46 | $getTags .= '
  • ' . esc_html( $tag->name ) . '
  • '; 47 | } 48 | 49 | } 50 | 51 | return $getTags; 52 | 53 | } 54 | 55 | // interior comment template callback 56 | function interior_comment_callback( $comment, $args, $depth ) { 57 | 58 | if ( 'div' === $args['style'] ) { 59 | $tag = 'div'; 60 | $add_below = 'comment'; 61 | } else { 62 | $tag = 'li'; 63 | $add_below = 'div-comment'; 64 | } 65 | ?> 66 | < id="comment-"> 67 | 68 |
    69 | 70 |
    71 |
    72 |
    73 |
    74 | 75 |
    76 |
    77 |
    78 |
    %s ', 'interior' ), get_comment_author_link() ); ?>
    79 |

    80 | comment_approved == '0' ) : ?> 81 | 82 |
    83 | 84 |
    85 |
    86 | $add_below, 'depth' => 1, 'max_depth' => 5, 'reply_text' => 'Reply' ) ) ); ?> 87 |
    88 |
    89 | 90 |
    91 |
    92 | 93 |
    94 |
    95 | 96 |
    97 |
    98 |
    99 |
    100 |
    101 | 102 | 103 | 104 |
    105 | 106 | esc_html__( 'Add footer newsletter signup form.', 'interior-companion' ), ) 28 | ); 29 | 30 | } 31 | 32 | // This is where the action happens 33 | public function widget( $args, $instance ) { 34 | 35 | $title = apply_filters( 'widget_title', $instance['title'] ); 36 | $actionurl = apply_filters( 'widget_actionurl', $instance['actionurl'] ); 37 | $desc = apply_filters( 'widget_desc', $instance['desc'] ); 38 | 39 | // mc validation 40 | wp_enqueue_script( 'mc-validate'); 41 | 42 | // before and after widget arguments are defined by themes 43 | echo wp_kses_post( $args['before_widget'] ); 44 | if ( ! empty( $title ) ) 45 | echo wp_kses_post( $args['before_title'] . $title . $args['after_title'] ); 46 | 47 | 48 | ?> 49 | 50 |
    51 | '.esc_html( $desc ).'

    '; 54 | } 55 | ?> 56 | 57 |
    58 |
    59 |
    60 |
    61 |
    62 |
    63 |
    64 |
    65 | 66 | 67 |
    68 | 69 |
    70 |
    71 |
    72 | 73 |
    74 |
    75 |
    76 |
    77 | 78 |
    79 | 80 | 111 |

    112 | 113 | 114 |

    115 | 116 |

    117 | 118 |

    119 | 120 | 121 |

    122 |

    123 | 124 | 125 |

    126 | 127 | start_controls_section( 52 | 'clients_content', 53 | [ 54 | 'label' => __( 'Clients', 'interior-companion' ), 55 | ] 56 | ); 57 | $this->add_control( 58 | 'clients', [ 59 | 'label' => __( 'Client', 'interior-companion' ), 60 | 'type' => Controls_Manager::REPEATER, 61 | 'title_field' => '{{{ label }}}', 62 | 'fields' => [ 63 | [ 64 | 'name' => 'label', 65 | 'label' => __( 'Name', 'interior-companion' ), 66 | 'type' => Controls_Manager::TEXT, 67 | 'label_block' => true, 68 | 'default' => 'Name' 69 | ], 70 | [ 71 | 'name' => 'url', 72 | 'label' => __( 'Client Url', 'interior-companion' ), 73 | 'type' => Controls_Manager::TEXT, 74 | 'default' => '#' 75 | ], 76 | [ 77 | 'name' => 'img', 78 | 'label' => __( 'Client Logo', 'interior-companion' ), 79 | 'type' => Controls_Manager::MEDIA, 80 | ] 81 | ], 82 | ] 83 | ); 84 | 85 | $this->end_controls_section(); // End exibition content 86 | 87 | 88 | } 89 | 90 | protected function render() { 91 | 92 | $settings = $this->get_settings(); 93 | // call load widget script 94 | $this->load_widget_script(); 95 | ?> 96 | 97 |
    98 |
    99 |
    100 |
    101 | 102 | 0 ): 104 | foreach( $settings['clients'] as $client ): 105 | 106 | $bgUrl = ''; 107 | if( !empty( $client['img']['url'] ) ){ 108 | $bgUrl = $client['img']['url']; 109 | } 110 | 111 | ?> 112 | 124 | 128 | 129 |
    130 |
    131 |
    132 |
    133 | 134 | editor->is_edit_mode() === true ) { 140 | ?> 141 | 167 | access_token = interior_opt( 'interior_igaccess_token' ); 42 | } 43 | 44 | /** 45 | * @param $screen_name string Instagram username 46 | * @param $image_limit int Number of images to retrieve 47 | * @param $image_width int Desired image width to retrieve 48 | * 49 | * @return array|bool Array of tweets or false if method fails 50 | */ 51 | public function get_items( $image_limit, $image_width ) { 52 | 53 | $transient = 'zoom_instagram_is_configured'; 54 | 55 | $response = wp_remote_get( sprintf( 'https://api.instagram.com/v1/users/self/media/recent/?access_token=%s&count=%s', $this->access_token, $image_limit ) ); 56 | 57 | 58 | if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) { 59 | set_transient( $transient, false, MINUTE_IN_SECONDS ); 60 | 61 | return false; 62 | } 63 | 64 | 65 | 66 | $data = json_decode( wp_remote_retrieve_body( $response ) ); 67 | 68 | $result = array(); 69 | $username = ''; 70 | 71 | foreach ( $data->data as $item ) { 72 | 73 | if(empty($username)){ 74 | $username = $item->user->username; 75 | } 76 | 77 | $result[] = array( 78 | 'link' => $item->link, 79 | 'image-url' => $item->images->{ $this->get_best_size( $image_width ) }->url, 80 | 'likes' => $item->likes->count, 81 | 'comments' => $item->comments->count, 82 | 'location' => !empty( $item->location->name ) ? $item->location->name : '' 83 | ); 84 | } 85 | 86 | $result = array('items' => $result, 'username'=> $username ); 87 | set_transient( $transient, $result, 30 * MINUTE_IN_SECONDS ); 88 | 89 | return $result; 90 | } 91 | 92 | /** 93 | * @param $screen_name string Instagram username 94 | * 95 | * @return bool|int Instagram user id or false on error 96 | */ 97 | protected function get_user_id( $screen_name ) { 98 | $user_id_option = 'zoom_instagram_uid_' . $screen_name; 99 | 100 | if ( false !== ( $user_id = get_option( $user_id_option ) ) ) { 101 | return $user_id; 102 | } 103 | 104 | $response = wp_remote_get( sprintf( 'https://api.instagram.com/v1/users/search?q=%s&access_token=%s', $screen_name, $this->access_token ) ); 105 | 106 | if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) { 107 | return false; 108 | } 109 | 110 | $result = json_decode( wp_remote_retrieve_body( $response ) ); 111 | 112 | if ( ! isset( $result->data ) ) { 113 | return false; 114 | } 115 | 116 | $user_id = false; 117 | 118 | foreach ( $result->data as $user ) { 119 | if ( $user->username === $screen_name ) { 120 | $user_id = $user->id; 121 | 122 | break; 123 | } 124 | } 125 | 126 | update_option( $user_id_option, $user_id ); 127 | 128 | return $user_id; 129 | } 130 | 131 | /** 132 | * @param $desired_width int Desired image width in pixels 133 | * 134 | * @return string Image size for Instagram API 135 | */ 136 | protected function get_best_size( $desired_width ) { 137 | $size = 'thumbnail'; 138 | $sizes = array( 139 | 'thumbnail' => 137, 140 | 'low_resolution' => 150, 141 | 'standard_resolution' => 640 142 | ); 143 | 144 | $diff = PHP_INT_MAX; 145 | 146 | foreach ( $sizes as $key => $value ) { 147 | if ( abs( $desired_width - $value ) < $diff ) { 148 | $size = $key; 149 | $diff = abs( $desired_width - $value ); 150 | } 151 | } 152 | 153 | return $size; 154 | } 155 | 156 | /** 157 | * Check if given access token is valid for Instagram Api. 158 | */ 159 | public static function is_access_token_valid( $access_token ) { 160 | $response = wp_remote_get( sprintf( 'https://api.instagram.com/v1/users/self/?access_token=%s', $access_token ) ); 161 | 162 | if ( is_wp_error( $response ) ) { 163 | return $response; 164 | } 165 | 166 | if ( 200 != wp_remote_retrieve_response_code( $response ) ) { 167 | return false; 168 | } 169 | 170 | return true; 171 | } 172 | 173 | public function is_configured() { 174 | $transient = 'zoom_instagram_is_configured'; 175 | 176 | if ( false !== ( $result = get_transient( $transient ) ) ) { 177 | if ( 'yes' === $result ) { 178 | return true; 179 | } 180 | 181 | if ( 'no' === $result ) { 182 | return false; 183 | } 184 | } 185 | 186 | $condition = $this->is_access_token_valid( $this->access_token ); 187 | 188 | if ( true === $condition ) { 189 | set_transient( $transient, 'yes', DAY_IN_SECONDS ); 190 | 191 | return true; 192 | } 193 | 194 | set_transient( $transient, 'no', DAY_IN_SECONDS ); 195 | 196 | return false; 197 | } 198 | 199 | public static function reset_cache() { 200 | delete_transient( 'zoom_instagram_is_configured' ); 201 | } 202 | 203 | public function get_access_token() { 204 | return $this->access_token; 205 | } 206 | 207 | public function set_access_token( $access_token ) { 208 | $this->access_token = $access_token; 209 | } 210 | } 211 | ?> -------------------------------------------------------------------------------- /inc/interior-companion/inc/elementor-widgets/widgets/section-heading.php: -------------------------------------------------------------------------------- 1 | start_controls_section( 48 | 'sh_content', 49 | [ 50 | 'label' => __( 'Section Heading', 'interior-companion' ), 51 | ] 52 | ); 53 | $this->add_control( 54 | 'sh_sectiontitle', 55 | [ 56 | 'label' => esc_html__( 'Title', 'interior-companion' ), 57 | 'label_block' => true, 58 | 'type' => Controls_Manager::TEXT, 59 | ] 60 | ); 61 | $this->add_control( 62 | 'sh_sectionsubtitle', 63 | [ 64 | 'label' => esc_html__( 'Sub Title', 'interior-companion' ), 65 | 'label_block' => true, 66 | 'type' => Controls_Manager::TEXT, 67 | ] 68 | ); 69 | 70 | 71 | $this->end_controls_section(); // End few words content 72 | 73 | 74 | //------------------------------ Style Section ------------------------------ 75 | $this->start_controls_section( 76 | 'style_section', [ 77 | 'label' => __( 'Style Section', 'interior-companion' ), 78 | 'tab' => Controls_Manager::TAB_STYLE, 79 | ] 80 | ); 81 | $this->add_control( 82 | 'color_secttitle', [ 83 | 'label' => __( 'Section Title Color', 'interior-companion' ), 84 | 'type' => Controls_Manager::COLOR, 85 | 'default' => '#333333', 86 | 'selectors' => [ 87 | '{{WRAPPER}} .product-area-title h1' => 'color: {{VALUE}};', 88 | ], 89 | ] 90 | ); 91 | $this->add_group_control( 92 | Group_Control_Typography::get_type(), [ 93 | 'name' => 'typography_secttitle', 94 | 'selector' => '{{WRAPPER}} .product-area-title h1', 95 | ] 96 | ); 97 | $this->add_group_control( 98 | Group_Control_Text_Shadow::get_type(), [ 99 | 'name' => 'text_shadow_secttitle', 100 | 'selector' => '{{WRAPPER}} .product-area-title h1', 101 | ] 102 | ); 103 | 104 | $this->add_control( 105 | 'color_sectsubtitle', [ 106 | 'label' => __( 'Section Sub Title Color', 'interior-companion' ), 107 | 'type' => Controls_Manager::COLOR, 108 | 'default' => '#777', 109 | 'selectors' => [ 110 | '{{WRAPPER}} .product-area-title p' => 'color: {{VALUE}};', 111 | ], 112 | ] 113 | ); 114 | $this->add_group_control( 115 | Group_Control_Typography::get_type(), [ 116 | 'name' => 'typography_sectsubtitle', 117 | 'selector' => '{{WRAPPER}} .product-area-title p', 118 | ] 119 | ); 120 | $this->add_group_control( 121 | Group_Control_Text_Shadow::get_type(), [ 122 | 'name' => 'text_shadow_sectsubtitle', 123 | 'selector' => '{{WRAPPER}} .product-area-title p', 124 | ] 125 | ); 126 | $this->end_controls_section(); 127 | 128 | 129 | 130 | 131 | } 132 | 133 | protected function render() { 134 | 135 | $settings = $this->get_settings(); 136 | 137 | if( !empty( $settings['sh_sectiontitle'] ) || !empty( $settings['sh_sectionsubtitle'] ) ): 138 | ?> 139 | 140 |
    141 |
    142 | 'h1', 148 | 'text' => esc_html( $settings['sh_sectiontitle'] ), 149 | 'class' => 'mb-10' 150 | ) 151 | ); 152 | } 153 | // Sub Title 154 | if( !empty( $settings['sh_sectionsubtitle'] ) ){ 155 | echo interior_paragraph_tag( 156 | array( 157 | 'text' => esc_html( $settings['sh_sectionsubtitle'] ), 158 | ) 159 | ); 160 | } 161 | ?> 162 |
    163 |
    164 | 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 | * instance 74 | * 75 | * @param array $theme 76 | * 77 | * @return object 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.', 'interior' ), 144 | array( 145 | 'interior', 146 | '', 147 | '', 148 | ) 149 | ); 150 | 151 | $notifications = Epsilon_Notifications::get_instance(); 152 | $notifications->add_notice( 153 | array( 154 | 'id' => 'interior_notification_feedback', 155 | 'type' => 'notice epsilon-big', 156 | 'message' => $html, 157 | ) 158 | ); 159 | } 160 | 161 | 162 | 163 | /** 164 | * Initiate the welcome screen 165 | */ 166 | public function init_dashboard() { 167 | Epsilon_Dashboard::get_instance( 168 | array( 169 | 'theme' => array( 170 | 'download-id' => '212499' 171 | ), 172 | 'tracking' => $this->theme['theme-slug'] . '_tracking_enable', 173 | ) 174 | ); 175 | 176 | $dashboard = Epsilon_Dashboard_Setup::get_instance(); 177 | $dashboard->add_admin_notice(); 178 | 179 | $upsells = get_option( $this->theme['theme-slug'] . '_theme_upsells', false ); 180 | if ( $upsells ) { 181 | add_filter( 'epsilon_upsell_control_display', '__return_false' ); 182 | } 183 | } 184 | 185 | /** 186 | * Separate setup from init 187 | * 188 | * @param array $setup 189 | * 190 | * @return array 191 | */ 192 | public function epsilon_dashboard( $setup = array() ) { 193 | $dashboard = new Epsilon_Dashboard_Setup(); 194 | 195 | $setup['actions'] = $dashboard->get_actions(); 196 | $setup['tabs'] = $dashboard->get_tabs( $setup ); 197 | $setup['plugins'] = $dashboard->get_plugins(); 198 | $setup['privacy'] = $dashboard->get_privacy_options(); 199 | 200 | $setup['edd'] = $dashboard->get_edd( $setup ); 201 | 202 | $tab = get_user_meta( get_current_user_id(), 'epsilon_active_tab', true ); 203 | 204 | $setup['activeTab'] = ! empty( $tab ) ? absint( $tab ) : 0; 205 | 206 | return $setup; 207 | } 208 | 209 | /** 210 | * Add steps to onboarding 211 | * 212 | * @param array $setup 213 | * 214 | * @return array 215 | */ 216 | public function epsilon_onboarding( $setup = array() ) { 217 | $dashboard = new Epsilon_Dashboard_Setup(); 218 | 219 | $setup['steps'] = $dashboard->get_steps(); 220 | $setup['plugins'] = $dashboard->get_plugins( true ); 221 | $setup['privacy'] = $dashboard->get_privacy_options(); 222 | 223 | return $setup; 224 | } 225 | 226 | 227 | } 228 | -------------------------------------------------------------------------------- /inc/category-meta.php: -------------------------------------------------------------------------------- 1 | 44 |

    45 | 46 | 47 |
    48 |

    49 | 50 | 51 |

    52 |
    53 | 72 | 73 | 74 | 75 | 76 | 77 | term_id, 'category-image-id', true ); ?> 78 | 79 |
    80 | 81 | 82 | 83 |
    84 |

    85 | 86 | 87 |

    88 | 89 | 90 | 111 | 157 | init(); 163 | 164 | } -------------------------------------------------------------------------------- /inc/breadcrumbs.php: -------------------------------------------------------------------------------- 1 | '', 27 | 'breadcrumbs_classes' => esc_html( 'breadcrumb' ), 28 | 'home_title' => esc_html__( 'Home', 'interior' ) 29 | ); 30 | $args = apply_filters( 'interior_breadcrumbs_args', wp_parse_args( $args, $defaults ) ); 31 | 32 | $args_el = array(); 33 | 34 | if( $args['breadcrumbs_id'] ) { 35 | 36 | $args_el[] = 'id="'.esc_attr( $args['breadcrumbs_id'] ).'"'; 37 | } 38 | 39 | if( $args['breadcrumbs_classes'] ) { 40 | 41 | $args_el[] = 'class="'.esc_attr( $args['breadcrumbs_classes'] ).'"'; 42 | 43 | } 44 | 45 | /* 46 | * Begin Markup 47 | */ 48 | 49 | // Open the breadcrumbs 50 | $html = ''; 115 | $html = apply_filters( 'interior_breadcrumbs_filter', $html ); 116 | 117 | echo wp_kses_post( $html ); 118 | 119 | 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /inc/interior-companion/inc/sidebar-widgets/social-widget.php: -------------------------------------------------------------------------------- 1 | esc_html__( 'Add social content', 'interior-companion' ), ) 31 | ); 32 | 33 | } 34 | 35 | // This is where the action happens 36 | public function widget( $args, $instance ) { 37 | 38 | $title = apply_filters( 'widget_title', $instance['title'] ); 39 | $textarea = apply_filters( 'widget_textarea', $instance['textarea'] ); 40 | $fburl = apply_filters( 'widget_fburl', $instance['fburl'] ); 41 | $twiturl = apply_filters( 'widget_twiturl', $instance['twiturl'] ); 42 | $dribbbleurl = apply_filters( 'widget_dribbbleurl', $instance['dribbbleurl'] ); 43 | $behanceurl = apply_filters( 'widget_behanceurl', $instance['behanceurl'] ); 44 | 45 | // before and after widget arguments are defined by themes 46 | echo wp_kses_post( $args['before_widget'] ); 47 | 48 | if ( ! empty( $title ) ) 49 | echo wp_kses_post( $args['before_title'] . $title . $args['after_title'] ); 50 | ?> 51 | 52 | '.wp_kses_post( $textarea).'

    '; 55 | } 56 | ?> 57 | 77 | 78 | 129 |

    130 | 131 | 132 |

    133 | 134 |

    135 | 136 | 137 |

    138 | 139 |

    140 | 141 | 142 |

    143 | 144 |

    145 | 146 | 147 |

    148 | 149 |

    150 | 151 | 152 |

    153 | 154 |

    155 | 156 | 157 |

    158 | 159 |