diff --git a/assets/css/pe-customize-controls.css b/assets/css/craftnce-customize-controls.css similarity index 100% rename from assets/css/pe-customize-controls.css rename to assets/css/craftnce-customize-controls.css diff --git a/assets/css/customize-repeater.css b/assets/css/craftnce-customize-repeater.css similarity index 100% rename from assets/css/customize-repeater.css rename to assets/css/craftnce-customize-repeater.css diff --git a/assets/css/fontawesome-iconpicker.min.css b/assets/css/craftnce-iconpicker.min.css similarity index 100% rename from assets/css/fontawesome-iconpicker.min.css rename to assets/css/craftnce-iconpicker.min.css diff --git a/assets/css/style.css b/assets/css/style.css index d687daa..9e28d85 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -193,7 +193,7 @@ input:focus { padding: 0; position: absolute !important; width: 1px; - word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ + word-wrap: normal !important; } .screen-reader-text:focus { @@ -213,18 +213,27 @@ input:focus { z-index: 100000; /* Above WP toolbar. */ } +#content[tabindex="-1"]:focus { + outline: 0; +} .bypostauthor{} .gallery-caption{} + + /* Header Section */ +#site-header { + z-index: 9999; +} .navbar-brand img { width: 120px; } .navbar-toggler { border: none; + border-radius: 0; } .navbar-toggler:focus { - box-shadow: none; + box-shadow: 0 0 0 0.1rem; } .home-hero { background: var(--secondary-color); diff --git a/assets/js/pe-customize-controls.js b/assets/js/craftnce-customize-controls.js similarity index 100% rename from assets/js/pe-customize-controls.js rename to assets/js/craftnce-customize-controls.js diff --git a/assets/js/customizer-repeater.js b/assets/js/craftnce-customizer-repeater.js similarity index 100% rename from assets/js/customizer-repeater.js rename to assets/js/craftnce-customizer-repeater.js diff --git a/assets/js/craftnce-iconpicker.min.js b/assets/js/craftnce-iconpicker.min.js new file mode 100644 index 0000000..fa04136 --- /dev/null +++ b/assets/js/craftnce-iconpicker.min.js @@ -0,0 +1,42 @@ +!(function (e) { + "use strict"; + (wp.customizerRepeater = { + init: function () { + e(".iconpicker-items>i").on("click", function () { + var i = e(this).attr("class").slice(3), + t = e(this).parents(".iconpicker-popover").prev().find(".icp"); + t.val(i), t.attr("value", i); + var n = t.next(".input-group-addon"), + c = ''); + n.empty(), n.append(c); + var r = e(this).parent().parent().parent(); + return t.trigger("change"), customizer_repeater_refresh_social_icons(r), !1; + }); + }, + search: function (i) { + var t = i.parent().next().find(".iconpicker-items"), + n = i.val().toLowerCase(); + n.length > 0 + ? t.children().each(function () { + e(this).filter("[title*=".concat(n)).length > 0 || n.length < 1 ? e(this).show() : e(this).hide(); + }) + : t.children().show(); + }, + iconPickerToggle: function (e) { + e.parent().next().addClass("iconpicker-visible"); + }, + }), + e(document).ready(function () { + wp.customizerRepeater.init(), + e(".iconpicker-search").on("keyup", function () { + wp.customizerRepeater.search(e(this)); + }), + e(".icp-auto").on("click", function () { + wp.customizerRepeater.iconPickerToggle(e(this)); + }), + e(document).mouseup(function (i) { + var t = e(".iconpicker-popover"); + t.is(i.target) || 0 !== t.has(i.target).length || t.removeClass("iconpicker-visible"); + }); + }); +})(jQuery); diff --git a/assets/js/fontawesome-iconpicker.min.js b/assets/js/fontawesome-iconpicker.min.js deleted file mode 100644 index 90d8ece..0000000 --- a/assets/js/fontawesome-iconpicker.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){"use strict";wp.customizerRepeater={init:function(){e(".iconpicker-items>i").on("click",function(){var i=e(this).attr("class").slice(3),t=e(this).parents(".iconpicker-popover").prev().find(".icp");t.val(i),t.attr("value",i);var n=t.next(".input-group-addon"),c='');n.empty(),n.append(c);var r=e(this).parent().parent().parent();return t.trigger("change"),customizer_repeater_refresh_social_icons(r),!1})},search:function(i){var t=i.parent().next().find(".iconpicker-items"),n=i.val().toLowerCase();n.length>0?t.children().each(function(){e(this).filter("[title*=".concat(n)).length>0||n.length<1?e(this).show():e(this).hide()}):t.children().show()},iconPickerToggle:function(e){e.parent().next().addClass("iconpicker-visible")}},e(document).ready(function(){wp.customizerRepeater.init(),e(".iconpicker-search").on("keyup",function(){wp.customizerRepeater.search(e(this))}),e(".icp-auto").on("click",function(){wp.customizerRepeater.iconPickerToggle(e(this))}),e(document).mouseup(function(i){var t=e(".iconpicker-popover");t.is(i.target)||0!==t.has(i.target).length||t.removeClass("iconpicker-visible")})})}(jQuery); \ No newline at end of file diff --git a/assets/js/main.js b/assets/js/main.js index 217bc93..74a56ee 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -106,4 +106,4 @@ document.addEventListener('scroll', () => { } else if (window.scrollY < 100) { siteHeader.classList.remove('shadow-sm'); } -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/footer.php b/footer.php index 16caf6b..01785ea 100644 --- a/footer.php +++ b/footer.php @@ -1,12 +1,13 @@ - + + diff --git a/functions.php b/functions.php index 574970d..ed3a35e 100644 --- a/functions.php +++ b/functions.php @@ -1,7 +1,7 @@ - - \ No newline at end of file diff --git a/home.php b/home.php index 2983abe..93bfdcd 100644 --- a/home.php +++ b/home.php @@ -14,8 +14,8 @@ ?>
-
-

+
+

+ + -
+
diff --git a/lib/bootstrap5-nav-walker.php b/lib/craftnce-nav-walker.php similarity index 96% rename from lib/bootstrap5-nav-walker.php rename to lib/craftnce-nav-walker.php index 759a996..c5dfdb7 100644 --- a/lib/bootstrap5-nav-walker.php +++ b/lib/craftnce-nav-walker.php @@ -1,5 +1,5 @@ add_panel( $homePagePanel ); // Customizer Repeater Class - require_once get_theme_file_path('/lib/customizer/customizer-repeater.php'); + require_once get_theme_file_path('/lib/customizer/craftnce-customizer-repeater.php'); // Home page hero options require_once get_theme_file_path('/inc/option-panel/customizer/options/home-hero.php'); diff --git a/page-templates/home-page.php b/page-templates/home-page.php index 1aed96a..ef30f4e 100644 --- a/page-templates/home-page.php +++ b/page-templates/home-page.php @@ -52,7 +52,7 @@ if(get_theme_mod('craftnce_show_home_info_section_setting', 1)) : ?> -
+
diff --git a/page-templates/left-sidebar-page.php b/page-templates/left-sidebar-page.php index 32a265a..82fd2c6 100644 --- a/page-templates/left-sidebar-page.php +++ b/page-templates/left-sidebar-page.php @@ -11,7 +11,7 @@ } ?> -
+
-
+
diff --git a/page.php b/page.php index c798621..37dcbf9 100644 --- a/page.php +++ b/page.php @@ -7,7 +7,7 @@ } ?> -
+
-
+
diff --git a/style.css b/style.css index cdf3436..022ee66 100644 --- a/style.css +++ b/style.css @@ -4,10 +4,10 @@ Author URI: https://mamurjor.com Description: Craftnce is developed to make beautiful agency websites for digital business agency, blogs, personal portfolios and it's standing for any kind of websites. It's perfect to manage a agency. It offers a fully responsive layout to be displayed on every kind of device. Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments - Version: 1.0.2 - Requires at least: 5.0 - Tested up to: 5.4 - Requires PHP: 7.0 + Version: 1.0.3 + Requires at least: 5.8.2 + Tested up to: 5.8 + Requires PHP: 7.3 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: craftnce