Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #33

Merged
merged 38 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8b0494a
Update color variable and references
garikhg Jan 13, 2024
63b88be
Update readme.txt
garikhg Jan 13, 2024
854e874
Lower PHP requirement and correct theme version information
garikhg Jan 13, 2024
d0a8b46
Update readme.txt
garikhg Jan 13, 2024
0148579
Update readme.txt
garikhg Jan 13, 2024
188f09a
Add gray-base color variable to SASS
garikhg Jan 13, 2024
643993a
Update color variables and PHP requirement in readme.txt
garikhg Jan 13, 2024
9dfdba9
Add footer menu to wp-kit-elementor theme
garikhg Jan 13, 2024
8a119ab
Rename primary menu label in wp-kit-elementor theme functions
garikhg Jan 13, 2024
86f6e8a
Update theme to version 1.0.5 with added and tweaked features
garikhg Jan 13, 2024
dd0ce5f
Simplify site navigation tag in theme header
garikhg Jan 13, 2024
ffbb970
Refactor footer theme design in 'wp-kit-elementor'
garikhg Jan 13, 2024
6f32a63
Refactor navigation styling in wp-kit-elementor theme
garikhg Jan 13, 2024
b050bfd
Update footer styling in wp-kit-elementor theme
garikhg Jan 13, 2024
e2fa91f
Reorganize and update styling for wp-kit-elementor theme's footer
garikhg Jan 13, 2024
b46b954
Adjust font size and weight for site title in header
garikhg Jan 13, 2024
05a949d
Update readme.txt
garikhg Jan 13, 2024
e3887b7
Update readme.txt
garikhg Jan 13, 2024
e4cfdec
Optimize header.php code formatting
garikhg Jan 13, 2024
04e5984
Update readme.txt
garikhg Jan 13, 2024
312dadf
Add image dimensions to the readme file
garikhg Jan 13, 2024
3c253b8
Update image source URL in README
garikhg Jan 13, 2024
2895873
Update image tag in README
garikhg Jan 13, 2024
c89cebc
Remove custom background support in wp-kit-elementor
garikhg Jan 13, 2024
b164369
Update readme.txt
garikhg Jan 13, 2024
6b294e7
Update readme.txt
garikhg Jan 13, 2024
2bd09e8
Update theme and author name in style.scss
garikhg Jan 19, 2024
0bb33a7
Update readme.txt
garikhg Jan 19, 2024
573349a
Refactor file paths and remove unnecessary comments
garikhg Jan 19, 2024
ecbc311
Update readme.txt
garikhg Jan 19, 2024
1fa04b0
Refactor function names and update theme version
garikhg Jan 21, 2024
20ca65e
Remove stable tag in theme's SCSS file
garikhg Jan 21, 2024
b84458e
Update readme.txt
garikhg Jan 21, 2024
bc81b4b
Remove 'wpkit-admin' from webpack config
garikhg Jan 21, 2024
7dcca5b
Update package name and slug in theme JSON file
garikhg Jan 21, 2024
6b2b681
Merge branch 'main' of https://github.com/wpkitpro/wp-kit-elementor i…
garikhg Jan 22, 2024
d9bcc29
Update version in Elementor theme's readme.txt
garikhg Jan 22, 2024
fa756de
Merge branch 'release/1.0.6' of https://github.com/wpkitpro/wp-kit-el…
garikhg Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A lightweight and minimalist WordPress theme for Elementor site builder.

<p><a href="https://wpkit.pro/themes/wpkit-elementor"><img src="https://wpkit.pro/wp-content/uploads/wporg-theme-images/screenshot.png?w=600&strip=all" alt="WP Kit Elementor"></a></p>
<p><a href="https://wpkit.pro/themes/wpkit-elementor"><img src="https://wpkit.pro/wp-content/uploads/wporg-theme-images/screenshot.png" alt="WP Kit Elementor"></a></p>

## Description

Expand Down
4 changes: 3 additions & 1 deletion assets/sass/abstracts/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// Colors
$gray-base: #212529 !default;
$blue: #605be5 !default;
$dark-blue: #333366 !default;
$light-gray: #e8e8e8 !default;


// Text and Paragraph
$text-color: #212529;
$text-color: $gray-base;

