-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change theme definition, theme prefix, function naming conventions, c…
…hange license, remove unused code, add accessibility
- Loading branch information
saidmsaif
committed
Dec 17, 2021
1 parent
b7d83f2
commit 4b00341
Showing
27 changed files
with
172 additions
and
89 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = '<i class="fa '.concat(i, '"></i>'); | ||
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); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
get_template_part('inc/craftnce-functions'); | ||
get_template_part('lib/customizer/customizer'); | ||
get_template_part('lib/bootstrap5-nav-walker'); | ||
get_template_part('lib/customizer/craftnce-customizer'); | ||
get_template_part('lib/craftnce-nav-walker'); | ||
|
||
if(!function_exists('craftnce_theme_setup')) { | ||
function craftnce_theme_setup() { | ||
|
@@ -48,7 +48,7 @@ function craftnce_assets_enqueue() { | |
wp_enqueue_style('craftnce-slick-css', '//cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css'); | ||
wp_enqueue_style('craftnce-main-style', get_template_directory_uri().'/assets/css/style.css'); | ||
wp_enqueue_style('craftnce-responsive-style', get_template_directory_uri().'/assets/css/responsive.css'); | ||
wp_enqueue_style('theme-default-css', get_stylesheet_uri()); | ||
wp_enqueue_style('craftnce-theme-default-css', get_stylesheet_uri()); | ||
|
||
// JS Enqueue | ||
wp_enqueue_script( 'comment-reply' ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.