// Fonts
$font-family-base: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
Expand Down
5 changes: 0 additions & 5 deletions assets/sass/style-editor.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* Editor styling
*/
/**
* DO NOT CHANGE THIS FILE!
* To override any of the settings in this section, add your styling code in the custom directory.
* Loading first in the style.scss and style-editor.scss
*/
8 changes: 4 additions & 4 deletions assets/sass/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Theme Name: WP Kit Elementor
Theme Name: WpKit Elementor
Theme URI: https://wpkit.pro/themes/wpkit-elementor/
Description: WP Kit Elementor is a versatile and streamlined WordPress theme meticulously crafted to integrate seamlessly with the Elementor page builder plugin. This free and open-source theme is tailored for users seeking a nimble, user-friendly, and highly customizable website. Engineered for optimal performance, WP Kit Elementor establishes a robust groundwork, empowering users to fashion distinctive designs effortlessly through the intuitive Elementor drag-and-drop site builder. With its user-centric simplicity and adaptable features, WP Kit Elementor stands out as an excellent choice for both novices and seasoned web creators alike.
Description: WpKitElementor is a versatile and streamlined WordPress theme meticulously crafted to integrate seamlessly with the Elementor page builder plugin. This free and open-source theme is tailored for users seeking a nimble, user-friendly, and highly customizable website. Engineered for optimal performance, WpKitElementor establishes a robust groundwork, empowering users to fashion distinctive designs effortlessly through the intuitive Elementor drag-and-drop site builder. With its user-centric simplicity and adaptable features, WpKitElementor stands out as an excellent choice for both novices and seasoned web creators alike.
Author: WpKit
Author URI: https://wpkit.pro
Version: 1.0.6
Expand All @@ -14,8 +14,8 @@ License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: wp-kit-elementor
Tags: blog, e-commerce, one-column, custom-background, custom-colors, full-width-template, custom-menu, custom-logo, featured-images, sticky-post, theme-options, threaded-comments, translation-ready

WP Kit Elementor WordPress Theme, (C) 2023 wpkit.pro
WP Kit Elementor is distributed under the terms of the GNU GPL.
WpKitElementor WordPress Theme, (C) 2023 wpkit.pro
WpKitElementor is distributed under the terms of the GNU GPL.
*/

@import "abstracts/mixins";
Expand Down
4 changes: 2 additions & 2 deletions assets/sass/theme/_comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
padding: 1.25rem; /* 20/16 */
margin-top: 1.25rem; /* 20/16 */
margin-bottom: 1.25rem; /* 20/16 */
border: 1px solid #e8e8e8;
border: 1px solid $light-gray;
}

img {
Expand All @@ -30,6 +30,6 @@
.comment-form-comment {
input,
textarea {
border-color: #e8e8e8;
border-color: $light-gray;
}
}
8 changes: 7 additions & 1 deletion assets/sass/theme/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
/**
* Footer styles
*/
.site-footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 1.875rem 0; /* 30/16 */
}

.footer-copyright {
text-align: center;
padding: 1.875rem 0; /* 30/16 */
}
5 changes: 5 additions & 0 deletions assets/sass/theme/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
.site-description {
margin: 0;
}

.site-title {
font-size: 2.5rem; /* 40/16 */
font-weight: 500;
}
}
10 changes: 3 additions & 7 deletions assets/sass/theme/_navigation.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
/**
* Navigation styles
*/
.primary-navigation {
.site-navigation {
ul {
display: flex;
padding: 0;
list-style: none;

li {
margin-bottom: 1.25rem; /* 20/16 */
}
}
}

nav {
&.primary-navigation {
&.site-navigation {
text-align: center;

a, span {
Expand All @@ -24,7 +20,7 @@ nav {
}

.site-logo a,
.primary-navigation a,
.site-navigation a,
.kit-theme-post .read-more a,
.kit-theme-post .post-title a {
text-decoration: none;
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/theme/_posts-and-pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
align-items: center;
justify-content: space-between;
padding: 1.25rem 0; /* 20/16 */
border-bottom: 1px solid #e8e8e8;
border-bottom: 1px solid $light-gray;
}

.read-more {
Expand Down
Empty file.
23 changes: 2 additions & 21 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WpKitElementor
*/
Expand All @@ -13,30 +13,11 @@
exit; // Exit if accessed directly.
}

$theme_name = wp_get_theme()->get( 'Name' );
$theme_author = wp_get_theme()->get( 'Author' );
$theme_url = 'https://wpkit.pro';
?>
</div><!-- #content -->

<footer id="colophon" class="site-footer">
<?php get_template_part( 'template-parts/footer' ); ?>

<div class="footer-copyright">

<div class="credit">
<?php
/* translators: %1$s: theme name, %2$s link, %3$s theme author */
echo sprintf( __( '%1$s Theme by <a href="%2$s">%3$s.</a>',
'wp-kit-elementor' ), esc_html( $theme_name ),
esc_url( $theme_url ),
$theme_author
);
?>
</div>

</div>

</footer><!-- #colophon -->
</div><!-- #page-wrapper -->

<?php wp_footer(); ?>
Expand Down
13 changes: 4 additions & 9 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function wp_kit_elementor_setup() {
// Let WordPress manage the document title for us
add_theme_support( 'title-tag' );


// Custom Logo
add_theme_support( 'custom-logo', [
'height' => 100,
Expand All @@ -27,17 +26,13 @@ function wp_kit_elementor_setup() {
'flex-width' => true,
] );

add_theme_support( 'custom-header' );

// Add theme support for Custom Background.
add_theme_support( 'custom-background', [ 'default-color' => '' ] );

// Set the default content width.
$GLOBALS['content_width'] = 960;

// This theme uses wp_nav_menu() in one location
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'wp-kit-elementor' ),
'primary' => __( 'Primary', 'wp-kit-elementor' ),
'footer' => __( 'Footer', 'wp-kit-elementor' ),
) );

// Switch default core markup for search form, comment form, and comments to output valid HTML5
Expand Down Expand Up @@ -87,7 +82,7 @@ function wp_kit_elementor_scripts() {

// Theme Stylesheet
wp_enqueue_style(
'wp-kit-elementor',
'wp-kit-elementor-frontend',
get_stylesheet_uri(),
array(),
WPKIT_ELEMENTOR_VERSION
Expand All @@ -99,7 +94,7 @@ function wp_kit_elementor_scripts() {
}

wp_enqueue_style(
'wp-kit-elementor-theme-style',
'wp-kit-elementor-theme',
get_stylesheet_directory_uri() . '/theme' . $min_suffix . '.css',
array(),
WPKIT_ELEMENTOR_VERSION
Expand Down
1 change: 0 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<?php esc_html_e( 'Skip to content', 'wp-kit-elementor' ); ?>
</a>


<?php get_template_part( 'template-parts/header' ); ?>

<div id="content" class="site-content">
Expand Down
27 changes: 15 additions & 12 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Contributors: wpkit
Requires at least: 6.4
Tested up to: 6.4.2
Requires PHP: 7.4
Requires PHP: 7.3
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -42,7 +42,7 @@ Source: https://stocksnap.io/photo/BHIL9FV6RK

== Changelog ==

= 1.0.5 - 2024-01-22 =
= 1.0.6 - 2024-01-22 =
Fix: Correct function names in wp_kit_elementor theme

= 1.0.5 - 2024-01-21 =
Expand All @@ -58,6 +58,9 @@ Fix: Refactor function names in WpKit Elementor theme
* New: Added new scripts file mode to project
* New: Define WPKIT_ELEMENTOR_VERSION constant in functions.php
* New: Add LICENSE file to WP Kit Elementor Theme
* Tweak: Updated theme metadata in the style.css file
* Tweak: Add enqueue theme stylesheet code in functions.php
* Tweak: Refactor theme function file for wp-kit-elementor
* Tweak: Replace CSS variables with SCSS variables
* Tweak: Reorganize SCSS imports and add site logo styles
* Tweak: Refactor and simplify Sass styles in wp-kit-elementor theme
Expand All @@ -79,8 +82,8 @@ Fix: Refactor function names in WpKit Elementor theme
* Update: WP Kit Elementor theme requirements and license info
* Upgrade: theme requirement and refine copyright details
* Update: Update WP Kit Elementor theme details
* Fixed: Remove border style from nav links in wp-kit-elementor theme
* Fixed: Header template part reference the '.php' extension was removed
* Fix: Remove border style from nav links in wp-kit-elementor theme
* Fix: Header template part reference the '.php' extension was removed

= 1.0.2 - 2023-12-22 =
* New: Added editor style support to wp-kit-elementor theme
Expand All @@ -89,7 +92,7 @@ Fix: Refactor function names in WpKit Elementor theme
* Tweak: Modify alignment in post-footer of wp-kit-elementor theme
* Tweak: Updated 'bundle' script in wp-kit-elementor theme
* Tweak: Update package name and improve 404 template in wp-kit-elementor theme
* Fixed: Fixed style files and add instructions in wp-kit-elementor theme
* Fix: Fix style files and add instructions in wp-kit-elementor theme
* Removed: Remove changelog.txt from wp-kit-elementor theme
* Updated: Update theme metadata and author details
* Updated: Screenshot image license details in readme
Expand All @@ -100,26 +103,22 @@ Fix: Refactor function names in WpKit Elementor theme
* Update version number in wpkit-elementor theme
* Update README files and package details for WPKit Elementor theme
* Update SDK class with improved exception handling
* Fixed: Text domain in 404.php
* Fixed: 'esc_html_e' to 'esc_attr__' in header.php
* Fix: Text domain in 404.php
* Fix: 'esc_html_e' to 'esc_attr__' in header.php

= 1.0.0 - 2023-12-03 =
* New: Add comments.php for WP Kit Elementor theme
* Tweak: Update theme name and version, refine bundle script
* Updated: Update theme version and fix CSS selectors
* Tweak: Refactor wpkit-elementor theme index template
* Tweak: Remove unused template parts from theme
* Tweak: Extend page rendering in wpkit-elementor theme
* Fixed: Fix typo in class name in style.scss
* Fixed: Refactor CSS class name in style.scss
* Tweak: Update dependencies in package.json & package-lock.json
* Tweak: Update package.json with bundling and translation tasks
* Tweak: Update template structure and improve accessibility in page.php
* Tweak: Update skip link target and change content wrapper in header.php
* Tweak: Rename package name and change main content wrapper in footer.php
* Tweak: Update main content accessibility and documentation
* Added: Add comments.php for WP Kit Elementor theme
* Tweak: Update theme information in style.css
* Removed: Remove unused custom template in WPKit
* Added: Add sidebar.php to avoid Deprecated Message
* Tweak: Rename LICENSE.md to LICENSE and update copyright
* Tweak: Add footer documentation to footer.php
Expand All @@ -137,6 +136,10 @@ Fix: Refactor function names in WpKit Elementor theme
* Tweak: Remove setup.php and template-functions.php
* Tweak: Refactored file paths and updated theme details
* Tweak: Remove excessive CSS styling from WPKit theme
* Updated: Update theme version and fix CSS selectors
* Fix: Fix typo in class name in style.scss
* Fix: Refactor CSS class name in style.scss
* Removed: Remove unused custom template in WPKit

= 0.0.1 - 2023-12-03 =
* Initial Public Release
Expand Down
44 changes: 44 additions & 0 deletions template-parts/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* The template for displaying footer.
*
* @package WpKitElementor
*/

$theme_name = wp_get_theme()->get( 'Name' );
$theme_author = wp_get_theme()->get( 'Author' );
$theme_url = wp_get_theme()->get( 'AuthorURI' );

$footer_nav_menu = wp_nav_menu( array(
'theme_location' => 'footer',
'fallback_cb' => false,
'echo' => false,
) );
?>
<footer id="colophon" class="site-footer">

<?php if ( $footer_nav_menu ): ?>
<nav class="site-navigation">
<?php
// PHPCS - escaped by WordPress with "wp_nav_menu"
echo $footer_nav_menu; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</nav>
<?php endif; ?>

<div class="footer-copyright">

<div class="credit">
<?php
/* translators: %1$s: theme name, %2$s link, %3$s theme author */
echo sprintf( __( '%1$s Theme by <a href="%2$s">%3$s.</a>',
'wp-kit-elementor' ), esc_html( $theme_name ),
esc_url( $theme_url ),
$theme_author
);
?>
</div>

</div>

</footer><!-- #colophon -->
5 changes: 1 addition & 4 deletions template-parts/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@

<?php endif; // Endif has_custom_logo() ?>
</div>
<nav id="site-navigation"
class="primary-navigation"
aria-label="<?php esc_attr_e( 'Primary menu', 'wp-kit-elementor' ); ?>"
>
<nav class="site-navigation" aria-label="<?php esc_attr_e( 'Primary navigation', 'wp-kit-elementor' ); ?>">
<?php if ( has_nav_menu( 'primary' ) ) { ?>
<?php wp_nav_menu( [ 'theme_location' => 'primary' ] ); ?>
<?php } // Endif has_nav_menu('primary') ?>
Expand Down
5 changes: 2 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ const CopyPlugin = require( 'copy-webpack-plugin' );
const TerserPlugin = require( 'terser-webpack-plugin' );

const entry = {
'kit-frontend': path.resolve( __dirname, './assets/scripts/frontend/kit-frontend.js' ),
'kit-editor': path.resolve( __dirname, './assets/scripts/editor/kit-editor.js' ),
'kit-admin': path.resolve( __dirname, './assets/scripts/admin/kit-admin.js' ),
'wpkit-frontend': path.resolve( __dirname, './assets/scripts/frontend/wpkit-frontend.js' ),
'wpkit-editor': path.resolve( __dirname, './assets/scripts/editor/wpkit-editor.js' ),
}

const copyPluginConfig = new CopyPlugin( {
Expand Down